Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/hwmon/
Dadm1025.c81 #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()
Dsmsc47m192.c60 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()
Dpc87360.c161 #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()
Dsis5595.c125 #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()
Dvia686a.c136 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()
Dlm78.c77 #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()
Dgl520sm.c201 #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()
Dlm87.c108 #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()
Dvt1211.c145 #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()
Dadm9240.c82 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()
Dlm80.c63 #define IN_FROM_REG(val) ((val) * 10) macro
268 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr][index])); in in_show()
Dw83627hf.c251 #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()
Dw83l786ng.c95 #define IN_FROM_REG(val) ((val) * 8) macro
228 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Dasb100.c108 static unsigned IN_FROM_REG(u8 reg) in IN_FROM_REG() function
240 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Ddme1737.c262 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()
Dw83792d.c215 #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)); \
Dw83791d.c211 #define IN_FROM_REG(val) ((val) * 16) macro
357 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Dgl518sm.c92 #define IN_FROM_REG(val) ((val) * 19) macro
Dw83781d.c150 #define IN_FROM_REG(val) ((val) * 16) macro
253 (long)IN_FROM_REG(data->reg[attr->index])); \