/linux-6.12.1/drivers/clk/ |
D | clk-xgene.c | 445 struct xgene_clk *pclk = to_xgene_clk(hw); in xgene_clk_enable() local 449 if (pclk->lock) in xgene_clk_enable() 450 spin_lock_irqsave(pclk->lock, flags); in xgene_clk_enable() 452 if (pclk->param.csr_reg) { in xgene_clk_enable() 455 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable() 456 pclk->param.reg_clk_offset); in xgene_clk_enable() 457 data |= pclk->param.reg_clk_mask; in xgene_clk_enable() 458 xgene_clk_write(data, pclk->param.csr_reg + in xgene_clk_enable() 459 pclk->param.reg_clk_offset); in xgene_clk_enable() 462 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable() [all …]
|
D | clk-conf.c | 19 struct clk *clk, *pclk; in __set_clk_parents() local 41 pclk = of_clk_get_from_provider(&clkspec); in __set_clk_parents() 43 if (IS_ERR(pclk)) { in __set_clk_parents() 44 if (PTR_ERR(pclk) != -EPROBE_DEFER) in __set_clk_parents() 47 return PTR_ERR(pclk); in __set_clk_parents() 69 rc = clk_set_parent(clk, pclk); in __set_clk_parents() 72 __clk_get_name(clk), __clk_get_name(pclk), rc); in __set_clk_parents() 74 clk_put(pclk); in __set_clk_parents() 78 clk_put(pclk); in __set_clk_parents()
|
/linux-6.12.1/drivers/clk/x86/ |
D | clk-pmc-atom.c | 154 struct clk_plt *pclk; in plt_clk_register() local 158 pclk = devm_kzalloc(&pdev->dev, sizeof(*pclk), GFP_KERNEL); in plt_clk_register() 159 if (!pclk) in plt_clk_register() 168 pclk->hw.init = &init; in plt_clk_register() 169 pclk->reg = pmc_data->base + PMC_CLK_CTL_OFFSET + id * PMC_CLK_CTL_SIZE; in plt_clk_register() 170 spin_lock_init(&pclk->lock); in plt_clk_register() 177 if (pmc_data->critical && plt_clk_is_enabled(&pclk->hw)) in plt_clk_register() 180 ret = devm_clk_hw_register(&pdev->dev, &pclk->hw); in plt_clk_register() 182 pclk = ERR_PTR(ret); in plt_clk_register() 186 pclk->lookup = clkdev_hw_create(&pclk->hw, init.name, NULL); in plt_clk_register() [all …]
|
/linux-6.12.1/arch/arm/boot/dts/arm/ |
D | versatile-ab.dts | 160 pclk: clock-pclk { label 235 clocks = <&pclk>; 243 clocks = <&xtal24mhz>, <&pclk>; 251 clocks = <&xtal24mhz>, <&pclk>; 259 clocks = <&xtal24mhz>, <&pclk>; 266 clocks = <&pclk>; 273 clocks = <&pclk>; 281 clocks = <&osc1>, <&pclk>; 320 clocks = <&pclk>; 328 clocks = <&pclk>; [all …]
|
D | arm-realview-eb.dtsi | 71 pclk: clock-pclk { label 289 clocks = <&pclk>; 302 clocks = <&mclk>, <&pclk>; 312 clocks = <&kmiclk>, <&pclk>; 319 clocks = <&kmiclk>, <&pclk>; 326 clocks = <&pclk>; 333 clocks = <&uartclk>, <&pclk>; 340 clocks = <&uartclk>, <&pclk>; 347 clocks = <&uartclk>, <&pclk>; 354 clocks = <&uartclk>, <&pclk>; [all …]
|
D | arm-realview-pbx.dtsi | 86 pclk: clock-pclk { label 331 clocks = <&uartclk>, <&pclk>; 338 clocks = <&uartclk>, <&pclk>; 345 clocks = <&uartclk>, <&pclk>; 352 clocks = <&sspclk>, <&pclk>; 359 clocks = <&wdogclk>, <&pclk>; 367 clocks = <&wdogclk>, <&pclk>; 377 <&pclk>; 388 <&pclk>; 401 clocks = <&pclk>; [all …]
|
/linux-6.12.1/arch/arm/boot/dts/calxeda/ |
D | ecx-common.dtsi | 50 clocks = <&pclk>; 60 clocks = <&pclk>; 71 clocks = <&pclk>; 82 clocks = <&pclk>; 93 clocks = <&pclk>; 102 clocks = <&pclk>; 110 clocks = <&pclk>; 118 clocks = <&pclk>, <&pclk>; 187 pclk: pclk { label 199 clocks = <&pclk>;
|
/linux-6.12.1/drivers/gpu/drm/omapdrm/dss/ |
D | hdmi_common.c | 52 int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) in hdmi_compute_acr() argument 75 if (pclk == 27027000 || pclk == 74250000) in hdmi_compute_acr() 78 if (pclk == 27027000) in hdmi_compute_acr() 85 if (pclk == 27027000) in hdmi_compute_acr() 146 *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10); in hdmi_compute_acr()
|
/linux-6.12.1/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_common.c | 52 int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) in hdmi_compute_acr() argument 75 if (pclk == 27027000 || pclk == 74250000) in hdmi_compute_acr() 78 if (pclk == 27027000) in hdmi_compute_acr() 85 if (pclk == 27027000) in hdmi_compute_acr() 146 *cts = (pclk/1000) * (*n / 128) * deep_color / (sample_freq / 10); in hdmi_compute_acr()
|
/linux-6.12.1/drivers/clocksource/ |
D | timer-microchip-pit64b.c | 59 struct clk *pclk; member 140 clk_disable_unprepare(timer->pclk); in mchp_pit64b_suspend() 145 clk_prepare_enable(timer->pclk); in mchp_pit64b_resume() 298 pclk_rate = clk_get_rate(timer->pclk); in mchp_pit64b_init_mode() 307 goto pclk; in mchp_pit64b_init_mode() 310 goto pclk; in mchp_pit64b_init_mode() 322 pclk: in mchp_pit64b_init_mode() 363 cs->timer.pclk = timer->pclk; in mchp_pit64b_init_clksrc() 407 ce->timer.pclk = timer->pclk; in mchp_pit64b_init_clkevt() 442 timer.pclk = of_clk_get_by_name(node, "pclk"); in mchp_pit64b_dt_init_timer() [all …]
|
D | timer-rockchip.c | 37 struct clk *pclk; member 131 struct clk *pclk; in rk_timer_probe() local 146 pclk = of_clk_get_by_name(np, "pclk"); in rk_timer_probe() 147 if (IS_ERR(pclk)) { in rk_timer_probe() 148 ret = PTR_ERR(pclk); in rk_timer_probe() 153 ret = clk_prepare_enable(pclk); in rk_timer_probe() 158 timer->pclk = pclk; in rk_timer_probe() 191 clk_disable_unprepare(pclk); in rk_timer_probe() 201 clk_disable_unprepare(timer->pclk); in rk_timer_cleanup()
|
D | dw_apb_timer_of.c | 21 struct clk *pclk; in timer_get_base_and_rate() local 44 pclk = of_clk_get_by_name(np, "pclk"); in timer_get_base_and_rate() 45 if (!IS_ERR(pclk)) in timer_get_base_and_rate() 46 if (clk_prepare_enable(pclk)) in timer_get_base_and_rate() 77 if (!IS_ERR(pclk)) { in timer_get_base_and_rate() 78 clk_disable_unprepare(pclk); in timer_get_base_and_rate() 79 clk_put(pclk); in timer_get_base_and_rate()
|
D | nomadik-mtu.c | 185 struct clk *pclk, struct clk *clk) in nmdk_timer_init() argument 193 BUG_ON(clk_prepare_enable(pclk)); in nmdk_timer_init() 251 struct clk *pclk; in nmdk_timer_of_init() local 262 pclk = of_clk_get_by_name(node, "apb_pclk"); in nmdk_timer_of_init() 263 if (IS_ERR(pclk)) { in nmdk_timer_of_init() 265 return PTR_ERR(pclk); in nmdk_timer_of_init() 280 return nmdk_timer_init(base, irq, pclk, clk); in nmdk_timer_of_init()
|
/linux-6.12.1/drivers/soc/canaan/ |
D | k210-sysctl.c | 17 struct clk *pclk; in k210_sysctl_probe() local 23 pclk = devm_clk_get(dev, NULL); in k210_sysctl_probe() 24 if (IS_ERR(pclk)) in k210_sysctl_probe() 25 return dev_err_probe(dev, PTR_ERR(pclk), in k210_sysctl_probe() 28 ret = clk_prepare_enable(pclk); in k210_sysctl_probe()
|
/linux-6.12.1/drivers/pwm/ |
D | pwm-rockchip.c | 34 struct clk *pclk; member 70 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state() 97 clk_disable(pc->pclk); in rockchip_pwm_get_state() 194 ret = clk_enable(pc->pclk); in rockchip_pwm_apply() 222 clk_disable(pc->pclk); in rockchip_pwm_apply() 324 pc->pclk = devm_clk_get(&pdev->dev, "pclk"); in rockchip_pwm_probe() 326 pc->pclk = pc->clk; in rockchip_pwm_probe() 328 if (IS_ERR(pc->pclk)) in rockchip_pwm_probe() 329 return dev_err_probe(&pdev->dev, PTR_ERR(pc->pclk), "Can't get APB clk\n"); in rockchip_pwm_probe() 335 ret = clk_prepare_enable(pc->pclk); in rockchip_pwm_probe() [all …]
|
/linux-6.12.1/arch/arm/mach-spear/ |
D | spear3xx.c | 74 struct clk *gpt_clk, *pclk; in spear3xx_timer_init() local 86 pclk = clk_get(NULL, pclk_name); in spear3xx_timer_init() 87 if (IS_ERR(pclk)) { in spear3xx_timer_init() 93 clk_set_parent(gpt_clk, pclk); in spear3xx_timer_init() 95 clk_put(pclk); in spear3xx_timer_init()
|
D | spear13xx.c | 101 struct clk *gpt_clk, *pclk; in spear13xx_timer_init() local 113 pclk = clk_get(NULL, pclk_name); in spear13xx_timer_init() 114 if (IS_ERR(pclk)) { in spear13xx_timer_init() 120 clk_set_parent(gpt_clk, pclk); in spear13xx_timer_init() 122 clk_put(pclk); in spear13xx_timer_init()
|
/linux-6.12.1/drivers/clk/qcom/ |
D | apcs-sdx55.c | 82 a7cc->pclk = devm_clk_get(parent, "pll"); in qcom_apcs_sdx55_clk_probe() 83 if (IS_ERR(a7cc->pclk)) in qcom_apcs_sdx55_clk_probe() 84 return dev_err_probe(dev, PTR_ERR(a7cc->pclk), in qcom_apcs_sdx55_clk_probe() 88 ret = clk_notifier_register(a7cc->pclk, &a7cc->clk_nb); in qcom_apcs_sdx55_clk_probe() 119 clk_notifier_unregister(a7cc->pclk, &a7cc->clk_nb); in qcom_apcs_sdx55_clk_probe() 128 clk_notifier_unregister(a7cc->pclk, &a7cc->clk_nb); in qcom_apcs_sdx55_clk_remove()
|
D | apcs-msm8916.c | 85 a53cc->pclk = devm_clk_get(parent, NULL); in qcom_apcs_msm8916_clk_probe() 86 if (IS_ERR(a53cc->pclk)) { in qcom_apcs_msm8916_clk_probe() 87 ret = PTR_ERR(a53cc->pclk); in qcom_apcs_msm8916_clk_probe() 94 ret = clk_notifier_register(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_probe() 118 clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_probe() 126 clk_notifier_unregister(a53cc->pclk, &a53cc->clk_nb); in qcom_apcs_msm8916_clk_remove()
|
/linux-6.12.1/drivers/gpu/drm/i915/display/ |
D | vlv_dsi_pll.c | 47 static u32 dsi_clk_from_pclk(u32 pclk, enum mipi_dsi_pixel_format fmt, in dsi_clk_from_pclk() argument 55 dsi_clk_khz = DIV_ROUND_CLOSEST(pclk * bpp, lane_count); in dsi_clk_from_pclk() 180 int pclk, dsi_clk, ret; in vlv_dsi_pll_compute() local 182 dsi_clk = dsi_clk_from_pclk(intel_dsi->pclk, intel_dsi->pixel_format, in vlv_dsi_pll_compute() 202 pclk = vlv_dsi_pclk(encoder, config); in vlv_dsi_pll_compute() 203 config->port_clock = pclk; in vlv_dsi_pll_compute() 206 config->hw.adjusted_mode.crtc_clock = pclk; in vlv_dsi_pll_compute() 356 u32 pclk; in bxt_dsi_get_pclk() local 360 pclk = bxt_dsi_pclk(encoder, config); in bxt_dsi_get_pclk() 362 drm_dbg(&dev_priv->drm, "Calculated pclk=%u\n", pclk); in bxt_dsi_get_pclk() [all …]
|
/linux-6.12.1/drivers/clk/pxa/ |
D | clk-pxa.c | 60 struct pxa_clk *pclk = to_pxa_clk(hw); in cken_recalc_rate() local 63 if (!pclk->is_in_low_power || pclk->is_in_low_power()) in cken_recalc_rate() 64 fix = &pclk->lp; in cken_recalc_rate() 66 fix = &pclk->hp; in cken_recalc_rate() 77 struct pxa_clk *pclk = to_pxa_clk(hw); in cken_get_parent() local 79 if (!pclk->is_in_low_power) in cken_get_parent() 81 return pclk->is_in_low_power() ? 0 : 1; in cken_get_parent()
|
/linux-6.12.1/arch/arm/boot/dts/amlogic/ |
D | meson6.dtsi | 52 clock-names = "xtal", "pclk"; 57 clock-names = "xtal", "pclk", "baud"; 62 clock-names = "xtal", "pclk", "baud"; 67 clock-names = "xtal", "pclk", "baud"; 72 clock-names = "xtal", "pclk", "baud";
|
/linux-6.12.1/drivers/pinctrl/samsung/ |
D | pinctrl-exynos.c | 65 if (clk_enable(bank->drvdata->pclk)) { in exynos_irq_mask() 79 clk_disable(bank->drvdata->pclk); in exynos_irq_mask() 94 if (clk_enable(bank->drvdata->pclk)) { in exynos_irq_ack() 102 clk_disable(bank->drvdata->pclk); in exynos_irq_ack() 130 if (clk_enable(bank->drvdata->pclk)) { in exynos_irq_unmask() 144 clk_disable(bank->drvdata->pclk); in exynos_irq_unmask() 188 ret = clk_enable(bank->drvdata->pclk); in exynos_irq_set_type() 200 clk_disable(bank->drvdata->pclk); in exynos_irq_set_type() 238 ret = clk_enable(bank->drvdata->pclk); in exynos_irq_request_resources() 255 clk_disable(bank->drvdata->pclk); in exynos_irq_request_resources() [all …]
|
/linux-6.12.1/drivers/hwtracing/coresight/ |
D | coresight-tpiu.c | 63 struct clk *pclk; member 154 drvdata->pclk = coresight_get_enable_apb_pclk(dev); in __tpiu_probe() 155 if (IS_ERR(drvdata->pclk)) in __tpiu_probe() 218 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) in tpiu_runtime_suspend() 219 clk_disable_unprepare(drvdata->pclk); in tpiu_runtime_suspend() 230 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) in tpiu_runtime_resume() 231 clk_prepare_enable(drvdata->pclk); in tpiu_runtime_resume() 296 if (!IS_ERR_OR_NULL(drvdata->pclk)) in tpiu_platform_remove() 297 clk_put(drvdata->pclk); in tpiu_platform_remove()
|
D | coresight-replicator.c | 42 struct clk *pclk; member 248 drvdata->pclk = coresight_get_enable_apb_pclk(dev); in replicator_probe() 249 if (IS_ERR(drvdata->pclk)) in replicator_probe() 298 if (ret && !IS_ERR_OR_NULL(drvdata->pclk)) in replicator_probe() 299 clk_disable_unprepare(drvdata->pclk); in replicator_probe() 337 if (!IS_ERR_OR_NULL(drvdata->pclk)) in replicator_platform_remove() 338 clk_put(drvdata->pclk); in replicator_platform_remove() 349 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) in replicator_runtime_suspend() 350 clk_disable_unprepare(drvdata->pclk); in replicator_runtime_suspend() 361 if (drvdata && !IS_ERR_OR_NULL(drvdata->pclk)) in replicator_runtime_resume() [all …]
|