Home
last modified time | relevance | path

Searched refs:sys_clk (Results 1 – 25 of 25) sorted by relevance

/drivers/media/rc/img-ir/
Dimg-ir-core.c108 priv->sys_clk = devm_clk_get(&pdev->dev, "sys"); in img_ir_probe()
109 if (IS_ERR(priv->sys_clk)) in img_ir_probe()
116 if (!IS_ERR(priv->sys_clk)) { in img_ir_probe()
117 error = clk_prepare_enable(priv->sys_clk); in img_ir_probe()
152 if (!IS_ERR(priv->sys_clk)) in img_ir_probe()
153 clk_disable_unprepare(priv->sys_clk); in img_ir_probe()
167 if (!IS_ERR(priv->sys_clk)) in img_ir_remove()
168 clk_disable_unprepare(priv->sys_clk); in img_ir_remove()
Dimg-ir.h147 struct clk *sys_clk; member
/drivers/clocksource/
Dtimer-pistachio.c153 struct clk *sys_clk, *fast_clk; in pistachio_clksrc_of_init() local
177 sys_clk = of_clk_get_by_name(node, "sys"); in pistachio_clksrc_of_init()
178 if (IS_ERR(sys_clk)) { in pistachio_clksrc_of_init()
179 pr_err("clock get failed (%ld)\n", PTR_ERR(sys_clk)); in pistachio_clksrc_of_init()
180 return PTR_ERR(sys_clk); in pistachio_clksrc_of_init()
189 ret = clk_prepare_enable(sys_clk); in pistachio_clksrc_of_init()
198 clk_disable_unprepare(sys_clk); in pistachio_clksrc_of_init()
/drivers/mmc/host/
Dsdhci-pic32.c47 struct clk *sys_clk; member
166 sdhci_pdata->sys_clk = devm_clk_get(&pdev->dev, "sys_clk"); in pic32_sdhci_probe()
167 if (IS_ERR(sdhci_pdata->sys_clk)) { in pic32_sdhci_probe()
168 ret = PTR_ERR(sdhci_pdata->sys_clk); in pic32_sdhci_probe()
173 ret = clk_prepare_enable(sdhci_pdata->sys_clk); in pic32_sdhci_probe()
212 clk_disable_unprepare(sdhci_pdata->sys_clk); in pic32_sdhci_probe()
229 clk_disable_unprepare(sdhci_pdata->sys_clk); in pic32_sdhci_remove()
/drivers/cpufreq/
Dspear-cpufreq.c78 struct clk *sys_clk; in spear1340_set_cpu_rate() local
81 sys_clk = clk_get_parent(spear_cpufreq.clk); in spear1340_set_cpu_rate()
82 if (IS_ERR(sys_clk)) { in spear1340_set_cpu_rate()
84 return PTR_ERR(sys_clk); in spear1340_set_cpu_rate()
94 ret = clk_set_parent(sys_clk, sys_pclk); in spear1340_set_cpu_rate()
/drivers/watchdog/
Dimgpdc_wdt.c85 struct clk *sys_clk; member
199 pdc_wdt->sys_clk = devm_clk_get(dev, "sys"); in pdc_wdt_probe()
200 if (IS_ERR(pdc_wdt->sys_clk)) { in pdc_wdt_probe()
202 return PTR_ERR(pdc_wdt->sys_clk); in pdc_wdt_probe()
211 ret = clk_prepare_enable(pdc_wdt->sys_clk); in pdc_wdt_probe()
217 pdc_wdt->sys_clk); in pdc_wdt_probe()
/drivers/pwm/
Dpwm-img.c65 struct clk *sys_clk; member
212 clk_disable_unprepare(pwm_chip->sys_clk); in img_pwm_runtime_suspend()
222 ret = clk_prepare_enable(pwm_chip->sys_clk); in img_pwm_runtime_resume()
231 clk_disable_unprepare(pwm_chip->sys_clk); in img_pwm_runtime_resume()
268 pwm->sys_clk = devm_clk_get(&pdev->dev, "sys"); in img_pwm_probe()
269 if (IS_ERR(pwm->sys_clk)) { in img_pwm_probe()
271 return PTR_ERR(pwm->sys_clk); in img_pwm_probe()
Dpwm-atmel-hlcdc.c69 new_clk = hlcdc->sys_clk; in atmel_hlcdc_pwm_apply()
104 if (new_clk == hlcdc->sys_clk) in atmel_hlcdc_pwm_apply()
/drivers/pci/controller/dwc/
Dpcie-histb.c56 struct clk *sys_clk; member
222 clk_disable_unprepare(hipcie->sys_clk); in histb_pcie_host_disable()
257 ret = clk_prepare_enable(hipcie->sys_clk); in histb_pcie_host_enable()
289 clk_disable_unprepare(hipcie->sys_clk); in histb_pcie_host_enable()
373 hipcie->sys_clk = devm_clk_get(dev, "sys"); in histb_pcie_probe()
374 if (IS_ERR(hipcie->sys_clk)) { in histb_pcie_probe()
376 return PTR_ERR(hipcie->sys_clk); in histb_pcie_probe()
/drivers/spi/
Dspi-img-spfi.c96 struct clk *sys_clk; member
561 spfi->sys_clk = devm_clk_get(spfi->dev, "sys"); in img_spfi_probe()
562 if (IS_ERR(spfi->sys_clk)) { in img_spfi_probe()
563 ret = PTR_ERR(spfi->sys_clk); in img_spfi_probe()
572 ret = clk_prepare_enable(spfi->sys_clk); in img_spfi_probe()
662 clk_disable_unprepare(spfi->sys_clk); in img_spfi_probe()
682 clk_disable_unprepare(spfi->sys_clk); in img_spfi_remove()
695 clk_disable_unprepare(spfi->sys_clk); in img_spfi_runtime_suspend()
706 ret = clk_prepare_enable(spfi->sys_clk); in img_spfi_runtime_resume()
711 clk_disable_unprepare(spfi->sys_clk); in img_spfi_runtime_resume()
Dspi-pic32-sqi.c140 struct clk *sys_clk; member
596 sqi->sys_clk = devm_clk_get(&pdev->dev, "reg_ck"); in pic32_sqi_probe()
597 if (IS_ERR(sqi->sys_clk)) { in pic32_sqi_probe()
598 ret = PTR_ERR(sqi->sys_clk); in pic32_sqi_probe()
610 ret = clk_prepare_enable(sqi->sys_clk); in pic32_sqi_probe()
619 clk_disable_unprepare(sqi->sys_clk); in pic32_sqi_probe()
674 clk_disable_unprepare(sqi->sys_clk); in pic32_sqi_probe()
691 clk_disable_unprepare(sqi->sys_clk); in pic32_sqi_remove()
/drivers/mfd/
Datmel-hlcdc.c113 hlcdc->sys_clk = devm_clk_get(dev, "sys_clk"); in atmel_hlcdc_probe()
114 if (IS_ERR(hlcdc->sys_clk)) { in atmel_hlcdc_probe()
116 return PTR_ERR(hlcdc->sys_clk); in atmel_hlcdc_probe()
/drivers/usb/mtu3/
Dmtu3_plat.c108 ret = clk_prepare_enable(ssusb->sys_clk); in ssusb_clks_enable()
139 clk_disable_unprepare(ssusb->sys_clk); in ssusb_clks_enable()
149 clk_disable_unprepare(ssusb->sys_clk); in ssusb_clks_disable()
228 ssusb->sys_clk = devm_clk_get(dev, "sys_ck"); in get_ssusb_rscs()
229 if (IS_ERR(ssusb->sys_clk)) { in get_ssusb_rscs()
231 return PTR_ERR(ssusb->sys_clk); in get_ssusb_rscs()
Dmtu3.h253 struct clk *sys_clk; member
/drivers/media/platform/cadence/
Dcdns-csi2rx.c68 struct clk *sys_clk; member
169 ret = clk_prepare_enable(csi2rx->sys_clk); in csi2rx_start()
192 clk_disable_unprepare(csi2rx->sys_clk); in csi2rx_stop()
292 csi2rx->sys_clk = devm_clk_get(&pdev->dev, "sys_clk"); in csi2rx_get_resources()
293 if (IS_ERR(csi2rx->sys_clk)) { in csi2rx_get_resources()
295 return PTR_ERR(csi2rx->sys_clk); in csi2rx_get_resources()
/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_crtc.c78 ret = clk_prepare_enable(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb()
102 prate = clk_get_rate(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb()
155 clk_disable_unprepare(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb()
194 clk_disable_unprepare(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_atomic_disable()
215 clk_prepare_enable(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_atomic_enable()
/drivers/phy/ti/
Dphy-omap-control.c90 rate = clk_get_rate(control_phy->sys_clk); in omap_control_phy_power()
306 control_phy->sys_clk = devm_clk_get(control_phy->dev, in omap_control_phy_probe()
308 if (IS_ERR(control_phy->sys_clk)) { in omap_control_phy_probe()
Dphy-ti-pipe3.c170 struct clk *sys_clk; member
304 rate = clk_get_rate(phy->sys_clk); in ti_pipe3_get_dpll_params()
349 rate = clk_get_rate(phy->sys_clk); in ti_pipe3_power_on()
628 phy->sys_clk = devm_clk_get(dev, "sysclk"); in ti_pipe3_get_clk()
629 if (IS_ERR(phy->sys_clk)) { in ti_pipe3_get_clk()
/drivers/usb/host/
Dxhci-mtk.c213 mtk->sys_clk = devm_clk_get(dev, "sys_ck"); in xhci_mtk_clks_get()
214 if (IS_ERR(mtk->sys_clk)) { in xhci_mtk_clks_get()
216 return PTR_ERR(mtk->sys_clk); in xhci_mtk_clks_get()
245 ret = clk_prepare_enable(mtk->sys_clk); in xhci_mtk_clks_enable()
276 clk_disable_unprepare(mtk->sys_clk); in xhci_mtk_clks_enable()
288 clk_disable_unprepare(mtk->sys_clk); in xhci_mtk_clks_disable()
Dxhci-mtk.h141 struct clk *sys_clk; /* sys and mac clock */ member
/drivers/crypto/
Dimg-hash.c120 struct clk *sys_clk; member
1005 hdev->sys_clk = devm_clk_get(&pdev->dev, "sys"); in img_hash_probe()
1006 if (IS_ERR(hdev->sys_clk)) { in img_hash_probe()
1008 err = PTR_ERR(hdev->sys_clk); in img_hash_probe()
1016 err = clk_prepare_enable(hdev->sys_clk); in img_hash_probe()
1044 clk_disable_unprepare(hdev->sys_clk); in img_hash_probe()
1071 clk_disable_unprepare(hdev->sys_clk); in img_hash_remove()
1082 clk_disable_unprepare(hdev->sys_clk); in img_hash_suspend()
1096 ret = clk_prepare_enable(hdev->sys_clk); in img_hash_resume()
/drivers/video/fbdev/omap/
Dhwa742.c750 unsigned long *sys_clk, unsigned long *pix_clk) in calc_hwa742_clk_rates() argument
762 *sys_clk = ext_clk * sys_mul / sys_div; in calc_hwa742_clk_rates()
764 *sys_clk = ext_clk; in calc_hwa742_clk_rates()
766 *pix_clk = *sys_clk / pix_div; /* HZ */ in calc_hwa742_clk_rates()
771 *sys_clk, *pix_clk); in calc_hwa742_clk_rates()
927 unsigned long sys_clk, pix_clk; in hwa742_init() local
955 calc_hwa742_clk_rates(ext_clk, &sys_clk, &pix_clk); in hwa742_init()
956 if ((r = calc_extif_timings(sys_clk, &extif_mem_div)) < 0) in hwa742_init()
/drivers/i2c/busses/
Di2c-img-scb.c374 struct clk *scb_clk, *sys_clk; member
1348 i2c->sys_clk = devm_clk_get(&pdev->dev, "sys"); in img_i2c_probe()
1349 if (IS_ERR(i2c->sys_clk)) { in img_i2c_probe()
1351 return PTR_ERR(i2c->sys_clk); in img_i2c_probe()
1433 clk_disable_unprepare(i2c->sys_clk); in img_i2c_runtime_suspend()
1443 ret = clk_prepare_enable(i2c->sys_clk); in img_i2c_runtime_resume()
1452 clk_disable_unprepare(i2c->sys_clk); in img_i2c_runtime_resume()
/drivers/bluetooth/
Dhci_nokia.c88 u16 sys_clk; member
109 u16 sys_clk; member
287 neg_cmd->sys_clk = cpu_to_le16(sysclk); in nokia_send_negotiation()
561 evt->baud, evt->sys_clk, evt->man_id, evt->ver_id); in nokia_recv_negotiation_packet()
/drivers/media/dvb-frontends/
Dsi2165.c48 u32 sys_clk; member
245 state->sys_clk = state->fvco_hz / (divl * 2u); in si2165_init_pll()
257 state->sys_clk = state->fvco_hz / (divl * 2u); in si2165_adjust_pll_divl()