• Home
  • Raw
  • Download

Lines Matching refs:dpm

79 			rdev->pm.dpm.ac_power = true;  in radeon_pm_acpi_event_handler()
81 rdev->pm.dpm.ac_power = false; in radeon_pm_acpi_event_handler()
83 if (rdev->asic->dpm.enable_bapm) in radeon_pm_acpi_event_handler()
84 radeon_dpm_enable_bapm(rdev, rdev->pm.dpm.ac_power); in radeon_pm_acpi_event_handler()
473 enum radeon_pm_state_type pm = rdev->pm.dpm.user_state; in radeon_get_dpm_state()
490 rdev->pm.dpm.user_state = POWER_STATE_TYPE_BATTERY; in radeon_set_dpm_state()
492 rdev->pm.dpm.user_state = POWER_STATE_TYPE_BALANCED; in radeon_set_dpm_state()
494 rdev->pm.dpm.user_state = POWER_STATE_TYPE_PERFORMANCE; in radeon_set_dpm_state()
517 enum radeon_dpm_forced_level level = rdev->pm.dpm.forced_level; in radeon_get_dpm_forced_performance_level()
554 if (rdev->asic->dpm.force_performance_level) { in radeon_set_dpm_forced_performance_level()
555 if (rdev->pm.dpm.thermal_active) { in radeon_set_dpm_forced_performance_level()
576 if (rdev->asic->dpm.fan_ctrl_get_mode) in radeon_hwmon_get_pwm1_enable()
577 pwm_mode = rdev->asic->dpm.fan_ctrl_get_mode(rdev); in radeon_hwmon_get_pwm1_enable()
592 if(!rdev->asic->dpm.fan_ctrl_set_mode) in radeon_hwmon_set_pwm1_enable()
601 rdev->asic->dpm.fan_ctrl_set_mode(rdev, FDO_PWM_MODE_STATIC); in radeon_hwmon_set_pwm1_enable()
604 rdev->asic->dpm.fan_ctrl_set_mode(rdev, 0); in radeon_hwmon_set_pwm1_enable()
639 err = rdev->asic->dpm.set_fan_speed_percent(rdev, value); in radeon_hwmon_set_pwm1()
654 err = rdev->asic->dpm.get_fan_speed_percent(rdev, &speed); in radeon_hwmon_get_pwm1()
700 temp = rdev->pm.dpm.thermal.min_temp; in radeon_hwmon_show_temp_thresh()
702 temp = rdev->pm.dpm.thermal.max_temp; in radeon_hwmon_show_temp_thresh()
753 if ((!rdev->asic->dpm.get_fan_speed_percent && in hwmon_attributes_visible()
755 (!rdev->asic->dpm.fan_ctrl_get_mode && in hwmon_attributes_visible()
759 if ((!rdev->asic->dpm.set_fan_speed_percent && in hwmon_attributes_visible()
761 (!rdev->asic->dpm.fan_ctrl_set_mode && in hwmon_attributes_visible()
766 if ((!rdev->asic->dpm.set_fan_speed_percent && in hwmon_attributes_visible()
767 !rdev->asic->dpm.get_fan_speed_percent) && in hwmon_attributes_visible()
826 pm.dpm.thermal.work); in radeon_dpm_thermal_work_handler()
836 if (temp < rdev->pm.dpm.thermal.min_temp) in radeon_dpm_thermal_work_handler()
838 dpm_state = rdev->pm.dpm.user_state; in radeon_dpm_thermal_work_handler()
840 if (rdev->pm.dpm.thermal.high_to_low) in radeon_dpm_thermal_work_handler()
842 dpm_state = rdev->pm.dpm.user_state; in radeon_dpm_thermal_work_handler()
846 rdev->pm.dpm.thermal_active = true; in radeon_dpm_thermal_work_handler()
848 rdev->pm.dpm.thermal_active = false; in radeon_dpm_thermal_work_handler()
849 rdev->pm.dpm.state = dpm_state; in radeon_dpm_thermal_work_handler()
857 bool single_display = (rdev->pm.dpm.new_active_crtc_count < 2) ? in radeon_dpm_single_display()
861 if (single_display && rdev->asic->dpm.vblank_too_short) { in radeon_dpm_single_display()
894 for (i = 0; i < rdev->pm.dpm.num_ps; i++) { in radeon_dpm_pick_power_state()
895 ps = &rdev->pm.dpm.ps[i]; in radeon_dpm_pick_power_state()
928 if (rdev->pm.dpm.uvd_ps) in radeon_dpm_pick_power_state()
929 return rdev->pm.dpm.uvd_ps; in radeon_dpm_pick_power_state()
949 return rdev->pm.dpm.boot_ps; in radeon_dpm_pick_power_state()
978 if (rdev->pm.dpm.uvd_ps) { in radeon_dpm_pick_power_state()
979 return rdev->pm.dpm.uvd_ps; in radeon_dpm_pick_power_state()
1014 if (rdev->pm.dpm.user_state != rdev->pm.dpm.state) { in radeon_dpm_change_power_state_locked()
1016 if ((!rdev->pm.dpm.thermal_active) && in radeon_dpm_change_power_state_locked()
1017 (!rdev->pm.dpm.uvd_active)) in radeon_dpm_change_power_state_locked()
1018 rdev->pm.dpm.state = rdev->pm.dpm.user_state; in radeon_dpm_change_power_state_locked()
1020 dpm_state = rdev->pm.dpm.state; in radeon_dpm_change_power_state_locked()
1024 rdev->pm.dpm.requested_ps = ps; in radeon_dpm_change_power_state_locked()
1029 if (rdev->pm.dpm.current_ps == rdev->pm.dpm.requested_ps) { in radeon_dpm_change_power_state_locked()
1031 if (ps->vce_active != rdev->pm.dpm.vce_active) in radeon_dpm_change_power_state_locked()
1034 if (rdev->pm.dpm.single_display != single_display) in radeon_dpm_change_power_state_locked()
1040 if (rdev->pm.dpm.new_active_crtcs != rdev->pm.dpm.current_active_crtcs) { in radeon_dpm_change_power_state_locked()
1045 rdev->pm.dpm.current_active_crtcs = rdev->pm.dpm.new_active_crtcs; in radeon_dpm_change_power_state_locked()
1046 rdev->pm.dpm.current_active_crtc_count = rdev->pm.dpm.new_active_crtc_count; in radeon_dpm_change_power_state_locked()
1054 if (rdev->pm.dpm.new_active_crtcs == in radeon_dpm_change_power_state_locked()
1055 rdev->pm.dpm.current_active_crtcs) { in radeon_dpm_change_power_state_locked()
1058 if ((rdev->pm.dpm.current_active_crtc_count > 1) && in radeon_dpm_change_power_state_locked()
1059 (rdev->pm.dpm.new_active_crtc_count > 1)) { in radeon_dpm_change_power_state_locked()
1064 rdev->pm.dpm.current_active_crtcs = rdev->pm.dpm.new_active_crtcs; in radeon_dpm_change_power_state_locked()
1065 rdev->pm.dpm.current_active_crtc_count = rdev->pm.dpm.new_active_crtc_count; in radeon_dpm_change_power_state_locked()
1075 radeon_dpm_print_power_state(rdev, rdev->pm.dpm.current_ps); in radeon_dpm_change_power_state_locked()
1077 radeon_dpm_print_power_state(rdev, rdev->pm.dpm.requested_ps); in radeon_dpm_change_power_state_locked()
1084 ps->vce_active = rdev->pm.dpm.vce_active; in radeon_dpm_change_power_state_locked()
1106 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps; in radeon_dpm_change_power_state_locked()
1110 rdev->pm.dpm.current_active_crtcs = rdev->pm.dpm.new_active_crtcs; in radeon_dpm_change_power_state_locked()
1111 rdev->pm.dpm.current_active_crtc_count = rdev->pm.dpm.new_active_crtc_count; in radeon_dpm_change_power_state_locked()
1112 rdev->pm.dpm.single_display = single_display; in radeon_dpm_change_power_state_locked()
1114 if (rdev->asic->dpm.force_performance_level) { in radeon_dpm_change_power_state_locked()
1115 if (rdev->pm.dpm.thermal_active) { in radeon_dpm_change_power_state_locked()
1116 enum radeon_dpm_forced_level level = rdev->pm.dpm.forced_level; in radeon_dpm_change_power_state_locked()
1120 rdev->pm.dpm.forced_level = level; in radeon_dpm_change_power_state_locked()
1123 radeon_dpm_force_performance_level(rdev, rdev->pm.dpm.forced_level); in radeon_dpm_change_power_state_locked()
1136 if (rdev->asic->dpm.powergate_uvd) { in radeon_dpm_enable_uvd()
1140 enable |= rdev->pm.dpm.sd > 0; in radeon_dpm_enable_uvd()
1141 enable |= rdev->pm.dpm.hd > 0; in radeon_dpm_enable_uvd()
1148 rdev->pm.dpm.uvd_active = true; in radeon_dpm_enable_uvd()
1151 if ((rdev->pm.dpm.sd == 1) && (rdev->pm.dpm.hd == 0)) in radeon_dpm_enable_uvd()
1153 else if ((rdev->pm.dpm.sd == 2) && (rdev->pm.dpm.hd == 0)) in radeon_dpm_enable_uvd()
1155 else if ((rdev->pm.dpm.sd == 0) && (rdev->pm.dpm.hd == 1)) in radeon_dpm_enable_uvd()
1157 else if ((rdev->pm.dpm.sd == 0) && (rdev->pm.dpm.hd == 2)) in radeon_dpm_enable_uvd()
1162 rdev->pm.dpm.state = dpm_state; in radeon_dpm_enable_uvd()
1166 rdev->pm.dpm.uvd_active = false; in radeon_dpm_enable_uvd()
1178 rdev->pm.dpm.vce_active = true; in radeon_dpm_enable_vce()
1180 rdev->pm.dpm.vce_level = RADEON_VCE_LEVEL_AC_ALL; in radeon_dpm_enable_vce()
1184 rdev->pm.dpm.vce_active = false; in radeon_dpm_enable_vce()
1209 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_suspend_dpm()
1265 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_resume_dpm()
1361 for (i = 0; i < rdev->pm.dpm.num_ps; i++) { in radeon_dpm_print_power_states()
1363 radeon_dpm_print_power_state(rdev, &rdev->pm.dpm.ps[i]); in radeon_dpm_print_power_states()
1372 rdev->pm.dpm.state = POWER_STATE_TYPE_BALANCED; in radeon_pm_init_dpm()
1373 rdev->pm.dpm.user_state = POWER_STATE_TYPE_BALANCED; in radeon_pm_init_dpm()
1374 rdev->pm.dpm.forced_level = RADEON_DPM_FORCED_LEVEL_AUTO; in radeon_pm_init_dpm()
1391 INIT_WORK(&rdev->pm.dpm.thermal.work, radeon_dpm_thermal_work_handler); in radeon_pm_init_dpm()
1394 rdev->pm.dpm.current_ps = rdev->pm.dpm.requested_ps = rdev->pm.dpm.boot_ps; in radeon_pm_init_dpm()
1730 rdev->pm.dpm.new_active_crtcs = 0; in radeon_pm_compute_clocks_dpm()
1731 rdev->pm.dpm.new_active_crtc_count = 0; in radeon_pm_compute_clocks_dpm()
1737 rdev->pm.dpm.new_active_crtcs |= (1 << radeon_crtc->crtc_id); in radeon_pm_compute_clocks_dpm()
1738 rdev->pm.dpm.new_active_crtc_count++; in radeon_pm_compute_clocks_dpm()
1745 rdev->pm.dpm.ac_power = true; in radeon_pm_compute_clocks_dpm()
1747 rdev->pm.dpm.ac_power = false; in radeon_pm_compute_clocks_dpm()
1876 if (rdev->asic->dpm.debugfs_print_current_performance_level) in radeon_debugfs_pm_info()