Searched refs:DIV_FROM_REG (Results 1 – 8 of 8) sorted by relevance
| /linux/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 | 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 | 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 | w83791d.c | 258 #define DIV_FROM_REG(val) (1 << (val)) macro 529 fan_from_reg(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \ 550 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min() 563 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 595 min = fan_from_reg(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 651 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
| 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])); in store_fan_min() 435 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1])); in show_fan_div() 466 DIV_FROM_REG(data->fan_div[nr])); in store_fan_div() 478 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
|
| 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])); in fan_div_show()
|
| H A D | it87.c | 718 #define DIV_FROM_REG(val) BIT(val) macro 1323 DIV_FROM_REG(data->fan_div[nr])); in show_fan() 1337 return sprintf(buf, "%lu\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div() 1428 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan() 1457 min = FAN_FROM_REG(data->fan[nr][1], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div() 1478 data->fan[nr][1] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
|