/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | rv730_dpm.c | 125 u32 mpll_func_cntl = pi->clk_regs.rv730.mpll_func_cntl; in rv730_populate_mclk_value() local 149 mpll_func_cntl |= MPLL_DIVEN; in rv730_populate_mclk_value() 151 mpll_func_cntl &= ~MPLL_DIVEN; in rv730_populate_mclk_value() 153 mpll_func_cntl &= ~(MPLL_REF_DIV_MASK | MPLL_HILEN_MASK | MPLL_LOLEN_MASK); in rv730_populate_mclk_value() 154 mpll_func_cntl |= MPLL_REF_DIV(dividers.ref_div); in rv730_populate_mclk_value() 155 mpll_func_cntl |= MPLL_HILEN((dividers.post_div >> 4) & 0xf); in rv730_populate_mclk_value() 156 mpll_func_cntl |= MPLL_LOLEN(dividers.post_div & 0xf); in rv730_populate_mclk_value() 188 mclk->mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in rv730_populate_mclk_value() 216 pi->clk_regs.rv730.mpll_func_cntl in rv730_read_clock_registers() 232 u32 mpll_func_cntl = 0; rv730_populate_smc_acpi_state() local [all...] |
H A D | si_dpm.h | 100 u32 mpll_func_cntl; member
|
H A D | ci_dpm.h | 138 u32 mpll_func_cntl; member
|
H A D | rv770_dpm.h | 53 u32 mpll_func_cntl; member
|
H A D | si_dpm.c | 3565 si_pi->clock_registers.mpll_func_cntl = RREG32(MPLL_FUNC_CNTL); in si_read_clock_registers() 4368 cpu_to_be32(si_pi->clock_registers.mpll_func_cntl); in si_populate_smc_initial_state() 4485 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_smc_acpi_state() local 4570 cpu_to_be32(mpll_func_cntl); in si_populate_smc_acpi_state() 4868 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_mclk_value() local 4880 mpll_func_cntl &= ~BWCTRL_MASK; in si_populate_mclk_value() 4881 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in si_populate_mclk_value() 4931 mclk->vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in si_populate_mclk_value() [all...] |
H A D | ci_dpm.c | 1875 pi->clock_registers.mpll_func_cntl = RREG32(MPLL_FUNC_CNTL); in ci_read_clock_registers() 2784 u32 mpll_func_cntl = pi->clock_registers.mpll_func_cntl; in ci_calculate_mclk_params() local 2796 mpll_func_cntl &= ~BWCTRL_MASK; in ci_calculate_mclk_params() 2797 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in ci_calculate_mclk_params() 2847 mclk->MpllFuncCntl = mpll_func_cntl; in ci_calculate_mclk_params() 3064 cpu_to_be32(pi->clock_registers.mpll_func_cntl); in ci_populate_smc_acpi_level()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | rv730_dpm.c | 123 u32 mpll_func_cntl = pi->clk_regs.rv730.mpll_func_cntl; in rv730_populate_mclk_value() local 147 mpll_func_cntl |= MPLL_DIVEN; in rv730_populate_mclk_value() 149 mpll_func_cntl &= ~MPLL_DIVEN; in rv730_populate_mclk_value() 151 mpll_func_cntl &= ~(MPLL_REF_DIV_MASK | MPLL_HILEN_MASK | MPLL_LOLEN_MASK); in rv730_populate_mclk_value() 152 mpll_func_cntl |= MPLL_REF_DIV(dividers.ref_div); in rv730_populate_mclk_value() 153 mpll_func_cntl |= MPLL_HILEN((dividers.post_div >> 4) & 0xf); in rv730_populate_mclk_value() 154 mpll_func_cntl |= MPLL_LOLEN(dividers.post_div & 0xf); in rv730_populate_mclk_value() 186 mclk->mclk730.vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in rv730_populate_mclk_value() 214 pi->clk_regs.rv730.mpll_func_cntl in rv730_read_clock_registers() 230 u32 mpll_func_cntl = 0; rv730_populate_smc_acpi_state() local [all...] |
H A D | si_dpm.h | 100 u32 mpll_func_cntl; member
|
H A D | rv770_dpm.h | 53 u32 mpll_func_cntl; member
|
H A D | ci_dpm.h | 138 u32 mpll_func_cntl; member
|
H A D | si_dpm.c | 3562 si_pi->clock_registers.mpll_func_cntl = RREG32(MPLL_FUNC_CNTL); in si_read_clock_registers() 4365 cpu_to_be32(si_pi->clock_registers.mpll_func_cntl); in si_populate_smc_initial_state() 4482 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_smc_acpi_state() local 4567 cpu_to_be32(mpll_func_cntl); in si_populate_smc_acpi_state() 4867 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_mclk_value() local 4879 mpll_func_cntl &= ~BWCTRL_MASK; in si_populate_mclk_value() 4880 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in si_populate_mclk_value() 4930 mclk->vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in si_populate_mclk_value() [all...] |
H A D | ci_dpm.c | 1853 pi->clock_registers.mpll_func_cntl = RREG32(MPLL_FUNC_CNTL); in ci_read_clock_registers() 2760 u32 mpll_func_cntl = pi->clock_registers.mpll_func_cntl; in ci_calculate_mclk_params() local 2772 mpll_func_cntl &= ~BWCTRL_MASK; in ci_calculate_mclk_params() 2773 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in ci_calculate_mclk_params() 2823 mclk->MpllFuncCntl = mpll_func_cntl; in ci_calculate_mclk_params() 3040 cpu_to_be32(pi->clock_registers.mpll_func_cntl); in ci_populate_smc_acpi_level()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/ |
H A D | si_dpm.h | 519 u32 mpll_func_cntl; member 916 u32 mpll_func_cntl; member
|
H A D | si_dpm.c | 4021 si_pi->clock_registers.mpll_func_cntl = RREG32(MPLL_FUNC_CNTL); in si_read_clock_registers() 4829 cpu_to_be32(si_pi->clock_registers.mpll_func_cntl); in si_populate_smc_initial_state() 4944 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_smc_acpi_state() local 5030 cpu_to_be32(mpll_func_cntl); in si_populate_smc_acpi_state() 5327 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_mclk_value() local 5339 mpll_func_cntl &= ~BWCTRL_MASK; in si_populate_mclk_value() 5340 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in si_populate_mclk_value() 5390 mclk->vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in si_populate_mclk_value() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | si_dpm.h | 519 u32 mpll_func_cntl; member 923 u32 mpll_func_cntl; member
|
H A D | si_dpm.c | 4036 si_pi->clock_registers.mpll_func_cntl = RREG32(MPLL_FUNC_CNTL); in si_read_clock_registers() 4844 cpu_to_be32(si_pi->clock_registers.mpll_func_cntl); in si_populate_smc_initial_state() 4984 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_smc_acpi_state() local 5070 cpu_to_be32(mpll_func_cntl); in si_populate_smc_acpi_state() 5369 u32 mpll_func_cntl = si_pi->clock_registers.mpll_func_cntl; in si_populate_mclk_value() local 5381 mpll_func_cntl &= ~BWCTRL_MASK; in si_populate_mclk_value() 5382 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in si_populate_mclk_value() 5432 mclk->vMPLL_FUNC_CNTL = cpu_to_be32(mpll_func_cntl); in si_populate_mclk_value() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | iceland_smumgr.c | 1058 uint32_t mpll_func_cntl = data->clock_registers.vMPLL_FUNC_CNTL; in iceland_calculate_mclk_params() local 1073 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl); in iceland_calculate_mclk_params() 1156 mclk->MpllFuncCntl = mpll_func_cntl; in iceland_calculate_mclk_params()
|
H A D | ci_smumgr.c | 1035 uint32_t mpll_func_cntl = data->clock_registers.vMPLL_FUNC_CNTL; in ci_calculate_mclk_params() local 1049 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl); in ci_calculate_mclk_params() 1105 mclk->MpllFuncCntl = mpll_func_cntl; in ci_calculate_mclk_params()
|
H A D | tonga_smumgr.c | 801 uint32_t mpll_func_cntl = data->clock_registers.vMPLL_FUNC_CNTL; in tonga_calculate_mclk_params() local 818 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, in tonga_calculate_mclk_params() 907 mclk->MpllFuncCntl = mpll_func_cntl; in tonga_calculate_mclk_params()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | iceland_smumgr.c | 1058 uint32_t mpll_func_cntl = data->clock_registers.vMPLL_FUNC_CNTL; in iceland_calculate_mclk_params() local 1073 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl); in iceland_calculate_mclk_params() 1156 mclk->MpllFuncCntl = mpll_func_cntl; in iceland_calculate_mclk_params()
|
H A D | tonga_smumgr.c | 801 uint32_t mpll_func_cntl = data->clock_registers.vMPLL_FUNC_CNTL; in tonga_calculate_mclk_params() local 818 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, in tonga_calculate_mclk_params() 907 mclk->MpllFuncCntl = mpll_func_cntl; in tonga_calculate_mclk_params()
|
H A D | ci_smumgr.c | 1036 uint32_t mpll_func_cntl = data->clock_registers.vMPLL_FUNC_CNTL; in ci_calculate_mclk_params() local 1050 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl); in ci_calculate_mclk_params() 1106 mclk->MpllFuncCntl = mpll_func_cntl; in ci_calculate_mclk_params()
|