/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | max6650.c | 95 #define DIV_FROM_REG(reg) (1 << ((reg) & 7)) macro 278 kscale = DIV_FROM_REG(data->config); in max6650_set_target() 564 DIV_FROM_REG(data->count)); in max6650_read() 567 *val = DIV_FROM_REG(data->count); in max6650_read() 575 *val = 60 * DIV_FROM_REG(data->config) * clock / in max6650_read()
|
H A D | lm80.c | 80 #define DIV_FROM_REG(val) (1 << (val)) macro 302 DIV_FROM_REG(data->fan_div[index]))); in fan_show() 312 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 329 DIV_FROM_REG(data->fan_div[index])); in fan_store() 360 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 393 data->fan[f_min][nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | lm78.c | 108 #define DIV_FROM_REG(val) (1 << (val)) macro 300 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 310 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 327 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 338 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show() 364 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | sis5595.c | 162 #define DIV_FROM_REG(val) (1 << (val)) macro 366 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 376 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 393 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 405 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 431 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 465 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
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]) in fan_show() 193 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show()
|
H A D | w83l786ng.c | 98 #define DIV_FROM_REG(val) (1 << (val)) macro 284 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 305 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 319 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 351 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 375 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
H A D | smsc47m1.c | 111 #define DIV_FROM_REG(reg) (1 << (reg)) macro 211 DIV_FROM_REG(data->fan_div[nr]), in fan_show() 223 DIV_FROM_REG(data->fan_div[nr])); in fan_min_show() 232 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show() 282 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); in fan_min_store() 313 u8 old_div = DIV_FROM_REG(data->fan_div[nr]); in fan_div_store()
|
H A D | asb100.c | 163 #define DIV_FROM_REG(val) (1 << (val)) macro 292 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 301 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 309 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 326 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 356 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 380 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
H A D | vt8231.c | 111 #define DIV_FROM_REG(val) (1 << (val)) macro 500 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 510 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 519 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 537 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 553 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 583 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | gl518sm.c | 98 #define DIV_FROM_REG(val) (1 << (val)) macro 260 DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show() 269 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 277 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 357 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
H A D | via686a.c | 295 #define DIV_FROM_REG(val) (1 << (val)) macro 503 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 512 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 519 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 534 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
H A D | w83627hf.c | 332 #define DIV_FROM_REG(val) (1 << (val)) macro 671 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show() 679 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 695 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 982 (long) DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 1009 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 1024 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
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)) 508 res = DIV_FROM_REG(data->fan_div[ix]); in show_fan()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | max6650.c | 95 #define DIV_FROM_REG(reg) (1 << ((reg) & 7)) macro 278 kscale = DIV_FROM_REG(data->config); in max6650_set_target() 564 DIV_FROM_REG(data->count)); in max6650_read() 567 *val = DIV_FROM_REG(data->count); in max6650_read() 575 *val = 60 * DIV_FROM_REG(data->config) * clock / in max6650_read()
|
H A D | lm80.c | 80 #define DIV_FROM_REG(val) (1 << (val)) macro 302 DIV_FROM_REG(data->fan_div[index]))); in fan_show() 312 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 329 DIV_FROM_REG(data->fan_div[index])); in fan_store() 360 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 393 data->fan[f_min][nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | sis5595.c | 163 #define DIV_FROM_REG(val) (1 << (val)) macro 421 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 431 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 448 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 460 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 486 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 520 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | lm78.c | 108 #define DIV_FROM_REG(val) (1 << (val)) macro 300 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 310 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 327 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 338 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show() 364 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 399 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
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]) in fan_show() 193 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show()
|
H A D | smsc47m1.c | 111 #define DIV_FROM_REG(reg) (1 << (reg)) macro 211 DIV_FROM_REG(data->fan_div[nr]), in fan_show() 223 DIV_FROM_REG(data->fan_div[nr])); in fan_min_show() 232 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show() 282 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); in fan_min_store() 313 u8 old_div = DIV_FROM_REG(data->fan_div[nr]); in fan_div_store()
|
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])); in store_fan_min() 318 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 350 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 374 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
H A D | asb100.c | 163 #define DIV_FROM_REG(val) (1 << (val)) macro 292 DIV_FROM_REG(data->fan_div[nr]))); in show_fan() 301 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min() 309 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 326 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min() 356 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 380 FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|
H A D | vt8231.c | 112 #define DIV_FROM_REG(val) (1 << (val)) macro 565 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 575 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 584 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 602 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 618 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 648 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|
H A D | gl518sm.c | 98 #define DIV_FROM_REG(val) (1 << (val)) macro 260 DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show() 269 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 277 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 357 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
H A D | via686a.c | 297 #define DIV_FROM_REG(val) (1 << (val)) macro 570 DIV_FROM_REG(data->fan_div[nr]))); in fan_show() 579 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 586 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 601 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
|
H A D | w83627hf.c | 332 #define DIV_FROM_REG(val) (1 << (val)) macro 1102 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show() 1111 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show() 1128 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store() 1149 (long) DIV_FROM_REG(data->fan_div[nr])); in fan_div_show() 1177 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store() 1192 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
|