Home
last modified time | relevance | path

Searched refs:pclk (Results 176 - 200 of 400) sorted by relevance

12345678910>>...16

/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-rk3x.c179 * @pclk: Bus clk for rk3399
202 struct clk *pclk; member
886 clk_enable(i2c->pclk); in rk3x_i2c_adapt_div()
897 clk_disable(i2c->pclk); in rk3x_i2c_adapt_div()
1071 clk_enable(i2c->pclk); in rk3x_i2c_xfer_common()
1130 clk_disable(i2c->pclk); in rk3x_i2c_xfer_common()
1331 i2c->pclk = i2c->clk; in rk3x_i2c_probe()
1334 i2c->pclk = devm_clk_get(&pdev->dev, "pclk"); in rk3x_i2c_probe()
1341 if (IS_ERR(i2c->pclk)) in rk3x_i2c_probe()
[all...]
/kernel/linux/linux-6.6/sound/soc/stm/
H A Dstm32_sai_sub.c192 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
198 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
209 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
215 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
225 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_rd()
231 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_rd()
1485 ret = clk_prepare(sai->pdata->pclk); in stm32_sai_sub_parse_of()
1573 clk_unprepare(sai->pdata->pclk); in stm32_sai_sub_remove()
1585 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_suspend()
1592 clk_disable(sai->pdata->pclk); in stm32_sai_sub_suspend()
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Ds3c2440-cpufreq.c103 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs()
105 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs()
193 /* todo - set pclk. */ in s3c2440_cpufreq_setdivs()
258 .pclk = 66666666,
/kernel/linux/linux-5.10/sound/soc/meson/
H A Daiu-fifo.c167 ret = clk_prepare_enable(fifo->pclk); in aiu_fifo_startup()
174 clk_disable_unprepare(fifo->pclk); in aiu_fifo_startup()
185 clk_disable_unprepare(fifo->pclk); in aiu_fifo_shutdown()
/kernel/linux/linux-6.6/sound/soc/meson/
H A Daiu-fifo.c156 ret = clk_prepare_enable(fifo->pclk); in aiu_fifo_startup()
163 clk_disable_unprepare(fifo->pclk); in aiu_fifo_startup()
174 clk_disable_unprepare(fifo->pclk); in aiu_fifo_shutdown()
/kernel/linux/linux-5.10/drivers/clk/at91/
H A Dclk-audio-pll.c276 struct clk_hw *pclk = clk_hw_get_parent(hw); in clk_audio_pll_pad_round_rate() local
306 best_parent_rate = clk_hw_round_rate(pclk, in clk_audio_pll_pad_round_rate()
327 struct clk_hw *pclk = clk_hw_get_parent(hw); in clk_audio_pll_pmc_round_rate() local
341 best_parent_rate = clk_round_rate(pclk->clk, 1); in clk_audio_pll_pmc_round_rate()
344 best_parent_rate = clk_round_rate(pclk->clk, rate * div); in clk_audio_pll_pmc_round_rate()
/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-aspeed-sgpio.c40 struct clk *pclk; member
509 gpio->pclk = devm_clk_get(&pdev->dev, NULL); in aspeed_sgpio_probe()
510 if (IS_ERR(gpio->pclk)) { in aspeed_sgpio_probe()
512 return PTR_ERR(gpio->pclk); in aspeed_sgpio_probe()
515 apb_freq = clk_get_rate(gpio->pclk); in aspeed_sgpio_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-dwc-qos-eth.c141 plat_dat->pclk = devm_clk_get(&pdev->dev, "phy_ref_clk"); in dwc_qos_probe()
142 if (IS_ERR(plat_dat->pclk)) { in dwc_qos_probe()
144 err = PTR_ERR(plat_dat->pclk); in dwc_qos_probe()
148 err = clk_prepare_enable(plat_dat->pclk); in dwc_qos_probe()
167 clk_disable_unprepare(priv->plat->pclk); in dwc_qos_remove()
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-rzv2m-csi.c88 struct clk *pclk; member
346 unsigned long pclk_rate = clk_get_rate(csi->pclk); in rzv2m_csi_setup_clock()
581 csi->pclk = devm_clk_get(dev, "pclk"); in rzv2m_csi_probe()
582 if (IS_ERR(csi->pclk)) in rzv2m_csi_probe()
583 return dev_err_probe(dev, PTR_ERR(csi->pclk), in rzv2m_csi_probe()
584 "could not get pclk\n"); in rzv2m_csi_probe()
H A Dspi-zynqmp-gqspi.c173 * @pclk: Pointer to the APB clock
195 struct clk *pclk; member
1002 clk_disable_unprepare(xqspi->pclk); in zynqmp_runtime_suspend()
1020 ret = clk_prepare_enable(xqspi->pclk); in zynqmp_runtime_resume()
1029 clk_disable_unprepare(xqspi->pclk); in zynqmp_runtime_resume()
1246 xqspi->pclk = devm_clk_get(&pdev->dev, "pclk"); in zynqmp_qspi_probe()
1247 if (IS_ERR(xqspi->pclk)) { in zynqmp_qspi_probe()
1248 dev_err(dev, "pclk clock not found.\n"); in zynqmp_qspi_probe()
1249 ret = PTR_ERR(xqspi->pclk); in zynqmp_qspi_probe()
[all...]
/kernel/linux/linux-6.6/drivers/clk/at91/
H A Dclk-audio-pll.c276 struct clk_hw *pclk = clk_hw_get_parent(hw); in clk_audio_pll_pad_round_rate() local
306 best_parent_rate = clk_hw_round_rate(pclk, in clk_audio_pll_pad_round_rate()
327 struct clk_hw *pclk = clk_hw_get_parent(hw); in clk_audio_pll_pmc_round_rate() local
341 best_parent_rate = clk_round_rate(pclk->clk, 1); in clk_audio_pll_pmc_round_rate()
344 best_parent_rate = clk_round_rate(pclk->clk, rate * div); in clk_audio_pll_pmc_round_rate()
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-dwc-qos-eth.c141 plat_dat->pclk = devm_clk_get(&pdev->dev, "phy_ref_clk"); in dwc_qos_probe()
142 if (IS_ERR(plat_dat->pclk)) { in dwc_qos_probe()
144 err = PTR_ERR(plat_dat->pclk); in dwc_qos_probe()
148 err = clk_prepare_enable(plat_dat->pclk); in dwc_qos_probe()
167 clk_disable_unprepare(priv->plat->pclk); in dwc_qos_remove()
H A Dstmmac_platform.c594 plat->pclk = devm_clk_get_optional(&pdev->dev, "pclk"); in stmmac_probe_config_dt()
595 if (IS_ERR(plat->pclk)) { in stmmac_probe_config_dt()
596 ret = plat->pclk; in stmmac_probe_config_dt()
599 clk_prepare_enable(plat->pclk); in stmmac_probe_config_dt()
629 clk_disable_unprepare(plat->pclk); in stmmac_probe_config_dt()
680 clk_disable_unprepare(plat->pclk); in stmmac_remove_config_dt()
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/disp/mdp4/
H A Dmdp4_kms.c168 clk_disable_unprepare(mdp4_kms->pclk); in mdp4_disable()
180 clk_prepare_enable(mdp4_kms->pclk); in mdp4_enable()
448 mdp4_kms->pclk = devm_clk_get(&pdev->dev, "iface_clk"); in mdp4_kms_init()
449 if (IS_ERR(mdp4_kms->pclk)) in mdp4_kms_init()
450 mdp4_kms->pclk = NULL; in mdp4_kms_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
H A Dinno_hdmi.c55 struct clk *pclk; member
829 hdmi->pclk = devm_clk_get(hdmi->dev, "pclk"); in inno_hdmi_bind()
830 if (IS_ERR(hdmi->pclk)) { in inno_hdmi_bind()
831 DRM_DEV_ERROR(hdmi->dev, "Unable to get HDMI pclk clk\n"); in inno_hdmi_bind()
832 return PTR_ERR(hdmi->pclk); in inno_hdmi_bind()
835 ret = clk_prepare_enable(hdmi->pclk); in inno_hdmi_bind()
838 "Cannot enable HDMI pclk clock: %d\n", ret); in inno_hdmi_bind()
863 hdmi->tmds_rate = clk_get_rate(hdmi->pclk); in inno_hdmi_bind()
888 clk_disable_unprepare(hdmi->pclk); in inno_hdmi_bind()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/rockchip/
H A Dinno_hdmi.c53 struct clk *pclk; member
838 hdmi->pclk = devm_clk_get(hdmi->dev, "pclk"); in inno_hdmi_bind()
839 if (IS_ERR(hdmi->pclk)) { in inno_hdmi_bind()
840 DRM_DEV_ERROR(hdmi->dev, "Unable to get HDMI pclk clk\n"); in inno_hdmi_bind()
841 return PTR_ERR(hdmi->pclk); in inno_hdmi_bind()
844 ret = clk_prepare_enable(hdmi->pclk); in inno_hdmi_bind()
847 "Cannot enable HDMI pclk clock: %d\n", ret); in inno_hdmi_bind()
872 hdmi->tmds_rate = clk_get_rate(hdmi->pclk); in inno_hdmi_bind()
897 clk_disable_unprepare(hdmi->pclk); in inno_hdmi_bind()
[all...]
H A Ddw_hdmi-rockchip.c259 int pclk = mode->clock * 1000; in dw_hdmi_rockchip_mode_valid() local
264 int rpclk = clk_round_rate(hdmi->ref_clk, pclk); in dw_hdmi_rockchip_mode_valid()
266 if (abs(rpclk - pclk) > pclk / 1000) in dw_hdmi_rockchip_mode_valid()
275 if (exact_match && pclk == mpll_cfg[i].mpixelclock) in dw_hdmi_rockchip_mode_valid()
281 if (!exact_match && pclk <= mpll_cfg[i].mpixelclock) in dw_hdmi_rockchip_mode_valid()
H A Ddw-mipi-dsi-rockchip.c260 struct clk *pclk; member
1142 ret = clk_prepare_enable(dsi->pclk); in dw_mipi_dsi_dphy_init()
1148 clk_disable_unprepare(dsi->pclk); in dw_mipi_dsi_dphy_init()
1154 clk_disable_unprepare(dsi->pclk); in dw_mipi_dsi_dphy_init()
1221 ret = clk_prepare_enable(dsi->pclk); in dw_mipi_dsi_dphy_power_on()
1223 DRM_DEV_ERROR(dsi->dev, "Failed to enable pclk: %d\n", ret); in dw_mipi_dsi_dphy_power_on()
1272 clk_disable_unprepare(dsi->pclk); in dw_mipi_dsi_dphy_power_on()
1296 clk_disable_unprepare(dsi->pclk); in dw_mipi_dsi_dphy_power_off()
1386 dsi->pclk = devm_clk_get(dev, "pclk"); in dw_mipi_dsi_rockchip_probe()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/
H A Ddispc.c101 unsigned long pclk, unsigned long lclk,
107 unsigned long (*calc_core_clk) (unsigned long pclk,
2130 static int check_horiz_timing_omap3(unsigned long pclk, unsigned long lclk, in check_horiz_timing_omap3() argument
2150 lclk, pclk); in check_horiz_timing_omap3()
2164 val = div_u64((u64)(nonactive - pos_x) * lclk, pclk); in check_horiz_timing_omap3()
2175 val = div_u64((u64)nonactive * lclk, pclk); in check_horiz_timing_omap3()
2184 static unsigned long calc_core_clk_five_taps(unsigned long pclk, in calc_core_clk_five_taps() argument
2193 return (unsigned long) pclk; in calc_core_clk_five_taps()
2198 tmp = (u64)pclk * height * out_width; in calc_core_clk_five_taps()
2206 tmp = (u64)pclk * (heigh in calc_core_clk_five_taps()
2224 calc_core_clk_24xx(unsigned long pclk, u16 width, u16 height, u16 out_width, u16 out_height, bool mem_to_mem) calc_core_clk_24xx() argument
2233 calc_core_clk_34xx(unsigned long pclk, u16 width, u16 height, u16 out_width, u16 out_height, bool mem_to_mem) calc_core_clk_34xx() argument
2259 calc_core_clk_44xx(unsigned long pclk, u16 width, u16 height, u16 out_width, u16 out_height, bool mem_to_mem) calc_core_clk_44xx() argument
2277 dispc_ovl_calc_scaling_24xx(struct dispc_device *dispc, unsigned long pclk, unsigned long lclk, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_24xx() argument
2326 dispc_ovl_calc_scaling_34xx(struct dispc_device *dispc, unsigned long pclk, unsigned long lclk, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_34xx() argument
2414 dispc_ovl_calc_scaling_44xx(struct dispc_device *dispc, unsigned long pclk, unsigned long lclk, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_44xx() argument
2481 dispc_ovl_calc_scaling(struct dispc_device *dispc, enum omap_plane_id plane, unsigned long pclk, unsigned long lclk, enum omap_overlay_caps caps, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, u16 pos_x, enum omap_dss_rotation_type rotation_type, bool mem_to_mem) dispc_ovl_calc_scaling() argument
2615 unsigned long pclk = dispc_plane_pclk_rate(dispc, plane); dispc_ovl_setup_common() local
3088 _dispc_mgr_pclk_ok(struct dispc_device *dispc, enum omap_channel channel, unsigned long pclk) _dispc_mgr_pclk_ok() argument
3338 dispc_set_tv_pclk(struct dispc_device *dispc, unsigned long pclk) dispc_set_tv_pclk() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/dss/
H A Ddispc.c103 unsigned long pclk, unsigned long lclk,
109 unsigned long (*calc_core_clk) (unsigned long pclk,
2139 static int check_horiz_timing_omap3(unsigned long pclk, unsigned long lclk, in check_horiz_timing_omap3() argument
2159 lclk, pclk); in check_horiz_timing_omap3()
2173 val = div_u64((u64)(nonactive - pos_x) * lclk, pclk); in check_horiz_timing_omap3()
2184 val = div_u64((u64)nonactive * lclk, pclk); in check_horiz_timing_omap3()
2193 static unsigned long calc_core_clk_five_taps(unsigned long pclk, in calc_core_clk_five_taps() argument
2202 return (unsigned long) pclk; in calc_core_clk_five_taps()
2207 tmp = (u64)pclk * height * out_width; in calc_core_clk_five_taps()
2215 tmp = (u64)pclk * (heigh in calc_core_clk_five_taps()
2233 calc_core_clk_24xx(unsigned long pclk, u16 width, u16 height, u16 out_width, u16 out_height, bool mem_to_mem) calc_core_clk_24xx() argument
2242 calc_core_clk_34xx(unsigned long pclk, u16 width, u16 height, u16 out_width, u16 out_height, bool mem_to_mem) calc_core_clk_34xx() argument
2268 calc_core_clk_44xx(unsigned long pclk, u16 width, u16 height, u16 out_width, u16 out_height, bool mem_to_mem) calc_core_clk_44xx() argument
2286 dispc_ovl_calc_scaling_24xx(struct dispc_device *dispc, unsigned long pclk, unsigned long lclk, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_24xx() argument
2335 dispc_ovl_calc_scaling_34xx(struct dispc_device *dispc, unsigned long pclk, unsigned long lclk, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_34xx() argument
2423 dispc_ovl_calc_scaling_44xx(struct dispc_device *dispc, unsigned long pclk, unsigned long lclk, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, int *decim_x, int *decim_y, u16 pos_x, unsigned long *core_clk, bool mem_to_mem) dispc_ovl_calc_scaling_44xx() argument
2495 dispc_ovl_calc_scaling(struct dispc_device *dispc, enum omap_plane_id plane, unsigned long pclk, unsigned long lclk, enum omap_overlay_caps caps, const struct videomode *vm, u16 width, u16 height, u16 out_width, u16 out_height, u32 fourcc, bool *five_taps, int *x_predecim, int *y_predecim, u16 pos_x, enum omap_dss_rotation_type rotation_type, bool mem_to_mem) dispc_ovl_calc_scaling() argument
2637 unsigned long pclk = dispc_plane_pclk_rate(dispc, plane); dispc_ovl_setup_common() local
3115 _dispc_mgr_pclk_ok(struct dispc_device *dispc, enum omap_channel channel, unsigned long pclk) _dispc_mgr_pclk_ok() argument
3365 dispc_set_tv_pclk(struct dispc_device *dispc, unsigned long pclk) dispc_set_tv_pclk() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/atmel/
H A Dmchp-spdiftx.c196 struct clk *pclk; member
717 ret = clk_prepare_enable(dev->pclk); in mchp_spdiftx_dai_probe()
735 clk_disable_unprepare(dev->pclk); in mchp_spdiftx_dai_remove()
802 dev->pclk = devm_clk_get(&pdev->dev, "pclk"); in mchp_spdiftx_probe()
803 if (IS_ERR(dev->pclk)) { in mchp_spdiftx_probe()
804 err = PTR_ERR(dev->pclk); in mchp_spdiftx_probe()
/kernel/linux/linux-6.6/sound/soc/ux500/
H A Dux500_msp_dai.c399 ret = clk_prepare_enable(drvdata->pclk); in ux500_msp_dai_startup()
402 "%s: Failed to prepare/enable pclk!\n", __func__); in ux500_msp_dai_startup()
415 clk_disable_unprepare(drvdata->pclk); in ux500_msp_dai_startup()
446 clk_disable_unprepare(drvdata->pclk); in ux500_msp_dai_shutdown()
744 drvdata->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); in ux500_msp_drv_probe()
745 if (IS_ERR(drvdata->pclk)) { in ux500_msp_drv_probe()
746 ret = (int)PTR_ERR(drvdata->pclk); in ux500_msp_drv_probe()
748 "%s: ERROR: devm_clk_get of pclk failed (%d)!\n", in ux500_msp_drv_probe()
/kernel/linux/linux-5.10/drivers/mmc/host/
H A Dmeson-mx-sdhc-mmc.c53 struct clk *pclk; member
800 host->pclk = devm_clk_get(dev, "pclk"); in meson_mx_sdhc_probe()
801 if (IS_ERR(host->pclk)) in meson_mx_sdhc_probe()
802 return PTR_ERR(host->pclk); in meson_mx_sdhc_probe()
805 ret = clk_prepare_enable(host->pclk); in meson_mx_sdhc_probe()
807 dev_err(dev, "Failed to enable 'pclk' clock\n"); in meson_mx_sdhc_probe()
859 clk_disable_unprepare(host->pclk); in meson_mx_sdhc_probe()
871 clk_disable_unprepare(host->pclk); in meson_mx_sdhc_remove()
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
H A Dexynos7_drm_decon.c47 struct clk *pclk; member
697 ctx->pclk = devm_clk_get(dev, "pclk_decon0"); in decon_probe()
698 if (IS_ERR(ctx->pclk)) { in decon_probe()
699 dev_err(dev, "failed to get bus clock pclk\n"); in decon_probe()
700 ret = PTR_ERR(ctx->pclk); in decon_probe()
789 clk_disable_unprepare(ctx->pclk); in exynos7_decon_suspend()
799 ret = clk_prepare_enable(ctx->pclk); in exynos7_decon_resume()
801 DRM_DEV_ERROR(dev, "Failed to prepare_enable the pclk [%d]\n", in exynos7_decon_resume()
834 clk_disable_unprepare(ctx->pclk); in exynos7_decon_resume()
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Dmeson-mx-sdhc-mmc.c53 struct clk *pclk; member
804 host->pclk = devm_clk_get(dev, "pclk"); in meson_mx_sdhc_probe()
805 if (IS_ERR(host->pclk)) in meson_mx_sdhc_probe()
806 return PTR_ERR(host->pclk); in meson_mx_sdhc_probe()
809 ret = clk_prepare_enable(host->pclk); in meson_mx_sdhc_probe()
811 dev_err(dev, "Failed to enable 'pclk' clock\n"); in meson_mx_sdhc_probe()
863 clk_disable_unprepare(host->pclk); in meson_mx_sdhc_probe()
875 clk_disable_unprepare(host->pclk); in meson_mx_sdhc_remove()

Completed in 33 milliseconds

12345678910>>...16