/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/hwmon/ |
H A D | max6650.c | 104 #define DIV_FROM_REG(reg) (1 << (reg & 7)) macro 160 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count)); 219 kscale = DIV_FROM_REG(data->config); 244 kscale = DIV_FROM_REG(data->config); 373 return sprintf(buf, "%d\n", DIV_FROM_REG(data->count));
|
H A D | asb100.c | 171 #define DIV_FROM_REG(val) (1 << (val)) macro 306 DIV_FROM_REG(data->fan_div[nr]))); 313 DIV_FROM_REG(data->fan_div[nr]))); 319 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 330 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 352 DIV_FROM_REG(data->fan_div[nr])); 376 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | lm78.c | 117 #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 | 163 #define DIV_FROM_REG(val) (1 << (val)) macro 351 DIV_FROM_REG(data->fan_div[nr])) ); 358 DIV_FROM_REG(data->fan_div[nr])) ); 369 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 378 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) ); 396 DIV_FROM_REG(data->fan_div[nr])); 421 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | vt8231.c | 121 #define DIV_FROM_REG(val) (1 << (val)) macro 462 DIV_FROM_REG(data->fan_div[nr]))); 472 DIV_FROM_REG(data->fan_div[nr]))); 481 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 494 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 510 DIV_FROM_REG(data->fan_div[nr])); 526 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | adm1029.c | 89 #define DIV_FROM_REG(val) ( 1 << (((val) >> 6) - 1)) macro 178 val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index]) 190 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
|
H A D | lm80.c | 103 #define DIV_FROM_REG(val) (1 << (val)) macro 221 DIV_FROM_REG(data->div))); \ 232 return sprintf(buf, "%d\n", DIV_FROM_REG(data->value)); \ 246 data->value = FAN_TO_REG(val, DIV_FROM_REG(data->div)); \ 269 DIV_FROM_REG(data->fan_div[nr])); 288 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | smsc47m1.c | 110 #define DIV_FROM_REG(reg) (1 << (reg)) macro 173 DIV_FROM_REG(data->fan_div[nr]), 185 DIV_FROM_REG(data->fan_div[nr])); 194 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); 229 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); 255 u8 old_div = DIV_FROM_REG(data->fan_div[nr]);
|
H A D | via686a.c | 292 #define DIV_FROM_REG(val) (1 << (val)) macro 495 DIV_FROM_REG(data->fan_div[nr])) ); 500 FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])) ); 504 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]) ); 513 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | w83791d.c | 230 #define DIV_FROM_REG(val) (1 << (val)) macro 396 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 412 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr])); 425 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); 447 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); 494 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | gl518sm.c | 78 #define DIV_FROM_REG(val) (1 << (val)) macro 144 DIV_FROM_REG(data->fan_div[index]))); \ 237 DIV_FROM_REG(data->fan_div[0])); 263 DIV_FROM_REG(data->fan_div[1]));
|
H A D | it87.c | 203 #define DIV_FROM_REG(val) (1 << (val)) macro 492 DIV_FROM_REG(data->fan_div[nr]))); 502 FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]))); 511 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 558 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 579 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); 600 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | w83627hf.c | 275 #define DIV_FROM_REG(val) (1 << (val)) macro 519 (long)DIV_FROM_REG(data->fan_div[nr-1]))); \ 534 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr - 1])); 742 (long) DIV_FROM_REG(data->fan_div[nr - 1])); 761 DIV_FROM_REG(data->fan_div[nr])); 776 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | w83781d.c | 191 #define DIV_FROM_REG(val) (1 << (val)) macro 352 DIV_FROM_REG(data->fan_div[attr->index]))); \ 370 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 555 (long) DIV_FROM_REG(data->fan_div[attr->index])); 577 DIV_FROM_REG(data->fan_div[nr])); 595 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | w83792d.c | 253 #define DIV_FROM_REG(val) (1 << (val)) macro 393 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 411 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 426 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1])); 449 DIV_FROM_REG(data->fan_div[nr])); 461 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | vt1211.c | 170 #define DIV_FROM_REG(reg) (1 << (reg)) macro 173 1310720 / (reg) / DIV_FROM_REG(div)) 176 DIV_FROM_REG(div)), 1, 254)) 492 res = DIV_FROM_REG(data->fan_div[ix]);
|
H A D | adm1026.c | 208 #define DIV_FROM_REG(val) (1<<(val)) macro 448 data->fan_div[i] = DIV_FROM_REG(value & 0x03); 630 data->fan_div[i] = DIV_FROM_REG(value & 0x03); 930 data->fan_div[nr] = DIV_FROM_REG(new_div);
|
H A D | gl520sm.c | 323 #define DIV_FROM_REG(val) (1 << (val)) macro 339 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[n - 1]));
|