Lines Matching refs:new_rps
344 struct radeon_ps *new_rps,
839 struct radeon_ps *new_rps, in trinity_program_power_levels_0_to_n() argument
842 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_program_power_levels_0_to_n()
921 struct radeon_ps *new_rps, in trinity_setup_uvd_clocks() argument
931 if (trinity_uvd_clocks_zero(new_rps) && in trinity_setup_uvd_clocks()
934 } else if (!trinity_uvd_clocks_zero(new_rps)) { in trinity_setup_uvd_clocks()
935 trinity_setup_uvd_clock_table(rdev, new_rps); in trinity_setup_uvd_clocks()
942 radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk); in trinity_setup_uvd_clocks()
949 if (trinity_uvd_clocks_zero(new_rps) || in trinity_setup_uvd_clocks()
950 trinity_uvd_clocks_equal(new_rps, old_rps)) in trinity_setup_uvd_clocks()
953 radeon_set_uvd_clocks(rdev, new_rps->vclk, new_rps->dclk); in trinity_setup_uvd_clocks()
962 struct radeon_ps *new_rps, in trinity_set_uvd_clock_before_set_eng_clock() argument
965 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_before_set_eng_clock()
966 struct trinity_ps *current_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_before_set_eng_clock()
972 trinity_setup_uvd_clocks(rdev, new_rps, old_rps); in trinity_set_uvd_clock_before_set_eng_clock()
976 struct radeon_ps *new_rps, in trinity_set_uvd_clock_after_set_eng_clock() argument
979 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_after_set_eng_clock()
986 trinity_setup_uvd_clocks(rdev, new_rps, old_rps); in trinity_set_uvd_clock_after_set_eng_clock()
990 struct radeon_ps *new_rps, in trinity_set_vce_clock() argument
993 if ((old_rps->evclk != new_rps->evclk) || in trinity_set_vce_clock()
994 (old_rps->ecclk != new_rps->ecclk)) { in trinity_set_vce_clock()
996 if (new_rps->evclk || new_rps->ecclk) in trinity_set_vce_clock()
1000 radeon_set_vce_clocks(rdev, new_rps->evclk, new_rps->ecclk); in trinity_set_vce_clock()
1534 struct radeon_ps *new_rps, in trinity_apply_state_adjust_rules() argument
1537 struct trinity_ps *ps = trinity_get_ps(new_rps); in trinity_apply_state_adjust_rules()
1548 if (new_rps->class & ATOM_PPLIB_CLASSIFICATION_THERMAL) in trinity_apply_state_adjust_rules()
1551 trinity_adjust_uvd_state(rdev, new_rps); in trinity_apply_state_adjust_rules()
1553 if (new_rps->vce_active) { in trinity_apply_state_adjust_rules()
1554 new_rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk; in trinity_apply_state_adjust_rules()
1555 new_rps->ecclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].ecclk; in trinity_apply_state_adjust_rules()
1557 new_rps->evclk = 0; in trinity_apply_state_adjust_rules()
1558 new_rps->ecclk = 0; in trinity_apply_state_adjust_rules()
1570 if (new_rps->vce_active) { in trinity_apply_state_adjust_rules()
1575 trinity_get_vce_clock_voltage(rdev, new_rps->evclk, new_rps->ecclk, &min_vce_voltage); in trinity_apply_state_adjust_rules()
1593 if ((new_rps->class & (ATOM_PPLIB_CLASSIFICATION_HDSTATE | ATOM_PPLIB_CLASSIFICATION_SDSTATE)) || in trinity_apply_state_adjust_rules()
1594 ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_UI_MASK) == ATOM_PPLIB_CLASSIFICATION_UI_BATTERY)) in trinity_apply_state_adjust_rules()
1603 if ((new_rps->class & (ATOM_PPLIB_CLASSIFICATION_HDSTATE | ATOM_PPLIB_CLASSIFICATION_SDSTATE)) || in trinity_apply_state_adjust_rules()
1604 … ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_UI_MASK) == ATOM_PPLIB_CLASSIFICATION_UI_BATTERY)) { in trinity_apply_state_adjust_rules()
1605 force_high = ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_HDSTATE) || in trinity_apply_state_adjust_rules()
1606 ((new_rps->class & ATOM_PPLIB_CLASSIFICATION_SDSTATE) && in trinity_apply_state_adjust_rules()