/linux-6.12.1/drivers/hwmon/ |
D | adm1025.c | 81 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192) macro 168 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[index], in in_show() 177 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[index], in in_min_show() 186 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[index], in in_max_show()
|
D | smsc47m192.c | 60 static inline unsigned int IN_FROM_REG(u8 reg, int n) in IN_FROM_REG() function 175 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr], nr)); in in_show() 184 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); in in_min_show() 193 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr)); in in_max_show()
|
D | pc87360.c | 161 #define IN_FROM_REG(val, ref) (((val) * (ref) + 128) / 256) macro 411 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in in_input_show() 456 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in in_min_show() 500 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in in_max_show() 673 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in therm_input_show() 706 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in therm_min_show() 742 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in therm_max_show() 778 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_crit[attr->index-11], in therm_crit_show()
|
D | sis5595.c | 125 #define IN_FROM_REG(val) ((val) * 16) macro 268 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr])); in in_show() 277 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in in_min_show() 286 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr])); in in_max_show()
|
D | via686a.c | 136 static inline long IN_FROM_REG(u8 val, int in_num) in IN_FROM_REG() function 416 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in[nr], nr)); in in_show() 424 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr)); in in_min_show() 432 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr)); in in_max_show()
|
D | lm78.c | 77 #define IN_FROM_REG(val) ((val) * 16) macro 147 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index])); in in_show() 155 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index])); in in_min_show() 163 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index])); in in_max_show()
|
D | gl520sm.c | 201 #define IN_FROM_REG(val) ((val) * 19) macro 215 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in in_input_show() 228 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in in_min_show() 241 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in in_max_show()
|
D | lm87.c | 108 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192) macro 272 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[nr], in in_input_show() 282 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[nr], in in_min_show() 292 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[nr], in in_max_show()
|
D | vt1211.c | 145 #define IN_FROM_REG(ix, reg) ((reg) < 3 ? 0 : (ix) == 5 ? \ macro 346 res = IN_FROM_REG(ix, data->in[ix]); in show_in() 349 res = IN_FROM_REG(ix, data->in_min[ix]); in show_in() 352 res = IN_FROM_REG(ix, data->in_max[ix]); in show_in()
|
D | adm9240.c | 82 static inline unsigned int IN_FROM_REG(u8 reg, int n) in IN_FROM_REG() function 474 *val = IN_FROM_REG(regval, channel); in adm9240_in_read()
|
D | lm80.c | 63 #define IN_FROM_REG(val) ((val) * 10) macro 268 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr][index])); in in_show()
|
D | w83627hf.c | 251 #define IN_FROM_REG(val) ((val) * 16) macro 816 in0 = (long)IN_FROM_REG(reg); in show_in_0() 1011 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in[nr])); in in_input_show() 1019 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in in_min_show() 1047 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in in_max_show()
|
D | w83l786ng.c | 95 #define IN_FROM_REG(val) ((val) * 8) macro 228 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
|
D | asb100.c | 108 static unsigned IN_FROM_REG(u8 reg) in IN_FROM_REG() function 240 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
|
D | dme1737.c | 262 static inline int IN_FROM_REG(int reg, int nominal, int res) in IN_FROM_REG() function 811 res = IN_FROM_REG(data->in[ix], data->in_nominal[ix], 16); in show_in() 814 res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8); in show_in() 817 res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); in show_in()
|
D | w83792d.c | 215 #define IN_FROM_REG(nr, val) (((nr) <= 1) ? ((val) * 2) : \ macro 346 IN_FROM_REG(nr, in_count_from_reg(nr, data))); in show_in() 358 (long)(IN_FROM_REG(nr, data->reg[nr]) * 4)); \
|
D | w83791d.c | 211 #define IN_FROM_REG(val) ((val) * 16) macro 357 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
|
D | gl518sm.c | 92 #define IN_FROM_REG(val) ((val) * 19) macro
|
D | w83781d.c | 150 #define IN_FROM_REG(val) ((val) * 16) macro 253 (long)IN_FROM_REG(data->reg[attr->index])); \
|