Home
last modified time | relevance | path

Searched refs:clk_type (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.1.9/drivers/gpu/drm/amd/display/dc/
Ddm_services_types.h82 #define DC_DECODE_PP_CLOCK_TYPE(clk_type) \ argument
83 (clk_type) == DM_PP_CLOCK_TYPE_DISPLAY_CLK ? "Display" : \
84 (clk_type) == DM_PP_CLOCK_TYPE_ENGINE_CLK ? "Engine" : \
85 (clk_type) == DM_PP_CLOCK_TYPE_MEMORY_CLK ? "Memory" : \
86 (clk_type) == DM_PP_CLOCK_TYPE_DCFCLK ? "DCF" : \
87 (clk_type) == DM_PP_CLOCK_TYPE_DCEFCLK ? "DCEF" : \
88 (clk_type) == DM_PP_CLOCK_TYPE_SOCCLK ? "SoC" : \
89 (clk_type) == DM_PP_CLOCK_TYPE_PIXELCLK ? "Pixel" : \
90 (clk_type) == DM_PP_CLOCK_TYPE_DISPLAYPHYCLK ? "Display PHY" : \
91 (clk_type) == DM_PP_CLOCK_TYPE_DPPCLK ? "DPP" : \
[all …]
Ddm_services.h191 enum dm_pp_clock_type clk_type,
196 enum dm_pp_clock_type clk_type,
201 enum dm_pp_clock_type clk_type,
/linux-6.1.9/sound/soc/intel/skylake/
Dskl-ssp-clk.c57 static int skl_get_vbus_id(u32 index, u8 clk_type) in skl_get_vbus_id() argument
59 switch (clk_type) { in skl_get_vbus_id()
74 static void skl_fill_clk_ipc(struct skl_clk_rate_cfg_table *rcfg, u8 clk_type) in skl_fill_clk_ipc() argument
84 if (clk_type == SKL_SCLK_FS) { in skl_fill_clk_ipc()
107 u32 vbus_id, u8 clk_type, in skl_send_clk_dma_control() argument
125 if (clk_type == SKL_SCLK_FS) { in skl_send_clk_dma_control()
132 if (clk_type == SKL_SCLK) in skl_send_clk_dma_control()
181 int vbus_id, clk_type; in skl_clk_change_status() local
183 clk_type = skl_get_clk_type(clkdev->id); in skl_clk_change_status()
184 if (clk_type < 0) in skl_clk_change_status()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0_4_ppt.c370 enum smu_clk_type clk_type, in smu_v13_0_4_get_current_clk_freq() argument
375 switch (clk_type) { in smu_v13_0_4_get_current_clk_freq()
406 enum smu_clk_type clk_type, in smu_v13_0_4_get_dpm_freq_by_index() argument
412 if (!clk_table || clk_type >= SMU_CLK_COUNT) in smu_v13_0_4_get_dpm_freq_by_index()
415 switch (clk_type) { in smu_v13_0_4_get_dpm_freq_by_index()
450 enum smu_clk_type clk_type, in smu_v13_0_4_get_dpm_level_count() argument
455 switch (clk_type) { in smu_v13_0_4_get_dpm_level_count()
479 enum smu_clk_type clk_type, char *buf) in smu_v13_0_4_print_clk_levels() argument
487 switch (clk_type) { in smu_v13_0_4_print_clk_levels()
506 ret = smu_v13_0_4_get_current_clk_freq(smu, clk_type, &cur_value); in smu_v13_0_4_print_clk_levels()
[all …]
Dsmu_v13_0_5_ppt.c586 enum smu_clk_type clk_type, in smu_v13_0_5_get_current_clk_freq() argument
591 switch (clk_type) { in smu_v13_0_5_get_current_clk_freq()
617 enum smu_clk_type clk_type, in smu_v13_0_5_get_dpm_level_count() argument
622 switch (clk_type) { in smu_v13_0_5_get_dpm_level_count()
646 enum smu_clk_type clk_type, in smu_v13_0_5_get_dpm_freq_by_index() argument
652 if (!clk_table || clk_type >= SMU_CLK_COUNT) in smu_v13_0_5_get_dpm_freq_by_index()
655 switch (clk_type) { in smu_v13_0_5_get_dpm_freq_by_index()
690 enum smu_clk_type clk_type) in smu_v13_0_5_clk_dpm_is_enabled() argument
694 switch (clk_type) { in smu_v13_0_5_clk_dpm_is_enabled()
719 enum smu_clk_type clk_type, in smu_v13_0_5_get_dpm_ultimate_freq() argument
[all …]
Dyellow_carp_ppt.c709 enum smu_clk_type clk_type, in yellow_carp_get_current_clk_freq() argument
714 switch (clk_type) { in yellow_carp_get_current_clk_freq()
743 enum smu_clk_type clk_type, in yellow_carp_get_dpm_level_count() argument
748 switch (clk_type) { in yellow_carp_get_dpm_level_count()
772 enum smu_clk_type clk_type, in yellow_carp_get_dpm_freq_by_index() argument
778 if (!clk_table || clk_type >= SMU_CLK_COUNT) in yellow_carp_get_dpm_freq_by_index()
781 switch (clk_type) { in yellow_carp_get_dpm_freq_by_index()
816 enum smu_clk_type clk_type) in yellow_carp_clk_dpm_is_enabled() argument
820 switch (clk_type) { in yellow_carp_clk_dpm_is_enabled()
845 enum smu_clk_type clk_type, in yellow_carp_get_dpm_ultimate_freq() argument
[all …]
Dsmu_v13_0.c1120 enum amd_pp_clock_type clk_type = clock_req->clock_type; in smu_v13_0_display_clock_voltage_request() local
1127 switch (clk_type) { in smu_v13_0_display_clock_voltage_request()
1559 int smu_v13_0_get_dpm_ultimate_freq(struct smu_context *smu, enum smu_clk_type clk_type, in smu_v13_0_get_dpm_ultimate_freq() argument
1566 if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type)) { in smu_v13_0_get_dpm_ultimate_freq()
1567 switch (clk_type) { in smu_v13_0_get_dpm_ultimate_freq()
1595 clk_type); in smu_v13_0_get_dpm_ultimate_freq()
1628 enum smu_clk_type clk_type, in smu_v13_0_set_soft_freq_limited_range() argument
1635 if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type)) in smu_v13_0_set_soft_freq_limited_range()
1640 clk_type); in smu_v13_0_set_soft_freq_limited_range()
1665 enum smu_clk_type clk_type, in smu_v13_0_set_hard_freq_limited_range() argument
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/
Damdgpu_smu.c58 enum smu_clk_type clk_type,
128 enum smu_clk_type clk_type, in smu_set_soft_freq_range() argument
136 clk_type, in smu_set_soft_freq_range()
144 enum smu_clk_type clk_type, in smu_get_dpm_freq_range() argument
155 clk_type, in smu_get_dpm_freq_range()
370 enum smu_clk_type clk_type; in smu_restore_dpm_user_profile() local
372 for (clk_type = 0; clk_type < SMU_CLK_COUNT; clk_type++) { in smu_restore_dpm_user_profile()
377 if (!(smu->user_dpm_profile.clk_dependency & BIT(clk_type)) && in smu_restore_dpm_user_profile()
378 smu->user_dpm_profile.clk_mask[clk_type]) { in smu_restore_dpm_user_profile()
379 ret = smu_force_smuclk_levels(smu, clk_type, in smu_restore_dpm_user_profile()
[all …]
/linux-6.1.9/drivers/clk/imx/
Dclk-scu.h34 int num_parents, u32 rsrc_id, u8 clk_type);
38 u32 rsrc_id, u8 clk_type);
52 u8 clk_type) in imx_clk_scu() argument
54 return imx_clk_scu_alloc_dev(name, NULL, 0, rsrc_id, clk_type); in imx_clk_scu()
58 int num_parents, u32 rsrc_id, u8 clk_type) in imx_clk_scu2() argument
60 return imx_clk_scu_alloc_dev(name, parents, num_parents, rsrc_id, clk_type); in imx_clk_scu2()
Dclk-scu.c31 u8 clk_type; member
50 u8 clk_type; member
241 msg.data.req.clk = clk->clk_type; in clk_scu_recalc_rate()
315 msg.clk = clk->clk_type; in clk_scu_set_rate()
333 msg.data.req.clk = clk->clk_type; in clk_scu_get_parent()
360 msg.clk = clk->clk_type; in clk_scu_set_parent()
405 clk->clk_type, true, false); in clk_scu_prepare()
420 clk->clk_type, false, false); in clk_scu_unprepare()
452 u32 rsrc_id, u8 clk_type) in __imx_clk_scu() argument
464 clk->clk_type = clk_type; in __imx_clk_scu()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dvangogh_ppt.c534 static int vangogh_get_dpm_clk_limited(struct smu_context *smu, enum smu_clk_type clk_type, in vangogh_get_dpm_clk_limited() argument
539 if (!clk_table || clk_type >= SMU_CLK_COUNT) in vangogh_get_dpm_clk_limited()
542 switch (clk_type) { in vangogh_get_dpm_clk_limited()
578 enum smu_clk_type clk_type, char *buf) in vangogh_print_legacy_clk_levels() argument
595 switch (clk_type) { in vangogh_print_legacy_clk_levels()
650 switch (clk_type) { in vangogh_print_legacy_clk_levels()
657 ret = vangogh_get_dpm_clk_limited(smu, clk_type, i, &value); in vangogh_print_legacy_clk_levels()
679 enum smu_clk_type clk_type, char *buf) in vangogh_print_clk_levels() argument
697 switch (clk_type) { in vangogh_print_clk_levels()
759 switch (clk_type) { in vangogh_print_clk_levels()
[all …]
Dcyan_skillfish_ppt.c250 enum smu_clk_type clk_type, in cyan_skillfish_get_current_clk_freq() argument
255 switch (clk_type) { in cyan_skillfish_get_current_clk_freq()
281 enum smu_clk_type clk_type, in cyan_skillfish_print_clk_levels() argument
290 switch (clk_type) { in cyan_skillfish_print_clk_levels()
317 ret = cyan_skillfish_get_current_clk_freq(smu, clk_type, &cur_value); in cyan_skillfish_print_clk_levels()
324 ret = cyan_skillfish_get_current_clk_freq(smu, clk_type, &cur_value); in cyan_skillfish_print_clk_levels()
526 enum smu_clk_type clk_type, in cyan_skillfish_get_dpm_ultimate_freq() argument
533 switch (clk_type) { in cyan_skillfish_get_dpm_ultimate_freq()
540 ret = cyan_skillfish_get_current_clk_freq(smu, clk_type, &low); in cyan_skillfish_get_dpm_ultimate_freq()
Dsmu_v11_0.c1082 enum amd_pp_clock_type clk_type = clock_req->clock_type; in smu_v11_0_display_clock_voltage_request() local
1089 switch (clk_type) { in smu_v11_0_display_clock_voltage_request()
1716 int smu_v11_0_get_dpm_ultimate_freq(struct smu_context *smu, enum smu_clk_type clk_type, in smu_v11_0_get_dpm_ultimate_freq() argument
1723 if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type)) { in smu_v11_0_get_dpm_ultimate_freq()
1724 switch (clk_type) { in smu_v11_0_get_dpm_ultimate_freq()
1752 clk_type); in smu_v11_0_get_dpm_ultimate_freq()
1776 enum smu_clk_type clk_type, in smu_v11_0_set_soft_freq_limited_range() argument
1783 if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type)) in smu_v11_0_set_soft_freq_limited_range()
1788 clk_type); in smu_v11_0_set_soft_freq_limited_range()
1813 enum smu_clk_type clk_type, in smu_v11_0_set_hard_freq_limited_range() argument
[all …]
Dnavi10_ppt.c1178 enum smu_clk_type clk_type, in navi10_get_current_clk_freq_by_table() argument
1186 clk_type); in navi10_get_current_clk_freq_by_table()
1218 static bool navi10_is_support_fine_grained_dpm(struct smu_context *smu, enum smu_clk_type clk_type) in navi10_is_support_fine_grained_dpm() argument
1226 clk_type); in navi10_is_support_fine_grained_dpm()
1249 enum smu_clk_type clk_type, in navi10_emit_clk_levels() argument
1268 switch (clk_type) { in navi10_emit_clk_levels()
1278 ret = navi10_get_current_clk_freq_by_table(smu, clk_type, &cur_value); in navi10_emit_clk_levels()
1282 ret = smu_v11_0_get_dpm_level_count(smu, clk_type, &count); in navi10_emit_clk_levels()
1286 if (!navi10_is_support_fine_grained_dpm(smu, clk_type)) { in navi10_emit_clk_levels()
1289 clk_type, i, &value); in navi10_emit_clk_levels()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/smu12/
Drenoir_ppt.c202 static int renoir_get_dpm_clk_limited(struct smu_context *smu, enum smu_clk_type clk_type, in renoir_get_dpm_clk_limited() argument
207 if (!clk_table || clk_type >= SMU_CLK_COUNT) in renoir_get_dpm_clk_limited()
210 switch (clk_type) { in renoir_get_dpm_clk_limited()
281 enum smu_clk_type clk_type, in renoir_get_dpm_ultimate_freq() argument
289 if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type)) { in renoir_get_dpm_ultimate_freq()
290 switch (clk_type) { in renoir_get_dpm_ultimate_freq()
325 switch (clk_type) { in renoir_get_dpm_ultimate_freq()
337 ret = renoir_get_dpm_clk_limited(smu, clk_type, mclk_mask, max); in renoir_get_dpm_ultimate_freq()
342 ret = renoir_get_dpm_clk_limited(smu, clk_type, soc_mask, max); in renoir_get_dpm_ultimate_freq()
353 switch (clk_type) { in renoir_get_dpm_ultimate_freq()
[all …]
Dsmu_v12_0.c212 int smu_v12_0_set_soft_freq_limited_range(struct smu_context *smu, enum smu_clk_type clk_type, in smu_v12_0_set_soft_freq_limited_range() argument
217 if (!smu_cmn_clk_dpm_is_enabled(smu, clk_type)) in smu_v12_0_set_soft_freq_limited_range()
220 switch (clk_type) { in smu_v12_0_set_soft_freq_limited_range()
/linux-6.1.9/drivers/gpu/drm/amd/pm/swsmu/inc/
Dsmu_v11_0.h256 int smu_v11_0_get_dpm_ultimate_freq(struct smu_context *smu, enum smu_clk_type clk_type,
259 int smu_v11_0_set_soft_freq_limited_range(struct smu_context *smu, enum smu_clk_type clk_type,
263 enum smu_clk_type clk_type,
274 enum smu_clk_type clk_type,
279 enum smu_clk_type clk_type,
283 enum smu_clk_type clk_type,
287 enum smu_clk_type clk_type,
Dsmu_v13_0.h226 int smu_v13_0_get_dpm_ultimate_freq(struct smu_context *smu, enum smu_clk_type clk_type,
229 int smu_v13_0_set_soft_freq_limited_range(struct smu_context *smu, enum smu_clk_type clk_type,
233 enum smu_clk_type clk_type,
244 enum smu_clk_type clk_type,
248 enum smu_clk_type clk_type,
Damdgpu_smu.h625 int (*print_clk_levels)(struct smu_context *smu, enum smu_clk_type clk_type, char *buf);
638 …int (*emit_clk_levels)(struct smu_context *smu, enum smu_clk_type clk_type, char *buf, int *offset…
646 int (*force_clk_levels)(struct smu_context *smu, enum smu_clk_type clk_type, uint32_t mask);
669 enum smu_clk_type clk_type,
1208 …int (*get_dpm_ultimate_freq)(struct smu_context *smu, enum smu_clk_type clk_type, uint32_t *min, u…
1214 …int (*set_soft_freq_limited_range)(struct smu_context *smu, enum smu_clk_type clk_type, uint32_t m…
1473 int smu_get_dpm_freq_range(struct smu_context *smu, enum smu_clk_type clk_type,
1476 int smu_set_soft_freq_range(struct smu_context *smu, enum smu_clk_type clk_type,
Dsmu_v12_0.h58 int smu_v12_0_set_soft_freq_limited_range(struct smu_context *smu, enum smu_clk_type clk_type,
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_pp_smu.c111 enum dm_pp_clock_type clk_type, in get_default_clock_levels() argument
120 switch (clk_type) { in get_default_clock_levels()
294 enum dm_pp_clock_type clk_type, in dm_pp_get_clock_levels_by_type() argument
303 dc_to_pp_clock_type(clk_type), &pp_clks)) { in dm_pp_get_clock_levels_by_type()
305 get_default_clock_levels(clk_type, dc_clks); in dm_pp_get_clock_levels_by_type()
309 pp_to_dc_clock_levels(&pp_clks, dc_clks, clk_type); in dm_pp_get_clock_levels_by_type()
332 if (clk_type == DM_PP_CLOCK_TYPE_ENGINE_CLK) { in dm_pp_get_clock_levels_by_type()
344 } else if (clk_type == DM_PP_CLOCK_TYPE_MEMORY_CLK) { in dm_pp_get_clock_levels_by_type()
360 enum dm_pp_clock_type clk_type, in dm_pp_get_clock_levels_by_type_with_latency() argument
368 dc_to_pp_clock_type(clk_type), in dm_pp_get_clock_levels_by_type_with_latency()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/
Ddce120_clk_mgr.c98 clock_voltage_req.clk_type = DM_PP_CLOCK_TYPE_DISPLAY_CLK; in dce12_update_clocks()
113 clock_voltage_req.clk_type = DM_PP_CLOCK_TYPE_DISPLAYPHYCLK; in dce12_update_clocks()
/linux-6.1.9/drivers/input/
Devdev.c49 enum input_clock_type clk_type; member
146 struct timespec64 ts = ktime_to_timespec64(ev_time[client->clk_type]); in __evdev_queue_syn_dropped()
177 enum input_clock_type clk_type; in evdev_set_clk_type() local
182 clk_type = INPUT_CLK_REAL; in evdev_set_clk_type()
185 clk_type = INPUT_CLK_MONO; in evdev_set_clk_type()
188 clk_type = INPUT_CLK_BOOT; in evdev_set_clk_type()
194 if (client->clk_type != clk_type) { in evdev_set_clk_type()
195 client->clk_type = clk_type; in evdev_set_clk_type()
256 ts = ktime_to_timespec64(ev_time[client->clk_type]); in evdev_pass_values()
/linux-6.1.9/drivers/phy/
Dphy-xgene.c534 enum clk_type_t clk_type; /* Input clock selection */ member
705 enum clk_type_t clk_type) in xgene_phy_cfg_cmu_clk_type() argument
718 if (clk_type == CLK_EXT_DIFF) { in xgene_phy_cfg_cmu_clk_type()
728 } else if (clk_type == CLK_INT_DIFF) { in xgene_phy_cfg_cmu_clk_type()
738 } else if (clk_type == CLK_INT_SING) { in xgene_phy_cfg_cmu_clk_type()
759 enum clk_type_t clk_type) in xgene_phy_sata_cfg_cmu_core() argument
805 if (clk_type == CLK_EXT_DIFF) in xgene_phy_sata_cfg_cmu_core()
1136 enum clk_type_t clk_type) in xgene_phy_cal_rdy_chk() argument
1236 enum clk_type_t clk_type) in xgene_phy_pdwn_force_vco() argument
1253 enum clk_type_t clk_type, int ssc_enable) in xgene_phy_hw_init_sata() argument
[all …]
/linux-6.1.9/drivers/nfc/s3fwrn5/
Dnci.h44 __u8 clk_type; member

12