Lines Matching refs:mod1
49 u32 freq, div, mod1, mod2; in qt1010_set_params() local
109 mod1 = (freq + QT1010_OFFSET) % FREQ1; in qt1010_set_params()
129 if (mod1 < 8000000) rd[6].val = 0x1d; in qt1010_set_params()
133 if (mod1 < 1*FREQ2) rd[7].val = 0x09; /* +0 MHz */ in qt1010_set_params()
134 else if (mod1 < 2*FREQ2) rd[7].val = 0x08; /* +4 MHz */ in qt1010_set_params()
135 else if (mod1 < 3*FREQ2) rd[7].val = 0x0f; /* +8 MHz */ in qt1010_set_params()
136 else if (mod1 < 4*FREQ2) rd[7].val = 0x0e; /* +12 MHz */ in qt1010_set_params()
137 else if (mod1 < 5*FREQ2) rd[7].val = 0x0d; /* +16 MHz */ in qt1010_set_params()
138 else if (mod1 < 6*FREQ2) rd[7].val = 0x0c; /* +20 MHz */ in qt1010_set_params()
139 else if (mod1 < 7*FREQ2) rd[7].val = 0x0b; /* +24 MHz */ in qt1010_set_params()
168 if (mod1 < 8000000) tmpval = 0x00; in qt1010_set_params()
169 else if (mod1 < 12000000) tmpval = 0x01; in qt1010_set_params()
170 else if (mod1 < 16000000) tmpval = 0x02; in qt1010_set_params()
171 else if (mod1 < 24000000) tmpval = 0x03; in qt1010_set_params()
172 else if (mod1 < 28000000) tmpval = 0x04; in qt1010_set_params()
177 if (mod1 < 8000000) tmpval = 0x00; in qt1010_set_params()
178 else if (mod1 < 12000000) tmpval = 0x01; in qt1010_set_params()
179 else if (mod1 < 20000000) tmpval = 0x02; in qt1010_set_params()
180 else if (mod1 < 24000000) tmpval = 0x03; in qt1010_set_params()
181 else if (mod1 < 28000000) tmpval = 0x04; in qt1010_set_params()