Lines Matching refs:fan_div
120 u8 fan_div[2]; member
293 data->fan_div[0] = (val >> 4) & 3; in vt1211_update_device()
294 data->fan_div[1] = (val >> 6) & 3; in vt1211_update_device()
502 res = RPM_FROM_REG(data->fan[ix], data->fan_div[ix]); in show_fan()
505 res = RPM_FROM_REG(data->fan_min[ix], data->fan_div[ix]); in show_fan()
508 res = DIV_FROM_REG(data->fan_div[ix]); in show_fan()
541 data->fan_div[0] = (reg >> 4) & 3; in set_fan()
542 data->fan_div[1] = (reg >> 6) & 3; in set_fan()
547 data->fan_min[ix] = RPM_TO_REG(val, data->fan_div[ix]); in set_fan()
554 data->fan_div[ix] = 0; in set_fan()
557 data->fan_div[ix] = 1; in set_fan()
560 data->fan_div[ix] = 2; in set_fan()
563 data->fan_div[ix] = 3; in set_fan()
573 ((data->fan_div[1] << 6) | in set_fan()
574 (data->fan_div[0] << 4) | in set_fan()
649 data->fan_div[0] = (reg >> 4) & 3; in set_pwm()
650 data->fan_div[1] = (reg >> 6) & 3; in set_pwm()
680 ((data->fan_div[1] << 6) | in set_pwm()
681 (data->fan_div[0] << 4) | in set_pwm()