Home
last modified time | relevance | path

Searched refs:TEMP_TO_REG (Results 1 – 24 of 24) sorted by relevance

/drivers/hwmon/
Dlm92.c79 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()
Dsmsc47m192.c88 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()
Dlm85.c149 #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()
Dadm1025.c104 #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()
Dlm83.c92 #define TEMP_TO_REG(val) ((val) <= -128000 ? -128 : \ macro
190 data->temp[nr] = TEMP_TO_REG(val); in set_temp()
Dadm1031.c141 #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()
Dw83793.c179 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()
Dvia686a.c266 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()
Df75375s.c437 #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()
Dsis5595.c148 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()
Dvt1211.c170 #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()
Dadm1026.c215 #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()
Dlm78.c104 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()
Ddme1737.c257 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()
Dgl520sm.c417 #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()
Dlm87.c132 #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()
Dadm9240.c105 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()
Dw83l786ng.c98 #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()
Dpc87360.c178 #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()
Dasb100.c144 static u8 TEMP_TO_REG(long temp) in TEMP_TO_REG() function
433 data->reg[nr] = TEMP_TO_REG(val); \
Dit87.c214 #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()
Dw83627hf.c271 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()
Dgl518sm.c90 #define TEMP_TO_REG(val) (SENSORS_LIMIT(((((val)<0? \ macro
Dw83781d.c179 #define TEMP_TO_REG(val) SENSORS_LIMIT((val) / 1000, -127, 128) macro
385 data->temp_##reg = TEMP_TO_REG(val); \