/linux/drivers/clk/mxs/ |
H A D | clk-ref.c | 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 D | axi-spdif.c | 40 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 D | axi-i2s.c | 43 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/arch/m68k/include/asm/ |
H A D | mcfclk.h | 42 #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \ argument 43 static struct clk clk_##clk_ref = { \
|
/linux/drivers/rtc/ |
H A D | rtc-mxc.c | 66 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/gpu/drm/bridge/imx/ |
H A D | imx93-mipi-dsi.c | 96 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 D | phy-meson-g12a-usb3-pcie.c | 58 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/clk/ti/ |
H A D | dpll44xx.c | 94 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 D | fapll.c | 63 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() 659 if (fd->clk_ref) in ti_fapll_setup() 660 clk_put(fd->clk_ref); in ti_fapll_setup()
|
H A D | clkt_dpll.c | 262 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 D | dpll3xxx.c | 98 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 D | apll.c | 148 ad->clk_ref = __clk_get_hw(clk); in omap_clk_register_apll()
|
H A D | dpll.c | 171 dd->clk_ref = __clk_get_hw(clk); in _register_dpll()
|
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | tegra.h | 14 struct clk *clk_ref; member
|
/linux/drivers/phy/st/ |
H A D | phy-miphy28lp.c | 236 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/include/linux/clk/ |
H A D | ti.h | 92 struct clk_hw *clk_ref; member
|
/linux/drivers/net/ethernet/freescale/ |
H A D | fec.h | 607 struct clk *clk_ref; member
|
H A D | fec_main.c | 2393 ret = clk_prepare_enable(fep->clk_ref); in fec_enet_clk_enable() 2410 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable() 2417 if (fep->clk_ref) in fec_enet_clk_enable() 2418 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable() 4468 fep->clk_ref = devm_clk_get_optional(&pdev->dev, "enet_clk_ref"); in fec_probe() 4469 if (IS_ERR(fep->clk_ref)) { in fec_probe() 4470 ret = PTR_ERR(fep->clk_ref); in fec_probe() 4473 fep->clk_ref_rate = clk_get_rate(fep->clk_ref); in fec_probe()
|