Lines Matching refs:mod1
62 u32 freq, div, mod1, mod2; in qt1010_set_params() local
122 mod1 = (freq + QT1010_OFFSET) % FREQ1; in qt1010_set_params()
142 if (mod1 < 8000000) rd[6].val = 0x1d; in qt1010_set_params()
146 if (mod1 < 1*FREQ2) rd[7].val = 0x09; /* +0 MHz */ in qt1010_set_params()
147 else if (mod1 < 2*FREQ2) rd[7].val = 0x08; /* +4 MHz */ in qt1010_set_params()
148 else if (mod1 < 3*FREQ2) rd[7].val = 0x0f; /* +8 MHz */ in qt1010_set_params()
149 else if (mod1 < 4*FREQ2) rd[7].val = 0x0e; /* +12 MHz */ in qt1010_set_params()
150 else if (mod1 < 5*FREQ2) rd[7].val = 0x0d; /* +16 MHz */ in qt1010_set_params()
151 else if (mod1 < 6*FREQ2) rd[7].val = 0x0c; /* +20 MHz */ in qt1010_set_params()
152 else if (mod1 < 7*FREQ2) rd[7].val = 0x0b; /* +24 MHz */ in qt1010_set_params()
181 if (mod1 < 8000000) tmpval = 0x00; in qt1010_set_params()
182 else if (mod1 < 12000000) tmpval = 0x01; in qt1010_set_params()
183 else if (mod1 < 16000000) tmpval = 0x02; in qt1010_set_params()
184 else if (mod1 < 24000000) tmpval = 0x03; in qt1010_set_params()
185 else if (mod1 < 28000000) tmpval = 0x04; in qt1010_set_params()
190 if (mod1 < 8000000) tmpval = 0x00; in qt1010_set_params()
191 else if (mod1 < 12000000) tmpval = 0x01; in qt1010_set_params()
192 else if (mod1 < 20000000) tmpval = 0x02; in qt1010_set_params()
193 else if (mod1 < 24000000) tmpval = 0x03; in qt1010_set_params()
194 else if (mod1 < 28000000) tmpval = 0x04; in qt1010_set_params()