Searched refs:channelSel (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dar9003_phy.c151 u32 freq, chan_frac, div, channelSel = 0, reg32 = 0; ar9003_hw_set_channel() local
165 channelSel = (freq * 4) / div; ar9003_hw_set_channel()
167 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
175 channelSel = (freq * 4) / 120; ar9003_hw_set_channel()
177 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
180 channelSel = (freq * 2) / 75; ar9003_hw_set_channel()
182 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
184 channelSel = CHANSEL_2G(freq) >> 1; ar9003_hw_set_channel()
193 channelSel = (freq * 4) / div; ar9003_hw_set_channel()
195 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
197 channelSel = CHANSEL_2G(freq); ar9003_hw_set_channel()
205 channelSel = freq / 75; ar9003_hw_set_channel()
207 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
209 channelSel = CHANSEL_5G(freq); ar9003_hw_set_channel()
210 /* Doubler is ON, so, divide channelSel by 2. */ ar9003_hw_set_channel()
211 channelSel >>= 1; ar9003_hw_set_channel()
230 reg32 = (channelSel << 2) | (fracMode << 30) | ar9003_hw_set_channel()
236 reg32 = (channelSel << 2) | (fracMode << 30) | ar9003_hw_set_channel()
H A Dar9002_phy.c69 u32 freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; ar9002_hw_set_channel() local
86 channelSel = CHANSEL_2G(freq); ar9002_hw_set_channel()
131 channelSel = CHANSEL_5G(freq); ar9002_hw_set_channel()
142 channelSel = ndiv & 0x1ff; ar9002_hw_set_channel()
144 channelSel = (channelSel << 17) | channelFrac; ar9002_hw_set_channel()
150 (fracMode << 28) | (aModeRefSel << 26) | (channelSel); ar9002_hw_set_channel()
H A Dar5008_phy.c188 u32 channelSel = 0; ar5008_hw_set_channel() local
202 channelSel = ((freq - 672) * 2 - 3040) / 10; ar5008_hw_set_channel()
205 channelSel = ((freq - 704) * 2 - 3040) / 10; ar5008_hw_set_channel()
212 channelSel = (channelSel << 2) & 0xff; ar5008_hw_set_channel()
213 channelSel = ath9k_hw_reverse_bits(channelSel, 8); ar5008_hw_set_channel()
226 channelSel = ar5008_hw_set_channel()
230 channelSel = ar5008_hw_set_channel()
237 channelSel = ath9k_hw_reverse_bits((freq - 4800) / 5, 8); ar5008_hw_set_channel()
247 (channelSel << 8) | (aModeRefSel << 2) | (bModeSynth << 1) | ar5008_hw_set_channel()

Completed in 108 milliseconds