Lines Matching refs:qch
116 const struct qlink_chandef *qch, in qlink_chandef_q2cfg() argument
121 chan = ieee80211_get_channel(wiphy, le16_to_cpu(qch->chan.center_freq)); in qlink_chandef_q2cfg()
124 chdef->center_freq1 = le16_to_cpu(qch->center_freq1); in qlink_chandef_q2cfg()
125 chdef->center_freq2 = le16_to_cpu(qch->center_freq2); in qlink_chandef_q2cfg()
126 chdef->width = qlink_chanwidth_to_nl(qch->width); in qlink_chandef_q2cfg()
132 struct qlink_chandef *qch) in qlink_chandef_cfg2q() argument
136 qch->chan.hw_value = cpu_to_le16(chan->hw_value); in qlink_chandef_cfg2q()
137 qch->chan.center_freq = cpu_to_le16(chan->center_freq); in qlink_chandef_cfg2q()
138 qch->chan.flags = cpu_to_le32(chan->flags); in qlink_chandef_cfg2q()
140 qch->center_freq1 = cpu_to_le16(chdef->center_freq1); in qlink_chandef_cfg2q()
141 qch->center_freq2 = cpu_to_le16(chdef->center_freq2); in qlink_chandef_cfg2q()
142 qch->width = qlink_chanwidth_nl_to_qlink(chdef->width); in qlink_chandef_cfg2q()