Lines Matching full:tmp
88 int32_t tmp; in max17262_channel_get() local
93 tmp = data->voltage * VOLTAGE_MULTIPLIER_UV; in max17262_channel_get()
95 valp->val1 = tmp / 1000000; in max17262_channel_get()
96 valp->val2 = tmp % 1000000; in max17262_channel_get()
127 tmp = data->time_to_empty * TIME_MULTIPLIER_MS; in max17262_channel_get()
128 convert_millis(valp, tmp); in max17262_channel_get()
137 tmp = data->time_to_full * TIME_MULTIPLIER_MS; in max17262_channel_get()
138 convert_millis(valp, tmp); in max17262_channel_get()
226 int16_t tmp, hibcfg; in max17262_gauge_init() local
235 rc = max17262_reg_read(dev, STATUS, &tmp); in max17262_gauge_init()
240 if (!(tmp & STATUS_POR)) { in max17262_gauge_init()
254 rc = max17262_reg_read(dev, FSTAT, &tmp); in max17262_gauge_init()
260 while (tmp & FSTAT_DNR) { in max17262_gauge_init()
262 rc = max17262_reg_read(dev, FSTAT, &tmp); in max17262_gauge_init()
329 rc = max17262_reg_read(dev, MODELCFG, &tmp); in max17262_gauge_init()
335 while (tmp & MODELCFG_REFRESH) { in max17262_gauge_init()
337 rc = max17262_reg_read(dev, MODELCFG, &tmp); in max17262_gauge_init()
351 rc = max17262_reg_read(dev, STATUS, &tmp); in max17262_gauge_init()
357 tmp &= ~STATUS_POR; in max17262_gauge_init()
358 rc = max17262_reg_write(dev, STATUS, tmp); in max17262_gauge_init()