Home
last modified time | relevance | path

Searched full:clk_ref (Results 1 – 25 of 25) sorted by relevance

/linux/drivers/clk/mxs/
H A Dclk-ref.c13 * struct clk_ref - mxs reference clock
23 struct clk_ref { struct
29 #define to_clk_ref(_hw) container_of(_hw, struct clk_ref, hw) argument
33 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable()
42 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable()
50 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate()
81 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate()
114 struct clk_ref *ref; in mxs_clk_ref()
/linux/sound/soc/adi/
H A Daxi-spdif.c40 struct clk *clk_ref; member
97 clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref), in axi_spdif_hw_params()
129 ret = clk_prepare_enable(spdif->clk_ref); in axi_spdif_startup()
147 clk_disable_unprepare(spdif->clk_ref); in axi_spdif_shutdown()
206 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_spdif_probe()
207 if (IS_ERR(spdif->clk_ref)) in axi_spdif_probe()
208 return PTR_ERR(spdif->clk_ref); in axi_spdif_probe()
218 spdif->ratnum.num = clk_get_rate(spdif->clk_ref) / 128; in axi_spdif_probe()
H A Daxi-i2s.c43 struct clk *clk_ref; member
98 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params()
126 return clk_prepare_enable(i2s->clk_ref); in axi_i2s_startup()
134 clk_disable_unprepare(i2s->clk_ref); in axi_i2s_shutdown()
215 i2s->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_i2s_probe()
216 if (IS_ERR(i2s->clk_ref)) in axi_i2s_probe()
217 return PTR_ERR(i2s->clk_ref); in axi_i2s_probe()
247 i2s->ratnum.num = clk_get_rate(i2s->clk_ref) / 2 / AXI_I2S_BITS_PER_FRAME; in axi_i2s_probe()
/linux/sound/soc/img/
H A Dimg-spdif-out.c43 struct clk *clk_ref; member
56 clk_disable_unprepare(spdif->clk_ref); in img_spdif_out_runtime_suspend()
73 ret = clk_prepare_enable(spdif->clk_ref); in img_spdif_out_runtime_resume()
254 pre_div_a = clk_round_rate(spdif->clk_ref, rate * 256); in img_spdif_out_hw_params()
257 pre_div_b = clk_round_rate(spdif->clk_ref, rate * 384); in img_spdif_out_hw_params()
266 clk_set_rate(spdif->clk_ref, pre_div_b); in img_spdif_out_hw_params()
268 clk_set_rate(spdif->clk_ref, pre_div_a); in img_spdif_out_hw_params()
275 clk_rate = clk_get_rate(spdif->clk_ref); in img_spdif_out_hw_params()
355 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_spdif_out_probe()
356 if (IS_ERR(spdif->clk_ref)) in img_spdif_out_probe()
[all …]
H A Dimg-i2s-out.c54 struct clk *clk_ref; member
71 clk_disable_unprepare(i2s->clk_ref); in img_i2s_out_runtime_suspend()
88 ret = clk_prepare_enable(i2s->clk_ref); in img_i2s_out_runtime_resume()
236 pre_div_a = clk_round_rate(i2s->clk_ref, rate * 256); in img_i2s_out_hw_params()
239 pre_div_b = clk_round_rate(i2s->clk_ref, rate * 384); in img_i2s_out_hw_params()
248 clk_set_rate(i2s->clk_ref, pre_div_b); in img_i2s_out_hw_params()
250 clk_set_rate(i2s->clk_ref, pre_div_a); in img_i2s_out_hw_params()
257 clk_rate = clk_get_rate(i2s->clk_ref); in img_i2s_out_hw_params()
469 i2s->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_i2s_out_probe()
470 if (IS_ERR(i2s->clk_ref)) in img_i2s_out_probe()
[all …]
H A Dimg-parallel-out.c38 struct clk *clk_ref; member
48 clk_disable_unprepare(prl->clk_ref); in img_prl_out_suspend()
58 ret = clk_prepare_enable(prl->clk_ref); in img_prl_out_resume()
140 clk_set_rate(prl->clk_ref, rate * 256); in img_prl_out_hw_params()
240 prl->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_prl_out_probe()
241 if (IS_ERR(prl->clk_ref)) in img_prl_out_probe()
242 return dev_err_probe(dev, PTR_ERR(prl->clk_ref), in img_prl_out_probe()
/linux/drivers/i2c/busses/
H A Di2c-pasemi-platform.c20 struct clk *clk_ref; member
27 unsigned long clk_rate = clk_get_rate(data->clk_ref); in pasemi_platform_i2c_calc_clk_div()
69 data->clk_ref = devm_clk_get_enabled(dev, NULL); in pasemi_platform_i2c_probe()
70 if (IS_ERR(data->clk_ref)) in pasemi_platform_i2c_probe()
71 return PTR_ERR(data->clk_ref); in pasemi_platform_i2c_probe()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dtegra.c44 ret = clk_prepare_enable(tdev->clk_ref); in nvkm_device_tegra_power_up()
71 clk_disable_unprepare(tdev->clk_ref); in nvkm_device_tegra_power_up()
87 clk_disable_unprepare(tdev->clk_ref); in nvkm_device_tegra_power_down()
284 tdev->clk_ref = devm_clk_get(&pdev->dev, "ref"); in nvkm_device_tegra_new()
285 if (IS_ERR(tdev->clk_ref)) { in nvkm_device_tegra_new()
286 ret = PTR_ERR(tdev->clk_ref); in nvkm_device_tegra_new()
/linux/arch/m68k/include/asm/
H A Dmcfclk.h42 #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \ argument
43 static struct clk clk_##clk_ref = { \
/linux/drivers/rtc/
H A Drtc-mxc.c66 struct clk *clk_ref; member
341 pdata->clk_ref = devm_clk_get_enabled(&pdev->dev, "ref"); in mxc_rtc_probe()
342 if (IS_ERR(pdata->clk_ref)) { in mxc_rtc_probe()
344 return PTR_ERR(pdata->clk_ref); in mxc_rtc_probe()
347 rate = clk_get_rate(pdata->clk_ref); in mxc_rtc_probe()
/linux/drivers/clk/ti/
H A Dfapll.c63 struct clk *clk_ref; member
568 fd->clk_ref = of_clk_get(node, 0); in ti_fapll_setup()
569 if (IS_ERR(fd->clk_ref)) { in ti_fapll_setup()
570 pr_err("%pOFn could not get clk_ref\n", node); in ti_fapll_setup()
659 if (fd->clk_ref) in ti_fapll_setup()
660 clk_put(fd->clk_ref); in ti_fapll_setup()
H A Ddpll44xx.c94 fint = clk_hw_get_rate(dd->clk_ref) / (dd->last_rounded_n + 1); in omap4_dpll_lpmode_recalc()
220 req->best_parent_hw = dd->clk_ref; in omap4_dpll_regm4xen_determine_rate()
H A Ddpll3xxx.c98 fint = clk_hw_get_rate(clk->dpll_data->clk_ref) / n; in _omap3_dpll_compute_freqsel()
318 ref_rate = clk_hw_get_rate(dd->clk_ref); in omap3_noncore_dpll_ssc_program()
550 WARN_ON(parent != dd->clk_ref); in omap3_noncore_dpll_enable()
604 req->best_parent_hw = dd->clk_ref; in omap3_noncore_dpll_determine_rate()
662 if (clk_hw_get_parent(hw) != dd->clk_ref) in omap3_noncore_dpll_set_rate()
H A Dclkt_dpll.c262 dpll_clk = (u64)clk_hw_get_rate(dd->clk_ref) * dpll_mult; in omap2_get_dpll_rate()
305 ref_rate = clk_hw_get_rate(dd->clk_ref); in omap2_dpll_round_rate()
H A Dapll.c148 ad->clk_ref = __clk_get_hw(clk); in omap_clk_register_apll()
H A Ddpll.c171 dd->clk_ref = __clk_get_hw(clk); in _register_dpll()
/linux/Documentation/devicetree/bindings/usb/
H A Dhisilicon,hi3798mv200-dwc3.yaml77 <&clk_ref>,
92 <&clk_ref>;
/linux/drivers/gpu/drm/bridge/imx/
H A Dimx93-mipi-dsi.c96 struct clk *clk_ref; member
412 ret = clk_prepare_enable(dsi->clk_ref); in dphy_pll_configure()
426 clk_disable_unprepare(dsi->clk_ref); in dphy_pll_configure()
464 clk_disable_unprepare(dsi->clk_ref); in dphy_pll_power_off()
860 dsi->clk_ref = devm_clk_get(dev, "phy_ref"); in imx93_dsi_probe()
861 if (IS_ERR(dsi->clk_ref)) in imx93_dsi_probe()
862 return dev_err_probe(dev, PTR_ERR(dsi->clk_ref), in imx93_dsi_probe()
865 dsi->ref_clk_rate = clk_get_rate(dsi->clk_ref); in imx93_dsi_probe()
/linux/drivers/phy/amlogic/
H A Dphy-meson-g12a-usb3-pcie.c58 struct clk *clk_ref; member
410 priv->clk_ref = devm_clk_get_enabled(dev, "ref_clk"); in phy_g12a_usb3_pcie_probe()
411 if (IS_ERR(priv->clk_ref)) in phy_g12a_usb3_pcie_probe()
412 return PTR_ERR(priv->clk_ref); in phy_g12a_usb3_pcie_probe()
/linux/drivers/phy/st/
H A Dphy-miphy28lp.c236 int clk_ref; member
245 .clk_ref = 0x1e,
254 .clk_ref = 0x1e,
263 .clk_ref = 0x1e,
391 writeb_relaxed(pll_ratio->clk_ref, base + MIPHY_PLL_CLKREF_FREQ); in miphy28lp_pll_calibration()
501 writeb_relaxed(pll_ratio->clk_ref, base + MIPHY_PLL_CLKREF_FREQ); in miphy28lp_compensation()
/linux/drivers/phy/rockchip/
H A Dphy-rockchip-typec.c377 struct clk *clk_ref; member
734 ret = clk_prepare_enable(tcphy->clk_ref); in tcphy_phy_init()
791 clk_disable_unprepare(tcphy->clk_ref); in tcphy_phy_init()
803 clk_disable_unprepare(tcphy->clk_ref); in tcphy_phy_deinit()
1056 tcphy->clk_ref = devm_clk_get(dev, "tcpdphy-ref"); in tcphy_parse_dt()
1057 if (IS_ERR(tcphy->clk_ref)) { in tcphy_parse_dt()
1059 return PTR_ERR(tcphy->clk_ref); in tcphy_parse_dt()
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dtegra.h14 struct clk *clk_ref; member
/linux/include/linux/clk/
H A Dti.h34 * @clk_ref: struct clk_hw pointer to the clock's reference clock input
92 struct clk_hw *clk_ref; member
/linux/drivers/net/ethernet/freescale/
H A Dfec_main.c2038 /* LPI Sleep Ts count base on tx clk (clk_ref).
2344 ret = clk_prepare_enable(fep->clk_ref); in fec_enet_clk_enable()
2361 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable()
2368 if (fep->clk_ref) in fec_enet_clk_enable()
2369 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable()
4429 /* clk_ref is optional, depends on board */ in fec_probe()
4430 fep->clk_ref = devm_clk_get_optional(&pdev->dev, "enet_clk_ref"); in fec_probe()
4431 if (IS_ERR(fep->clk_ref)) { in fec_probe()
4432 ret = PTR_ERR(fep->clk_ref); in fec_probe()
4435 fep->clk_ref_rate = clk_get_rate(fep->clk_ref); in fec_probe()
H A Dfec.h607 struct clk *clk_ref; member