Lines Matching refs:pwm_mode
2308 u32 pwm_mode = 0; in amdgpu_hwmon_get_pwm1_enable() local
2322 ret = amdgpu_dpm_get_fan_control_mode(adev, &pwm_mode); in amdgpu_hwmon_get_pwm1_enable()
2330 return sysfs_emit(buf, "%u\n", pwm_mode); in amdgpu_hwmon_get_pwm1_enable()
2389 u32 pwm_mode; in amdgpu_hwmon_set_pwm1() local
2406 err = amdgpu_dpm_get_fan_control_mode(adev, &pwm_mode); in amdgpu_hwmon_set_pwm1()
2410 if (pwm_mode != AMD_FAN_CTRL_MANUAL) { in amdgpu_hwmon_set_pwm1()
2589 u32 pwm_mode; in amdgpu_hwmon_set_fan1_target() local
2606 err = amdgpu_dpm_get_fan_control_mode(adev, &pwm_mode); in amdgpu_hwmon_set_fan1_target()
2610 if (pwm_mode != AMD_FAN_CTRL_MANUAL) { in amdgpu_hwmon_set_fan1_target()
2632 u32 pwm_mode = 0; in amdgpu_hwmon_get_fan1_enable() local
2646 ret = amdgpu_dpm_get_fan_control_mode(adev, &pwm_mode); in amdgpu_hwmon_get_fan1_enable()
2654 return sysfs_emit(buf, "%i\n", pwm_mode == AMD_FAN_CTRL_AUTO ? 0 : 1); in amdgpu_hwmon_get_fan1_enable()
2665 u32 pwm_mode; in amdgpu_hwmon_set_fan1_enable() local
2677 pwm_mode = AMD_FAN_CTRL_AUTO; in amdgpu_hwmon_set_fan1_enable()
2679 pwm_mode = AMD_FAN_CTRL_MANUAL; in amdgpu_hwmon_set_fan1_enable()
2689 err = amdgpu_dpm_set_fan_control_mode(adev, pwm_mode); in amdgpu_hwmon_set_fan1_enable()