Lines Matching refs:fan_div
133 u8 fan_div[2]; member
300 data->fan_div[0] = (val >> 4) & 3; in vt1211_update_device()
301 data->fan_div[1] = (val >> 6) & 3; in vt1211_update_device()
509 res = RPM_FROM_REG(data->fan[ix], data->fan_div[ix]); in show_fan()
512 res = RPM_FROM_REG(data->fan_min[ix], data->fan_div[ix]); in show_fan()
515 res = DIV_FROM_REG(data->fan_div[ix]); in show_fan()
548 data->fan_div[0] = (reg >> 4) & 3; in set_fan()
549 data->fan_div[1] = (reg >> 6) & 3; in set_fan()
554 data->fan_min[ix] = RPM_TO_REG(val, data->fan_div[ix]); in set_fan()
561 data->fan_div[ix] = 0; in set_fan()
564 data->fan_div[ix] = 1; in set_fan()
567 data->fan_div[ix] = 2; in set_fan()
570 data->fan_div[ix] = 3; in set_fan()
579 ((data->fan_div[1] << 6) | in set_fan()
580 (data->fan_div[0] << 4) | in set_fan()
655 data->fan_div[0] = (reg >> 4) & 3; in set_pwm()
656 data->fan_div[1] = (reg >> 6) & 3; in set_pwm()
685 ((data->fan_div[1] << 6) | in set_pwm()
686 (data->fan_div[0] << 4) | in set_pwm()