Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/hwmon/ !
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()
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()
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()
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 …]
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()
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()
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()
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()
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()
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 …]
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()
Dsis5595.c145 static inline int TEMP_FROM_REG(s8 val) in TEMP_FROM_REG() function
354 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); in temp1_input_show()
361 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); in temp1_max_show()
387 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in temp1_max_hyst_show()
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()
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()
Dvt1211.c159 #define TEMP_FROM_REG(ix, reg) ((ix) == 0 ? (reg) * 1000 : \ macro
426 res = TEMP_FROM_REG(ix, data->temp[ix]); in show_temp()
429 res = TEMP_FROM_REG(ix, data->temp_max[ix]); in show_temp()
432 res = TEMP_FROM_REG(ix, data->temp_hyst[ix]); in show_temp()
760 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->pwm_ctl[ix] & 7, in show_pwm_auto_point_temp()
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()
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()
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()
Dpc87360.c178 #define TEMP_FROM_REG(val) ((val) * 1000) macro
882 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in temp_input_show()
910 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[attr->index])); in temp_min_show()
945 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in temp_max_show()
981 TEMP_FROM_REG(data->temp_crit[attr->index])); in temp_crit_show()
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()
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()
Dw83l786ng.c87 #define TEMP_FROM_REG(val) (((val) & 0x80 ? \ macro
413 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index])); in show_temp()
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()
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()
Dvt8231.c91 #define TEMP_FROM_REG(reg) (((253 * 4 - (reg)) * 550 + 105) / 210) macro
471 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr])); in temp_show()

12