Home
last modified time | relevance | path

Searched refs:TEMP_FROM_REG (Results 1 – 25 of 29) sorted by relevance

12

/drivers/hwmon/
Dlm92.c75 static inline int TEMP_FROM_REG(s16 reg) in TEMP_FROM_REG() function
149 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->value)); \
182 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_crit) in show_temp1_crit_hyst()
183 - TEMP_FROM_REG(data->temp1_hyst)); in show_temp1_crit_hyst()
189 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_max) in show_temp1_max_hyst()
190 - TEMP_FROM_REG(data->temp1_hyst)); in show_temp1_max_hyst()
196 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp1_min) in show_temp1_min_hyst()
197 + TEMP_FROM_REG(data->temp1_hyst)); in show_temp1_min_hyst()
214 data->temp1_hyst = TEMP_FROM_REG(data->temp1_crit) - val; in set_temp1_crit_hyst()
Dlm85.c164 #define TEMP_FROM_REG(val) ((val) * 1000) macro
765 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min()
796 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max()
951 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) - in show_temp_auto_temp_off()
970 min = TEMP_FROM_REG(data->zone[nr].limit); in set_temp_auto_temp_off()
989 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit)); in show_temp_auto_temp_min()
1012 TEMP_FROM_REG(data->zone[nr].max_desired) - in set_temp_auto_temp_min()
1013 TEMP_FROM_REG(data->zone[nr].limit)); in set_temp_auto_temp_min()
1027 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) + in show_temp_auto_temp_max()
1046 min = TEMP_FROM_REG(data->zone[nr].limit); in set_temp_auto_temp_max()
[all …]
Dsmsc47m192.c92 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function
236 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp()
245 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min()
254 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max()
307 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in show_temp_offset()
Dw83l785ts.c72 #define TEMP_FROM_REG(val) ((val) * 1000) macro
131 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
Dadm1025.c99 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro
197 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[index])); in show_temp()
205 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[index])); in show_temp_min()
213 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in show_temp_max()
Dlm87.c127 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro
373 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp_input()
383 TEMP_FROM_REG(data->temp_low[nr])); in show_temp_low()
393 TEMP_FROM_REG(data->temp_high[nr])); in show_temp_high()
451 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_int)); in show_temp_crit_int()
458 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_ext)); in show_temp_crit_ext()
Dadm1031.c151 #define TEMP_FROM_REG(val) ((val) * 1000) macro
153 #define TEMP_FROM_REG_EXT(val, ext) (TEMP_FROM_REG(val) + (ext) * 125)
156 #define TEMP_OFFSET_FROM_REG(val) TEMP_FROM_REG((val) < 0 ? \
648 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min()
655 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max()
662 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in show_temp_crit()
Ddme1737.c289 static inline int TEMP_FROM_REG(int reg, int res) in TEMP_FROM_REG() function
898 res = TEMP_FROM_REG(data->temp[ix], 16); in show_temp()
901 res = TEMP_FROM_REG(data->temp_min[ix], 8); in show_temp()
904 res = TEMP_FROM_REG(data->temp_max[ix], 8); in show_temp()
907 res = TEMP_FROM_REG(data->temp_offset[ix], 8); in show_temp()
993 res = TEMP_FROM_REG(data->zone_low[ix], 8) - in show_zone()
997 res = TEMP_FROM_REG(data->zone_low[ix], 8); in show_zone()
1001 res = TEMP_FROM_REG(data->zone_low[ix], 8) + in show_zone()
1005 res = TEMP_FROM_REG(data->zone_abs[ix], 8); in show_zone()
1038 TEMP_FROM_REG(data->zone_low[ix], 8) - in set_zone()
[all …]
Dk8temp.c36 #define TEMP_FROM_REG(val) (((((val) >> 16) & 0xff) - 49) * 1000) macro
126 temp = TEMP_FROM_REG(data->temp[core][place]) + data->temp_offset; in show_temp()
Dvia686a.c295 #define TEMP_FROM_REG(val) ((long)tempLUT[val] * 100) macro
305 return TEMP_FROM_REG(eightBits); in TEMP_FROM_REG10()
450 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_over[nr])); in show_temp_over()
457 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_hyst[nr])); in show_temp_hyst()
Dsis5595.c156 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function
310 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in show_temp()
317 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in show_temp_over()
342 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in show_temp_hyst()
Dadm1026.c220 #define TEMP_FROM_REG(val) ((val) * 1000) macro
1012 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp()
1020 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in show_temp_min()
1049 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max()
1092 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in show_temp_offset()
1131 return sprintf(buf, "%d\n", TEMP_FROM_REG( in show_temp_auto_point1_temp_hyst()
1140 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr] + in show_temp_auto_point2_temp()
1149 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr])); in show_temp_auto_point1_temp()
1229 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in show_temp_crit()
Dlm83.c87 #define TEMP_FROM_REG(val) ((val) * 1000) macro
173 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
Dadm1029.c79 #define TEMP_FROM_REG(val) ((val) * 1000) macro
167 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
Dvt1211.c172 #define TEMP_FROM_REG(ix, reg) ((ix) == 0 ? (reg) * 1000 : \ macro
433 res = TEMP_FROM_REG(ix, data->temp[ix]); in show_temp()
436 res = TEMP_FROM_REG(ix, data->temp_max[ix]); in show_temp()
439 res = TEMP_FROM_REG(ix, data->temp_hyst[ix]); in show_temp()
764 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->pwm_ctl[ix] & 7, in show_pwm_auto_point_temp()
Dlm78.c115 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function
242 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in show_temp()
249 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in show_temp_over()
274 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in show_temp_hyst()
Dgl520sm.c452 #define TEMP_FROM_REG(val) (((val) - 130) * 1000) macro
462 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_input[n])); in get_temp_input()
471 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[n])); in get_temp_max()
480 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[n])); in get_temp_max_hyst()
Dw83793.c206 static inline long TEMP_FROM_REG(s8 reg) in TEMP_FROM_REG() function
601 long temp = TEMP_FROM_REG(data->temp[index][nr]); in show_temp()
737 val = TEMP_FROM_REG(data->temp_critical & 0x7f); in show_sf_setup()
834 val = TEMP_FROM_REG(data->temp_cruise[index] & 0x7f); in show_sf_ctrl()
837 val = TEMP_FROM_REG(val & 0x0f); in show_sf_ctrl()
952 TEMP_FROM_REG(data->sf2_temp[index][nr] & 0x7f)); in show_sf2_temp()
Df75375s.c587 #define TEMP_FROM_REG(val) ((val) * 1000) macro
604 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr])); in show_temp_max()
612 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[nr])); in show_temp_max_hyst()
Dpc87360.c179 #define TEMP_FROM_REG(val) ((val) * 1000) macro
873 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp_input()
881 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); in show_temp_min()
889 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in show_temp_max()
898 TEMP_FROM_REG(data->temp_crit[attr->index])); in show_temp_crit()
Dfschmd.c350 #define TEMP_FROM_REG(val) (((val) - 128) * 1000) macro
358 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_act[index])); in show_temp_value()
367 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in show_temp_max()
Dw83l786ng.c100 #define TEMP_FROM_REG(val) (((val) & 0x80 ? \ macro
381 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp()
Dlm80.c89 static inline long TEMP_FROM_REG(u16 temp) in TEMP_FROM_REG() function
313 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp)); in show_temp_input1()
Dit87.c358 #define TEMP_FROM_REG(val) ((val) * 1000) macro
548 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in show_temp()
557 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr])); in show_temp_max()
566 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_low[nr])); in show_temp_min()
1065 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->auto_temp[nr][point])); in show_auto_temp()
Dw83627hf.c283 static int TEMP_FROM_REG(u8 reg) in TEMP_FROM_REG() function
646 : (long) TEMP_FROM_REG(tmp)); in show_temp()
658 : (long) TEMP_FROM_REG(tmp)); in show_temp_max()
670 : (long) TEMP_FROM_REG(tmp)); in show_temp_max_hyst()

12