Searched refs:FAN_DIV_FROM_REG (Results 1 – 3 of 3) sorted by relevance
137 #define FAN_DIV_FROM_REG(reg) (1 << (reg)) macro472 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()
232 #define FAN_DIV_FROM_REG(reg) (1<<(((reg)&0xc0)>>6)) macro584 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()
129 #define FAN_DIV_FROM_REG(val) (1 << (((val) >> 5) & 0x03)) macro263 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()