Home
last modified time | relevance | path

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

/drivers/hwmon/
Dadm1025.c98 #define IN_FROM_REG(reg,scale) (((reg) * (scale) + 96) / 192) macro
173 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[index], in show_in()
182 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[index], in show_in_min()
191 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[index], in show_in_max()
Dadm9240.c94 static inline unsigned int IN_FROM_REG(u8 reg, int n) in IN_FROM_REG() function
230 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index], in show_in()
239 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min()
248 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max()
Dsmsc47m192.c76 static inline unsigned int IN_FROM_REG(u8 reg, int n) in IN_FROM_REG() function
148 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr], nr)); in show_in()
157 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min()
166 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max()
Dvia686a.c140 static inline long IN_FROM_REG(u8 val, int inNum) in IN_FROM_REG() function
342 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in[nr], nr)); in show_in()
350 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min()
358 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max()
Dsis5595.c128 #define IN_FROM_REG(val) ((val) * 16) macro
214 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr])); in show_in()
223 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in show_in_min()
232 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr])); in show_in_max()
Dpc87360.c160 #define IN_FROM_REG(val,ref) (((val) * (ref) + 128) / 256) macro
388 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in show_in_input()
395 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min()
402 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max()
607 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in show_therm_input()
614 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_therm_min()
621 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_therm_max()
628 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_crit[attr->index-11], in show_therm_crit()
Dlm78.c88 #define IN_FROM_REG(val) ((val) * 16) macro
195 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index])); in show_in()
203 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index])); in show_in_min()
211 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index])); in show_in_max()
Dgl520sm.c152 #define IN_FROM_REG(val) ((val)*19) macro
165 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_input()
178 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_min()
191 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_max()
Dlm87.c126 #define IN_FROM_REG(reg,scale) (((reg) * (scale) + 96) / 192) macro
242 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[offset], \
248 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[offset], \
254 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[offset], \
Dvt1211.c154 #define IN_FROM_REG(ix, reg) ((reg) < 3 ? 0 : (ix) == 5 ? \ macro
351 res = IN_FROM_REG(ix, data->in[ix]); in show_in()
354 res = IN_FROM_REG(ix, data->in_min[ix]); in show_in()
357 res = IN_FROM_REG(ix, data->in_max[ix]); in show_in()
Dw83627hf.c255 #define IN_FROM_REG(val) ((val) * 16) macro
411 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in[nr])); in show_in_input()
418 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in show_in_min()
425 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in show_in_max()
485 in0 = (long)IN_FROM_REG(reg); in show_in_0()
Dlm80.c73 #define IN_FROM_REG(val) ((val)*10) macro
175 return sprintf(buf, "%d\n", IN_FROM_REG(data->value[nr])); \
Dit87.c192 #define IN_FROM_REG(val) ((val) * 16) macro
321 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr])); in show_in()
331 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in show_in_min()
341 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr])); in show_in_max()
Dw83l786ng.c106 #define IN_FROM_REG(val) ((val) * 8) macro
194 return sprintf(buf,"%d\n", IN_FROM_REG(data->reg[nr])); \
Dasb100.c118 static unsigned IN_FROM_REG(u8 reg) in IN_FROM_REG() function
243 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Ddme1737.c238 static inline int IN_FROM_REG(int reg, int nominal, int res) in IN_FROM_REG() function
752 res = IN_FROM_REG(data->in[ix], data->in_nominal[ix], 16); in show_in()
755 res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8); in show_in()
758 res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); in show_in()
Dw83792d.c226 #define IN_FROM_REG(nr,val) (((nr)<=1)?(val*2): \ macro
361 return sprintf(buf,"%ld\n", IN_FROM_REG(nr,(in_count_from_reg(nr, data)))); in show_in()
371 return sprintf(buf,"%ld\n", (long)(IN_FROM_REG(nr, (data->reg[nr])*4))); \
Dw83791d.c220 #define IN_FROM_REG(val) ((val) * 16) macro
370 return sprintf(buf,"%d\n", IN_FROM_REG(data->reg[nr])); \
Dgl518sm.c105 #define IN_FROM_REG(val) ((val)*19) macro
Dw83781d.c158 #define IN_FROM_REG(val) ((val) * 16) macro
260 (long)IN_FROM_REG(data->reg[attr->index])); \