Home
last modified time | relevance | path

Searched refs:fclk (Results 1 – 17 of 17) sorted by relevance

/drivers/staging/tidspbridge/core/
Dwdt.c63 dsp_wdt.fclk = clk_get(NULL, "wdt3_fck"); in dsp_wdt_init()
65 if (!IS_ERR(dsp_wdt.fclk)) { in dsp_wdt_init()
66 clk_prepare(dsp_wdt.fclk); in dsp_wdt_init()
70 clk_put(dsp_wdt.fclk); in dsp_wdt_init()
71 dsp_wdt.fclk = NULL; in dsp_wdt_init()
102 if (dsp_wdt.fclk) { in dsp_wdt_exit()
103 clk_unprepare(dsp_wdt.fclk); in dsp_wdt_exit()
104 clk_put(dsp_wdt.fclk); in dsp_wdt_exit()
111 dsp_wdt.fclk = NULL; in dsp_wdt_exit()
125 if (wdt_enable == enable || !dsp_wdt.fclk || !dsp_wdt.iclk) in dsp_wdt_enable()
[all …]
/drivers/usb/host/
Dehci-sh.c17 struct clk *iclk, *fclk; member
135 priv->fclk = devm_clk_get(&pdev->dev, "usb_fck"); in ehci_hcd_sh_probe()
136 if (IS_ERR(priv->fclk)) in ehci_hcd_sh_probe()
137 priv->fclk = NULL; in ehci_hcd_sh_probe()
143 clk_enable(priv->fclk); in ehci_hcd_sh_probe()
162 clk_disable(priv->fclk); in ehci_hcd_sh_probe()
181 clk_disable(priv->fclk); in ehci_hcd_sh_remove()
Dehci-atmel.c33 static struct clk *iclk, *fclk; variable
41 clk_enable(fclk); in atmel_start_clock()
47 clk_disable(fclk); in atmel_stop_clock()
127 fclk = devm_clk_get(&pdev->dev, "uhpck"); in ehci_atmel_drv_probe()
128 if (IS_ERR(fclk)) { in ehci_atmel_drv_probe()
165 fclk = iclk = NULL; in ehci_atmel_drv_remove()
Dohci-at91.c35 static struct clk *iclk, *fclk, *hclk; variable
46 clk_enable(fclk); in at91_start_clock()
52 clk_disable(fclk); in at91_stop_clock()
153 fclk = clk_get(&pdev->dev, "uhpck"); in usb_hcd_at91_probe()
154 if (IS_ERR(fclk)) { in usb_hcd_at91_probe()
156 retval = PTR_ERR(fclk); in usb_hcd_at91_probe()
178 clk_put(fclk); in usb_hcd_at91_probe()
216 clk_put(fclk); in usb_hcd_at91_remove()
218 fclk = iclk = hclk = NULL; in usb_hcd_at91_remove()
/drivers/media/dvb-frontends/
Ds5h1420.c53 u32 fclk; member
378 tmp = state->fclk / tmp; in s5h1420_read_status()
485 do_div(val, (state->fclk / 1000)); in s5h1420_setsymbolrate()
512 val = -(int) ((freqoffset * (1<<24)) / (state->fclk / 1000000)); in s5h1420_setfreqoffset()
540 val = (((-val) * (state->fclk/1000000)) / (1<<24)); in s5h1420_getfreqoffset()
671 state->fclk = 80000000; in s5h1420_set_frontend()
673 state->fclk = 59000000; in s5h1420_set_frontend()
675 state->fclk = 86000000; in s5h1420_set_frontend()
677 state->fclk = 88000000; in s5h1420_set_frontend()
679 state->fclk = 44000000; in s5h1420_set_frontend()
[all …]
Dcx24110.c245 u32 tmp, fclk, BDRI; in cx24110_set_symbolrate() local
265 fclk=90999000UL/2; in cx24110_set_symbolrate()
269 fclk=60666000UL; in cx24110_set_symbolrate()
273 fclk=80888000UL; in cx24110_set_symbolrate()
277 fclk=90999000UL; in cx24110_set_symbolrate()
279 dprintk("cx24110 debug: fclk %d Hz\n",fclk); in cx24110_set_symbolrate()
289 BDRI=fclk>>2; in cx24110_set_symbolrate()
302 dprintk("fclk = %d\n", fclk); in cx24110_set_symbolrate()
Dmb86a20s.h32 u32 fclk; member
Dmb86a20s.c1781 u32 fclk; in mb86a20s_initfe() local
1816 fclk = state->config->fclk; in mb86a20s_initfe()
1817 if (!fclk) in mb86a20s_initfe()
1818 fclk = 32571428; in mb86a20s_initfe()
1828 do_div(pll, 63 * fclk); in mb86a20s_initfe()
1843 __func__, fclk, state->if_freq, (long long)pll); in mb86a20s_initfe()
/drivers/net/hamradio/
Dbaycom_epp.c182 unsigned int fclk; member
317 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in eppconfig()
318 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), in eppconfig()
982 bc->cfg.fclk = simple_strtoul(cp+5, NULL, 0); in baycom_setmode()
983 if (bc->cfg.fclk < 1000000) in baycom_setmode()
984 bc->cfg.fclk = 1000000; in baycom_setmode()
985 if (bc->cfg.fclk > 25000000) in baycom_setmode()
986 bc->cfg.fclk = 25000000; in baycom_setmode()
1080 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in baycom_ioctl()
1188 bc->cfg.fclk = 19666600; in baycom_epp_dev_setup()
/drivers/i2c/busses/
Di2c-omap.c346 struct clk *fclk; in omap_i2c_init() local
364 fclk = clk_get(dev->dev, "fck"); in omap_i2c_init()
365 fclk_rate = clk_get_rate(fclk); in omap_i2c_init()
366 clk_put(fclk); in omap_i2c_init()
396 fclk = clk_get(dev->dev, "fck"); in omap_i2c_init()
397 fclk_rate = clk_get_rate(fclk) / 1000; in omap_i2c_init()
398 clk_put(fclk); in omap_i2c_init()
/drivers/staging/tidspbridge/include/dspbridge/
Dwdt.h40 struct clk *fclk; member
/drivers/clk/samsung/
Dclk-exynos4.c942 struct samsung_fixed_rate_clock fclk; in exynos4_clk_register_finpll() local
957 fclk.id = fin_pll; in exynos4_clk_register_finpll()
958 fclk.name = "fin_pll"; in exynos4_clk_register_finpll()
959 fclk.parent_name = NULL; in exynos4_clk_register_finpll()
960 fclk.flags = CLK_IS_ROOT; in exynos4_clk_register_finpll()
961 fclk.fixed_rate = finpll_f; in exynos4_clk_register_finpll()
962 samsung_clk_register_fixed_rate(&fclk, 1); in exynos4_clk_register_finpll()
/drivers/mmc/host/
Domap.c139 struct clk * fclk; member
205 clk_enable(host->fclk); in mmc_omap_fclk_enable()
207 clk_disable(host->fclk); in mmc_omap_fclk_enable()
1141 int func_clk_rate = clk_get_rate(host->fclk); in mmc_omap_calc_divisor()
1399 host->fclk = clk_get(&pdev->dev, "fck"); in mmc_omap_probe()
1400 if (IS_ERR(host->fclk)) { in mmc_omap_probe()
1401 ret = PTR_ERR(host->fclk); in mmc_omap_probe()
1485 clk_put(host->fclk); in mmc_omap_probe()
1515 clk_put(host->fclk); in mmc_omap_remove()
Domap_hsmmc.c153 struct clk *fclk; member
494 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
540 if (clkdiv && (clk_get_rate(host->fclk)/clkdiv) > 25000000) in omap_hsmmc_set_clock()
1350 cycle_ns = 1000000000 / (clk_get_rate(host->fclk) / clkd); in set_data_timeout()
1856 host->fclk = clk_get(&pdev->dev, "fck"); in omap_hsmmc_probe()
1857 if (IS_ERR(host->fclk)) { in omap_hsmmc_probe()
1858 ret = PTR_ERR(host->fclk); in omap_hsmmc_probe()
1859 host->fclk = NULL; in omap_hsmmc_probe()
2043 clk_put(host->fclk); in omap_hsmmc_probe()
2083 clk_put(host->fclk); in omap_hsmmc_remove()
/drivers/usb/gadget/
Dat91_udc.h129 struct clk *iclk, *fclk; member
Dat91_udc.c874 clk_enable(udc->fclk); in clk_on()
883 clk_disable(udc->fclk); in clk_off()
1776 udc->fclk = clk_get(dev, "udpck"); in at91udc_probe()
1777 if (IS_ERR(udc->iclk) || IS_ERR(udc->fclk)) { in at91udc_probe()
1894 clk_put(udc->fclk); in at91udc_remove()
/drivers/tty/serial/
Dsh-sci.c75 struct clk *fclk; member
394 clk_enable(sci_port->fclk); in sci_port_enable()
402 clk_disable(sci_port->fclk); in sci_port_disable()
2119 sci_port->fclk = clk_get(&dev->dev, "sci_fck"); in sci_init_single()
2120 if (IS_ERR(sci_port->fclk)) in sci_init_single()
2121 sci_port->fclk = NULL; in sci_init_single()
2190 clk_put(port->fclk); in sci_cleanup_single()