Lines Matching refs:fan_div
126 u8 fan_div[2]; /* Register encoding, shifted right */ member
219 DIV_FROM_REG(data->fan_div[nr]))); \
231 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
246 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
273 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
277 data->fan_div[nr] = 0; in set_fan_div()
280 data->fan_div[nr] = 1; in set_fan_div()
283 data->fan_div[nr] = 2; in set_fan_div()
286 data->fan_div[nr] = 3; in set_fan_div()
297 | (data->fan_div[nr] << (2 * (nr + 1))); in set_fan_div()
301 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
699 data->fan_div[0] = (rv >> 2) & 0x03; in lm80_update_device()
700 data->fan_div[1] = (rv >> 4) & 0x03; in lm80_update_device()