Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/radeon/
Drs780_dpm.c426 struct radeon_ps *new_ps, in rs780_set_engine_clock_scaling() argument
430 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_scaling()
474 struct radeon_ps *new_ps, in rs780_set_engine_clock_spc() argument
477 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_set_engine_clock_spc()
493 struct radeon_ps *new_ps, in rs780_activate_engine_clk_scaling() argument
496 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_activate_engine_clk_scaling()
523 struct radeon_ps *new_ps) in rs780_enable_voltage_scaling() argument
525 struct igp_ps *new_state = rs780_get_ps(new_ps); in rs780_enable_voltage_scaling()
564 struct radeon_ps *new_ps, in rs780_set_uvd_clock_before_set_eng_clock() argument
567 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.c799 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_program_power_levels_0_to_n() local
804 for (i = 0; i < new_ps->num_levels; i++) { in trinity_program_power_levels_0_to_n()
805 trinity_program_power_level(rdev, &new_ps->levels[i], i); in trinity_program_power_levels_0_to_n()
809 for (i = new_ps->num_levels; i < n_current_state_levels; i++) in trinity_program_power_levels_0_to_n()
922 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_before_set_eng_clock() local
925 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in trinity_set_uvd_clock_before_set_eng_clock()
936 struct trinity_ps *new_ps = trinity_get_ps(new_rps); in trinity_set_uvd_clock_after_set_eng_clock() local
939 if (new_ps->levels[new_ps->num_levels - 1].sclk < in trinity_set_uvd_clock_after_set_eng_clock()
1026 struct trinity_ps *new_ps = trinity_get_ps(rps); in trinity_update_current_ps() local
1030 pi->current_ps = *new_ps; in trinity_update_current_ps()
[all …]
Dkv_dpm.c984 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps() local
988 pi->current_ps = *new_ps; in kv_update_current_ps()
995 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps() local
999 pi->requested_ps = *new_ps; in kv_update_requested_ps()
1529 struct kv_ps *new_ps = kv_get_ps(new_rps); in kv_set_valid_clock_range() local
1537 if ((table->entries[i].clk >= new_ps->levels[0].sclk) || in kv_set_valid_clock_range()
1545 if (table->entries[i].clk <= new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range()
1551 if ((new_ps->levels[0].sclk - table->entries[pi->highest_valid].clk) > in kv_set_valid_clock_range()
1552 (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) in kv_set_valid_clock_range()
1562 if (table->entries[i].sclk_frequency >= new_ps->levels[0].sclk || in kv_set_valid_clock_range()
[all …]
Dbtc_dpm.c2259 struct rv7xx_ps *new_ps = rv770_get_ps(rps); in btc_update_current_ps() local
2263 eg_pi->current_ps = *new_ps; in btc_update_current_ps()
2270 struct rv7xx_ps *new_ps = rv770_get_ps(rps); in btc_update_requested_ps() local
2274 eg_pi->requested_ps = *new_ps; in btc_update_requested_ps()
2292 struct radeon_ps *new_ps = &requested_ps; in btc_dpm_pre_set_power_state() local
2294 btc_update_requested_ps(rdev, new_ps); in btc_dpm_pre_set_power_state()
2304 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_set_power_state() local
2316 cypress_notify_link_speed_change_before_state_change(rdev, new_ps, old_ps); in btc_dpm_set_power_state()
2318 rv770_set_uvd_clock_before_set_eng_clock(rdev, new_ps, old_ps); in btc_dpm_set_power_state()
2324 btc_set_at_for_uvd(rdev, new_ps); in btc_dpm_set_power_state()
[all …]
Dni_dpm.c3508 struct radeon_ps *new_ps, in ni_set_uvd_clock_before_set_eng_clock() argument
3511 struct ni_ps *new_state = ni_get_ps(new_ps); in ni_set_uvd_clock_before_set_eng_clock()
3514 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_before_set_eng_clock()
3515 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_before_set_eng_clock()
3522 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_before_set_eng_clock()
3526 struct radeon_ps *new_ps, in ni_set_uvd_clock_after_set_eng_clock() argument
3529 struct ni_ps *new_state = ni_get_ps(new_ps); in ni_set_uvd_clock_after_set_eng_clock()
3532 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_after_set_eng_clock()
3533 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_after_set_eng_clock()
3540 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_after_set_eng_clock()
[all …]
Drv770_dpm.c1434 struct radeon_ps *new_ps, in rv770_set_uvd_clock_before_set_eng_clock() argument
1437 struct rv7xx_ps *new_state = rv770_get_ps(new_ps); in rv770_set_uvd_clock_before_set_eng_clock()
1440 if ((new_ps->vclk == old_ps->vclk) && in rv770_set_uvd_clock_before_set_eng_clock()
1441 (new_ps->dclk == old_ps->dclk)) in rv770_set_uvd_clock_before_set_eng_clock()
1447 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv770_set_uvd_clock_before_set_eng_clock()
1451 struct radeon_ps *new_ps, in rv770_set_uvd_clock_after_set_eng_clock() argument
1454 struct rv7xx_ps *new_state = rv770_get_ps(new_ps); in rv770_set_uvd_clock_after_set_eng_clock()
1457 if ((new_ps->vclk == old_ps->vclk) && in rv770_set_uvd_clock_after_set_eng_clock()
1458 (new_ps->dclk == old_ps->dclk)) in rv770_set_uvd_clock_after_set_eng_clock()
1464 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.c1956 struct radeon_ps *new_ps = rdev->pm.dpm.requested_ps; in cypress_dpm_set_power_state() local
1966 cypress_notify_link_speed_change_before_state_change(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
1968 rv770_set_uvd_clock_before_set_eng_clock(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
1974 ret = cypress_upload_sw_state(rdev, new_ps); in cypress_dpm_set_power_state()
1980 ret = cypress_upload_mc_reg_table(rdev, new_ps); in cypress_dpm_set_power_state()
1987 cypress_program_memory_timing_parameters(rdev, new_ps); in cypress_dpm_set_power_state()
1999 rv770_set_uvd_clock_after_set_eng_clock(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
2002 cypress_notify_link_speed_change_after_state_change(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
Dsi_dpm.c6504 struct radeon_ps *new_ps = &requested_ps; in si_dpm_pre_set_power_state() local
6506 ni_update_requested_ps(rdev, new_ps); in si_dpm_pre_set_power_state()
6515 struct radeon_ps *new_ps = rdev->pm.dpm.requested_ps; in si_power_control_set_level() local
6524 ret = si_populate_smc_tdp_limits(rdev, new_ps); in si_power_control_set_level()
6527 ret = si_populate_smc_tdp_limits_2(rdev, new_ps); in si_power_control_set_level()
6542 struct radeon_ps *new_ps = &eg_pi->requested_rps; in si_dpm_set_power_state() local
6557 si_request_link_speed_change_before_state_change(rdev, new_ps, old_ps); in si_dpm_set_power_state()
6558 ni_set_uvd_clock_before_set_eng_clock(rdev, new_ps, old_ps); in si_dpm_set_power_state()
6559 ret = si_enable_power_containment(rdev, new_ps, false); in si_dpm_set_power_state()
6564 ret = si_enable_smc_cac(rdev, new_ps, false); in si_dpm_set_power_state()
[all …]
Dci_dpm.c5072 struct ci_ps *new_ps = ci_get_ps(rps); in ci_update_current_ps() local
5076 pi->current_ps = *new_ps; in ci_update_current_ps()
5083 struct ci_ps *new_ps = ci_get_ps(rps); in ci_update_requested_ps() local
5087 pi->requested_ps = *new_ps; in ci_update_requested_ps()
5095 struct radeon_ps *new_ps = &requested_ps; in ci_dpm_pre_set_power_state() local
5097 ci_update_requested_ps(rdev, new_ps); in ci_dpm_pre_set_power_state()
5107 struct radeon_ps *new_ps = &pi->requested_rps; in ci_dpm_post_set_power_state() local
5109 ci_update_current_ps(rdev, new_ps); in ci_dpm_post_set_power_state()
5315 struct radeon_ps *new_ps = &pi->requested_rps; in ci_dpm_set_power_state() local
5319 ci_find_dpm_states_clocks_in_dpm_table(rdev, new_ps); in ci_dpm_set_power_state()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/
Ddfs_pri_detector.c229 struct pri_sequence ps, *new_ps; in pseq_handler_create_sequences() local
285 new_ps = pool_get_pseq_elem(); in pseq_handler_create_sequences()
286 if (new_ps == NULL) { in pseq_handler_create_sequences()
287 new_ps = kmalloc(sizeof(*new_ps), GFP_ATOMIC); in pseq_handler_create_sequences()
288 if (new_ps == NULL) { in pseq_handler_create_sequences()
295 memcpy(new_ps, &ps, sizeof(ps)); in pseq_handler_create_sequences()
296 INIT_LIST_HEAD(&new_ps->head); in pseq_handler_create_sequences()
297 list_add(&new_ps->head, &pde->sequences); in pseq_handler_create_sequences()
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dpp_psm.c244 struct pp_power_state *new_ps) in power_state_management() argument
250 if (new_ps != NULL) in power_state_management()
251 requested = new_ps; in power_state_management()
269 struct pp_power_state *new_ps) in psm_adjust_power_state_dynamic() argument
279 power_state_management(hwmgr, new_ps); in psm_adjust_power_state_dynamic()
Dpp_psm.h38 struct pp_power_state *new_ps);
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/
Dkv_dpm.c1226 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps() local
1230 pi->current_ps = *new_ps; in kv_update_current_ps()
1238 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps() local
1242 pi->requested_ps = *new_ps; in kv_update_requested_ps()
1777 struct kv_ps *new_ps = kv_get_ps(new_rps); in kv_set_valid_clock_range() local
1785 if ((table->entries[i].clk >= new_ps->levels[0].sclk) || in kv_set_valid_clock_range()
1793 if (table->entries[i].clk <= new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range()
1799 if ((new_ps->levels[0].sclk - table->entries[pi->highest_valid].clk) > in kv_set_valid_clock_range()
1800 (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) in kv_set_valid_clock_range()
1810 if (table->entries[i].sclk_frequency >= new_ps->levels[0].sclk || in kv_set_valid_clock_range()
[all …]
Dsi_dpm.c3144 struct si_ps *new_ps = si_get_ps(rps); in ni_update_current_ps() local
3149 ni_pi->current_ps = *new_ps; in ni_update_current_ps()
3157 struct si_ps *new_ps = si_get_ps(rps); in ni_update_requested_ps() local
3162 ni_pi->requested_ps = *new_ps; in ni_update_requested_ps()
3168 struct amdgpu_ps *new_ps, in ni_set_uvd_clock_before_set_eng_clock() argument
3171 struct si_ps *new_state = si_get_ps(new_ps); in ni_set_uvd_clock_before_set_eng_clock()
3174 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_before_set_eng_clock()
3175 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_before_set_eng_clock()
3182 amdgpu_asic_set_uvd_clocks(adev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_before_set_eng_clock()
3186 struct amdgpu_ps *new_ps, in ni_set_uvd_clock_after_set_eng_clock() argument
[all …]
/linux-6.1.9/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()