Searched refs:chan_frac (Results 1 - 1 of 1) 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
166 chan_frac = (((freq * 4) % div) * 0x20000) / div; ar9003_hw_set_channel()
167 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
176 chan_frac = (((freq * 4) % 120) * 0x20000) / 120; ar9003_hw_set_channel()
177 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
181 chan_frac = (((freq * 2) % 75) * 0x20000) / 75; ar9003_hw_set_channel()
182 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
194 chan_frac = (((freq * 4) % div) * 0x20000) / div; ar9003_hw_set_channel()
195 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()
206 chan_frac = ((freq % 75) * 0x20000) / 75; ar9003_hw_set_channel()
207 channelSel = (channelSel << 17) | chan_frac; ar9003_hw_set_channel()

Completed in 54 milliseconds