Home
last modified time | relevance | path

Searched refs:temp_from_reg (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/hwmon/
H A Dtmp464.c103 static int temp_from_reg(s16 reg) in temp_from_reg() function
190 *val = temp_from_reg(regvals[0] - regvals[1]); in tmp464_temp_read()
196 *val = temp_from_reg(regval); in tmp464_temp_read()
204 *val = temp_from_reg(regvals[0] - regvals[1]); in tmp464_temp_read()
210 *val = temp_from_reg(regval); in tmp464_temp_read()
216 *val = temp_from_reg(regval); in tmp464_temp_read()
226 *val = temp_from_reg(regval); in tmp464_temp_read()
309 val = clamp_val(temp_from_reg(regval) - val, 0, 255000); in tmp464_temp_write()
H A Dsmsc47b397.c154 static int temp_from_reg(u8 reg) in temp_from_reg() function
164 return sprintf(buf, "%d\n", temp_from_reg(data->temp[attr->index])); in temp_show()
H A Dvt1211.c165 static int temp_from_reg(int ix, int reg) in temp_from_reg() function
437 res = temp_from_reg(ix, data->temp[ix]); in show_temp()
440 res = temp_from_reg(ix, data->temp_max[ix]); in show_temp()
443 res = temp_from_reg(ix, data->temp_hyst[ix]); in show_temp()
771 return sprintf(buf, "%d\n", temp_from_reg(data->pwm_ctl[ix] & 7, in show_pwm_auto_point_temp()
H A Dnct6694-hwmon.c146 static inline long temp_from_reg(s8 reg) in temp_from_reg() function
365 *val = temp_from_reg(data->msg->hwmon_alarm.tin_cfg[channel].hl); in nct6694_temp_read()
383 *val = temp_from_reg(temp_max - temp_hyst); in nct6694_temp_read()
H A Df71805f.c274 static inline long temp_from_reg(u8 reg) in temp_from_reg() function
795 temp_from_reg(data->auto_points[pwmnr].temp[apnr])); in show_pwm_auto_point_temp()
866 return sprintf(buf, "%ld\n", temp_from_reg(data->temp[nr])); in show_temp()
876 return sprintf(buf, "%ld\n", temp_from_reg(data->temp_high[nr])); in show_temp_max()
886 return sprintf(buf, "%ld\n", temp_from_reg(data->temp_hyst[nr])); in show_temp_hyst()
H A Dw83l786ng.c92 static int temp_from_reg(int val) in temp_from_reg() function
422 return sprintf(buf, "%d\n", temp_from_reg(data->temp[nr][index])); in show_temp()
H A Dw83795.c266 static inline long temp_from_reg(s8 reg) in temp_from_reg() function
1190 long tmp = temp_from_reg(data->pwm_temp[index][nr]); in show_temp_pwm()
1324 long temp = temp_from_reg(data->temp[index][nr]); in show_temp()
1375 long temp = temp_from_reg(data->dts[index]); in show_dts()
1388 long temp = temp_from_reg(data->dts_ext[nr]); in show_dts_ext()
H A Dpc87427.c335 static inline long temp_from_reg(s16 reg) in temp_from_reg() function
697 return sprintf(buf, "%ld\n", temp_from_reg(data->temp[nr])); in temp_input_show()