Lines Matching refs:fan_div
161 u8 fan_div[2]; /* Register encoding, shifted right */ member
222 data->fan_div[0] = (i >> 4) & 0x03; in vt8231_update_device()
223 data->fan_div[1] = i >> 6; in vt8231_update_device()
566 DIV_FROM_REG(data->fan_div[nr]))); in fan_show()
576 DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
585 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
603 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
619 DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
629 data->fan_div[nr] = 0; in fan_div_store()
632 data->fan_div[nr] = 1; in fan_div_store()
635 data->fan_div[nr] = 2; in fan_div_store()
638 data->fan_div[nr] = 3; in fan_div_store()
649 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
652 old = (old & 0x0f) | (data->fan_div[1] << 6) | (data->fan_div[0] << 4); in fan_div_store()
660 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
663 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);