/Linux-v5.4/drivers/hwmon/ |
D | adm1025.c | 82 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ macro 228 data->in_min[index] = IN_TO_REG(val, in_scale[index]); in in_min_store() 249 data->in_max[index] = IN_TO_REG(val, in_scale[index]); in in_max_store()
|
D | smsc47m192.c | 65 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function 211 data->in_min[nr] = IN_TO_REG(val, nr); in in_min_store() 233 data->in_max[nr] = IN_TO_REG(val, nr); in in_max_store()
|
D | adm9240.c | 86 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function 335 data->in_min[attr->index] = IN_TO_REG(val, attr->index); in in_min_store() 357 data->in_max[attr->index] = IN_TO_REG(val, attr->index); in in_max_store()
|
D | via686a.c | 114 static inline u8 IN_TO_REG(long val, int in_num) in IN_TO_REG() function 381 data->in_min[nr] = IN_TO_REG(val, nr); in in_min_store() 400 data->in_max[nr] = IN_TO_REG(val, nr); in in_max_store()
|
D | sis5595.c | 119 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function 252 data->in_min[nr] = IN_TO_REG(val); in in_min_store() 272 data->in_max[nr] = IN_TO_REG(val); in in_max_store()
|
D | pc87360.c | 150 #define IN_TO_REG(val, ref) ((val) < 0 ? 0 : \ macro 437 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in in_min_store() 457 data->in_max[attr->index] = IN_TO_REG(val, in in_max_store() 697 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in therm_min_store() 718 data->in_max[attr->index] = IN_TO_REG(val, data->in_vref); in therm_max_store() 738 data->in_crit[attr->index-11] = IN_TO_REG(val, data->in_vref); in therm_crit_store()
|
D | lm78.c | 72 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function 180 data->in_min[nr] = IN_TO_REG(val); in in_min_store() 200 data->in_max[nr] = IN_TO_REG(val); in in_max_store()
|
D | gl520sm.c | 203 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) macro 263 r = IN_TO_REG(v); in in_min_store() 295 r = IN_TO_REG(v); in in_max_store()
|
D | lm87.c | 109 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ macro 310 data->in_min[nr] = IN_TO_REG(val, data->in_scale[nr]); in in_min_store() 331 data->in_max[nr] = IN_TO_REG(val, data->in_scale[nr]); in in_max_store()
|
D | lm80.c | 62 #define IN_TO_REG(val) (clamp_val(((val) + 5) / 10, 0, 255)) macro 287 data->in[nr][index] = IN_TO_REG(val); in in_store()
|
D | w83627hf.c | 250 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) macro 511 data->in_min[nr] = IN_TO_REG(val); in in_min_store() 530 data->in_max[nr] = IN_TO_REG(val); in in_max_store() 623 data->in_min[0] = IN_TO_REG(val); in in0_min_store() 653 data->in_max[0] = IN_TO_REG(val); in in0_max_store()
|
D | w83l786ng.c | 95 #define IN_TO_REG(val) (clamp_val((((val) + 4) / 8), 0, 255)) macro 249 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | vt1211.c | 148 #define IN_TO_REG(ix, val) (clamp_val((ix) == 5 ? \ macro 389 data->in_min[ix] = IN_TO_REG(ix, val); in set_in() 393 data->in_max[ix] = IN_TO_REG(ix, val); in set_in()
|
D | asb100.c | 102 static u8 IN_TO_REG(unsigned val) in IN_TO_REG() function 260 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | dme1737.c | 267 static inline int IN_TO_REG(long val, int nominal) in IN_TO_REG() function 848 data->in_min[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in() 853 data->in_max[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in()
|
D | gl518sm.c | 91 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) macro
|
D | w83791d.c | 210 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) macro 383 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | w83792d.c | 217 #define IN_TO_REG(nr, val) (((nr) <= 1) ? ((val) / 2) : \ macro 383 data->in_##reg[nr] = clamp_val(IN_TO_REG(nr, val) / 4, 0, 255); \
|
D | w83781d.c | 149 #define IN_TO_REG(val) clamp_val(((val) + 8) / 16, 0, 255) macro 271 data->in_##reg[nr] = IN_TO_REG(val); \
|