Lines Matching refs:temp

167 	u32 temp, reg;  in ti_bandgap_read_temp()  local
183 temp = ti_errata814_bandgap_read_temp(bgp, reg); in ti_bandgap_read_temp()
185 temp = ti_bandgap_readl(bgp, reg); in ti_bandgap_read_temp()
187 temp &= tsr->bgap_dtemp_mask; in ti_bandgap_read_temp()
192 return temp; in ti_bandgap_read_temp()
329 int ti_bandgap_mcelsius_to_adc(struct ti_bandgap *bgp, long temp, int *adc) in ti_bandgap_mcelsius_to_adc() argument
339 if (temp < conv_table[low] || temp > conv_table[high]) { in ti_bandgap_mcelsius_to_adc()
345 if (temp < conv_table[mid]) in ti_bandgap_mcelsius_to_adc()
373 int temp, ret; in ti_bandgap_add_hyst() local
379 ret = ti_bandgap_adc_to_mcelsius(bgp, adc_val, &temp); in ti_bandgap_add_hyst()
383 temp += hyst_val; in ti_bandgap_add_hyst()
385 ret = ti_bandgap_mcelsius_to_adc(bgp, temp, sum); in ti_bandgap_add_hyst()
407 u32 temp, reg_val; in ti_bandgap_unmask_interrupts() local
410 temp = ti_bandgap_read_temp(bgp, id); in ti_bandgap_unmask_interrupts()
415 if (temp < t_hot) in ti_bandgap_unmask_interrupts()
420 if (t_cold < temp) in ti_bandgap_unmask_interrupts()
639 u32 temp, mask; in _ti_bandgap_read_threshold() local
657 temp = ti_bandgap_readl(bgp, tsr->bgap_threshold); in _ti_bandgap_read_threshold()
658 temp = (temp & mask) >> __ffs(mask); in _ti_bandgap_read_threshold()
659 ret |= ti_bandgap_adc_to_mcelsius(bgp, temp, &temp); in _ti_bandgap_read_threshold()
666 *val = temp; in _ti_bandgap_read_threshold()
922 u32 temp; in ti_bandgap_read_temperature() local
930 temp = ti_bandgap_read_temp(bgp, id); in ti_bandgap_read_temperature()
933 ret |= ti_bandgap_adc_to_mcelsius(bgp, temp, &temp); in ti_bandgap_read_temperature()
937 *temperature = temp; in ti_bandgap_read_temperature()
994 u32 temp = 0, counter = 1000; in ti_bandgap_force_single_read() local
1003 temp = ti_bandgap_read_temp(bgp, id); in ti_bandgap_force_single_read()
1005 while ((temp == 0) && --counter) in ti_bandgap_force_single_read()
1006 temp = ti_bandgap_read_temp(bgp, id); in ti_bandgap_force_single_read()