Searched refs:DIV_FROM_REG (Results 1 – 2 of 2) sorted by relevance
332 #define DIV_FROM_REG(val) (1 << (val)) macro1102 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_input_show()1111 (long)DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()1128 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()1149 (long) DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()1177 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()1192 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
258 #define DIV_FROM_REG(val) (1 << (val)) macro529 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()