Home
last modified time | relevance | path

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

/drivers/hwmon/
Dadm1025.c95 #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()
Dsmsc47m192.c78 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()
Dvia686a.c128 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()
Dsis5595.c133 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()
Dadm9240.c98 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()
Dpc87360.c163 #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()
Dlm78.c86 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()
Dlm87.c123 #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()
Dgl520sm.c150 #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()
Dw83627hf.c257 #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()
Dvt1211.c161 #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()
Dw83l786ng.c108 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 4) / 8), 0, 255)) macro
217 data->in_##reg[nr] = IN_TO_REG(val); \
Dlm80.c75 #define IN_TO_REG(val) (SENSORS_LIMIT(((val) + 5) / 10, 0, 255)) macro
202 data->value[nr] = IN_TO_REG(val); \ in show_in()
Dasb100.c115 static u8 IN_TO_REG(unsigned val) in IN_TO_REG() function
273 data->in_##reg[nr] = IN_TO_REG(val); \
Ddme1737.c278 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()
Dw83791d.c222 #define IN_TO_REG(val) (SENSORS_LIMIT((((val) + 8) / 16), 0, 255)) macro
399 data->in_##reg[nr] = IN_TO_REG(val); \
Dgl518sm.c104 #define IN_TO_REG(val) SENSORS_LIMIT((((val) + 9) / 19), 0, 255) macro
Dw83792d.c229 #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); \
Dw83781d.c162 #define IN_TO_REG(val) SENSORS_LIMIT(((val) + 8) / 16, 0, 255) macro
285 data->in_##reg[nr] = IN_TO_REG(val); \