Lines Matching refs:fan_div
138 u8 fan_div[2]; /* rw fan1_div, read-only accessor */ member
149 u8 fan_div) in adm9240_write_fan_div() argument
159 reg |= (fan_div << shift); in adm9240_write_fan_div()
165 nr + 1, 1 << old, 1 << fan_div); in adm9240_write_fan_div()
208 data->fan_div[i] < 3) { in adm9240_update_measure()
211 ++data->fan_div[i]); in adm9240_update_measure()
254 data->fan_div[0] = (val >> 4) & 3; in adm9240_update_config()
255 data->fan_div[1] = (val >> 6) & 3; in adm9240_update_config()
465 1 << data->fan_div[attr->index])); in fan_show()
478 1 << data->fan_div[attr->index])); in fan_min_show()
490 return sprintf(buf, "%d\n", 1 << data->fan_div[attr->index]); in fan_div_show()
524 new_div = data->fan_div[nr]; in fan_min_store()
553 if (new_div != data->fan_div[nr]) { in fan_min_store()
554 data->fan_div[nr] = new_div; in fan_min_store()
566 static SENSOR_DEVICE_ATTR_RO(fan1_div, fan_div, 0);
569 static SENSOR_DEVICE_ATTR_RO(fan2_div, fan_div, 1);