Lines Matching refs:fan_div
130 u8 fan_div[2]; /* rw fan1_div, read-only accessor */ member
135 static int adm9240_write_fan_div(struct adm9240_data *data, int channel, u8 fan_div) in adm9240_write_fan_div() argument
145 reg |= (fan_div << shift); in adm9240_write_fan_div()
151 channel + 1, BIT(old), BIT(fan_div)); in adm9240_write_fan_div()
177 new_div = data->fan_div[channel]; in adm9240_fan_min_write()
203 if (new_div != data->fan_div[channel]) { in adm9240_fan_min_write()
204 data->fan_div[channel] = new_div; in adm9240_fan_min_write()
376 data->fan_div[0] = (regval >> 4) & 3; in adm9240_init_client()
377 data->fan_div[1] = (regval >> 6) & 3; in adm9240_init_client()
510 if (regval == 255 && data->fan_div[channel] < 3) { in adm9240_fan_read()
513 ++data->fan_div[channel]); in adm9240_fan_read()
519 *val = FAN_FROM_REG(regval, BIT(data->fan_div[channel])); in adm9240_fan_read()
523 *val = BIT(data->fan_div[channel]); in adm9240_fan_read()
529 *val = FAN_FROM_REG(regval, BIT(data->fan_div[channel])); in adm9240_fan_read()