/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/hwmon/ |
H A D | max6650.c | 113 #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 D | asb100.c | 166 #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 D | lm78.c | 114 #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 D | sis5595.c | 160 #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 D | vt8231.c | 118 #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 D | adm1029.c | 81 #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 D | lm80.c | 101 #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 D | smsc47m1.c | 116 #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 D | w83l786ng.c | 107 #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 D | gl518sm.c | 77 #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 D | via686a.c | 290 #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 D | w83791d.c | 263 #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 D | w83792d.c | 256 #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 D | max6650.c | 113 #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 D | asb100.c | 166 #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 D | lm78.c | 114 #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 D | sis5595.c | 160 #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 D | vt8231.c | 118 #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 D | adm1029.c | 81 #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 D | lm80.c | 101 #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 D | smsc47m1.c | 116 #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 D | w83l786ng.c | 107 #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 D | gl518sm.c | 77 #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 D | via686a.c | 290 #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 D | w83791d.c | 263 #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]));
|