Home
last modified time | relevance | path

Searched refs:clk_ref (Results 1 – 16 of 16) sorted by relevance

/linux-4.1.27/drivers/clk/mxs/
Dclk-ref.c30 struct clk_ref { struct
36 #define to_clk_ref(_hw) container_of(_hw, struct clk_ref, hw) argument
40 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_enable()
49 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_disable()
57 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_recalc_rate()
93 struct clk_ref *ref = to_clk_ref(hw); in clk_ref_set_rate()
131 struct clk_ref *ref; in mxs_clk_ref()
/linux-4.1.27/drivers/media/platform/s5p-mfc/
Ds5p_mfc_pm.c31 static atomic_t clk_ref; variable
73 atomic_set(&clk_ref, 0); in s5p_mfc_init_pm()
103 atomic_inc(&clk_ref); in s5p_mfc_clock_on()
104 mfc_debug(3, "+ %d\n", atomic_read(&clk_ref)); in s5p_mfc_clock_on()
113 atomic_dec(&clk_ref); in s5p_mfc_clock_off()
114 mfc_debug(3, "- %d\n", atomic_read(&clk_ref)); in s5p_mfc_clock_off()
/linux-4.1.27/sound/soc/adi/
Daxi-spdif.c41 struct clk *clk_ref; member
98 clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref), in axi_spdif_hw_params()
130 ret = clk_prepare_enable(spdif->clk_ref); in axi_spdif_startup()
148 clk_disable_unprepare(spdif->clk_ref); in axi_spdif_shutdown()
207 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_spdif_probe()
208 if (IS_ERR(spdif->clk_ref)) in axi_spdif_probe()
209 return PTR_ERR(spdif->clk_ref); in axi_spdif_probe()
219 spdif->ratnum.num = clk_get_rate(spdif->clk_ref) / 128; in axi_spdif_probe()
Daxi-i2s.c44 struct clk *clk_ref; member
96 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params()
124 return clk_prepare_enable(i2s->clk_ref); in axi_i2s_startup()
132 clk_disable_unprepare(i2s->clk_ref); in axi_i2s_shutdown()
208 i2s->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_i2s_probe()
209 if (IS_ERR(i2s->clk_ref)) in axi_i2s_probe()
210 return PTR_ERR(i2s->clk_ref); in axi_i2s_probe()
224 i2s->ratnum.num = clk_get_rate(i2s->clk_ref) / 2 / AXI_I2S_BITS_PER_FRAME; in axi_i2s_probe()
/linux-4.1.27/arch/m68k/include/asm/
Dmcfclk.h43 #define DEFINE_CLK(clk_ref, clk_name, clk_rate) \ argument
44 static struct clk clk_##clk_ref = { \
/linux-4.1.27/drivers/mfd/
Djz4740-adc.c63 atomic_t clk_ref; member
88 if (atomic_inc_return(&adc->clk_ref) == 1) in jz4740_adc_clk_enable()
94 if (atomic_dec_return(&adc->clk_ref) == 0) in jz4740_adc_clk_disable()
262 atomic_set(&adc->clk_ref, 0); in jz4740_adc_probe()
/linux-4.1.27/drivers/clk/ti/
Ddpll.c149 dd->clk_ref = of_clk_get(node, 0); in _register_dpll()
152 if (IS_ERR(dd->clk_ref) || IS_ERR(dd->clk_bypass)) { in _register_dpll()
201 struct clk *clk_ref; in ti_clk_register_dpll() local
209 clk_ref = clk_get_sys(NULL, dpll->parents[0]); in ti_clk_register_dpll()
212 if (IS_ERR_OR_NULL(clk_ref) || IS_ERR_OR_NULL(clk_bypass)) in ti_clk_register_dpll()
253 dd->clk_ref = clk_ref; in ti_clk_register_dpll()
Dfapll.c68 struct clk *clk_ref; member
565 fd->clk_ref = of_clk_get(node, 0); in ti_fapll_setup()
566 if (IS_ERR(fd->clk_ref)) { in ti_fapll_setup()
657 if (fd->clk_ref) in ti_fapll_setup()
658 clk_put(fd->clk_ref); in ti_fapll_setup()
Dapll.c140 ad->clk_ref = of_clk_get(node, 0); in omap_clk_register_apll()
143 if (IS_ERR(ad->clk_ref) || IS_ERR(ad->clk_bypass)) { in omap_clk_register_apll()
/linux-4.1.27/arch/arm/mach-omap2/
Ddpll44xx.c96 fint = __clk_get_rate(dd->clk_ref) / (dd->last_rounded_n + 1); in omap4_dpll_lpmode_recalc()
226 *best_parent_clk = __clk_get_hw(dd->clk_ref); in omap4_dpll_regm4xen_determine_rate()
Ddpll3xxx.c94 fint = __clk_get_rate(clk->dpll_data->clk_ref) / n; in _omap3_dpll_compute_freqsel()
436 WARN_ON(parent != __clk_get_hw(dd->clk_ref)); in omap3_noncore_dpll_enable()
496 *best_parent_clk = __clk_get_hw(dd->clk_ref); in omap3_noncore_dpll_determine_rate()
555 __clk_get_hw(dd->clk_ref)) in omap3_noncore_dpll_set_rate()
Dclkt_dpll.c263 dpll_clk = (long long) __clk_get_rate(dd->clk_ref) * dpll_mult; in omap2_get_dpll_rate()
302 ref_rate = __clk_get_rate(dd->clk_ref); in omap2_dpll_round_rate()
/linux-4.1.27/drivers/phy/
Dphy-miphy28lp.c244 int clk_ref; member
253 .clk_ref = 0x1e,
262 .clk_ref = 0x1e,
271 .clk_ref = 0x1e,
399 writeb_relaxed(pll_ratio->clk_ref, base + MIPHY_PLL_CLKREF_FREQ); in miphy28lp_pll_calibration()
517 writeb_relaxed(pll_ratio->clk_ref, base + MIPHY_PLL_CLKREF_FREQ); in miphy28lp_compensation()
/linux-4.1.27/include/linux/clk/
Dti.h73 struct clk *clk_ref; member
/linux-4.1.27/drivers/net/ethernet/freescale/
Dfec_main.c1845 if (fep->clk_ref) { in fec_enet_clk_enable()
1846 ret = clk_prepare_enable(fep->clk_ref); in fec_enet_clk_enable()
1861 if (fep->clk_ref) in fec_enet_clk_enable()
1862 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable()
1868 if (fep->clk_ref) in fec_enet_clk_enable()
1869 clk_disable_unprepare(fep->clk_ref); in fec_enet_clk_enable()
3293 fep->clk_ref = devm_clk_get(&pdev->dev, "enet_clk_ref"); in fec_probe()
3294 if (IS_ERR(fep->clk_ref)) in fec_probe()
3295 fep->clk_ref = NULL; in fec_probe()
Dfec.h477 struct clk *clk_ref; member