Home
last modified time | relevance | path

Searched refs:DIV_FROM_REG (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/hwmon/
H A Dlm80.c80 #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 Dasb100.c163 #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 Dgl518sm.c98 #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 Dw83791d.c258 #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 Dw83792d.c245 #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 Dgl520sm.c328 #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 Dit87.c729 #define DIV_FROM_REG(val) BIT(val) macro
1334 DIV_FROM_REG(data->fan_div[nr])); in show_fan()
1348 return sprintf(buf, "%lu\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
1439 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan()
1468 min = FAN_FROM_REG(data->fan[nr][1], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
1489 data->fan[nr][1] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()