Home
last modified time | relevance | path

Searched refs:new_ps (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/radeon/
Drs780_dpm.c428 struct radeon_ps *new_ps, in rs780_set_engine_clock_scaling() argument
432 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_scaling()
476 struct radeon_ps *new_ps, in rs780_set_engine_clock_spc() argument
479 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_spc()
495 struct radeon_ps *new_ps, in rs780_activate_engine_clk_scaling() argument
498 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_activate_engine_clk_scaling()
525 struct radeon_ps *new_ps) in rs780_enable_voltage_scaling() argument
527 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_enable_voltage_scaling()
566 struct radeon_ps *new_ps, in rs780_set_uvd_clock_before_set_eng_clock() argument
569 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_uvd_clock_before_set_eng_clock()
[all …]
Dsumo_dpm.c667 struct sumo_ps *new_ps = sumo_get_ps(rps); in sumo_patch_boost_state() local
669 if (new_ps->flags & SUMO_POWERSTATE_FLAGS_BOOST_STATE) { in sumo_patch_boost_state()
670 pi->boost_pl = new_ps->levels[new_ps->num_levels - 1]; in sumo_patch_boost_state()
681 struct sumo_ps *new_ps = sumo_get_ps(new_rps); in sumo_pre_notify_alt_vddnb_change() local
689 nbps1_new = (new_ps->flags & SUMO_POWERSTATE_FLAGS_FORCE_NBPS1_STATE) ? 1 : 0; in sumo_pre_notify_alt_vddnb_change()
699 struct sumo_ps *new_ps = sumo_get_ps(new_rps); in sumo_post_notify_alt_vddnb_change() local
707 nbps1_new = (new_ps->flags & SUMO_POWERSTATE_FLAGS_FORCE_NBPS1_STATE)? 1 : 0; in sumo_post_notify_alt_vddnb_change()
717 struct sumo_ps *new_ps = sumo_get_ps(rps); in sumo_enable_boost() local
720 if (new_ps->flags & SUMO_POWERSTATE_FLAGS_BOOST_STATE) in sumo_enable_boost()
739 struct sumo_ps *new_ps = sumo_get_ps(rps); in sumo_program_wl() local
[all …]
Drv6xx_dpm.c966 struct radeon_ps *new_ps, in rv6xx_enable_static_voltage_control() argument
969 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_enable_static_voltage_control()
1046 struct radeon_ps *new_ps) in rv6xx_calculate_stepping_parameters() argument
1048 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_calculate_stepping_parameters()
1199 struct radeon_ps *new_ps, in rv6xx_set_sw_voltage_to_safe() argument
1202 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_set_sw_voltage_to_safe()
1229 struct radeon_ps *new_ps, in rv6xx_set_safe_backbias() argument
1232 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_set_safe_backbias()
1243 struct radeon_ps *new_ps, in rv6xx_set_safe_pcie_gen2() argument
1246 struct rv6xx_ps *new_state = rv6xx_get_ps(new_ps); in rv6xx_set_safe_pcie_gen2()
[all …]
Dtrinity_dpm.c844 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_program_power_levels_0_to_n() local
849 for (i = 0; i < new_ps->num_levels; i++) { in trinity_program_power_levels_0_to_n()
850 trinity_program_power_level(rdev, &new_ps->levels[i], i); in trinity_program_power_levels_0_to_n()
854 for (i = new_ps->num_levels; i < n_current_state_levels; i++) in trinity_program_power_levels_0_to_n()
967 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_before_set_eng_clock() local
970 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in trinity_set_uvd_clock_before_set_eng_clock()
981 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_after_set_eng_clock() local
984 if (new_ps->levels[new_ps->num_levels - 1].sclk < in trinity_set_uvd_clock_after_set_eng_clock()
1071 struct trinity_ps *new_ps = trinity_get_ps(rps); in trinity_update_current_ps() local
1075 pi->current_ps = *new_ps; in trinity_update_current_ps()
[all …]
Dkv_dpm.c1143 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps() local
1147 pi->current_ps = *new_ps; in kv_update_current_ps()
1154 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps() local
1158 pi->requested_ps = *new_ps; in kv_update_requested_ps()
1710 struct kv_ps *new_ps = kv_get_ps(new_rps); in kv_set_valid_clock_range() local
1718 if ((table->entries[i].clk >= new_ps->levels[0].sclk) || in kv_set_valid_clock_range()
1726 if (table->entries[i].clk <= new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range()
1732 if ((new_ps->levels[0].sclk - table->entries[pi->highest_valid].clk) > in kv_set_valid_clock_range()
1733 (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) in kv_set_valid_clock_range()
1743 if (table->entries[i].sclk_frequency >= new_ps->levels[0].sclk || in kv_set_valid_clock_range()
[all …]
Dbtc_dpm.c2262 struct rv7xx_ps *new_ps = rv770_get_ps(rps); in btc_update_current_ps() local
2266 eg_pi->current_ps = *new_ps; in btc_update_current_ps()
2273 struct rv7xx_ps *new_ps = rv770_get_ps(rps); in btc_update_requested_ps() local
2277 eg_pi->requested_ps = *new_ps; in btc_update_requested_ps()
2295 struct radeon_ps *new_ps = &requested_ps; in btc_dpm_pre_set_power_state() local
2297 btc_update_requested_ps(rdev, new_ps); in btc_dpm_pre_set_power_state()
2307 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_set_power_state() local
2319 cypress_notify_link_speed_change_before_state_change(rdev, new_ps, old_ps); in btc_dpm_set_power_state()
2321 rv770_set_uvd_clock_before_set_eng_clock(rdev, new_ps, old_ps); in btc_dpm_set_power_state()
2327 btc_set_at_for_uvd(rdev, new_ps); in btc_dpm_set_power_state()
[all …]
Dni_dpm.c3509 struct radeon_ps *new_ps, in ni_set_uvd_clock_before_set_eng_clock() argument
3512 struct ni_ps *new_state = ni_get_ps(new_ps); in ni_set_uvd_clock_before_set_eng_clock()
3515 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_before_set_eng_clock()
3516 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_before_set_eng_clock()
3523 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_before_set_eng_clock()
3527 struct radeon_ps *new_ps, in ni_set_uvd_clock_after_set_eng_clock() argument
3530 struct ni_ps *new_state = ni_get_ps(new_ps); in ni_set_uvd_clock_after_set_eng_clock()
3533 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_after_set_eng_clock()
3534 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_after_set_eng_clock()
3541 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_after_set_eng_clock()
[all …]
Drv770_dpm.c1432 struct radeon_ps *new_ps, in rv770_set_uvd_clock_before_set_eng_clock() argument
1435 struct rv7xx_ps *new_state = rv770_get_ps(new_ps); in rv770_set_uvd_clock_before_set_eng_clock()
1438 if ((new_ps->vclk == old_ps->vclk) && in rv770_set_uvd_clock_before_set_eng_clock()
1439 (new_ps->dclk == old_ps->dclk)) in rv770_set_uvd_clock_before_set_eng_clock()
1445 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv770_set_uvd_clock_before_set_eng_clock()
1449 struct radeon_ps *new_ps, in rv770_set_uvd_clock_after_set_eng_clock() argument
1452 struct rv7xx_ps *new_state = rv770_get_ps(new_ps); in rv770_set_uvd_clock_after_set_eng_clock()
1455 if ((new_ps->vclk == old_ps->vclk) && in rv770_set_uvd_clock_after_set_eng_clock()
1456 (new_ps->dclk == old_ps->dclk)) in rv770_set_uvd_clock_after_set_eng_clock()
1462 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv770_set_uvd_clock_after_set_eng_clock()
[all …]
Dni_dpm.h242 struct radeon_ps *new_ps,
245 struct radeon_ps *new_ps,
Drv770_dpm.h274 struct radeon_ps *new_ps,
277 struct radeon_ps *new_ps,
Dcypress_dpm.c1958 struct radeon_ps *new_ps = rdev->pm.dpm.requested_ps; in cypress_dpm_set_power_state() local
1968 cypress_notify_link_speed_change_before_state_change(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
1970 rv770_set_uvd_clock_before_set_eng_clock(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
1976 ret = cypress_upload_sw_state(rdev, new_ps); in cypress_dpm_set_power_state()
1982 ret = cypress_upload_mc_reg_table(rdev, new_ps); in cypress_dpm_set_power_state()
1989 cypress_program_memory_timing_parameters(rdev, new_ps); in cypress_dpm_set_power_state()
2001 rv770_set_uvd_clock_after_set_eng_clock(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
2004 cypress_notify_link_speed_change_after_state_change(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
Dsi_dpm.c6524 struct radeon_ps *new_ps = &requested_ps; in si_dpm_pre_set_power_state() local
6526 ni_update_requested_ps(rdev, new_ps); in si_dpm_pre_set_power_state()
6535 struct radeon_ps *new_ps = rdev->pm.dpm.requested_ps; in si_power_control_set_level() local
6544 ret = si_populate_smc_tdp_limits(rdev, new_ps); in si_power_control_set_level()
6547 ret = si_populate_smc_tdp_limits_2(rdev, new_ps); in si_power_control_set_level()
6562 struct radeon_ps *new_ps = &eg_pi->requested_rps; in si_dpm_set_power_state() local
6577 si_request_link_speed_change_before_state_change(rdev, new_ps, old_ps); in si_dpm_set_power_state()
6578 ni_set_uvd_clock_before_set_eng_clock(rdev, new_ps, old_ps); in si_dpm_set_power_state()
6579 ret = si_enable_power_containment(rdev, new_ps, false); in si_dpm_set_power_state()
6584 ret = si_enable_smc_cac(rdev, new_ps, false); in si_dpm_set_power_state()
[all …]
Dci_dpm.c5111 struct ci_ps *new_ps = ci_get_ps(rps); in ci_update_current_ps() local
5115 pi->current_ps = *new_ps; in ci_update_current_ps()
5122 struct ci_ps *new_ps = ci_get_ps(rps); in ci_update_requested_ps() local
5126 pi->requested_ps = *new_ps; in ci_update_requested_ps()
5134 struct radeon_ps *new_ps = &requested_ps; in ci_dpm_pre_set_power_state() local
5136 ci_update_requested_ps(rdev, new_ps); in ci_dpm_pre_set_power_state()
5146 struct radeon_ps *new_ps = &pi->requested_rps; in ci_dpm_post_set_power_state() local
5148 ci_update_current_ps(rdev, new_ps); in ci_dpm_post_set_power_state()
5354 struct radeon_ps *new_ps = &pi->requested_rps; in ci_dpm_set_power_state() local
5358 ci_find_dpm_states_clocks_in_dpm_table(rdev, new_ps); in ci_dpm_set_power_state()
[all …]
/Linux-v5.4/drivers/net/wireless/ath/
Ddfs_pri_detector.c230 struct pri_sequence ps, *new_ps; in pseq_handler_create_sequences() local
286 new_ps = pool_get_pseq_elem(); in pseq_handler_create_sequences()
287 if (new_ps == NULL) { in pseq_handler_create_sequences()
288 new_ps = kmalloc(sizeof(*new_ps), GFP_ATOMIC); in pseq_handler_create_sequences()
289 if (new_ps == NULL) { in pseq_handler_create_sequences()
296 memcpy(new_ps, &ps, sizeof(ps)); in pseq_handler_create_sequences()
297 INIT_LIST_HEAD(&new_ps->head); in pseq_handler_create_sequences()
298 list_add(&new_ps->head, &pde->sequences); in pseq_handler_create_sequences()
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/
Dpp_psm.c235 struct pp_power_state *new_ps) in power_state_management() argument
241 if (new_ps != NULL) in power_state_management()
242 requested = new_ps; in power_state_management()
260 struct pp_power_state *new_ps) in psm_adjust_power_state_dynamic() argument
269 power_state_management(hwmgr, new_ps); in psm_adjust_power_state_dynamic()
Dpp_psm.h38 struct pp_power_state *new_ps);
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Dkv_dpm.c1225 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps() local
1229 pi->current_ps = *new_ps; in kv_update_current_ps()
1237 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps() local
1241 pi->requested_ps = *new_ps; in kv_update_requested_ps()
1774 struct kv_ps *new_ps = kv_get_ps(new_rps); in kv_set_valid_clock_range() local
1782 if ((table->entries[i].clk >= new_ps->levels[0].sclk) || in kv_set_valid_clock_range()
1790 if (table->entries[i].clk <= new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range()
1796 if ((new_ps->levels[0].sclk - table->entries[pi->highest_valid].clk) > in kv_set_valid_clock_range()
1797 (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) in kv_set_valid_clock_range()
1807 if (table->entries[i].sclk_frequency >= new_ps->levels[0].sclk || in kv_set_valid_clock_range()
[all …]
Dsi_dpm.c3149 struct si_ps *new_ps = si_get_ps(rps); in ni_update_current_ps() local
3154 ni_pi->current_ps = *new_ps; in ni_update_current_ps()
3162 struct si_ps *new_ps = si_get_ps(rps); in ni_update_requested_ps() local
3167 ni_pi->requested_ps = *new_ps; in ni_update_requested_ps()
3173 struct amdgpu_ps *new_ps, in ni_set_uvd_clock_before_set_eng_clock() argument
3176 struct si_ps *new_state = si_get_ps(new_ps); in ni_set_uvd_clock_before_set_eng_clock()
3179 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_before_set_eng_clock()
3180 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_before_set_eng_clock()
3187 amdgpu_asic_set_uvd_clocks(adev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_before_set_eng_clock()
3191 struct amdgpu_ps *new_ps, in ni_set_uvd_clock_after_set_eng_clock() argument
[all …]
/Linux-v5.4/drivers/net/wireless/ath/carl9170/
Drx.c79 bool new_ps; in carl9170_handle_ps() local
83 new_ps = (ps & CARL9170_PSM_COUNTER) != CARL9170_PSM_WAKE; in carl9170_handle_ps()
84 if (ar->ps.state != new_ps) { in carl9170_handle_ps()
85 if (!new_ps) { in carl9170_handle_ps()
92 ar->ps.state = new_ps; in carl9170_handle_ps()