Home
last modified time | relevance | path

Searched refs:IN_TO_REG (Results 1 – 20 of 20) sorted by relevance

/drivers/hwmon/
Dadm1025.c99 #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()
Dadm9240.c99 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()
Dsmsc47m192.c81 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()
Dvia686a.c119 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()
Dsis5595.c123 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()
Dpc87360.c161 #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()
Dlm78.c83 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()
Dgl520sm.c153 #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()
Dw83627hf.c254 #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()
Dlm80.c72 #define IN_TO_REG(val) (SENSORS_LIMIT(((val)+5)/10,0,255)) macro
191 data->value[nr] = IN_TO_REG(val); \ in show_in()
Dlm87.c127 #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()
Dvt1211.c157 #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()
Dw83l786ng.c105 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 4) / 8), 0, 255)) macro
211 data->in_##reg[nr] = IN_TO_REG(val); \
Dasb100.c112 static u8 IN_TO_REG(unsigned val) in IN_TO_REG() function
260 data->in_##reg[nr] = IN_TO_REG(val); \
Dit87.c191 #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()
Ddme1737.c243 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()
Dw83791d.c219 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 8) / 16), 0, 255)) macro
390 data->in_##reg[nr] = IN_TO_REG(val); \
Dw83792d.c228 #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); \
Dgl518sm.c104 #define IN_TO_REG(val) (SENSORS_LIMIT((((val)+9)/19),0,255)) macro
Dw83781d.c157 #define IN_TO_REG(val) SENSORS_LIMIT(((val) + 8) / 16, 0, 255) macro
278 data->in_##reg[nr] = IN_TO_REG(val); \