Lines Matching refs:tmpval
50 u8 i, tmpval, reg05; in qt1010_set_params() local
147 tmpval = 0x78; /* byte, overflows intentionally */ in qt1010_set_params()
148 rd[10].val = tmpval-((mod2/QT1010_STEP)*0x08); 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()
173 else tmpval = 0x05; in qt1010_set_params()
174 rd[40].val = (priv->reg1f_init_val + 0x0e + tmpval); 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()
182 else tmpval = 0x05; in qt1010_set_params()
183 rd[41].val = (priv->reg20_init_val + 0x0d + tmpval); in qt1010_set_params()
204 err = qt1010_readreg(priv, rd[i].reg, &tmpval); in qt1010_set_params()
285 u8 i, tmpval, *valptr = NULL; in qt1010_init() local
337 valptr = &tmpval; in qt1010_init()
346 valptr = &tmpval; in qt1010_init()
361 if ((err = qt1010_init_meas2(priv, i, &tmpval))) in qt1010_init()