Lines Matching defs:freq
85 u_int32_t freq, channel_sel, reg32;
102 freq = centers.synth_center;
104 if (freq < 4800) { /* 2 GHz, fractional mode */
129 * will not be the frequency of chan->ic_freq or ichan->freq;
130 * it needs to be whatever frequency maps to 'freq'.
132 i = ath_hal_mhz2ieee_2ghz(ah, freq);
147 channel_sel = (freq * 4) / 120;
148 channel_frac = (((freq * 4) % 120) * 0x20000) / 120;
161 channel_sel = (freq * 4) / 75;
162 channel_frac = (((freq * 4) % 75) * 0x20000) / 75;
164 channel_sel = (freq * 2) / 75;
165 channel_frac = (((freq * 2) % 75) * 0x20000) / 75;
176 channel_sel = (freq * 4) / 120;
177 channel_frac = (((freq * 4) % 120) * 0x20000) / 120;
179 channel_sel = (freq * 2) / 120;
180 channel_frac = (((freq * 2) % 120) * 0x20000) / 120;
185 channel_sel = CHANSEL_2G(freq);
197 channel_sel = freq / 75 ;
198 channel_frac = ((freq % 75) * 0x20000) / 75;
201 channel_sel = CHANSEL_5G(freq);