Lines Matching defs:freq
45 uint16_t freq;
49 freq = centers.synth_center;
51 if (freq < 4800) {
54 if (((freq - 2192) % 5) == 0) {
55 channelSel = ((freq - 672) * 2 - 3040) / 10;
57 } else if (((freq - 2224) % 5) == 0) {
58 channelSel = ((freq - 704) * 2 - 3040) / 10;
62 __func__, freq);
70 if (freq == 2484) {
79 } else if ((freq % 20) == 0 && freq >= 5120) {
81 ath9k_hw_reverse_bits(((freq - 4800) / 20 << 2), 8);
83 } else if ((freq % 10) == 0) {
85 ath9k_hw_reverse_bits(((freq - 4800) / 10 << 1), 8);
90 } else if ((freq % 5) == 0) {
91 channelSel = ath9k_hw_reverse_bits((freq - 4800) / 5, 8);
94 arn_problem("%s: invalid channel %u MHz\n", __func__, freq);
116 uint32_t freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0;
121 freq = centers.synth_center;
126 if (freq < 4800) {
132 channelSel = (freq * 0x10000) / 15;
135 if (freq == 2484) {
147 if ((freq % 20) == 0) {
149 } else if ((freq % 10) == 0) {
156 channelSel = (freq * 0x8000) / 15;
162 ndiv = (freq * (refDivA >> aModeRefSel)) / 60;