Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/hwmon/
Dadm1025.c94 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192) macro
170 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[index], in show_in()
179 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[index], in show_in_min()
188 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[index], in show_in_max()
Dsmsc47m192.c73 static inline unsigned int IN_FROM_REG(u8 reg, int n) in IN_FROM_REG() function
147 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr], nr)); in show_in()
156 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min()
165 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max()
Dsis5595.c138 #define IN_FROM_REG(val) ((val) * 16) macro
232 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr])); in show_in()
241 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in show_in_min()
250 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr])); in show_in_max()
Dvia686a.c151 static inline long IN_FROM_REG(u8 val, int inNum) in IN_FROM_REG() function
366 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in[nr], nr)); in show_in()
374 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min()
382 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max()
Dadm9240.c93 static inline unsigned int IN_FROM_REG(u8 reg, int n) in IN_FROM_REG() function
234 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index], in show_in()
243 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min()
252 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max()
Dpc87360.c162 #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 show_in_input()
419 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min()
427 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max()
657 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in show_therm_input()
665 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_therm_min()
673 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_therm_max()
681 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_crit[attr->index-11], in show_therm_crit()
Dlm78.c91 #define IN_FROM_REG(val) ((val) * 16) macro
164 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index])); in show_in()
172 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index])); in show_in_min()
180 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index])); in show_in_max()
Dlm87.c122 #define IN_FROM_REG(reg, scale) (((reg) * (scale) + 96) / 192) macro
285 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[nr], in show_in_input()
295 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[nr], in show_in_min()
305 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[nr], in show_in_max()
Dgl520sm.c149 #define IN_FROM_REG(val) ((val) * 19) macro
162 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_input()
175 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_min()
188 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_max()
Dvt1211.c158 #define IN_FROM_REG(ix, reg) ((reg) < 3 ? 0 : (ix) == 5 ? \ macro
359 res = IN_FROM_REG(ix, data->in[ix]); in show_in()
362 res = IN_FROM_REG(ix, data->in_min[ix]); in show_in()
365 res = IN_FROM_REG(ix, data->in_max[ix]); in show_in()
Dw83627hf.c258 #define IN_FROM_REG(val) ((val) * 16) macro
418 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in[nr])); in show_in_input()
425 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in show_in_min()
432 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in show_in_max()
502 in0 = (long)IN_FROM_REG(reg); in show_in_0()
Dlm80.c76 #define IN_FROM_REG(val) ((val) * 10) macro
183 return sprintf(buf, "%d\n", IN_FROM_REG(data->value[nr])); \
Dw83l786ng.c109 #define IN_FROM_REG(val) ((val) * 8) macro
197 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Dasb100.c121 static unsigned IN_FROM_REG(u8 reg) in IN_FROM_REG() function
254 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Ddme1737.c273 static inline int IN_FROM_REG(int reg, int nominal, int res) in IN_FROM_REG() function
820 res = IN_FROM_REG(data->in[ix], data->in_nominal[ix], 16); in show_in()
823 res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8); in show_in()
826 res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); in show_in()
Dw83792d.c227 #define IN_FROM_REG(nr, val) (((nr) <= 1) ? ((val) * 2) : \ macro
367 IN_FROM_REG(nr, in_count_from_reg(nr, data))); in show_in()
379 (long)(IN_FROM_REG(nr, data->reg[nr]) * 4)); \
Dw83791d.c223 #define IN_FROM_REG(val) ((val) * 16) macro
377 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Dgl518sm.c105 #define IN_FROM_REG(val) ((val) * 19) macro
Dw83781d.c163 #define IN_FROM_REG(val) ((val) * 16) macro
267 (long)IN_FROM_REG(data->reg[attr->index])); \