/drivers/hwmon/ |
D | max6650.c | 106 #define DIV_FROM_REG(reg) (1 << (reg & 7)) macro 170 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count)); in get_fan() 229 kscale = DIV_FROM_REG(data->config); in get_target() 259 kscale = DIV_FROM_REG(data->config); in set_target() 397 return sprintf(buf, "%d\n", DIV_FROM_REG(data->count)); in get_div()
|
D | sis5595.c | 174 #define DIV_FROM_REG(val) (1 << (val)) macro 377 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 387 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 404 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 416 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 442 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 475 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
D | smsc47m1.c | 119 #define DIV_FROM_REG(reg) (1 << (reg)) macro 183 DIV_FROM_REG(data->fan_div[nr]), in get_fan() 195 DIV_FROM_REG(data->fan_div[nr])); in get_fan_min() 204 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in get_fan_div() 253 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); in set_fan_min() 283 u8 old_div = DIV_FROM_REG(data->fan_div[nr]); in set_fan_div()
|
D | w83l786ng.c | 111 #define DIV_FROM_REG(val) (1 << (val)) macro 252 FAN_FROM_REG(data->fan[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 273 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 287 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 319 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 343 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
D | lm80.c | 108 #define DIV_FROM_REG(val) (1 << (val)) macro 219 DIV_FROM_REG(data->fan_div[nr]))); \ 231 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); 246 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 273 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 300 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
D | asb100.c | 176 #define DIV_FROM_REG(val) (1 << (val)) macro 306 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 315 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 323 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 340 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 370 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 394 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
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]) in show_fan() 194 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in show_fan_div()
|
D | lm78.c | 120 #define DIV_FROM_REG(val) (1 << (val)) macro 309 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 319 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 336 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 347 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in show_fan_div() 373 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 407 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
D | vt8231.c | 124 #define DIV_FROM_REG(val) (1 << (val)) macro 503 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 513 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 522 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 539 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 554 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 583 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
D | gl518sm.c | 110 #define DIV_FROM_REG(val) (1 << (val)) macro 206 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_input() 215 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 223 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 302 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
|
D | via686a.c | 312 #define DIV_FROM_REG(val) (1 << (val)) macro 516 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 525 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 532 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 547 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
|
D | w83627hf.c | 340 #define DIV_FROM_REG(val) (1 << (val)) macro 597 (long)DIV_FROM_REG(data->fan_div[nr]))); in show_fan_input() 605 (long)DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 621 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 926 (long) DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 953 DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 968 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
D | w83791d.c | 269 #define DIV_FROM_REG(val) (1 << (val)) macro 544 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 565 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 578 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 609 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 666 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
D | vt1211.c | 181 #define DIV_FROM_REG(reg) (1 << (reg)) macro 184 1310720 / (reg) / DIV_FROM_REG(div)) 187 DIV_FROM_REG(div)), 1, 254)) 515 res = DIV_FROM_REG(data->fan_div[ix]); in show_fan()
|
D | w83792d.c | 258 #define DIV_FROM_REG(val) (1 << (val)) macro 419 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 441 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 456 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1])); in show_fan_div() 487 DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 499 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
D | w83781d.c | 192 #define DIV_FROM_REG(val) (1 << (val)) macro 321 DIV_FROM_REG(data->fan_div[attr->index]))); \ 342 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 640 (long) DIV_FROM_REG(data->fan_div[attr->index])); in show_fan_div() 669 DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 689 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
D | it87.c | 384 #define DIV_FROM_REG(val) (1 << (val)) macro 696 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 706 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 715 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 771 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 794 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 815 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
D | adm1026.c | 214 #define DIV_FROM_REG(val) (1 << (val)) macro 455 data->fan_div[i] = DIV_FROM_REG(value & 0x03); in adm1026_init_client() 638 data->fan_div[i] = DIV_FROM_REG(value & 0x03); in adm1026_update_device() 969 data->fan_div[nr] = DIV_FROM_REG(new_div); in set_fan_div()
|
D | gl520sm.c | 285 #define DIV_FROM_REG(val) (1 << (val)) macro 317 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[n])); in get_fan_div()
|