Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/hwmon/
Dadm1025.c94 #define IN_FROM_REG(reg,scale) (((reg) * (scale) + 96) / 192) macro
169 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[index], in show_in()
178 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[index], in show_in_min()
187 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
145 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr], nr)); in show_in()
154 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min()
163 return sprintf(buf, "%d\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
229 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index], in show_in()
238 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min()
247 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max()
Dsis5595.c130 #define IN_FROM_REG(val) ((val) * 16) macro
216 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr])); in show_in()
225 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr])); in show_in_min()
234 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr])); in show_in_max()
Dvia686a.c142 static inline long IN_FROM_REG(u8 val, int inNum) in IN_FROM_REG() function
344 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in[nr], nr)); in show_in()
352 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr)); in show_in_min()
360 return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr)); in show_in_max()
Dlm78.c89 #define IN_FROM_REG(val) ((val) * 16) macro
196 return sprintf(buf, "%d\n", IN_FROM_REG(data->in[attr->index])); in show_in()
204 return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[attr->index])); in show_in_min()
212 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
390 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in show_in_input()
397 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_in_min()
404 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_in_max()
609 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[attr->index], in show_therm_input()
616 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[attr->index], in show_therm_min()
623 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[attr->index], in show_therm_max()
630 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_crit[attr->index-11], in show_therm_crit()
Dgl520sm.c148 #define IN_FROM_REG(val) ((val)*19) macro
161 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_input()
174 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_min()
187 return sprintf(buf, "%d\n", IN_FROM_REG(r)); in get_in_max()
Dlm87.c122 #define IN_FROM_REG(reg,scale) (((reg) * (scale) + 96) / 192) macro
238 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[offset], \
244 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[offset], \
250 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[offset], \
Dvt1211.c156 #define IN_FROM_REG(ix, reg) ((reg) < 3 ? 0 : (ix) == 5 ? \ macro
353 res = IN_FROM_REG(ix, data->in[ix]); in show_in()
356 res = IN_FROM_REG(ix, data->in_min[ix]); in show_in()
359 res = IN_FROM_REG(ix, data->in_max[ix]); in show_in()
Dlm80.c70 #define IN_FROM_REG(val) ((val)*10) macro
171 return sprintf(buf, "%d\n", IN_FROM_REG(data->value[nr])); \
Dw83627hf.c256 #define IN_FROM_REG(val) ((val) * 16) macro
408 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in[nr])); in show_in_input()
415 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr])); in show_in_min()
422 return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr])); in show_in_max()
482 in0 = (long)IN_FROM_REG(reg); in show_in_0()
Dw83l786ng.c105 #define IN_FROM_REG(val) ((val) * 8) macro
193 return sprintf(buf,"%d\n", IN_FROM_REG(data->reg[nr])); \
Dasb100.c117 static unsigned IN_FROM_REG(u8 reg) in IN_FROM_REG() function
242 return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
Ddme1737.c263 static inline int IN_FROM_REG(int reg, int nominal, int res) in IN_FROM_REG() function
798 res = IN_FROM_REG(data->in[ix], data->in_nominal[ix], 16); in show_in()
801 res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8); in show_in()
804 res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); in show_in()
Dw83792d.c225 #define IN_FROM_REG(nr,val) (((nr)<=1)?(val*2): \ macro
360 return sprintf(buf,"%ld\n", IN_FROM_REG(nr,(in_count_from_reg(nr, data)))); in show_in()
370 return sprintf(buf,"%ld\n", (long)(IN_FROM_REG(nr, (data->reg[nr])*4))); \
Dw83791d.c219 #define IN_FROM_REG(val) ((val) * 16) macro
369 return sprintf(buf,"%d\n", IN_FROM_REG(data->reg[nr])); \
Dgl518sm.c104 #define IN_FROM_REG(val) ((val)*19) macro
Dw83781d.c161 #define IN_FROM_REG(val) ((val) * 16) macro
263 (long)IN_FROM_REG(data->reg[attr->index])); \