/drivers/hwmon/ |
D | lm92.c | 79 static inline s16 TEMP_TO_REG(int val) in TEMP_TO_REG() function 163 data->value = TEMP_TO_REG(val); \ 201 swab16(TEMP_TO_REG(data->temp1_hyst))); in set_temp1_crit_hyst()
|
D | smsc47m192.c | 88 static inline s8 TEMP_TO_REG(int val) in TEMP_TO_REG() function 258 data->temp_min[nr] = TEMP_TO_REG(val); in set_temp_min() 275 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max() 302 data->temp_offset[nr] = TEMP_TO_REG(val); in set_temp_offset()
|
D | lm85.c | 149 #define TEMP_TO_REG(val) \ macro 705 data->temp_min[nr] = TEMP_TO_REG(val); in set_temp_min() 731 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max() 866 data->zone[nr].off_desired = TEMP_TO_REG(val); in set_temp_auto_temp_off() 897 data->zone[nr].limit = TEMP_TO_REG(val); in set_temp_auto_temp_min() 945 data->zone[nr].max_desired = TEMP_TO_REG(val); in set_temp_auto_temp_max() 972 data->zone[nr].critical = TEMP_TO_REG(val); in set_temp_auto_temp_crit()
|
D | adm1025.c | 104 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ macro 274 data->temp_min[index] = TEMP_TO_REG(val); in set_temp_min() 290 data->temp_max[index] = TEMP_TO_REG(val); in set_temp_max()
|
D | lm83.c | 92 #define TEMP_TO_REG(val) ((val) <= -128000 ? -128 : \ macro 190 data->temp[nr] = TEMP_TO_REG(val); in set_temp()
|
D | adm1031.c | 141 #define TEMP_TO_REG(val) (((val) < 0 ? ((val - 500) / 1000) : \ macro 620 data->temp_min[nr] = TEMP_TO_REG(val); in set_temp_min() 637 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max() 654 data->temp_crit[nr] = TEMP_TO_REG(val); in set_temp_crit()
|
D | w83793.c | 179 static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) in TEMP_TO_REG() function 502 data->temp[index][nr] = TEMP_TO_REG(tmp, -128, 127); in store_temp() 645 data->temp_critical |= TEMP_TO_REG(simple_strtol(buf, NULL, 10), in store_sf_setup() 745 val = TEMP_TO_REG(simple_strtol(buf, NULL, 10), 0, 0x7f); in store_sf_ctrl() 757 val = TEMP_TO_REG(simple_strtol(buf, NULL, 10), 0, 0x0f); in store_sf_ctrl() 825 u8 val = TEMP_TO_REG(simple_strtol(buf, NULL, 10), 0, 0x7f); in store_sf2_temp()
|
D | via686a.c | 266 static inline u8 TEMP_TO_REG(long val) in TEMP_TO_REG() function 433 data->temp_over[nr] = TEMP_TO_REG(val); in set_temp_over() 447 data->temp_hyst[nr] = TEMP_TO_REG(val); in set_temp_hyst()
|
D | f75375s.c | 437 #define TEMP_TO_REG(val) ((val) / 1000) macro 470 val = SENSORS_LIMIT(TEMP_TO_REG(val), 0, 127); in set_temp_max() 485 val = SENSORS_LIMIT(TEMP_TO_REG(val), 0, 127); in set_temp_max_hyst()
|
D | sis5595.c | 148 static inline s8 TEMP_TO_REG(int val) in TEMP_TO_REG() function 298 data->temp_over = TEMP_TO_REG(val); in set_temp_over() 316 data->temp_hyst = TEMP_TO_REG(val); in set_temp_hyst()
|
D | vt1211.c | 170 #define TEMP_TO_REG(ix, val) SENSORS_LIMIT( \ macro 452 data->temp_max[ix] = TEMP_TO_REG(ix, val); in set_temp() 457 data->temp_hyst[ix] = TEMP_TO_REG(ix, val); in set_temp() 752 data->pwm_auto_temp[ap] = TEMP_TO_REG(data->pwm_ctl[ix] & 7, val); in set_pwm_auto_point_temp()
|
D | adm1026.c | 215 #define TEMP_TO_REG(val) (SENSORS_LIMIT(((val)+((val)<0 ? -500 : 500))/1000,\ macro 992 data->temp_min[nr] = TEMP_TO_REG(val); in set_temp_min() 1016 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max() 1055 data->temp_offset[nr] = TEMP_TO_REG(val); in set_temp_offset() 1106 data->temp_tmin[nr] = TEMP_TO_REG(val); in set_temp_auto_point1_temp() 1175 data->temp_crit[nr] = TEMP_TO_REG(val); in set_temp_crit()
|
D | lm78.c | 104 static inline s8 TEMP_TO_REG(int val) in TEMP_TO_REG() function 282 data->temp_over = TEMP_TO_REG(val); in set_temp_over() 302 data->temp_hyst = TEMP_TO_REG(val); in set_temp_hyst()
|
D | dme1737.c | 257 static inline int TEMP_TO_REG(int val) in TEMP_TO_REG() function 863 data->temp_min[ix] = TEMP_TO_REG(val); in set_temp() 868 data->temp_max[ix] = TEMP_TO_REG(val); in set_temp() 873 data->temp_offset[ix] = TEMP_TO_REG(val); in set_temp() 963 data->zone_low[ix] = TEMP_TO_REG(val); in set_zone() 981 data->zone_abs[ix] = TEMP_TO_REG(val); in set_zone()
|
D | gl520sm.c | 417 #define TEMP_TO_REG(val) (SENSORS_LIMIT(((((val)<0?(val)-500:(val)+500) / 1000)+130),0,255)) macro 455 data->temp_max[n] = TEMP_TO_REG(v); in set_temp_max() 470 data->temp_max_hyst[n] = TEMP_TO_REG(v); in set_temp_max_hyst()
|
D | lm87.c | 132 #define TEMP_TO_REG(val) ((val) <= -127500 ? -128 : \ macro 349 data->temp_low[nr] = TEMP_TO_REG(val); in set_temp_low() 361 data->temp_high[nr] = TEMP_TO_REG(val); in set_temp_high()
|
D | adm9240.c | 105 static inline s8 TEMP_TO_REG(long val) in TEMP_TO_REG() function 211 data->temp_max[attr->index] = TEMP_TO_REG(val); in set_max()
|
D | w83l786ng.c | 98 #define TEMP_TO_REG(val) (SENSORS_LIMIT(((val) < 0 ? (val)+0x100*1000 \ macro 379 data->temp[nr][index] = TEMP_TO_REG(val); in store_temp()
|
D | pc87360.c | 178 #define TEMP_TO_REG(val) ((val) < -55000 ? -55 : \ macro 829 data->temp_min[attr->index] = TEMP_TO_REG(val); in set_temp_min() 843 data->temp_max[attr->index] = TEMP_TO_REG(val); in set_temp_max() 857 data->temp_crit[attr->index] = TEMP_TO_REG(val); in set_temp_crit()
|
D | asb100.c | 144 static u8 TEMP_TO_REG(long temp) in TEMP_TO_REG() function 433 data->reg[nr] = TEMP_TO_REG(val); \
|
D | it87.c | 214 #define TEMP_TO_REG(val) (SENSORS_LIMIT(((val)<0?(((val)-500)/1000):\ macro 443 data->temp_high[nr] = TEMP_TO_REG(val); in set_temp_max() 458 data->temp_low[nr] = TEMP_TO_REG(val); in set_temp_min()
|
D | w83627hf.c | 271 static u8 TEMP_TO_REG(long temp) in TEMP_TO_REG() function 652 u16 tmp = (nr) ? LM75_TEMP_TO_REG(val) : TEMP_TO_REG(val); in store_temp_max() 668 u16 tmp = (nr) ? LM75_TEMP_TO_REG(val) : TEMP_TO_REG(val); in store_temp_max_hyst()
|
D | gl518sm.c | 90 #define TEMP_TO_REG(val) (SENSORS_LIMIT(((((val)<0? \ macro
|
D | w83781d.c | 179 #define TEMP_TO_REG(val) SENSORS_LIMIT((val) / 1000, -127, 128) macro 385 data->temp_##reg = TEMP_TO_REG(val); \
|