Searched refs:DIV_FROM_REG (Results 1 - 25 of 38) sorted by relevance

12

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/hwmon/
H A Dmax6650.c113 #define DIV_FROM_REG(reg) (1 << (reg & 7)) macro
181 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count));
240 kscale = DIV_FROM_REG(data->config);
265 kscale = DIV_FROM_REG(data->config);
394 return sprintf(buf, "%d\n", DIV_FROM_REG(data->count));
H A Dasb100.c166 #define DIV_FROM_REG(val) (1 << (val)) macro
290 DIV_FROM_REG(data->fan_div[nr])));
299 DIV_FROM_REG(data->fan_div[nr])));
307 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
319 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
342 DIV_FROM_REG(data->fan_div[nr]));
366 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dlm78.c114 #define DIV_FROM_REG(val) (1 << (val)) macro
321 DIV_FROM_REG(data->fan_div[nr])) );
331 DIV_FROM_REG(data->fan_div[nr])) );
343 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
354 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
373 DIV_FROM_REG(data->fan_div[nr]));
399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dsis5595.c160 #define DIV_FROM_REG(val) (1 << (val)) macro
336 DIV_FROM_REG(data->fan_div[nr])) );
346 DIV_FROM_REG(data->fan_div[nr])) );
358 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
370 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) );
389 DIV_FROM_REG(data->fan_div[nr]));
414 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dvt8231.c118 #define DIV_FROM_REG(val) (1 << (val)) macro
453 DIV_FROM_REG(data->fan_div[nr])));
463 DIV_FROM_REG(data->fan_div[nr])));
472 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
484 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
499 DIV_FROM_REG(data->fan_div[nr]));
515 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dadm1029.c81 #define DIV_FROM_REG(val) ( 1 << (((val) >> 6) - 1)) macro
182 val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index])
194 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
H A Dlm80.c101 #define DIV_FROM_REG(val) (1 << (val)) macro
201 DIV_FROM_REG(data->fan_div[nr]))); \
211 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
223 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
245 DIV_FROM_REG(data->fan_div[nr]));
264 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dsmsc47m1.c116 #define DIV_FROM_REG(reg) (1 << (reg)) macro
178 DIV_FROM_REG(data->fan_div[nr]),
190 DIV_FROM_REG(data->fan_div[nr]));
199 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
242 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]);
268 u8 old_div = DIV_FROM_REG(data->fan_div[nr]);
H A Dw83l786ng.c107 #define DIV_FROM_REG(val) (1 << (val)) macro
245 FAN_FROM_REG(data->fan[nr], DIV_FROM_REG(data->fan_div[nr]))); \
262 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
276 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr]));
299 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
323 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dgl518sm.c77 #define DIV_FROM_REG(val) (1 << (val)) macro
172 DIV_FROM_REG(data->fan_div[nr])));
181 DIV_FROM_REG(data->fan_div[nr])));
189 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
255 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
H A Dvia686a.c290 #define DIV_FROM_REG(val) (1 << (val)) macro
472 DIV_FROM_REG(data->fan_div[nr])) );
480 FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])) );
487 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) );
497 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
H A Dw83791d.c263 #define DIV_FROM_REG(val) (1 << (val)) macro
525 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
541 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr]));
554 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr]));
577 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
634 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dw83792d.c256 #define DIV_FROM_REG(val) (1 << (val)) macro
406 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
424 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
439 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1]));
462 DIV_FROM_REG(data->fan_div[nr]));
474 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/hwmon/
H A Dmax6650.c113 #define DIV_FROM_REG(reg) (1 << (reg & 7)) macro
181 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count));
240 kscale = DIV_FROM_REG(data->config);
265 kscale = DIV_FROM_REG(data->config);
394 return sprintf(buf, "%d\n", DIV_FROM_REG(data->count));
H A Dasb100.c166 #define DIV_FROM_REG(val) (1 << (val)) macro
290 DIV_FROM_REG(data->fan_div[nr])));
299 DIV_FROM_REG(data->fan_div[nr])));
307 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
319 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
342 DIV_FROM_REG(data->fan_div[nr]));
366 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dlm78.c114 #define DIV_FROM_REG(val) (1 << (val)) macro
321 DIV_FROM_REG(data->fan_div[nr])) );
331 DIV_FROM_REG(data->fan_div[nr])) );
343 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
354 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
373 DIV_FROM_REG(data->fan_div[nr]));
399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dsis5595.c160 #define DIV_FROM_REG(val) (1 << (val)) macro
336 DIV_FROM_REG(data->fan_div[nr])) );
346 DIV_FROM_REG(data->fan_div[nr])) );
358 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
370 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) );
389 DIV_FROM_REG(data->fan_div[nr]));
414 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dvt8231.c118 #define DIV_FROM_REG(val) (1 << (val)) macro
453 DIV_FROM_REG(data->fan_div[nr])));
463 DIV_FROM_REG(data->fan_div[nr])));
472 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
484 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
499 DIV_FROM_REG(data->fan_div[nr]));
515 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dadm1029.c81 #define DIV_FROM_REG(val) ( 1 << (((val) >> 6) - 1)) macro
182 val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index])
194 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
H A Dlm80.c101 #define DIV_FROM_REG(val) (1 << (val)) macro
201 DIV_FROM_REG(data->fan_div[nr]))); \
211 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
223 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
245 DIV_FROM_REG(data->fan_div[nr]));
264 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dsmsc47m1.c116 #define DIV_FROM_REG(reg) (1 << (reg)) macro
178 DIV_FROM_REG(data->fan_div[nr]),
190 DIV_FROM_REG(data->fan_div[nr]));
199 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
242 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]);
268 u8 old_div = DIV_FROM_REG(data->fan_div[nr]);
H A Dw83l786ng.c107 #define DIV_FROM_REG(val) (1 << (val)) macro
245 FAN_FROM_REG(data->fan[nr], DIV_FROM_REG(data->fan_div[nr]))); \
262 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
276 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr]));
299 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
323 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
H A Dgl518sm.c77 #define DIV_FROM_REG(val) (1 << (val)) macro
172 DIV_FROM_REG(data->fan_div[nr])));
181 DIV_FROM_REG(data->fan_div[nr])));
189 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
255 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
H A Dvia686a.c290 #define DIV_FROM_REG(val) (1 << (val)) macro
472 DIV_FROM_REG(data->fan_div[nr])) );
480 FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])) );
487 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) );
497 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
H A Dw83791d.c263 #define DIV_FROM_REG(val) (1 << (val)) macro
525 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
541 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr]));
554 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr]));
577 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
634 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr]));

Completed in 298 milliseconds

12