Home
last modified time | relevance | path

Searched refs:mclk_pwrmgt_cntl (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Drv740_dpm.c195 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()
Drv730_dpm.c123 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()
Dcypress_dpm.c489 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 …]
Drv770_dpm.h39 u32 mclk_pwrmgt_cntl; member
51 u32 mclk_pwrmgt_cntl; member
Dsi_dpm.h97 u32 mclk_pwrmgt_cntl; member
Dni_dpm.h37 u32 mclk_pwrmgt_cntl; member
Dni_dpm.c1194 ni_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in ni_read_clock_registers()
1700 cpu_to_be32(ni_pi->clock_registers.mclk_pwrmgt_cntl); in ni_populate_smc_initial_state()
1805 u32 mclk_pwrmgt_cntl = ni_pi->clock_registers.mclk_pwrmgt_cntl; in ni_populate_smc_acpi_state() local
1874 mclk_pwrmgt_cntl |= (MRDCKA0_RESET | in ni_populate_smc_acpi_state()
1883 mclk_pwrmgt_cntl &= ~(MRDCKA0_PDNB | in ni_populate_smc_acpi_state()
1908 table->ACPIState.levels[0].mclk.vMCLK_PWRMGT_CNTL = cpu_to_be32(mclk_pwrmgt_cntl); in ni_populate_smc_acpi_state()
2172 u32 mclk_pwrmgt_cntl = ni_pi->clock_registers.mclk_pwrmgt_cntl; in ni_populate_mclk_value() local
2258 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in ni_populate_mclk_value()
2259 mclk_pwrmgt_cntl |= DLL_SPEED(dll_speed); in ni_populate_mclk_value()
2261 mclk_pwrmgt_cntl |= (MRDCKA0_PDNB | in ni_populate_mclk_value()
[all …]
Drv770_dpm.c399 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()
Dci_dpm.h135 u32 mclk_pwrmgt_cntl; member
Dsi_dpm.c3562 si_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in si_read_clock_registers()
4362 cpu_to_be32(si_pi->clock_registers.mclk_pwrmgt_cntl); in si_populate_smc_initial_state()
4482 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_smc_acpi_state() local
4553 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in si_populate_smc_acpi_state()
4554 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in si_populate_smc_acpi_state()
4564 cpu_to_be32(mclk_pwrmgt_cntl); in si_populate_smc_acpi_state()
4865 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_mclk_value() local
4922 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in si_populate_mclk_value()
4923 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value()
4926 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in si_populate_mclk_value()
[all …]
Dci_dpm.c1872 pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in ci_read_clock_registers()
2781 u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; in ci_calculate_mclk_params() local
2838 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in ci_calculate_mclk_params()
2839 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in ci_calculate_mclk_params()
2842 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in ci_calculate_mclk_params()
2844 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in ci_calculate_mclk_params()
2852 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in ci_calculate_mclk_params()
2983 u32 mclk_pwrmgt_cntl = pi->clock_registers.mclk_pwrmgt_cntl; in ci_populate_smc_acpi_level() local
3052 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in ci_populate_smc_acpi_level()
3053 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in ci_populate_smc_acpi_level()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Diceland_smumgr.c1055 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 …]
Dtonga_smumgr.c798 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 …]
Dci_smumgr.c1032 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in ci_calculate_mclk_params() local
1096 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_calculate_mclk_params()
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()
1110 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in ci_calculate_mclk_params()
1387 uint32_t mclk_pwrmgt_cntl = data->clock_registers.vMCLK_PWRMGT_CNTL; in ci_populate_smc_acpi_level() local
1464 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level()
1466 mclk_pwrmgt_cntl = PHM_SET_FIELD(mclk_pwrmgt_cntl, in ci_populate_smc_acpi_level()
1470 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()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/
Dsi_dpm.h355 u32 mclk_pwrmgt_cntl; member
505 u32 mclk_pwrmgt_cntl; member
517 u32 mclk_pwrmgt_cntl; member
913 u32 mclk_pwrmgt_cntl; member
Dsi_dpm.c4018 si_pi->clock_registers.mclk_pwrmgt_cntl = RREG32(MCLK_PWRMGT_CNTL); in si_read_clock_registers()
4823 cpu_to_be32(si_pi->clock_registers.mclk_pwrmgt_cntl); in si_populate_smc_initial_state()
4941 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_smc_acpi_state() local
5013 mclk_pwrmgt_cntl |= MRDCK0_RESET | MRDCK1_RESET; in si_populate_smc_acpi_state()
5014 mclk_pwrmgt_cntl &= ~(MRDCK0_PDNB | MRDCK1_PDNB); in si_populate_smc_acpi_state()
5024 cpu_to_be32(mclk_pwrmgt_cntl); in si_populate_smc_acpi_state()
5324 u32 mclk_pwrmgt_cntl = si_pi->clock_registers.mclk_pwrmgt_cntl; in si_populate_mclk_value() local
5381 mclk_pwrmgt_cntl &= ~DLL_SPEED_MASK; in si_populate_mclk_value()
5382 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value()
5385 mclk_pwrmgt_cntl |= MRDCK0_PDNB | MRDCK1_PDNB; in si_populate_mclk_value()
[all …]