Lines Matching refs:fan_div
172 u8 fan_div[2]; /* Register encoding, shifted right */ member
503 DIV_FROM_REG(data->fan_div[nr]))); in show_fan()
513 DIV_FROM_REG(data->fan_div[nr]))); in show_fan_min()
522 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
539 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan_min()
554 DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
564 data->fan_div[nr] = 0; in set_fan_div()
567 data->fan_div[nr] = 1; in set_fan_div()
570 data->fan_div[nr] = 2; in set_fan_div()
573 data->fan_div[nr] = 3; in set_fan_div()
583 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
586 old = (old & 0x0f) | (data->fan_div[1] << 6) | (data->fan_div[0] << 4); in set_fan_div()
933 data->fan_div[0] = (i >> 4) & 0x03; in vt8231_update_device()
934 data->fan_div[1] = i >> 6; in vt8231_update_device()