Lines Matching refs:fan_div
136 u8 fan_div[2]; /* rw fan1_div, read-only accessor */ member
147 u8 fan_div) in adm9240_write_fan_div() argument
154 reg |= (fan_div << shift); in adm9240_write_fan_div()
158 nr + 1, 1 << old, 1 << fan_div); in adm9240_write_fan_div()
198 data->fan_div[i] < 3) { in adm9240_update_device()
201 ++data->fan_div[i]); in adm9240_update_device()
233 data->fan_div[0] = (i >> 4) & 3; in adm9240_update_device()
234 data->fan_div[1] = (i >> 6) & 3; in adm9240_update_device()
390 1 << data->fan_div[attr->index])); in fan_show()
399 1 << data->fan_div[attr->index])); in fan_min_show()
407 return sprintf(buf, "%d\n", 1 << data->fan_div[attr->index]); in fan_div_show()
441 new_div = data->fan_div[nr]; in fan_min_store()
470 if (new_div != data->fan_div[nr]) { in fan_min_store()
471 data->fan_div[nr] = new_div; in fan_min_store()
483 static SENSOR_DEVICE_ATTR_RO(fan1_div, fan_div, 0);
486 static SENSOR_DEVICE_ATTR_RO(fan2_div, fan_div, 1);