/drivers/gpu/drm/radeon/ |
D | rv740_dpm.c | 195 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv770.mclk_pwrmgt_cntl; in rv740_populate_mclk_value() local 268 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in rv740_populate_mclk_value() 269 mclk_pwrmgt_cntl |= DLL_SPEED(dll_speed); in rv740_populate_mclk_value() 276 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv740_populate_mclk_value() 307 pi->clk_regs.rv770.mclk_pwrmgt_cntl = in rv740_read_clock_registers() 325 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv770.mclk_pwrmgt_cntl; in rv740_populate_smc_acpi_state() local 350 mclk_pwrmgt_cntl |= (MRDCKA0_RESET | in rv740_populate_smc_acpi_state() 377 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 | 123 u32 mclk_pwrmgt_cntl = pi->clk_regs.rv730.mclk_pwrmgt_cntl; in rv730_populate_mclk_value() local 185 mclk->mclk730.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv730_populate_mclk_value() 212 pi->clk_regs.rv730.mclk_pwrmgt_cntl = in rv730_read_clock_registers() 235 u32 mclk_pwrmgt_cntl; in rv730_populate_smc_acpi_state() local 267 mclk_pwrmgt_cntl = (MRDCKA_RESET | in rv730_populate_smc_acpi_state() 299 table->ACPIState.levels[0].mclk.mclk730.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv730_populate_smc_acpi_state() 333 cpu_to_be32(pi->clk_regs.rv730.mclk_pwrmgt_cntl); in rv730_populate_smc_initial_state()
|
D | cypress_dpm.c | 489 u32 mclk_pwrmgt_cntl = in cypress_populate_mclk_value() local 490 pi->clk_regs.rv770.mclk_pwrmgt_cntl; in cypress_populate_mclk_value() 577 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in cypress_populate_mclk_value() 578 mclk_pwrmgt_cntl |= DLL_SPEED(dll_speed); in cypress_populate_mclk_value() 580 mclk_pwrmgt_cntl |= (MRDCKA0_PDNB | in cypress_populate_mclk_value() 589 mclk_pwrmgt_cntl &= ~(MRDCKA0_PDNB | in cypress_populate_mclk_value() 603 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in cypress_populate_mclk_value() 1253 cpu_to_be32(pi->clk_regs.rv770.mclk_pwrmgt_cntl); in cypress_populate_smc_initial_state() 1350 u32 mclk_pwrmgt_cntl = in cypress_populate_smc_acpi_state() local 1351 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 | 1195 ni_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in ni_read_clock_registers() 1701 cpu_to_be32(ni_pi->clock_registers.mclk_pwrmgt_cntl); in ni_populate_smc_initial_state() 1806 u32 mclk_pwrmgt_cntl = ni_pi->clock_registers.mclk_pwrmgt_cntl; in ni_populate_smc_acpi_state() local 1875 mclk_pwrmgt_cntl |= (MRDCKA0_RESET | in ni_populate_smc_acpi_state() 1884 mclk_pwrmgt_cntl &= ~(MRDCKA0_PDNB | in ni_populate_smc_acpi_state() 1909 table->ACPIState.levels[0].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 | 399 u32 mclk_pwrmgt_cntl = in rv770_populate_mclk_value() local 400 pi->clk_regs.rv770.mclk_pwrmgt_cntl; in rv770_populate_mclk_value() 477 mclk->mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv770_populate_mclk_value() 933 u32 mclk_pwrmgt_cntl; in rv770_populate_smc_acpi_state() local 965 mclk_pwrmgt_cntl = (MRDCKA0_RESET | in rv770_populate_smc_acpi_state() 986 table->ACPIState.levels[0].mclk.mclk770.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in rv770_populate_smc_acpi_state() 1039 cpu_to_be32(pi->clk_regs.rv770.mclk_pwrmgt_cntl); in rv770_populate_smc_initial_state() 1538 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 | 3579 si_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in si_read_clock_registers() 4380 cpu_to_be32(si_pi->clock_registers.mclk_pwrmgt_cntl); in si_populate_smc_initial_state() 4500 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_smc_acpi_state() local 4571 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in si_populate_smc_acpi_state() 4572 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in si_populate_smc_acpi_state() 4582 cpu_to_be32(mclk_pwrmgt_cntl); in si_populate_smc_acpi_state() 4883 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_mclk_value() local 4940 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in si_populate_mclk_value() 4941 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value() 4944 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in si_populate_mclk_value() [all …]
|
D | ci_dpm.c | 1887 pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in ci_read_clock_registers() 2796 u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; in ci_calculate_mclk_params() local 2853 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in ci_calculate_mclk_params() 2854 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in ci_calculate_mclk_params() 2857 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in ci_calculate_mclk_params() 2859 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in ci_calculate_mclk_params() 2867 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in ci_calculate_mclk_params() 2998 u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; in ci_populate_smc_acpi_level() local 3067 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in ci_populate_smc_acpi_level() 3068 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in ci_populate_smc_acpi_level() [all …]
|
/drivers/gpu/drm/amd/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 | 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 …]
|
D | ci_smumgr.c | 1031 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in ci_calculate_mclk_params() local 1095 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_calculate_mclk_params() 1097 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_calculate_mclk_params() 1099 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_calculate_mclk_params() 1109 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in ci_calculate_mclk_params() 1386 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in ci_populate_smc_acpi_level() local 1463 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() 1465 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() 1469 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() 1471 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | si_dpm.h | 355 u32 mclk_pwrmgt_cntl; member 505 u32 mclk_pwrmgt_cntl; member 517 u32 mclk_pwrmgt_cntl; member 913 u32 mclk_pwrmgt_cntl; member
|
D | si_dpm.c | 4039 si_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in si_read_clock_registers() 4844 cpu_to_be32(si_pi->clock_registers.mclk_pwrmgt_cntl); in si_populate_smc_initial_state() 4962 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_smc_acpi_state() local 5034 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in si_populate_smc_acpi_state() 5035 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in si_populate_smc_acpi_state() 5045 cpu_to_be32(mclk_pwrmgt_cntl); in si_populate_smc_acpi_state() 5345 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_mclk_value() local 5402 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in si_populate_mclk_value() 5403 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value() 5406 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in si_populate_mclk_value() [all …]
|