Home
last modified time | relevance | path

Searched refs:clk_table (Results 1 – 25 of 59) sorted by relevance

123

/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_mcg/
H A Ddml2_mcg_dcn4.c54 if (soc_bb->clk_table.fclk.num_clk_values == 2) { in build_min_clk_table_fine_grained()
155 if (soc_bb->clk_table.dcfclk.num_clk_values < 2 || soc_bb->clk_table.fclk.num_clk_values < 2) in build_min_clock_table()
169 if (soc_bb->clk_table.fclk.num_clk_values == soc_bb->clk_table.dcfclk.num_clk_values && in build_min_clock_table()
170 soc_bb->clk_table.fclk.num_clk_values == soc_bb->clk_table.uclk.num_clk_values) in build_min_clock_table()
179 …min_table->max_clocks_khz.dispclk = soc_bb->clk_table.dispclk.clk_values_khz[soc_bb->clk_table.dis… in build_min_clock_table()
180 …min_table->max_clocks_khz.dppclk = soc_bb->clk_table.dppclk.clk_values_khz[soc_bb->clk_table.dppcl… in build_min_clock_table()
181 …min_table->max_clocks_khz.dscclk = soc_bb->clk_table.dscclk.clk_values_khz[soc_bb->clk_table.dsccl… in build_min_clock_table()
182 …min_table->max_clocks_khz.dtbclk = soc_bb->clk_table.dtbclk.clk_values_khz[soc_bb->clk_table.dtbcl… in build_min_clock_table()
183 …min_table->max_clocks_khz.phyclk = soc_bb->clk_table.phyclk.clk_values_khz[soc_bb->clk_table.phycl… in build_min_clock_table()
185 …min_table->max_clocks_khz.dcfclk = soc_bb->clk_table.dcfclk.clk_values_khz[soc_bb->clk_table.dcfcl… in build_min_clock_table()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn321/
H A Ddcn321_fpu.c380 if (bw_params->clk_table.entries[i].memclk_mhz > 0) { in build_synthetic_soc_states()
385 if (bw_params->clk_table.entries[i].fclk_mhz > 0) { in build_synthetic_soc_states()
390 if (bw_params->clk_table.entries[i].dcfclk_mhz > 0) { in build_synthetic_soc_states()
408 min_fclk_mhz = bw_params->clk_table.entries[0].fclk_mhz; in build_synthetic_soc_states()
756 num_uclk_states = bw_params->clk_table.num_entries; in dcn321_update_bw_bounding_box_fpu()
772 bw_params->clk_table.entries[j].memclk_mhz * 16; in dcn321_update_bw_bounding_box_fpu()
830 if (!bw_params->clk_table.entries[i].dtbclk_mhz) { in dcn321_update_bw_bounding_box_fpu()
835 } else if (bw_params->clk_table.entries[i].dtbclk_mhz) { in dcn321_update_bw_bounding_box_fpu()
839 if (!bw_params->clk_table.entries[i].socclk_mhz && i > 0) in dcn321_update_bw_bounding_box_fpu()
864 if (dc->clk_mgr->bw_params->clk_table.num_entries > 1) { in dcn321_update_bw_bounding_box_fpu()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn401/
H A Ddcn401_fpu.c34 if (clk_mgr->bw_params->clk_table.entries[2].memclk_mhz) in dcn401_build_wm_range_table_fpu()
173 if (dc->clk_mgr->bw_params->clk_table.num_entries > 1) { in dcn401_update_bw_bounding_box_fpu()
200 if (dc->clk_mgr->bw_params->clk_table.entries[i].dcfclk_mhz) in dcn401_update_bw_bounding_box_fpu()
202 dc->clk_mgr->bw_params->clk_table.entries[i].dcfclk_mhz; in dcn401_update_bw_bounding_box_fpu()
206 if (dc->clk_mgr->bw_params->clk_table.entries[i].fclk_mhz) in dcn401_update_bw_bounding_box_fpu()
208 dc->clk_mgr->bw_params->clk_table.entries[i].fclk_mhz; in dcn401_update_bw_bounding_box_fpu()
214 dc->clk_mgr->bw_params->clk_table.entries[i].memclk_mhz; in dcn401_update_bw_bounding_box_fpu()
220 dc->clk_mgr->bw_params->clk_table.entries[i].socclk_mhz; in dcn401_update_bw_bounding_box_fpu()
226 dc->clk_mgr->bw_params->clk_table.entries[i].dtbclk_mhz; in dcn401_update_bw_bounding_box_fpu()
232 dc->clk_mgr->bw_params->clk_table.entries[i].dispclk_mhz; in dcn401_update_bw_bounding_box_fpu()
[all …]
/linux/drivers/clk/samsung/
H A Dclk-s5pv210-audss.c69 struct clk_hw **clk_table; in s5pv210_audss_clk_probe() local
84 clk_table = clk_data->hws; in s5pv210_audss_clk_probe()
113 clk_table[CLK_MOUT_AUDSS] = clk_hw_register_mux(NULL, "mout_audss", in s5pv210_audss_clk_probe()
129 clk_table[CLK_DOUT_AUD_BUS] = clk_hw_register_divider(NULL, in s5pv210_audss_clk_probe()
132 clk_table[CLK_DOUT_I2S_A] = clk_hw_register_divider(NULL, in s5pv210_audss_clk_probe()
136 clk_table[CLK_I2S] = clk_hw_register_gate(NULL, "i2s_audss", in s5pv210_audss_clk_probe()
157 clk_table[CLK_HCLK_RP] = clk_hw_register_gate(NULL, "hclk_rp_audss", in s5pv210_audss_clk_probe()
162 if (IS_ERR(clk_table[i])) { in s5pv210_audss_clk_probe()
164 ret = PTR_ERR(clk_table[i]); in s5pv210_audss_clk_probe()
184 if (!IS_ERR(clk_table[i])) in s5pv210_audss_clk_probe()
[all …]
H A Dclk-exynos-audss.c130 struct clk_hw **clk_table; in exynos_audss_clk_probe() local
152 clk_table = clk_data->hws; in exynos_audss_clk_probe()
194 clk_table[EXYNOS_MOUT_I2S] = clk_hw_register_mux(dev, "mout_i2s", in exynos_audss_clk_probe()
203 clk_table[EXYNOS_DOUT_AUD_BUS] = clk_hw_register_divider(dev, in exynos_audss_clk_probe()
211 clk_table[EXYNOS_SRP_CLK] = clk_hw_register_gate(dev, "srp_clk", in exynos_audss_clk_probe()
215 clk_table[EXYNOS_I2S_BUS] = clk_hw_register_gate(dev, "i2s_bus", in exynos_audss_clk_probe()
219 clk_table[EXYNOS_SCLK_I2S] = clk_hw_register_gate(dev, "sclk_i2s", in exynos_audss_clk_probe()
223 clk_table[EXYNOS_PCM_BUS] = clk_hw_register_gate(dev, "pcm_bus", in exynos_audss_clk_probe()
235 clk_table[EXYNOS_ADMA] = clk_hw_register_gate(dev, "adma", in exynos_audss_clk_probe()
241 if (IS_ERR(clk_table[i])) { in exynos_audss_clk_probe()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/
H A Ddcn315_clk_mgr.c255 .clk_table = {
407 bw_params->clk_table.entries[i].dcfclk_mhz; in dcn315_build_watermark_ranges()
487 …struct clk_limit_table_entry def_max = bw_params->clk_table.entries[bw_params->clk_table.num_entri… in dcn315_clk_mgr_helper_populate_bw_params()
506 bw_params->clk_table.entries[i].phyclk_mhz = bw_params->clk_table.entries[j].phyclk_mhz; in dcn315_clk_mgr_helper_populate_bw_params()
507 bw_params->clk_table.entries[i].phyclk_d18_mhz = bw_params->clk_table.entries[j].phyclk_d18_mhz; in dcn315_clk_mgr_helper_populate_bw_params()
508 bw_params->clk_table.entries[i].dtbclk_mhz = bw_params->clk_table.entries[j].dtbclk_mhz; in dcn315_clk_mgr_helper_populate_bw_params()
518 bw_params->clk_table.entries[i].wck_ratio = 1; in dcn315_clk_mgr_helper_populate_bw_params()
527 bw_params->clk_table.entries[i].wck_ratio = 1; in dcn315_clk_mgr_helper_populate_bw_params()
535 bw_params->clk_table.num_entries = i; in dcn315_clk_mgr_helper_populate_bw_params()
541 if (!bw_params->clk_table.entries[i].fclk_mhz) { in dcn315_clk_mgr_helper_populate_bw_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/
H A Ddcn31_fpu.c593 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn31_update_bw_bounding_box() local
607 ASSERT(clk_table->num_entries); in dcn31_update_bw_bounding_box()
633 2 * clk_table->entries[i].wck_ratio; in dcn31_update_bw_bounding_box()
651 if (clk_table->num_entries) in dcn31_update_bw_bounding_box()
670 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn315_update_bw_bounding_box() local
683 ASSERT(clk_table->num_entries); in dcn315_update_bw_bounding_box()
732 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn316_update_bw_bounding_box() local
746 ASSERT(clk_table->num_entries); in dcn316_update_bw_bounding_box()
760 clk_table->entries[i].dcfclk_mhz) { in dcn316_update_bw_bounding_box()
773 2 * clk_table->entries[i].wck_ratio; in dcn316_update_bw_bounding_box()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/
H A Ddcn314_clk_mgr.c397 .clk_table = {
512 bw_params->clk_table.entries[i].dcfclk_mhz; in dcn314_build_watermark_ranges()
622 …struct clk_limit_table_entry def_max = bw_params->clk_table.entries[bw_params->clk_table.num_entri… in dcn314_clk_mgr_helper_populate_bw_params()
667 bw_params->clk_table.entries[i].phyclk_mhz = bw_params->clk_table.entries[j].phyclk_mhz; in dcn314_clk_mgr_helper_populate_bw_params()
668 bw_params->clk_table.entries[i].phyclk_d18_mhz = bw_params->clk_table.entries[j].phyclk_d18_mhz; in dcn314_clk_mgr_helper_populate_bw_params()
669 bw_params->clk_table.entries[i].dtbclk_mhz = bw_params->clk_table.entries[j].dtbclk_mhz; in dcn314_clk_mgr_helper_populate_bw_params()
699 bw_params->clk_table.num_entries = i--; in dcn314_clk_mgr_helper_populate_bw_params()
715 if (!bw_params->clk_table.entries[i].fclk_mhz) { in dcn314_clk_mgr_helper_populate_bw_params()
720 if (!bw_params->clk_table.entries[i].dcfclk_mhz) in dcn314_clk_mgr_helper_populate_bw_params()
722 if (!bw_params->clk_table.entries[i].socclk_mhz) in dcn314_clk_mgr_helper_populate_bw_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn302/
H A Ddcn302_fpu.c220 if (bw_params->clk_table.entries[0].memclk_mhz) { in dcn302_fpu_update_bw_bounding_box()
224 if (bw_params->clk_table.entries[i].dcfclk_mhz > max_dcfclk_mhz) in dcn302_fpu_update_bw_bounding_box()
225 max_dcfclk_mhz = bw_params->clk_table.entries[i].dcfclk_mhz; in dcn302_fpu_update_bw_bounding_box()
227 max_dispclk_mhz = bw_params->clk_table.entries[i].dispclk_mhz; in dcn302_fpu_update_bw_bounding_box()
228 if (bw_params->clk_table.entries[i].dppclk_mhz > max_dppclk_mhz) in dcn302_fpu_update_bw_bounding_box()
229 max_dppclk_mhz = bw_params->clk_table.entries[i].dppclk_mhz; in dcn302_fpu_update_bw_bounding_box()
231 max_phyclk_mhz = bw_params->clk_table.entries[i].phyclk_mhz; in dcn302_fpu_update_bw_bounding_box()
258 num_uclk_states = bw_params->clk_table.num_entries; in dcn302_fpu_update_bw_bounding_box()
273 bw_params->clk_table.entries[j].memclk_mhz * 16; in dcn302_fpu_update_bw_bounding_box()
329 if (!bw_params->clk_table.entries[i].dtbclk_mhz && i > 0) in dcn302_fpu_update_bw_bounding_box()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn35/
H A Ddcn35_fpu.c232 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn35_update_bw_bounding_box_fpu() local
316 if (clk_table->num_entries) in dcn35_update_bw_bounding_box_fpu()
357 clk_table->num_entries; in dcn35_update_bw_bounding_box_fpu()
369 clk_table->entries[i].memclk_mhz * clk_table->entries[i].wck_ratio; in dcn35_update_bw_bounding_box_fpu()
373 clk_table->num_entries; in dcn35_update_bw_bounding_box_fpu()
375 clk_table->num_entries; in dcn35_update_bw_bounding_box_fpu()
377 clk_table->num_entries; in dcn35_update_bw_bounding_box_fpu()
379 clk_table->num_entries; in dcn35_update_bw_bounding_box_fpu()
381 clk_table->num_entries; in dcn35_update_bw_bounding_box_fpu()
383 clk_table->num_entries; in dcn35_update_bw_bounding_box_fpu()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn351/
H A Ddcn351_fpu.c266 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn351_update_bw_bounding_box_fpu() local
350 if (clk_table->num_entries) in dcn351_update_bw_bounding_box_fpu()
391 clk_table->num_entries; in dcn351_update_bw_bounding_box_fpu()
403 clk_table->entries[i].memclk_mhz * clk_table->entries[i].wck_ratio; in dcn351_update_bw_bounding_box_fpu()
407 clk_table->num_entries; in dcn351_update_bw_bounding_box_fpu()
409 clk_table->num_entries; in dcn351_update_bw_bounding_box_fpu()
411 clk_table->num_entries; in dcn351_update_bw_bounding_box_fpu()
413 clk_table->num_entries; in dcn351_update_bw_bounding_box_fpu()
415 clk_table->num_entries; in dcn351_update_bw_bounding_box_fpu()
417 clk_table->num_entries; in dcn351_update_bw_bounding_box_fpu()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn303/
H A Ddcn303_fpu.c216 if (bw_params->clk_table.entries[0].memclk_mhz) { in dcn303_fpu_update_bw_bounding_box()
221 max_dcfclk_mhz = bw_params->clk_table.entries[i].dcfclk_mhz; in dcn303_fpu_update_bw_bounding_box()
223 max_dispclk_mhz = bw_params->clk_table.entries[i].dispclk_mhz; in dcn303_fpu_update_bw_bounding_box()
225 max_dppclk_mhz = bw_params->clk_table.entries[i].dppclk_mhz; in dcn303_fpu_update_bw_bounding_box()
227 max_phyclk_mhz = bw_params->clk_table.entries[i].phyclk_mhz; in dcn303_fpu_update_bw_bounding_box()
252 num_uclk_states = bw_params->clk_table.num_entries; in dcn303_fpu_update_bw_bounding_box()
267 bw_params->clk_table.entries[j].memclk_mhz * 16; in dcn303_fpu_update_bw_bounding_box()
278 bw_params->clk_table.entries[j].memclk_mhz * 16; in dcn303_fpu_update_bw_bounding_box()
295 bw_params->clk_table.entries[j++].memclk_mhz * 16; in dcn303_fpu_update_bw_bounding_box()
335 if (!bw_params->clk_table.entries[i].dtbclk_mhz && i > 0) in dcn303_fpu_update_bw_bounding_box()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu14/
H A Dsmu_v14_0_0_ppt.c649 *freq = clk_table->VClocks0[dpm_level]; in smu_v14_0_1_get_dpm_freq_by_index()
703 *freq = clk_table->VClocks[dpm_level]; in smu_v14_0_0_get_dpm_freq_by_index()
708 *freq = clk_table->DClocks[dpm_level]; in smu_v14_0_0_get_dpm_freq_by_index()
824 *max = clk_table->MaxGfxClk; in smu_v14_0_1_get_dpm_ultimate_freq()
860 *min = clk_table->MinGfxClk; in smu_v14_0_1_get_dpm_ultimate_freq()
944 *max = clk_table->MaxGfxClk; in smu_v14_0_0_get_dpm_ultimate_freq()
976 *min = clk_table->MinGfxClk; in smu_v14_0_0_get_dpm_ultimate_freq()
1550 …clock_table->SocClocks[idx].Freq = (idx < clk_table->NumSocClkLevelsEnabled) ? clk_table->SocClock… in smu_14_0_1_get_dpm_table()
1555 …clock_table->VPEClocks[idx].Freq = (idx < clk_table->VpeClkLevelsEnabled) ? clk_table->VPEClocks[i… in smu_14_0_1_get_dpm_table()
1569 …clock_table->SocClocks[idx].Freq = (idx < clk_table->NumSocClkLevelsEnabled) ? clk_table->SocClock… in smu_14_0_0_get_dpm_table()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/
H A Ddcn35_clk_mgr.c536 .clk_table = {
785 …struct clk_limit_table_entry def_max = bw_params->clk_table.entries[bw_params->clk_table.num_entri… in dcn35_clk_mgr_helper_populate_bw_params()
849 bw_params->clk_table.entries[i].phyclk_mhz = bw_params->clk_table.entries[j].phyclk_mhz; in dcn35_clk_mgr_helper_populate_bw_params()
850 bw_params->clk_table.entries[i].phyclk_d18_mhz = bw_params->clk_table.entries[j].phyclk_d18_mhz; in dcn35_clk_mgr_helper_populate_bw_params()
851 bw_params->clk_table.entries[i].dtbclk_mhz = bw_params->clk_table.entries[j].dtbclk_mhz; in dcn35_clk_mgr_helper_populate_bw_params()
860 bw_params->clk_table.entries[i].wck_ratio = in dcn35_clk_mgr_helper_populate_bw_params()
875 bw_params->clk_table.entries[i].dcfclk_mhz = in dcn35_clk_mgr_helper_populate_bw_params()
885 bw_params->clk_table.num_entries = i--; in dcn35_clk_mgr_helper_populate_bw_params()
888 bw_params->clk_table.entries[i].socclk_mhz = in dcn35_clk_mgr_helper_populate_bw_params()
892 bw_params->clk_table.entries[i].dppclk_mhz = in dcn35_clk_mgr_helper_populate_bw_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/
H A Ddcn314_fpu.c184 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn314_update_bw_bounding_box_fpu() local
205 ASSERT(clk_table->num_entries); in dcn314_update_bw_bounding_box_fpu()
208 for (i = 0; i < clk_table->num_entries; ++i) { in dcn314_update_bw_bounding_box_fpu()
215 for (i = 0; i < clk_table->num_entries; i++) { in dcn314_update_bw_bounding_box_fpu()
223 if (clk_table->num_entries == 1) { in dcn314_update_bw_bounding_box_fpu()
232 if (clk_table->num_entries == 1 && in dcn314_update_bw_bounding_box_fpu()
240 if (clk_table->entries[i].memclk_mhz && clk_table->entries[i].wck_ratio) in dcn314_update_bw_bounding_box_fpu()
241 …clock_limits[i].dram_speed_mts = clk_table->entries[i].memclk_mhz * 2 * clk_table->entries[i].wck_… in dcn314_update_bw_bounding_box_fpu()
256 for (i = 0; i < clk_table->num_entries; i++) in dcn314_update_bw_bounding_box_fpu()
258 if (clk_table->num_entries) { in dcn314_update_bw_bounding_box_fpu()
[all …]
/linux/drivers/clk/mmp/
H A Dclk.c13 struct clk **clk_table; in mmp_clk_init() local
16 if (!clk_table) in mmp_clk_init()
19 unit->clk_table = clk_table; in mmp_clk_init()
21 unit->clk_data.clks = clk_table; in mmp_clk_init()
44 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_rate_clks()
66 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_factor_clks()
92 unit->clk_table[clks[i].id] = clk; in mmp_register_general_gate_clks()
120 unit->clk_table[clks[i].id] = clk; in mmp_register_gate_clks()
148 unit->clk_table[clks[i].id] = clk; in mmp_register_mux_clks()
175 unit->clk_table[clks[i].id] = clk; in mmp_register_div_clks()
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dvega10_processpptables.c576 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_socclk_voltage_dependency_table()
578 if (!clk_table) in get_socclk_voltage_dependency_table()
637 *clk_table; in get_gfxclk_voltage_dependency_table() local
645 if (!clk_table) in get_gfxclk_voltage_dependency_table()
681 kfree(clk_table); in get_gfxclk_voltage_dependency_table()
700 *clk_table; in get_pix_clk_voltage_dependency_table() local
707 if (!clk_table) in get_pix_clk_voltage_dependency_table()
733 *clk_table; in get_dcefclk_voltage_dependency_table() local
758 clk_table = kzalloc(struct_size(clk_table, entries, num_entries), in get_dcefclk_voltage_dependency_table()
760 if (!clk_table) in get_dcefclk_voltage_dependency_table()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_5_ppt.c631 *count = clk_table->NumSocClkLevelsEnabled; in smu_v13_0_5_get_dpm_level_count()
634 *count = clk_table->VcnClkLevelsEnabled; in smu_v13_0_5_get_dpm_level_count()
637 *count = clk_table->VcnClkLevelsEnabled; in smu_v13_0_5_get_dpm_level_count()
640 *count = clk_table->NumDfPstatesEnabled; in smu_v13_0_5_get_dpm_level_count()
643 *count = clk_table->NumDfPstatesEnabled; in smu_v13_0_5_get_dpm_level_count()
659 if (!clk_table || clk_type >= SMU_CLK_COUNT) in smu_v13_0_5_get_dpm_freq_by_index()
666 *freq = clk_table->SocClocks[dpm_level]; in smu_v13_0_5_get_dpm_freq_by_index()
671 *freq = clk_table->VClocks[dpm_level]; in smu_v13_0_5_get_dpm_freq_by_index()
676 *freq = clk_table->DClocks[dpm_level]; in smu_v13_0_5_get_dpm_freq_by_index()
753 *max = clk_table->MaxGfxClk; in smu_v13_0_5_get_dpm_ultimate_freq()
[all …]
H A Dsmu_v13_0_4_ppt.c431 if (!clk_table || clk_type >= SMU_CLK_COUNT) in smu_v13_0_4_get_dpm_freq_by_index()
438 *freq = clk_table->SocClocks[dpm_level]; in smu_v13_0_4_get_dpm_freq_by_index()
443 *freq = clk_table->VClocks[dpm_level]; in smu_v13_0_4_get_dpm_freq_by_index()
448 *freq = clk_table->DClocks[dpm_level]; in smu_v13_0_4_get_dpm_freq_by_index()
476 *count = clk_table->NumSocClkLevelsEnabled; in smu_v13_0_4_get_dpm_level_count()
479 *count = clk_table->VcnClkLevelsEnabled; in smu_v13_0_4_get_dpm_level_count()
482 *count = clk_table->VcnClkLevelsEnabled; in smu_v13_0_4_get_dpm_level_count()
485 *count = clk_table->NumDfPstatesEnabled; in smu_v13_0_4_get_dpm_level_count()
488 *count = clk_table->NumDfPstatesEnabled; in smu_v13_0_4_get_dpm_level_count()
778 *max = clk_table->MaxGfxClk; in smu_v13_0_4_get_dpm_ultimate_freq()
[all …]
H A Dyellow_carp_ppt.c765 *count = clk_table->NumSocClkLevelsEnabled; in yellow_carp_get_dpm_level_count()
768 *count = clk_table->VcnClkLevelsEnabled; in yellow_carp_get_dpm_level_count()
771 *count = clk_table->VcnClkLevelsEnabled; in yellow_carp_get_dpm_level_count()
774 *count = clk_table->NumDfPstatesEnabled; in yellow_carp_get_dpm_level_count()
777 *count = clk_table->NumDfPstatesEnabled; in yellow_carp_get_dpm_level_count()
793 if (!clk_table || clk_type >= SMU_CLK_COUNT) in yellow_carp_get_dpm_freq_by_index()
800 *freq = clk_table->SocClocks[dpm_level]; in yellow_carp_get_dpm_freq_by_index()
805 *freq = clk_table->VClocks[dpm_level]; in yellow_carp_get_dpm_freq_by_index()
810 *freq = clk_table->DClocks[dpm_level]; in yellow_carp_get_dpm_freq_by_index()
887 *max = clk_table->MaxGfxClk; in yellow_carp_get_dpm_ultimate_freq()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
H A Ddcn30_clk_mgr.c133 &clk_mgr_base->bw_params->clk_table.entries[0].dcfclk_mhz, in dcn3_init_clocks()
139 &clk_mgr_base->bw_params->clk_table.entries[0].dtbclk_mhz, in dcn3_init_clocks()
144 &clk_mgr_base->bw_params->clk_table.entries[0].socclk_mhz, in dcn3_init_clocks()
150 &clk_mgr_base->bw_params->clk_table.entries[0].dispclk_mhz, in dcn3_init_clocks()
155 &clk_mgr_base->bw_params->clk_table.entries[0].dppclk_mhz, in dcn3_init_clocks()
160 &clk_mgr_base->bw_params->clk_table.entries[0].phyclk_mhz, in dcn3_init_clocks()
270 …clk_mgr_base->bw_params->clk_table.entries[clk_mgr_base->bw_params->clk_table.num_entries - 1].mem… in dcn3_update_clocks()
368 …clk_mgr_base->bw_params->clk_table.entries[clk_mgr_base->bw_params->clk_table.num_entries - 1].mem… in dcn3_set_hard_min_memclk()
371 clk_mgr_base->bw_params->clk_table.entries[0].memclk_mhz); in dcn3_set_hard_min_memclk()
384 …clk_mgr_base->bw_params->clk_table.entries[clk_mgr_base->bw_params->clk_table.num_entries - 1].mem… in dcn3_set_hard_max_memclk()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/
H A Ddcn32_fpu.c207 if (clk_mgr->base.bw_params->clk_table.entries[2].memclk_mhz) in dcn32_build_wm_range_table_fpu()
2832 if (bw_params->clk_table.entries[i].memclk_mhz > 0) { in build_synthetic_soc_states()
2837 if (bw_params->clk_table.entries[i].fclk_mhz > 0) { in build_synthetic_soc_states()
2842 if (bw_params->clk_table.entries[i].dcfclk_mhz > 0) { in build_synthetic_soc_states()
2860 min_fclk_mhz = bw_params->clk_table.entries[0].fclk_mhz; in build_synthetic_soc_states()
3145 if (bw_params->clk_table.entries[0].memclk_mhz) { in dcn32_update_bw_bounding_box_fpu()
3163 if (bw_params->clk_table.entries[i].dcfclk_mhz != 0 && in dcn32_update_bw_bounding_box_fpu()
3200 num_uclk_states = bw_params->clk_table.num_entries; in dcn32_update_bw_bounding_box_fpu()
3216 bw_params->clk_table.entries[j].memclk_mhz * 16; in dcn32_update_bw_bounding_box_fpu()
3274 if (!bw_params->clk_table.entries[i].dtbclk_mhz) { in dcn32_update_bw_bounding_box_fpu()
[all …]
/linux/drivers/clk/hisilicon/
H A Dclk.c31 struct clk **clk_table; in hisi_clk_alloc() local
45 clk_table = devm_kmalloc_array(&pdev->dev, nr_clks, in hisi_clk_alloc()
46 sizeof(*clk_table), in hisi_clk_alloc()
48 if (!clk_table) in hisi_clk_alloc()
51 clk_data->clk_data.clks = clk_table; in hisi_clk_alloc()
62 struct clk **clk_table; in hisi_clk_init() local
76 clk_table = kcalloc(nr_clks, sizeof(*clk_table), GFP_KERNEL); in hisi_clk_init()
77 if (!clk_table) in hisi_clk_init()
80 clk_data->clk_data.clks = clk_table; in hisi_clk_init()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn301/
H A Ddcn301_fpu.c327 struct clk_limit_table *clk_table = &bw_params->clk_table; in dcn301_fpu_update_bw_bounding_box() local
340 ASSERT(clk_table->num_entries); in dcn301_fpu_update_bw_bounding_box()
341 for (i = 0; i < clk_table->num_entries; i++) { in dcn301_fpu_update_bw_bounding_box()
344 if ((unsigned int) dcn3_01_soc.clock_limits[j].dcfclk_mhz <= clk_table->entries[i].dcfclk_mhz) { in dcn301_fpu_update_bw_bounding_box()
351 s[i].dcfclk_mhz = clk_table->entries[i].dcfclk_mhz; in dcn301_fpu_update_bw_bounding_box()
352 s[i].fabricclk_mhz = clk_table->entries[i].fclk_mhz; in dcn301_fpu_update_bw_bounding_box()
353 s[i].socclk_mhz = clk_table->entries[i].socclk_mhz; in dcn301_fpu_update_bw_bounding_box()
354 s[i].dram_speed_mts = clk_table->entries[i].memclk_mhz * 2; in dcn301_fpu_update_bw_bounding_box()
367 if (clk_table->num_entries) { in dcn301_fpu_update_bw_bounding_box()
368 dcn3_01_soc.num_states = clk_table->num_entries; in dcn301_fpu_update_bw_bounding_box()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/
H A Ddcn401_clk_mgr.c238 &clk_mgr_base->bw_params->clk_table.entries[0].dcfclk_mhz, in dcn401_init_clocks()
247 &clk_mgr_base->bw_params->clk_table.entries[0].socclk_mhz, in dcn401_init_clocks()
257 &clk_mgr_base->bw_params->clk_table.entries[0].dtbclk_mhz, in dcn401_init_clocks()
267 &clk_mgr_base->bw_params->clk_table.entries[0].dispclk_mhz, in dcn401_init_clocks()
276 &clk_mgr_base->bw_params->clk_table.entries[0].dppclk_mhz, in dcn401_init_clocks()
288 clk_mgr_base->bw_params->clk_table.entries[i].dispclk_mhz in dcn401_init_clocks()
294 if (clk_mgr_base->bw_params->clk_table.entries[i].dppclk_mhz in dcn401_init_clocks()
296 clk_mgr_base->bw_params->clk_table.entries[i].dppclk_mhz in dcn401_init_clocks()
715 …clk_mgr_base->bw_params->clk_table.entries[clk_mgr_base->bw_params->clk_table.num_entries_per_clk.… in dcn401_update_clocks_legacy()
999 …clk_mgr_base->bw_params->clk_table.entries[clk_mgr_base->bw_params->clk_table.num_entries_per_clk.… in dcn401_build_update_bandwidth_clocks_sequence()
[all …]

123