Home
last modified time | relevance | path

Searched refs:smc_state (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/radeon/
Dni_dpm.c2296 NISLANDS_SMC_SWSTATE *smc_state) in ni_populate_smc_sp() argument
2303 smc_state->levels[i].bSP = cpu_to_be32(pi->dsp); in ni_populate_smc_sp()
2305 smc_state->levels[ps->performance_level_count - 1].bSP = in ni_populate_smc_sp()
2392 NISLANDS_SMC_SWSTATE *smc_state) in ni_populate_smc_t() argument
2407 smc_state->levels[0].aT = cpu_to_be32(a_t); in ni_populate_smc_t()
2411 smc_state->levels[0].aT = cpu_to_be32(0); in ni_populate_smc_t()
2436 a_t = be32_to_cpu(smc_state->levels[i].aT) & ~CG_R_MASK; in ni_populate_smc_t()
2438 smc_state->levels[i].aT = cpu_to_be32(a_t); in ni_populate_smc_t()
2444 smc_state->levels[i + 1].aT = cpu_to_be32(a_t); in ni_populate_smc_t()
2452 NISLANDS_SMC_SWSTATE *smc_state) in ni_populate_power_containment_values() argument
[all …]
Dsi_dpm.c2268 SISLANDS_SMC_SWSTATE *smc_state) in si_populate_power_containment_values() argument
2291 if (smc_state->levelCount != state->performance_level_count) in si_populate_power_containment_values()
2296 smc_state->levels[0].dpm2.MaxPS = 0; in si_populate_power_containment_values()
2297 smc_state->levels[0].dpm2.NearTDPDec = 0; in si_populate_power_containment_values()
2298 smc_state->levels[0].dpm2.AboveSafeInc = 0; in si_populate_power_containment_values()
2299 smc_state->levels[0].dpm2.BelowSafeInc = 0; in si_populate_power_containment_values()
2300 smc_state->levels[0].dpm2.PwrEfficiencyRatio = 0; in si_populate_power_containment_values()
2350smc_state->levels[i].dpm2.MaxPS = (u8)((SISLANDS_DPM2_MAX_PULSE_SKIP * (max_sclk - min_sclk)) / ma… in si_populate_power_containment_values()
2351 smc_state->levels[i].dpm2.NearTDPDec = SISLANDS_DPM2_NEAR_TDP_DEC; in si_populate_power_containment_values()
2352 smc_state->levels[i].dpm2.AboveSafeInc = SISLANDS_DPM2_ABOVE_SAFE_INC; in si_populate_power_containment_values()
[all …]
Dcypress_dpm.c763 RV770_SMC_SWSTATE *smc_state) in cypress_convert_power_state_to_smc() argument
770 smc_state->flags |= PPSMC_SWSTATE_FLAG_DC; in cypress_convert_power_state_to_smc()
774 &smc_state->levels[0], in cypress_convert_power_state_to_smc()
781 &smc_state->levels[1], in cypress_convert_power_state_to_smc()
788 &smc_state->levels[2], in cypress_convert_power_state_to_smc()
793 smc_state->levels[0].arbValue = MC_CG_ARB_FREQ_F1; in cypress_convert_power_state_to_smc()
794 smc_state->levels[1].arbValue = MC_CG_ARB_FREQ_F2; in cypress_convert_power_state_to_smc()
795 smc_state->levels[2].arbValue = MC_CG_ARB_FREQ_F3; in cypress_convert_power_state_to_smc()
798 smc_state->levels[0].ACIndex = 2; in cypress_convert_power_state_to_smc()
799 smc_state->levels[1].ACIndex = 3; in cypress_convert_power_state_to_smc()
[all …]
Drv770_dpm.c259 RV770_SMC_SWSTATE *smc_state) in rv770_populate_smc_t() argument
291 smc_state->levels[i].aT = cpu_to_be32(a_t); in rv770_populate_smc_t()
297 smc_state->levels[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1].aT = in rv770_populate_smc_t()
305 RV770_SMC_SWSTATE *smc_state) in rv770_populate_smc_sp() argument
311 smc_state->levels[i].bSP = cpu_to_be32(pi->dsp); in rv770_populate_smc_sp()
313 smc_state->levels[RV770_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1].bSP = in rv770_populate_smc_sp()
677 RV770_SMC_SWSTATE *smc_state) in rv770_convert_power_state_to_smc() argument
683 smc_state->flags |= PPSMC_SWSTATE_FLAG_DC; in rv770_convert_power_state_to_smc()
687 &smc_state->levels[0], in rv770_convert_power_state_to_smc()
694 &smc_state->levels[1], in rv770_convert_power_state_to_smc()
[all …]
Drv770_dpm.h231 RV770_SMC_SWSTATE *smc_state);
234 RV770_SMC_SWSTATE *smc_state);
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/
Dsi_dpm.c2382 SISLANDS_SMC_SWSTATE *smc_state) in si_populate_power_containment_values() argument
2405 if (smc_state->levelCount != state->performance_level_count) in si_populate_power_containment_values()
2410 smc_state->levels[0].dpm2.MaxPS = 0; in si_populate_power_containment_values()
2411 smc_state->levels[0].dpm2.NearTDPDec = 0; in si_populate_power_containment_values()
2412 smc_state->levels[0].dpm2.AboveSafeInc = 0; in si_populate_power_containment_values()
2413 smc_state->levels[0].dpm2.BelowSafeInc = 0; in si_populate_power_containment_values()
2414 smc_state->levels[0].dpm2.PwrEfficiencyRatio = 0; in si_populate_power_containment_values()
2463smc_state->levels[i].dpm2.MaxPS = (u8)((SISLANDS_DPM2_MAX_PULSE_SKIP * (max_sclk - min_sclk)) / ma… in si_populate_power_containment_values()
2464 smc_state->levels[i].dpm2.NearTDPDec = SISLANDS_DPM2_NEAR_TDP_DEC; in si_populate_power_containment_values()
2465 smc_state->levels[i].dpm2.AboveSafeInc = SISLANDS_DPM2_ABOVE_SAFE_INC; in si_populate_power_containment_values()
[all …]
/linux-6.1.9/net/smc/
Dsmc.h41 enum smc_state { /* possible states of an SMC socket */ enum