Lines Matching refs:tmpval
63 u8 i, tmpval, reg05; in qt1010_set_params() local
160 tmpval = 0x78; /* byte, overflows intentionally */ in qt1010_set_params()
161 rd[10].val = tmpval-((mod2/QT1010_STEP)*0x08); 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()
186 else tmpval = 0x05; in qt1010_set_params()
187 rd[40].val = (priv->reg1f_init_val + 0x0e + tmpval); 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()
195 else tmpval = 0x05; in qt1010_set_params()
196 rd[41].val = (priv->reg20_init_val + 0x0d + tmpval); in qt1010_set_params()
217 err = qt1010_readreg(priv, rd[i].reg, &tmpval); in qt1010_set_params()
295 u8 i, tmpval, *valptr = NULL; in qt1010_init() local
347 valptr = &tmpval; in qt1010_init()
356 valptr = &tmpval; in qt1010_init()
367 if ((err = qt1010_init_meas2(priv, i, &tmpval))) in qt1010_init()