/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | rv740_dpm.c | 165 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in rv740_populate_sclk_value() local 172 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in rv740_populate_sclk_value() 254 u32 clk_v = 0x40000 * ss.percentage * in rv740_populate_mclk_value() local 258 mpll_ss1 |= CLKV(clk_v); in rv740_populate_mclk_value()
|
D | rv730_dpm.c | 97 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv730_populate_sclk_value() local 104 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in rv730_populate_sclk_value() 173 u32 clk_v = ss.percentage * dividers.fb_div / (clk_s * 10000); in rv730_populate_mclk_value() local 180 mpll_ss |= CLK_V(clk_v); in rv730_populate_mclk_value()
|
D | r600_dpm.c | 968 ATOM_PPLIB_Clock_Voltage_Limit_Table *clk_v = in r600_parse_extended_power_table() local 972 if (clk_v->ucNumEntries) { in r600_parse_extended_power_table() 974 le16_to_cpu(clk_v->entries[0].usSclkLow) | in r600_parse_extended_power_table() 975 (clk_v->entries[0].ucSclkHigh << 16); in r600_parse_extended_power_table() 977 le16_to_cpu(clk_v->entries[0].usMclkLow) | in r600_parse_extended_power_table() 978 (clk_v->entries[0].ucMclkHigh << 16); in r600_parse_extended_power_table() 980 le16_to_cpu(clk_v->entries[0].usVddc); in r600_parse_extended_power_table() 982 le16_to_cpu(clk_v->entries[0].usVddci); in r600_parse_extended_power_table()
|
D | rv6xx_dpm.c | 322 u32 index, u32 clk_v) in rv6xx_set_engine_spread_spectrum_clk_v() argument 325 CLKV(clk_v), ~CLKV_MASK); in rv6xx_set_engine_spread_spectrum_clk_v() 346 u32 clk_v) in rv6xx_set_memory_spread_spectrum_clk_v() argument 348 WREG32_P(CG_MPLL_SPREAD_SPECTRUM, CLKV(clk_v), ~CLKV_MASK); in rv6xx_set_memory_spread_spectrum_clk_v() 555 u32 vco_freq, clk_v, clk_s; in rv6xx_program_engine_spread_spectrum() local 566 clk_v = rv6xx_calculate_spread_spectrum_clk_v(vco_freq, in rv6xx_program_engine_spread_spectrum() 575 rv6xx_set_engine_spread_spectrum_clk_v(rdev, level, clk_v); in rv6xx_program_engine_spread_spectrum() 658 u32 vco_freq = 0, clk_v, clk_s; in rv6xx_program_mclk_spread_spectrum_parameters() local 684 clk_v = rv6xx_calculate_spread_spectrum_clk_v(vco_freq, in rv6xx_program_mclk_spread_spectrum_parameters() 693 rv6xx_set_memory_spread_spectrum_clk_v(rdev, clk_v); in rv6xx_program_mclk_spread_spectrum_parameters()
|
D | ni_dpm.c | 2046 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ni_calculate_sclk_params() local 2053 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in ni_calculate_sclk_params() 2098 u32 clk_v; in ni_init_smc_spll_table() local 2118 clk_v = (sclk_params.vCG_SPLL_SPREAD_SPECTRUM_2 & CLK_V_MASK) >> CLK_V_SHIFT; in ni_init_smc_spll_table() 2122 clk_v >>= 6; in ni_init_smc_spll_table() 2133 if (clk_v & ~(SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_MASK >> SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT)) in ni_init_smc_spll_table() 2143 …tmp = ((clk_v << SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT) & SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_MASK) | in ni_init_smc_spll_table() 2244 u32 clk_v = ss.percentage * in ni_populate_mclk_value() local 2248 mpll_ss1 |= CLKV(clk_v); in ni_populate_mclk_value()
|
D | si_dpm.c | 2835 u32 clk_s, clk_v; in si_init_smc_spll_table() local 2856 clk_v = (sclk_params.vCG_SPLL_SPREAD_SPECTRUM_2 & CLK_V_MASK) >> CLK_V_SHIFT; in si_init_smc_spll_table() 2860 clk_v >>= 6; in si_init_smc_spll_table() 2868 if (clk_v & ~(SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT)) in si_init_smc_spll_table() 2878 …tmp = ((clk_v << SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK) | in si_init_smc_spll_table() 4812 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params() local 4819 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in si_calculate_sclk_params()
|
D | cypress_dpm.c | 563 u32 clk_v = ss.percentage * in cypress_populate_mclk_value() local 567 mpll_ss1 |= CLKV(clk_v); in cypress_populate_mclk_value()
|
D | rv770_dpm.c | 544 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv770_populate_sclk_value() local 551 cg_spll_spread_spectrum_2 |= CLKV(clk_v); in rv770_populate_sclk_value()
|
D | ci_dpm.c | 3179 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ci_calculate_sclk_params() local 3186 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in ci_calculate_sclk_params()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/ |
D | amdgpu_dpm.c | 380 ATOM_PPLIB_Clock_Voltage_Limit_Table *clk_v = in amdgpu_parse_extended_power_table() local 384 if (clk_v->ucNumEntries) { in amdgpu_parse_extended_power_table() 386 le16_to_cpu(clk_v->entries[0].usSclkLow) | in amdgpu_parse_extended_power_table() 387 (clk_v->entries[0].ucSclkHigh << 16); in amdgpu_parse_extended_power_table() 389 le16_to_cpu(clk_v->entries[0].usMclkLow) | in amdgpu_parse_extended_power_table() 390 (clk_v->entries[0].ucMclkHigh << 16); in amdgpu_parse_extended_power_table() 392 le16_to_cpu(clk_v->entries[0].usVddc); in amdgpu_parse_extended_power_table() 394 le16_to_cpu(clk_v->entries[0].usVddci); in amdgpu_parse_extended_power_table()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/ |
D | si_dpm.c | 2933 u32 clk_s, clk_v; in si_init_smc_spll_table() local 2953 clk_v = (sclk_params.vCG_SPLL_SPREAD_SPECTRUM_2 & CLK_V_MASK) >> CLK_V_SHIFT; in si_init_smc_spll_table() 2957 clk_v >>= 6; in si_init_smc_spll_table() 2965 if (clk_v & ~(SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT)) in si_init_smc_spll_table() 2975 …tmp = ((clk_v << SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK) | in si_init_smc_spll_table() 5271 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params() local 5278 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in si_calculate_sclk_params()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | fiji_smumgr.c | 915 uint32_t clk_v = 4 * ssInfo.speed_spectrum_percentage * in fiji_calculate_sclk_params() local 923 CG_SPLL_SPREAD_SPECTRUM_2, CLKV, clk_v); in fiji_calculate_sclk_params()
|
D | ci_smumgr.c | 348 uint32_t clk_v = 4 * ss_info.speed_spectrum_percentage * in ci_calculate_sclk_params() local 356 CG_SPLL_SPREAD_SPECTRUM_2, CLKV, clk_v); in ci_calculate_sclk_params()
|