Searched refs:FAN_DIV_FROM_REG (Results 1 – 3 of 3) sorted by relevance
130 #define FAN_DIV_FROM_REG(reg) (1 << (reg)) macro475 FAN_DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show()485 FAN_DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()495 FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()514 FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()544 FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
219 #define FAN_DIV_FROM_REG(reg) (1<<(((reg)&0xc0)>>6)) macro563 FAN_DIV_FROM_REG(data->fan_div[nr])) : 0; in fan_show()572 return sprintf(buf, "%d\n", FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()581 FAN_DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()600 FAN_TO_REG(val, FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()641 old_div = FAN_DIV_FROM_REG(data->fan_div[nr]); in fan_div_store()
128 #define FAN_DIV_FROM_REG(val) (1 << (((val) >> 5) & 0x03)) macro267 FAN_DIV_FROM_REG(data->fan_status[nr]), nr + 1); in pc87360_autodiv()279 FAN_DIV_FROM_REG(data->fan_status[nr]), in pc87360_autodiv()1124 FAN_DIV_FROM_REG(data->fan_status[attr->index]))); in fan_input_show()1154 FAN_DIV_FROM_REG(data->fan_status[attr->index])); in fan_div_show()1169 FAN_DIV_FROM_REG(data->fan_status[attr->index]))); in fan_min_show()1187 FAN_DIV_FROM_REG(data->fan_status[attr->index])); in fan_min_store()