/drivers/hwmon/ |
D | adm1025.c | 99 #define IN_TO_REG(val,scale) ((val) <= 0 ? 0 : \ macro 228 data->in_min[index] = IN_TO_REG(val, in_scale[index]); in set_in_min() 244 data->in_max[index] = IN_TO_REG(val, in_scale[index]); in set_in_max()
|
D | adm9240.c | 99 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function 262 data->in_min[attr->index] = IN_TO_REG(val, attr->index); in set_in_min() 279 data->in_max[attr->index] = IN_TO_REG(val, attr->index); in set_in_max()
|
D | smsc47m192.c | 81 static inline u8 IN_TO_REG(unsigned long val, int n) in IN_TO_REG() function 179 data->in_min[nr] = IN_TO_REG(val, nr); in set_in_min() 196 data->in_max[nr] = IN_TO_REG(val, nr); in set_in_max()
|
D | via686a.c | 119 static inline u8 IN_TO_REG(long val, int inNum) in IN_TO_REG() function 369 data->in_min[nr] = IN_TO_REG(val, nr); in set_in_min() 383 data->in_max[nr] = IN_TO_REG(val, nr); in set_in_max()
|
D | sis5595.c | 123 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function 244 data->in_min[nr] = IN_TO_REG(val); in set_in_min() 259 data->in_max[nr] = IN_TO_REG(val); in set_in_max()
|
D | pc87360.c | 161 #define IN_TO_REG(val,ref) ((val) < 0 ? 0 : \ macro 419 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in set_in_min() 433 data->in_max[attr->index] = IN_TO_REG(val, in set_in_max() 645 data->in_min[attr->index] = IN_TO_REG(val, data->in_vref); in set_therm_min() 659 data->in_max[attr->index] = IN_TO_REG(val, data->in_vref); in set_therm_max() 673 data->in_crit[attr->index-11] = IN_TO_REG(val, data->in_vref); in set_therm_crit()
|
D | lm78.c | 83 static inline u8 IN_TO_REG(unsigned long val) in IN_TO_REG() function 223 data->in_min[nr] = IN_TO_REG(val); in set_in_min() 238 data->in_max[nr] = IN_TO_REG(val); in set_in_max()
|
D | gl520sm.c | 153 #define IN_TO_REG(val) (SENSORS_LIMIT((((val)+9)/19),0,255)) macro 208 r = IN_TO_REG(v); in set_in_min() 235 r = IN_TO_REG(v); in set_in_max()
|
D | w83627hf.c | 254 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 8)/16),0,255)) macro 436 data->in_min[nr] = IN_TO_REG(val); in store_in_min() 450 data->in_max[nr] = IN_TO_REG(val); in store_in_max() 528 data->in_min[0] = IN_TO_REG(val); in store_regs_in_min0() 555 data->in_max[0] = IN_TO_REG(val); in store_regs_in_max0()
|
D | lm80.c | 72 #define IN_TO_REG(val) (SENSORS_LIMIT(((val)+5)/10,0,255)) macro 191 data->value[nr] = IN_TO_REG(val); \ in show_in()
|
D | lm87.c | 127 #define IN_TO_REG(val,scale) ((val) <= 0 ? 0 : \ macro 275 data->in_min[nr] = IN_TO_REG(val, data->in_scale[nr]); in set_in_min() 288 data->in_max[nr] = IN_TO_REG(val, data->in_scale[nr]); in set_in_max()
|
D | vt1211.c | 157 #define IN_TO_REG(ix, val) (SENSORS_LIMIT((ix) == 5 ? \ macro 383 data->in_min[ix] = IN_TO_REG(ix, val); in set_in() 387 data->in_max[ix] = IN_TO_REG(ix, val); in set_in()
|
D | w83l786ng.c | 105 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 4) / 8), 0, 255)) macro 211 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | asb100.c | 112 static u8 IN_TO_REG(unsigned val) in IN_TO_REG() function 260 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | it87.c | 191 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 8)/16),0,255)) macro 354 data->in_min[nr] = IN_TO_REG(val); in set_in_min() 370 data->in_max[nr] = IN_TO_REG(val); in set_in_max()
|
D | dme1737.c | 243 static inline int IN_TO_REG(int val, int nominal) in IN_TO_REG() function 784 data->in_min[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in() 789 data->in_max[ix] = IN_TO_REG(val, data->in_nominal[ix]); in set_in()
|
D | w83791d.c | 219 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 8) / 16), 0, 255)) macro 390 data->in_##reg[nr] = IN_TO_REG(val); \
|
D | w83792d.c | 228 #define IN_TO_REG(nr,val) (((nr)<=1)?(val/2): \ macro 390 data->in_##reg[nr] = SENSORS_LIMIT(IN_TO_REG(nr, val)/4, 0, 255); \
|
D | gl518sm.c | 104 #define IN_TO_REG(val) (SENSORS_LIMIT((((val)+9)/19),0,255)) macro
|
D | w83781d.c | 157 #define IN_TO_REG(val) SENSORS_LIMIT(((val) + 8) / 16, 0, 255) macro 278 data->in_##reg[nr] = IN_TO_REG(val); \
|