/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | rv740_dpm.c | 194 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv770.mclk_pwrmgt_cntl; in rv740_populate_mclk_value() local 267 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in rv740_populate_mclk_value() 268 mclk_pwrmgt_cntl |= DLL_SPEED(dll_speed); in rv740_populate_mclk_value() 275 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv740_populate_mclk_value() 306 pi->clk_regs.rv770.mclk_pwrmgt_cntl = in rv740_read_clock_registers() 324 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv770.mclk_pwrmgt_cntl; in rv740_populate_smc_acpi_state() local 349 mclk_pwrmgt_cntl |= (MRDCKA0_RESET | in rv740_populate_smc_acpi_state() 376 table->ACPIState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv740_populate_smc_acpi_state()
|
D | rv730_dpm.c | 121 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv730.mclk_pwrmgt_cntl; in rv730_populate_mclk_value() local 183 mclk->mclk730.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv730_populate_mclk_value() 210 pi->clk_regs.rv730.mclk_pwrmgt_cntl = in rv730_read_clock_registers() 233 u32 mclk_pwrmgt_cntl; in rv730_populate_smc_acpi_state() local 265 mclk_pwrmgt_cntl = (MRDCKA_RESET | in rv730_populate_smc_acpi_state() 297 table->ACPIState.levels[0].mclk.mclk730.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv730_populate_smc_acpi_state() 331 cpu_to_be32(pi->clk_regs.rv730.mclk_pwrmgt_cntl); in rv730_populate_smc_initial_state()
|
D | cypress_dpm.c | 487 u32 mclk_pwrmgt_cntl = in cypress_populate_mclk_value() local 488 pi->clk_regs.rv770.mclk_pwrmgt_cntl; in cypress_populate_mclk_value() 575 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in cypress_populate_mclk_value() 576 mclk_pwrmgt_cntl |= DLL_SPEED(dll_speed); in cypress_populate_mclk_value() 578 mclk_pwrmgt_cntl |= (MRDCKA0_PDNB | in cypress_populate_mclk_value() 587 mclk_pwrmgt_cntl &= ~(MRDCKA0_PDNB | in cypress_populate_mclk_value() 601 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in cypress_populate_mclk_value() 1251 cpu_to_be32(pi->clk_regs.rv770.mclk_pwrmgt_cntl); in cypress_populate_smc_initial_state() 1348 u32 mclk_pwrmgt_cntl = in cypress_populate_smc_acpi_state() local 1349 pi->clk_regs.rv770.mclk_pwrmgt_cntl; in cypress_populate_smc_acpi_state() [all …]
|
D | rv770_dpm.h | 39 u32 mclk_pwrmgt_cntl; member 51 u32 mclk_pwrmgt_cntl; member
|
D | si_dpm.h | 97 u32 mclk_pwrmgt_cntl; member
|
D | ni_dpm.c | 1193 ni_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in ni_read_clock_registers() 1699 cpu_to_be32(ni_pi->clock_registers.mclk_pwrmgt_cntl); in ni_populate_smc_initial_state() 1804 u32 mclk_pwrmgt_cntl = ni_pi->clock_registers.mclk_pwrmgt_cntl; in ni_populate_smc_acpi_state() local 1873 mclk_pwrmgt_cntl |= (MRDCKA0_RESET | in ni_populate_smc_acpi_state() 1882 mclk_pwrmgt_cntl &= ~(MRDCKA0_PDNB | in ni_populate_smc_acpi_state() 1907 table->ACPIState.level.mclk.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in ni_populate_smc_acpi_state() 2173 u32 mclk_pwrmgt_cntl = ni_pi->clock_registers.mclk_pwrmgt_cntl; in ni_populate_mclk_value() local 2259 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in ni_populate_mclk_value() 2260 mclk_pwrmgt_cntl |= DLL_SPEED(dll_speed); in ni_populate_mclk_value() 2262 mclk_pwrmgt_cntl |= (MRDCKA0_PDNB | in ni_populate_mclk_value() [all …]
|
D | ni_dpm.h | 37 u32 mclk_pwrmgt_cntl; member
|
D | rv770_dpm.c | 401 u32 mclk_pwrmgt_cntl = in rv770_populate_mclk_value() local 402 pi->clk_regs.rv770.mclk_pwrmgt_cntl; in rv770_populate_mclk_value() 479 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv770_populate_mclk_value() 935 u32 mclk_pwrmgt_cntl; in rv770_populate_smc_acpi_state() local 967 mclk_pwrmgt_cntl = (MRDCKA0_RESET | in rv770_populate_smc_acpi_state() 988 table->ACPIState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv770_populate_smc_acpi_state() 1041 cpu_to_be32(pi->clk_regs.rv770.mclk_pwrmgt_cntl); in rv770_populate_smc_initial_state() 1540 pi->clk_regs.rv770.mclk_pwrmgt_cntl = in rv770_read_clock_registers()
|
D | ci_dpm.h | 135 u32 mclk_pwrmgt_cntl; member
|
D | si_dpm.c | 3559 si_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in si_read_clock_registers() 4359 cpu_to_be32(si_pi->clock_registers.mclk_pwrmgt_cntl); in si_populate_smc_initial_state() 4479 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_smc_acpi_state() local 4550 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in si_populate_smc_acpi_state() 4551 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in si_populate_smc_acpi_state() 4561 cpu_to_be32(mclk_pwrmgt_cntl); in si_populate_smc_acpi_state() 4864 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_mclk_value() local 4921 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in si_populate_mclk_value() 4922 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value() 4925 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in si_populate_mclk_value() [all …]
|
D | ci_dpm.c | 1850 pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in ci_read_clock_registers() 2757 u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; in ci_calculate_mclk_params() local 2814 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in ci_calculate_mclk_params() 2815 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in ci_calculate_mclk_params() 2818 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in ci_calculate_mclk_params() 2820 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in ci_calculate_mclk_params() 2828 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in ci_calculate_mclk_params() 2959 u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; in ci_populate_smc_acpi_level() local 3028 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in ci_populate_smc_acpi_level() 3029 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in ci_populate_smc_acpi_level() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | iceland_smumgr.c | 1055 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in iceland_calculate_mclk_params() local 1146 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in iceland_calculate_mclk_params() 1148 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in iceland_calculate_mclk_params() 1150 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in iceland_calculate_mclk_params() 1161 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in iceland_calculate_mclk_params() 1434 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in iceland_populate_smc_acpi_level() local 1511 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in iceland_populate_smc_acpi_level() 1513 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in iceland_populate_smc_acpi_level() 1517 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in iceland_populate_smc_acpi_level() 1519 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in iceland_populate_smc_acpi_level() [all …]
|
D | ci_smumgr.c | 1034 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in ci_calculate_mclk_params() local 1098 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_calculate_mclk_params() 1100 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_calculate_mclk_params() 1102 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_calculate_mclk_params() 1112 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in ci_calculate_mclk_params() 1389 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in ci_populate_smc_acpi_level() local 1466 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() 1468 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() 1472 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() 1474 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() [all …]
|
D | tonga_smumgr.c | 798 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in tonga_calculate_mclk_params() local 898 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in tonga_calculate_mclk_params() 900 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in tonga_calculate_mclk_params() 902 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in tonga_calculate_mclk_params() 912 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in tonga_calculate_mclk_params() 1186 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in tonga_populate_smc_acpi_level() local 1253 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in tonga_populate_smc_acpi_level() 1255 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in tonga_populate_smc_acpi_level() 1259 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in tonga_populate_smc_acpi_level() 1261 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in tonga_populate_smc_acpi_level() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | si_dpm.h | 355 u32 mclk_pwrmgt_cntl; member 505 u32 mclk_pwrmgt_cntl; member 517 u32 mclk_pwrmgt_cntl; member 920 u32 mclk_pwrmgt_cntl; member
|
D | si_dpm.c | 4033 si_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in si_read_clock_registers() 4838 cpu_to_be32(si_pi->clock_registers.mclk_pwrmgt_cntl); in si_populate_smc_initial_state() 4981 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_smc_acpi_state() local 5053 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in si_populate_smc_acpi_state() 5054 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in si_populate_smc_acpi_state() 5064 cpu_to_be32(mclk_pwrmgt_cntl); in si_populate_smc_acpi_state() 5366 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_mclk_value() local 5423 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in si_populate_mclk_value() 5424 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value() 5427 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in si_populate_mclk_value() [all …]
|