Home
last modified time | relevance | path

Searched refs:clk_v (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/gpu/drm/radeon/
H A Drv740_dpm.c164 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in rv740_populate_sclk_value() local
171 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in rv740_populate_sclk_value()
252 u32 clk_s, clk_v; in rv740_populate_mclk_value() local
257 clk_v = 0x40000 * ss.percentage * in rv740_populate_mclk_value()
261 mpll_ss1 |= CLKV(clk_v); in rv740_populate_mclk_value()
H A Drv730_dpm.c95 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv730_populate_sclk_value() local
102 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in rv730_populate_sclk_value()
171 u32 clk_v = ss.percentage * dividers.fb_div / (clk_s * 10000); in rv730_populate_mclk_value() local
178 mpll_ss |= CLK_V(clk_v); in rv730_populate_mclk_value()
H A Dr600_dpm.c968 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()
H A Drv6xx_dpm.c322 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()
H A Dni_dpm.c2047 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ni_calculate_sclk_params() local
2054 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in ni_calculate_sclk_params()
2099 u32 clk_v; in ni_init_smc_spll_table() local
2119 clk_v = (sclk_params.vCG_SPLL_SPREAD_SPECTRUM_2 & CLK_V_MASK) >> CLK_V_SHIFT; in ni_init_smc_spll_table()
2123 clk_v >>= 6; in ni_init_smc_spll_table()
2134 if (clk_v & ~(SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_MASK >> SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT)) in ni_init_smc_spll_table()
2144 …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_s, clk_v; in ni_populate_mclk_value() local
2249 clk_v = ss.percentage * in ni_populate_mclk_value()
2253 mpll_ss1 |= CLKV(clk_v); in ni_populate_mclk_value()
H A Dcypress_dpm.c560 u32 clk_s, clk_v; in cypress_populate_mclk_value() local
565 clk_v = ss.percentage * in cypress_populate_mclk_value()
569 mpll_ss1 |= CLKV(clk_v); in cypress_populate_mclk_value()
H A Dsi_dpm.c2832 u32 clk_s, clk_v; in si_init_smc_spll_table() local
2853 clk_v = (sclk_params.vCG_SPLL_SPREAD_SPECTRUM_2 & CLK_V_MASK) >> CLK_V_SHIFT; in si_init_smc_spll_table()
2857 clk_v >>= 6; in si_init_smc_spll_table()
2865 if (clk_v & ~(SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT)) in si_init_smc_spll_table()
2875 …tmp = ((clk_v << SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK) | in si_init_smc_spll_table()
4811 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params() local
4818 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in si_calculate_sclk_params()
H A Drv770_dpm.c546 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv770_populate_sclk_value() local
553 cg_spll_spread_spectrum_2 |= CLKV(clk_v); in rv770_populate_sclk_value()
H A Dci_dpm.c3155 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in ci_calculate_sclk_params() local
3162 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in ci_calculate_sclk_params()
/openbmc/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dlegacy_dpm.c306 ATOM_PPLIB_Clock_Voltage_Limit_Table *clk_v = in amdgpu_parse_extended_power_table() local
310 if (clk_v->ucNumEntries) { in amdgpu_parse_extended_power_table()
312 le16_to_cpu(clk_v->entries[0].usSclkLow) | in amdgpu_parse_extended_power_table()
313 (clk_v->entries[0].ucSclkHigh << 16); in amdgpu_parse_extended_power_table()
315 le16_to_cpu(clk_v->entries[0].usMclkLow) | in amdgpu_parse_extended_power_table()
316 (clk_v->entries[0].ucMclkHigh << 16); in amdgpu_parse_extended_power_table()
318 le16_to_cpu(clk_v->entries[0].usVddc); in amdgpu_parse_extended_power_table()
320 le16_to_cpu(clk_v->entries[0].usVddci); in amdgpu_parse_extended_power_table()
H A Dsi_dpm.c2948 u32 clk_s, clk_v; in si_init_smc_spll_table() local
2968 clk_v = (sclk_params.vCG_SPLL_SPREAD_SPECTRUM_2 & CLK_V_MASK) >> CLK_V_SHIFT; in si_init_smc_spll_table()
2972 clk_v >>= 6; in si_init_smc_spll_table()
2980 if (clk_v & ~(SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT)) in si_init_smc_spll_table()
2990 …tmp = ((clk_v << SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_CLKV_MASK) | in si_init_smc_spll_table()
5313 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in si_calculate_sclk_params() local
5320 cg_spll_spread_spectrum_2 |= CLK_V(clk_v); in si_calculate_sclk_params()
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dfiji_smumgr.c914 uint32_t clk_v = 4 * ssInfo.speed_spectrum_percentage * in fiji_calculate_sclk_params() local
922 CG_SPLL_SPREAD_SPECTRUM_2, CLKV, clk_v); in fiji_calculate_sclk_params()
H A Dci_smumgr.c349 uint32_t clk_v = 4 * ss_info.speed_spectrum_percentage * in ci_calculate_sclk_params() local
357 CG_SPLL_SPREAD_SPECTRUM_2, CLKV, clk_v); in ci_calculate_sclk_params()