Lines Matching refs:new_rps
301 struct radeon_ps *new_rps,
796 struct radeon_ps *new_rps, in trinity_program_power_levels_0_to_n() argument
799 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_program_power_levels_0_to_n()
878 struct radeon_ps *new_rps, in trinity_setup_uvd_clocks() argument
888 if (trinity_uvd_clocks_zero(new_rps) && in trinity_setup_uvd_clocks()
891 } else if (!trinity_uvd_clocks_zero(new_rps)) { in trinity_setup_uvd_clocks()
892 trinity_setup_uvd_clock_table(rdev, new_rps); in trinity_setup_uvd_clocks()
899 radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk); in trinity_setup_uvd_clocks()
906 if (trinity_uvd_clocks_zero(new_rps) || in trinity_setup_uvd_clocks()
907 trinity_uvd_clocks_equal(new_rps, old_rps)) in trinity_setup_uvd_clocks()
910 radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk); in trinity_setup_uvd_clocks()
919 struct radeon_ps *new_rps, in trinity_set_uvd_clock_before_set_eng_clock() argument
922 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_before_set_eng_clock()
923 struct trinity_ps *current_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_before_set_eng_clock()
929 trinity_setup_uvd_clocks(rdev, new_rps, old_rps); in trinity_set_uvd_clock_before_set_eng_clock()
933 struct radeon_ps *new_rps, in trinity_set_uvd_clock_after_set_eng_clock() argument
936 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_after_set_eng_clock()
943 trinity_setup_uvd_clocks(rdev, new_rps, old_rps); in trinity_set_uvd_clock_after_set_eng_clock()
947 struct radeon_ps *new_rps, in trinity_set_vce_clock() argument
950 if ((old_rps->evclk != new_rps->evclk) || in trinity_set_vce_clock()
951 (old_rps->ecclk != new_rps->ecclk)) { in trinity_set_vce_clock()
953 if (new_rps->evclk || new_rps->ecclk) in trinity_set_vce_clock()
957 radeon_set_vce_clocks(rdev, new_rps->evclk, new_rps->ecclk); in trinity_set_vce_clock()
1491 struct radeon_ps *new_rps, in trinity_apply_state_adjust_rules() argument
1494 struct trinity_ps *ps = trinity_get_ps(new_rps); in trinity_apply_state_adjust_rules()
1505 if (new_rps->class & ATOM_PPLIB_CLASSIFICATION_THERMAL) in trinity_apply_state_adjust_rules()
1508 trinity_adjust_uvd_state(rdev, new_rps); in trinity_apply_state_adjust_rules()
1510 if (new_rps->vce_active) { in trinity_apply_state_adjust_rules()
1511 new_rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in trinity_apply_state_adjust_rules()
1512 new_rps->ecclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].ecclk; in trinity_apply_state_adjust_rules()
1514 new_rps->evclk = 0; in trinity_apply_state_adjust_rules()
1515 new_rps->ecclk = 0; in trinity_apply_state_adjust_rules()
1527 if (new_rps->vce_active) { in trinity_apply_state_adjust_rules()
1532 trinity_get_vce_clock_voltage(rdev, new_rps->evclk, new_rps->ecclk, &min_vce_voltage); in trinity_apply_state_adjust_rules()
1550 if ((new_rps->class & (ATOM_PPLIB_CLASSIFICATION_HDSTATE | ATOM_PPLIB_CLASSIFICATION_SDSTATE)) || in trinity_apply_state_adjust_rules()
1551 ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_UI_MASK) == ATOM_PPLIB_CLASSIFICATION_UI_BATTERY)) in trinity_apply_state_adjust_rules()
1560 if ((new_rps->class & (ATOM_PPLIB_CLASSIFICATION_HDSTATE | ATOM_PPLIB_CLASSIFICATION_SDSTATE)) || in trinity_apply_state_adjust_rules()
1561 … ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_UI_MASK) == ATOM_PPLIB_CLASSIFICATION_UI_BATTERY)) { in trinity_apply_state_adjust_rules()
1562 force_high = ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_HDSTATE) || in trinity_apply_state_adjust_rules()
1563 ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_SDSTATE) && in trinity_apply_state_adjust_rules()