/linux-master/drivers/hwmon/ |
H A D | w83l786ng.c | 97 #define DIV_FROM_REG(val) (1 << (val)) macro 283 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 304 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 318 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); 350 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); 374 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | w83792d.c | 245 #define DIV_FROM_REG(val) (1 << (val)) macro 398 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 420 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 435 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1])); 466 DIV_FROM_REG(data->fan_div[nr])); 478 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | w83791d.c | 253 #define DIV_FROM_REG(val) (1 << (val)) macro 524 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 545 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr])); 558 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); 589 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); 646 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | it87.c | 718 #define DIV_FROM_REG(val) BIT(val) macro 1323 DIV_FROM_REG(data->fan_div[nr])); 1337 return sprintf(buf, "%lu\n", DIV_FROM_REG(data->fan_div[nr])); 1428 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 1457 min = FAN_FROM_REG(data->fan[nr][1], DIV_FROM_REG(data->fan_div[nr])); 1478 data->fan[nr][1] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | gl520sm.c | 328 #define DIV_FROM_REG(val) (1 << (val)) macro 364 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[n]));
|
H A D | gl518sm.c | 98 #define DIV_FROM_REG(val) (1 << (val)) macro 260 DIV_FROM_REG(data->fan_div[nr]))); 269 DIV_FROM_REG(data->fan_div[nr]))); 277 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 357 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | asb100.c | 163 #define DIV_FROM_REG(val) (1 << (val)) macro 292 DIV_FROM_REG(data->fan_div[nr]))); 301 DIV_FROM_REG(data->fan_div[nr]))); 309 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 326 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 356 DIV_FROM_REG(data->fan_div[nr])); 380 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | adm1026.c | 202 #define DIV_FROM_REG(val) (1 << (val)) macro 395 data->fan_div[i] = DIV_FROM_REG(value & 0x03); 758 data->fan_div[nr] = DIV_FROM_REG(new_div); 1814 data->fan_div[i] = DIV_FROM_REG(value & 0x03);
|
H A D | adm1029.c | 68 #define DIV_FROM_REG(val) (1 << (((val) >> 6) - 1)) macro 180 val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index]) 193 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
|
H A D | sis5595.c | 159 #define DIV_FROM_REG(val) (1 << (val)) macro 417 DIV_FROM_REG(data->fan_div[nr]))); 427 DIV_FROM_REG(data->fan_div[nr]))); 444 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 456 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 482 DIV_FROM_REG(data->fan_div[nr])); 516 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | smsc47m1.c | 111 #define DIV_FROM_REG(reg) (1 << (reg)) macro 211 DIV_FROM_REG(data->fan_div[nr]), 223 DIV_FROM_REG(data->fan_div[nr])); 232 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); 282 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); 313 u8 old_div = DIV_FROM_REG(data->fan_div[nr]);
|
H A D | max6650.c | 95 #define DIV_FROM_REG(reg) (1 << ((reg) & 7)) macro 278 kscale = DIV_FROM_REG(data->config); 564 DIV_FROM_REG(data->count)); 567 *val = DIV_FROM_REG(data->count); 575 *val = 60 * DIV_FROM_REG(data->config) * clock /
|
H A D | w83781d.c | 179 #define DIV_FROM_REG(val) (1 << (val)) macro 307 DIV_FROM_REG(data->fan_div[attr->index]))); \ 328 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 625 (long) DIV_FROM_REG(data->fan_div[attr->index])); 654 DIV_FROM_REG(data->fan_div[nr])); 674 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | w83627hf.c | 332 #define DIV_FROM_REG(val) (1 << (val)) macro 1102 (long)DIV_FROM_REG(data->fan_div[nr]))); 1111 (long)DIV_FROM_REG(data->fan_div[nr]))); 1128 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 1149 (long) DIV_FROM_REG(data->fan_div[nr])); 1177 DIV_FROM_REG(data->fan_div[nr])); 1192 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | vt8231.c | 112 #define DIV_FROM_REG(val) (1 << (val)) macro 565 DIV_FROM_REG(data->fan_div[nr]))); 575 DIV_FROM_REG(data->fan_div[nr]))); 584 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 602 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 618 DIV_FROM_REG(data->fan_div[nr])); 648 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | via686a.c | 297 #define DIV_FROM_REG(val) (1 << (val)) macro 570 DIV_FROM_REG(data->fan_div[nr]))); 579 DIV_FROM_REG(data->fan_div[nr]))); 586 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 601 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | vt1211.c | 168 #define DIV_FROM_REG(reg) (1 << (reg)) macro 171 1310720 / (reg) / DIV_FROM_REG(div)) 174 DIV_FROM_REG(div)), 1, 254)) 502 res = DIV_FROM_REG(data->fan_div[ix]);
|
H A D | lm78.c | 108 #define DIV_FROM_REG(val) (1 << (val)) macro 300 DIV_FROM_REG(data->fan_div[nr]))); 310 DIV_FROM_REG(data->fan_div[nr]))); 327 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); 338 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); 364 DIV_FROM_REG(data->fan_div[nr])); 399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|
H A D | lm80.c | 80 #define DIV_FROM_REG(val) (1 << (val)) macro 302 DIV_FROM_REG(data->fan_div[index]))); 312 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 329 DIV_FROM_REG(data->fan_div[index])); 360 DIV_FROM_REG(data->fan_div[nr])); 393 data->fan[f_min][nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
|