/linux-6.6.21/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 | 18 struct clk *clk, *pclk; in __set_clk_parents() local 40 pclk = of_clk_get_from_provider(&clkspec); in __set_clk_parents() 42 if (IS_ERR(pclk)) { in __set_clk_parents() 43 if (PTR_ERR(pclk) != -EPROBE_DEFER) in __set_clk_parents() 46 return PTR_ERR(pclk); in __set_clk_parents() 68 rc = clk_set_parent(clk, pclk); in __set_clk_parents() 71 __clk_get_name(clk), __clk_get_name(pclk), rc); in __set_clk_parents() 73 clk_put(pclk); in __set_clk_parents() 77 clk_put(pclk); in __set_clk_parents()
|
/linux-6.6.21/drivers/clk/x86/ |
D | clk-pmc-atom.c | 165 struct clk_plt *pclk; in plt_clk_register() local 169 pclk = devm_kzalloc(&pdev->dev, sizeof(*pclk), GFP_KERNEL); in plt_clk_register() 170 if (!pclk) in plt_clk_register() 179 pclk->hw.init = &init; in plt_clk_register() 180 pclk->reg = pmc_data->base + PMC_CLK_CTL_OFFSET + id * PMC_CLK_CTL_SIZE; in plt_clk_register() 181 spin_lock_init(&pclk->lock); in plt_clk_register() 188 if (pmc_data->critical && plt_clk_is_enabled(&pclk->hw)) in plt_clk_register() 191 ret = devm_clk_hw_register(&pdev->dev, &pclk->hw); in plt_clk_register() 193 pclk = ERR_PTR(ret); in plt_clk_register() 197 pclk->lookup = clkdev_hw_create(&pclk->hw, init.name, NULL); in plt_clk_register() [all …]
|
/linux-6.6.21/arch/arm/boot/dts/arm/ |
D | versatile-ab.dts | 161 pclk: pclk@24M { label 236 clocks = <&pclk>; 244 clocks = <&xtal24mhz>, <&pclk>; 252 clocks = <&xtal24mhz>, <&pclk>; 260 clocks = <&xtal24mhz>, <&pclk>; 267 clocks = <&pclk>; 274 clocks = <&pclk>; 282 clocks = <&osc1>, <&pclk>; 321 clocks = <&pclk>; 329 clocks = <&pclk>; [all …]
|
D | arm-realview-eb.dtsi | 111 pclk: pclk@0 { label 329 clocks = <&pclk>; 342 clocks = <&mclk>, <&pclk>; 352 clocks = <&kmiclk>, <&pclk>; 359 clocks = <&kmiclk>, <&pclk>; 366 clocks = <&pclk>; 373 clocks = <&uartclk>, <&pclk>; 380 clocks = <&uartclk>, <&pclk>; 387 clocks = <&uartclk>, <&pclk>; 394 clocks = <&uartclk>, <&pclk>; [all …]
|
D | arm-realview-pbx.dtsi | 126 pclk: pclk@0 { label 371 clocks = <&uartclk>, <&pclk>; 378 clocks = <&uartclk>, <&pclk>; 385 clocks = <&uartclk>, <&pclk>; 392 clocks = <&sspclk>, <&pclk>; 399 clocks = <&wdogclk>, <&pclk>; 407 clocks = <&wdogclk>, <&pclk>; 417 <&pclk>; 428 <&pclk>; 441 clocks = <&pclk>; [all …]
|
D | arm-realview-pb1176.dts | 113 pclk: pclk@0 { label 371 clocks = <&timclk>, <&timclk>, <&pclk>; 381 clocks = <&timclk>, <&timclk>, <&pclk>; 390 clocks = <&pclk>; 403 clocks = <&pclk>; 412 clocks = <&sspclk>, <&pclk>; 421 clocks = <&uartclk>, <&pclk>; 430 clocks = <&uartclk>, <&pclk>; 439 clocks = <&uartclk>, <&pclk>; 448 clocks = <&uartclk>, <&pclk>; [all …]
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/drivers/pwm/ |
D | pwm-rockchip.c | 35 struct clk *pclk; member 71 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state() 98 clk_disable(pc->pclk); in rockchip_pwm_get_state() 195 ret = clk_enable(pc->pclk); in rockchip_pwm_apply() 223 clk_disable(pc->pclk); in rockchip_pwm_apply() 329 pc->pclk = devm_clk_get(&pdev->dev, "pclk"); in rockchip_pwm_probe() 331 pc->pclk = pc->clk; in rockchip_pwm_probe() 333 if (IS_ERR(pc->pclk)) in rockchip_pwm_probe() 334 return dev_err_probe(&pdev->dev, PTR_ERR(pc->pclk), "Can't get APB clk\n"); in rockchip_pwm_probe() 340 ret = clk_prepare_enable(pc->pclk); in rockchip_pwm_probe() [all …]
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/arch/riscv/boot/dts/canaan/ |
D | k210.dtsi | 260 clock-names = "ssi_clk", "pclk"; 297 clock-names = "ref", "pclk"; 307 clock-names = "ref", "pclk"; 317 clock-names = "ref", "pclk"; 326 clock-names = "ref", "pclk"; 337 clock-names = "timer", "pclk"; 347 clock-names = "timer", "pclk"; 357 clock-names = "timer", "pclk"; 367 clock-names = "timer", "pclk"; 377 clock-names = "timer", "pclk"; [all …]
|
/linux-6.6.21/drivers/cpufreq/ |
D | spear-cpufreq.c | 37 int pclk; in spear1340_cpu_get_possible_parent() local 54 pclk = 0; /* src is sys_syn_clk */ in spear1340_cpu_get_possible_parent() 56 pclk = 3; /* src is pll3_clk */ in spear1340_cpu_get_possible_parent() 58 pclk = 1; /* src is pll1_clk */ in spear1340_cpu_get_possible_parent() 63 sys_pclk = clk_get(NULL, sys_clk_src[pclk]); in spear1340_cpu_get_possible_parent() 65 pr_err("Failed to get %s clock\n", sys_clk_src[pclk]); in spear1340_cpu_get_possible_parent()
|