/drivers/hwmon/ |
D | adm1025.c | 95 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ macro 230 data->in_min[index] = IN_TO_REG(val, in_scale[index]); in set_in_min() 251 data->in_max[index] = IN_TO_REG(val, in_scale[index]); in set_in_max()
|
D | smsc47m192.c | 78 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function 183 data->in_min[nr] = IN_TO_REG(val, nr); in set_in_min() 205 data->in_max[nr] = IN_TO_REG(val, nr); in set_in_max()
|
D | via686a.c | 128 static inline u8 IN_TO_REG(long val, int inNum) in IN_TO_REG() function 398 data->in_min[nr] = IN_TO_REG(val, nr); in set_in_min() 417 data->in_max[nr] = IN_TO_REG(val, nr); in set_in_max()
|
D | sis5595.c | 133 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function 265 data->in_min[nr] = IN_TO_REG(val); in set_in_min() 285 data->in_max[nr] = IN_TO_REG(val); in set_in_max()
|
D | adm9240.c | 98 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function 271 data->in_min[attr->index] = IN_TO_REG(val, attr->index); in set_in_min() 293 data->in_max[attr->index] = IN_TO_REG(val, attr->index); in set_in_max()
|
D | pc87360.c | 163 #define IN_TO_REG(val, ref) ((val) < 0 ? 0 : \ macro 450 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in set_in_min() 469 data->in_max[attr->index] = IN_TO_REG(val, in set_in_max() 706 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in set_therm_min() 727 data->in_max[attr->index] = IN_TO_REG(val, data->in_vref); in set_therm_max() 747 data->in_crit[attr->index-11] = IN_TO_REG(val, data->in_vref); in set_therm_crit()
|
D | lm78.c | 86 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function 195 data->in_min[nr] = IN_TO_REG(val); in set_in_min() 215 data->in_max[nr] = IN_TO_REG(val); in set_in_max()
|
D | lm87.c | 123 #define IN_TO_REG(val, scale) ((val) <= 0 ? 0 : \ macro 323 data->in_min[nr] = IN_TO_REG(val, data->in_scale[nr]); in set_in_min() 344 data->in_max[nr] = IN_TO_REG(val, data->in_scale[nr]); in set_in_max()
|
D | gl520sm.c | 150 #define IN_TO_REG(val) SENSORS_LIMIT((((val) + 9) / 19), 0, 255) macro 210 r = IN_TO_REG(v); in set_in_min() 242 r = IN_TO_REG(v); in set_in_max()
|
D | w83627hf.c | 257 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 8)/16),0,255)) macro 448 data->in_min[nr] = IN_TO_REG(val); in store_in_min() 467 data->in_max[nr] = IN_TO_REG(val); in store_in_max() 548 data->in_min[0] = IN_TO_REG(val); in store_regs_in_min0() 578 data->in_max[0] = IN_TO_REG(val); in store_regs_in_max0()
|
D | vt1211.c | 161 #define IN_TO_REG(ix, val) (SENSORS_LIMIT((ix) == 5 ? \ macro 396 data->in_min[ix] = IN_TO_REG(ix, val); in set_in() 400 data->in_max[ix] = IN_TO_REG(ix, val); in set_in()
|
D | w83l786ng.c | 108 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 4) / 8), 0, 255)) macro 217 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | lm80.c | 75 #define IN_TO_REG(val) (SENSORS_LIMIT(((val) + 5) / 10, 0, 255)) macro 202 data->value[nr] = IN_TO_REG(val); \ in show_in()
|
D | asb100.c | 115 static u8 IN_TO_REG(unsigned val) in IN_TO_REG() function 273 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | dme1737.c | 278 static inline int IN_TO_REG(int val, int nominal) in IN_TO_REG() function 857 data->in_min[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in() 862 data->in_max[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in()
|
D | w83791d.c | 222 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 8) / 16), 0, 255)) macro 399 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | gl518sm.c | 104 #define IN_TO_REG(val) SENSORS_LIMIT((((val) + 9) / 19), 0, 255) macro
|
D | w83792d.c | 229 #define IN_TO_REG(nr, val) (((nr) <= 1) ? ((val) / 2) : \ macro 400 data->in_##reg[nr] = SENSORS_LIMIT(IN_TO_REG(nr, val) / 4, 0, 255); \
|
D | w83781d.c | 162 #define IN_TO_REG(val) SENSORS_LIMIT(((val) + 8) / 16, 0, 255) macro 285 data->in_##reg[nr] = IN_TO_REG(val); \
|