Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/intel/ice/
H A Dice_hwmon.c10 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro
40 *val = TEMP_FROM_REG(resp.data.s0f0.temp); in ice_hwmon_read()
43 *val = TEMP_FROM_REG(resp.data.s0f0.temp_warning_threshold); in ice_hwmon_read()
46 *val = TEMP_FROM_REG(resp.data.s0f0.temp_critical_threshold); in ice_hwmon_read()
49 *val = TEMP_FROM_REG(resp.data.s0f0.temp_fatal_threshold); in ice_hwmon_read()
/linux/drivers/hwmon/
H A Dlm92.c64 static inline int TEMP_FROM_REG(s16 reg) in TEMP_FROM_REG() function
143 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_show()
174 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]) in temp_hyst_show()
175 - TEMP_FROM_REG(data->temp[t_hyst])); in temp_hyst_show()
183 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[t_min]) in temp1_min_hyst_show()
184 + TEMP_FROM_REG(data->temp[t_hyst])); in temp1_min_hyst_show()
204 TEMP_TO_REG(TEMP_FROM_REG(data->temp[attr->index]) - val); in temp_hyst_store()
H A Dk8temp.c19 #define TEMP_FROM_REG(val) (((((val) >> 16) & 0xff) - 49) * 1000) macro
111 *val = TEMP_FROM_REG(temp) + data->temp_offset; in k8temp_read()
H A Dw83l785ts.c59 #define TEMP_FROM_REG(val) ((val) * 1000) macro
117 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
H A Dlm85.c150 #define TEMP_FROM_REG(val) ((val) * 1000) macro
949 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show()
981 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
1135 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) - in temp_auto_temp_off_show()
1155 min = TEMP_FROM_REG(data->zone[nr].limit); in temp_auto_temp_off_store()
1175 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit)); in temp_auto_temp_min_show()
1199 TEMP_FROM_REG(data->zone[nr].max_desired) - in temp_auto_temp_min_store()
1200 TEMP_FROM_REG(data->zone[nr].limit)); in temp_auto_temp_min_store()
1215 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) + in temp_auto_temp_max_show()
1235 min = TEMP_FROM_REG(data->zone[nr].limit); in temp_auto_temp_max_store()
[all …]
H A Dsmsc47m192.c80 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function
272 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_show()
281 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show()
290 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
345 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in temp_offset_show()
H A Dadm1025.c86 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro
195 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[index])); in temp_show()
203 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[index])); in temp_min_show()
211 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in temp_max_show()
H A Dlm87.c113 #define TEMP_FROM_REG(reg) ((reg) * 1000) macro
369 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_input_show()
379 TEMP_FROM_REG(data->temp_low[nr])); in temp_low_show()
389 TEMP_FROM_REG(data->temp_high[nr])); in temp_high_show()
448 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_int)); in temp1_crit_show()
455 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit_ext)); in temp2_crit_show()
H A Dadm1029.c66 #define TEMP_FROM_REG(val) ((val) * 1000) macro
164 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_show()
H A Dadm1031.c201 #define TEMP_FROM_REG(val) ((val) * 1000) macro
203 #define TEMP_FROM_REG_EXT(val, ext) (TEMP_FROM_REG(val) + (ext) * 125)
206 #define TEMP_OFFSET_FROM_REG(val) TEMP_FROM_REG((val) < 0 ? \
689 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show()
696 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
703 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show()
H A Ddme1737.c279 static inline int TEMP_FROM_REG(int reg, int res) in TEMP_FROM_REG() function
889 res = TEMP_FROM_REG(data->temp[ix], 16); in show_temp()
892 res = TEMP_FROM_REG(data->temp_min[ix], 8); in show_temp()
895 res = TEMP_FROM_REG(data->temp_max[ix], 8); in show_temp()
898 res = TEMP_FROM_REG(data->temp_offset[ix], 8); in show_temp()
984 res = TEMP_FROM_REG(data->zone_low[ix], 8) - in show_zone()
988 res = TEMP_FROM_REG(data->zone_low[ix], 8); in show_zone()
992 res = TEMP_FROM_REG(data->zone_low[ix], 8) + in show_zone()
996 res = TEMP_FROM_REG(data->zone_abs[ix], 8); in show_zone()
1030 temp = TEMP_FROM_REG(data->zone_low[ix], 8); in set_zone()
[all …]
H A Dvia686a.c280 #define TEMP_FROM_REG(val) ((long)temp_lut[val] * 100) macro
290 return TEMP_FROM_REG(eight_bits); in TEMP_FROM_REG10()
503 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_over[nr])); in temp_over_show()
510 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_hyst[nr])); in temp_hyst_show()
H A Dsis5595.c145 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function
350 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in temp1_input_show()
357 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in temp1_max_show()
383 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in temp1_max_hyst_show()
H A Dadm1026.c208 #define TEMP_FROM_REG(val) ((val) * 1000) macro
797 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_show()
805 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr])); in temp_min_show()
835 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
876 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr])); in temp_offset_show()
912 return sprintf(buf, "%d\n", TEMP_FROM_REG( in temp_auto_point1_temp_hyst_show()
922 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr] + in temp_auto_point2_temp_show()
932 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr])); in temp_auto_point1_temp_show()
1012 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr])); in temp_crit_show()
H A Dlm78.c103 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function
233 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in temp1_input_show()
240 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in temp1_max_show()
266 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in temp1_max_hyst_show()
H A Dvt1211.c159 #define TEMP_FROM_REG(ix, reg) ((ix) == 0 ? (reg) * 1000 : \ macro
420 res = TEMP_FROM_REG(ix, data->temp[ix]); in show_temp()
423 res = TEMP_FROM_REG(ix, data->temp_max[ix]); in show_temp()
426 res = TEMP_FROM_REG(ix, data->temp_hyst[ix]); in show_temp()
754 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->pwm_ctl[ix] & 7, in show_pwm_auto_point_temp()
H A Dgl520sm.c497 #define TEMP_FROM_REG(val) (((val) - 130) * 1000) macro
507 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_input[n])); in temp_input_show()
516 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[n])); in temp_max_show()
525 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[n])); in temp_max_hyst_show()
H A Df75375s.c572 #define TEMP_FROM_REG(val) ((val) * 1000) macro
589 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr])); in show_temp_max()
597 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[nr])); in show_temp_max_hyst()
H A Dw83793.c194 static inline long TEMP_FROM_REG(s8 reg) in TEMP_FROM_REG() function
569 long temp = TEMP_FROM_REG(data->temp[index][nr]); in show_temp()
705 val = TEMP_FROM_REG(data->temp_critical & 0x7f); in show_sf_setup()
802 val = TEMP_FROM_REG(data->temp_cruise[index] & 0x7f); in show_sf_ctrl()
805 val = TEMP_FROM_REG(val & 0x0f); in show_sf_ctrl()
920 TEMP_FROM_REG(data->sf2_temp[index][nr] & 0x7f)); in show_sf2_temp()
H A Dpc87360.c178 #define TEMP_FROM_REG(val) ((val) * 1000) macro
886 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_input_show()
914 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); in temp_min_show()
949 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in temp_max_show()
985 TEMP_FROM_REG(data->temp_crit[attr->index])); in temp_crit_show()
H A Dlm80.c76 #define TEMP_FROM_REG(reg) ((reg) * 125 / 32) macro
408 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_show()
H A Dfschmd.c336 #define TEMP_FROM_REG(val) (((val) - 128) * 1000) macro
344 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_act[index])); in temp_value_show()
353 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in temp_max_show()
H A Dw83l786ng.c86 #define TEMP_FROM_REG(val) (((val) & 0x80 ? \ macro
412 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp()
H A Dw83627hf.c275 static int TEMP_FROM_REG(u8 reg) in TEMP_FROM_REG() function
1211 : (long) TEMP_FROM_REG(tmp)); in temp_show()
1222 : (long) TEMP_FROM_REG(tmp)); in temp_max_show()
1256 : (long) TEMP_FROM_REG(tmp)); in temp_max_hyst_show()
H A Dasb100.c143 static int TEMP_FROM_REG(u8 reg) in TEMP_FROM_REG() function
410 ret = sprintf(buf, "%d\n", TEMP_FROM_REG(reg)); in sprintf_temp_from_reg()

12