Home
last modified time | relevance | path

Searched refs:FAN_DIV_FROM_REG (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/hwmon/
Dlm87.c137 #define FAN_DIV_FROM_REG(reg) (1 << (reg)) macro
472 FAN_DIV_FROM_REG(data->fan_div[nr]))); in show_fan_input()
482 FAN_DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min()
492 FAN_DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
510 FAN_DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
539 FAN_DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
Dadm1031.c232 #define FAN_DIV_FROM_REG(reg) (1<<(((reg)&0xc0)>>6)) macro
584 FAN_DIV_FROM_REG(data->fan_div[nr])) : 0; in show_fan()
593 return sprintf(buf, "%d\n", FAN_DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
602 FAN_DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min()
620 FAN_TO_REG(val, FAN_DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
660 old_div = FAN_DIV_FROM_REG(data->fan_div[nr]); in set_fan_div()
Dpc87360.c129 #define FAN_DIV_FROM_REG(val) (1 << (((val) >> 5) & 0x03)) macro
263 FAN_DIV_FROM_REG(data->fan_status[attr->index]))); in show_fan_input()
271 FAN_DIV_FROM_REG(data->fan_status[attr->index]))); in show_fan_min()
279 FAN_DIV_FROM_REG(data->fan_status[attr->index])); in show_fan_div()
304 FAN_DIV_FROM_REG(data->fan_status[attr->index])); in set_fan_min()
1581 FAN_DIV_FROM_REG(data->fan_status[nr]), nr + 1); in pc87360_autodiv()
1593 FAN_DIV_FROM_REG(data->fan_status[nr]), in pc87360_autodiv()