/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | rs780_dpm.c | 426 struct radeon_ps *new_ps, in rs780_set_engine_clock_scaling() argument 474 struct radeon_ps *new_ps, in rs780_set_engine_clock_spc() argument 493 struct radeon_ps *new_ps, in rs780_activate_engine_clk_scaling() argument 523 struct radeon_ps *new_ps) in rs780_enable_voltage_scaling() argument 564 struct radeon_ps *new_ps, in rs780_set_uvd_clock_before_set_eng_clock() argument 570 if ((new_ps->vclk == old_ps->vclk) && in rs780_set_uvd_clock_before_set_eng_clock() 571 (new_ps->dclk == old_ps->dclk)) in rs780_set_uvd_clock_before_set_eng_clock() 577 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rs780_set_uvd_clock_before_set_eng_clock() 581 struct radeon_ps *new_ps, in rs780_set_uvd_clock_after_set_eng_clock() argument 588 (new_ps->dclk == old_ps->dclk)) in rs780_set_uvd_clock_after_set_eng_clock() [all …]
|
H A D | sumo_dpm.c | 670 pi->boost_pl = new_ps->levels[new_ps->num_levels - 1]; in sumo_patch_boost_state() 844 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in sumo_set_uvd_clock_before_set_eng_clock() 862 if (new_ps->levels[new_ps->num_levels - 1].sclk < in sumo_set_uvd_clock_after_set_eng_clock() 1187 pi->current_ps = *new_ps; in sumo_update_current_ps() 1198 pi->requested_ps = *new_ps; in sumo_update_requested_ps() 1306 sumo_patch_boost_state(rdev, new_ps); in sumo_dpm_set_power_state() 1315 sumo_program_wl(rdev, new_ps); in sumo_dpm_set_power_state() 1316 sumo_program_bsp(rdev, new_ps); in sumo_dpm_set_power_state() 1317 sumo_program_at(rdev, new_ps); in sumo_dpm_set_power_state() 1318 sumo_force_nbp_state(rdev, new_ps); in sumo_dpm_set_power_state() [all …]
|
H A D | rv6xx_dpm.c | 966 struct radeon_ps *new_ps, in rv6xx_enable_static_voltage_control() argument 1046 struct radeon_ps *new_ps) in rv6xx_calculate_stepping_parameters() argument 1199 struct radeon_ps *new_ps, in rv6xx_set_sw_voltage_to_safe() argument 1229 struct radeon_ps *new_ps, in rv6xx_set_safe_backbias() argument 1243 struct radeon_ps *new_ps, in rv6xx_set_safe_pcie_gen2() argument 1305 struct radeon_ps *new_ps, in rv6xx_step_voltage_if_increasing() argument 1432 struct radeon_ps *new_ps) in rv6xx_generate_low_step() argument 1452 struct radeon_ps *new_ps) in rv6xx_generate_stepping_table() argument 1494 struct radeon_ps *new_ps, in rv6xx_enable_dynamic_pcie_gen2() argument 1525 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in rv6xx_set_uvd_clock_before_set_eng_clock() [all …]
|
H A D | trinity_dpm.c | 804 for (i = 0; i < new_ps->num_levels; i++) { in trinity_program_power_levels_0_to_n() 925 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in trinity_set_uvd_clock_before_set_eng_clock() 939 if (new_ps->levels[new_ps->num_levels - 1].sclk < in trinity_set_uvd_clock_after_set_eng_clock() 1030 pi->current_ps = *new_ps; in trinity_update_current_ps() 1041 pi->requested_ps = *new_ps; in trinity_update_requested_ps() 1151 DpmXNbPsLo(new_ps->DpmXNbPsLo) | in trinity_setup_nbp_sim() 1152 DpmXNbPsHi(new_ps->DpmXNbPsHi)); in trinity_setup_nbp_sim() 1192 struct radeon_ps *new_ps = &requested_ps; in trinity_dpm_pre_set_power_state() local 1194 trinity_update_requested_ps(rdev, new_ps); in trinity_dpm_pre_set_power_state() 1217 trinity_setup_nbp_sim(rdev, new_ps); in trinity_dpm_set_power_state() [all …]
|
H A D | kv_dpm.c | 984 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() 1545 if (table->entries[i].clk <= new_ps->levels[new_ps->num_levels - 1].sclk) 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() 1571 new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range() 1577 if ((new_ps->levels[0].sclk - in kv_set_valid_clock_range() 1580 new_ps->levels[new_ps->num_levels -1].sclk)) in kv_set_valid_clock_range() 1664 kv_update_requested_ps(rdev, new_ps); in kv_dpm_pre_set_power_state() [all …]
|
H A D | btc_dpm.c | 2259 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 2324 btc_set_at_for_uvd(rdev, new_ps); in btc_dpm_set_power_state() 2326 btc_notify_uvd_to_smc(rdev, new_ps); in btc_dpm_set_power_state() 2327 ret = cypress_upload_sw_state(rdev, new_ps); in btc_dpm_set_power_state() [all …]
|
H A D | ni_dpm.c | 3512 struct radeon_ps *new_ps, in ni_set_uvd_clock_before_set_eng_clock() argument 3518 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_before_set_eng_clock() 3519 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_before_set_eng_clock() 3526 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_before_set_eng_clock() 3530 struct radeon_ps *new_ps, in ni_set_uvd_clock_after_set_eng_clock() argument 3536 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_after_set_eng_clock() 3537 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_after_set_eng_clock() 3544 radeon_set_uvd_clocks(rdev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_after_set_eng_clock() 3572 ni_pi->current_ps = *new_ps; in ni_update_current_ps() 3584 ni_pi->requested_ps = *new_ps; in ni_update_requested_ps() [all …]
|
H A D | rv770_dpm.c | 1434 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 …]
|
H A D | ni_dpm.h | 242 struct radeon_ps *new_ps, 245 struct radeon_ps *new_ps,
|
H A D | rv770_dpm.h | 274 struct radeon_ps *new_ps, 277 struct radeon_ps *new_ps,
|
H A D | cypress_dpm.c | 1960 struct radeon_ps *new_ps = rdev->pm.dpm.requested_ps; in cypress_dpm_set_power_state() local 1970 cypress_notify_link_speed_change_before_state_change(rdev, new_ps, old_ps); in cypress_dpm_set_power_state() 1972 rv770_set_uvd_clock_before_set_eng_clock(rdev, new_ps, old_ps); in cypress_dpm_set_power_state() 1978 ret = cypress_upload_sw_state(rdev, new_ps); in cypress_dpm_set_power_state() 1984 ret = cypress_upload_mc_reg_table(rdev, new_ps); in cypress_dpm_set_power_state() 1991 cypress_program_memory_timing_parameters(rdev, new_ps); in cypress_dpm_set_power_state() 2003 rv770_set_uvd_clock_after_set_eng_clock(rdev, new_ps, old_ps); in cypress_dpm_set_power_state() 2006 cypress_notify_link_speed_change_after_state_change(rdev, new_ps, old_ps); in cypress_dpm_set_power_state()
|
H A D | si_dpm.c | 6504 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() 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 6564 ret = si_enable_smc_cac(rdev, new_ps, false); in si_dpm_set_power_state() 6574 ret = si_upload_sw_state(rdev, new_ps); in si_dpm_set_power_state() 6590 ret = si_upload_mc_reg_table(rdev, new_ps); in si_dpm_set_power_state() 6614 si_set_vce_clock(rdev, new_ps, old_ps); in si_dpm_set_power_state() 6622 ret = si_enable_smc_cac(rdev, new_ps, true); in si_dpm_set_power_state() [all …]
|
H A D | ci_dpm.c | 5072 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 …]
|
/openbmc/linux/drivers/net/wireless/ath/ |
H A D | dfs_pri_detector.c | 229 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()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | pp_psm.c | 247 struct pp_power_state *new_ps) in power_state_management() argument 253 if (new_ps != NULL) in power_state_management() 254 requested = new_ps; in power_state_management() 272 struct pp_power_state *new_ps) in psm_adjust_power_state_dynamic() argument 282 power_state_management(hwmgr, new_ps); in psm_adjust_power_state_dynamic()
|
H A D | pp_psm.h | 38 struct pp_power_state *new_ps);
|
/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | kv_dpm.c | 1215 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps() local 1219 pi->current_ps = *new_ps; in kv_update_current_ps() 1227 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps() local 1231 pi->requested_ps = *new_ps; in kv_update_requested_ps() 1782 if (table->entries[i].clk <= new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range() 1789 (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) in kv_set_valid_clock_range() 1808 new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range() 1814 if ((new_ps->levels[0].sclk - in kv_set_valid_clock_range() 1817 new_ps->levels[new_ps->num_levels - 1].sclk)) in kv_set_valid_clock_range() 1903 kv_update_requested_ps(adev, new_ps); in kv_dpm_pre_set_power_state() [all …]
|
H A D | si_dpm.c | 3149 ni_pi->current_ps = *new_ps; in ni_update_current_ps() 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 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 3192 if ((new_ps->vclk == old_ps->vclk) && in ni_set_uvd_clock_after_set_eng_clock() 3193 (new_ps->dclk == old_ps->dclk)) in ni_set_uvd_clock_after_set_eng_clock() 3200 amdgpu_asic_set_uvd_clocks(adev, new_ps->vclk, new_ps->dclk); in ni_set_uvd_clock_after_set_eng_clock() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/carl9170/ |
H A D | rx.c | 79 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()
|