Home
last modified time | relevance | path

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

12

/drivers/input/serio/
Dat32psif.c97 struct clk *pclk; member
160 retval = clk_enable(psif->pclk); in psif_open()
181 clk_disable(psif->pclk); in psif_close()
187 unsigned long rate = clk_get_rate(psif->pclk); in psif_set_prescaler()
198 clk_enable(psif->pclk); in psif_set_prescaler()
200 clk_disable(psif->pclk); in psif_set_prescaler()
208 struct clk *pclk; in psif_probe() local
242 pclk = clk_get(&pdev->dev, "pclk"); in psif_probe()
243 if (IS_ERR(pclk)) { in psif_probe()
245 ret = PTR_ERR(pclk); in psif_probe()
[all …]
/drivers/amba/
Dbus.c254 clk_disable(pcdev->pclk); in amba_pm_runtime_suspend()
265 ret = clk_enable(pcdev->pclk); in amba_pm_runtime_resume()
320 struct clk *pclk = clk_get(&pcdev->dev, "apb_pclk"); in amba_get_enable_pclk() local
323 pcdev->pclk = pclk; in amba_get_enable_pclk()
325 if (IS_ERR(pclk)) in amba_get_enable_pclk()
326 return PTR_ERR(pclk); in amba_get_enable_pclk()
328 ret = clk_prepare(pclk); in amba_get_enable_pclk()
330 clk_put(pclk); in amba_get_enable_pclk()
334 ret = clk_enable(pclk); in amba_get_enable_pclk()
336 clk_unprepare(pclk); in amba_get_enable_pclk()
[all …]
/drivers/gpu/drm/nouveau/
Dnv04_pm.c68 struct nouveau_clock *pclk = nouveau_clock(device); in calc_pll() local
75 ret = pclk->pll_calc(pclk, &clk->pll, khz, &clk->calc); in calc_pll()
112 struct nouveau_clock *pclk = nouveau_clock(device); in prog_pll() local
119 pclk->pll_prog(pclk, reg, &clk->calc); in prog_pll()
Dnv40_pm.c123 struct nouveau_clock *pclk = nouveau_clock(device); in nv40_calc_pll() local
134 pclk->pll_calc(pclk, pll, clk, &coef); in nv40_calc_pll()
/drivers/gpu/host1x/drm/
Dhdmi.c84 unsigned int pclk; member
147 unsigned int pclk; member
156 .pclk = 27000000,
171 .pclk = UINT_MAX,
189 .pclk = 27000000,
203 .pclk = 74250000,
217 .pclk = UINT_MAX,
234 tegra_hdmi_get_audio_config(unsigned int audio_freq, unsigned int pclk) in tegra_hdmi_get_audio_config() argument
271 while (table->pclk) { in tegra_hdmi_get_audio_config()
272 if (table->pclk == pclk) in tegra_hdmi_get_audio_config()
[all …]
Ddrm.h180 unsigned long pclk);
234 struct clk *clk, unsigned long pclk) in tegra_output_setup_clock() argument
237 return output->ops->setup_clock(output, clk, pclk); in tegra_output_setup_clock()
/drivers/gpu/drm/nouveau/core/engine/disp/
Dnvd0.c665 u32 pclk, struct dcb_output *dcb) in exec_clkcmp() argument
691 if (pclk >= 165000) in exec_clkcmp()
708 data = nvbios_oclk_match(bios, info2.clkcmp[id], pclk); in exec_clkcmp()
742 u32 pclk = nv_rd32(priv, 0x660450 + (head * 0x300)) / 1000; in nvd0_disp_intr_unk2_1() local
743 if (pclk) in nvd0_disp_intr_unk2_1()
744 clk->pll_set(clk, PLL_VPLL0 + head, pclk); in nvd0_disp_intr_unk2_1()
755 const u32 pclk = nv_rd32(priv, 0x660450 + (head * 0x300)) / 1000; in nvd0_disp_intr_unk2_2_tu() local
770 datarate = (pclk * bits) / 8; in nvd0_disp_intr_unk2_2_tu()
798 u32 pclk = nv_rd32(priv, 0x660450 + (head * 0x300)) / 1000; in nvd0_disp_intr_unk2_2() local
799 u32 conf = exec_clkcmp(priv, head, 0xff, pclk, &outp); in nvd0_disp_intr_unk2_2()
[all …]
Dnv50.c887 exec_clkcmp(struct nv50_disp_priv *priv, int head, int id, u32 pclk, in exec_clkcmp() argument
936 if (pclk >= 165000) in exec_clkcmp()
952 pclk = pclk / 2; in exec_clkcmp()
957 data = nvbios_oclk_match(bios, info2.clkcmp[id], pclk); in exec_clkcmp()
991 u32 pclk = nv_rd32(priv, 0x610ad0 + (head * 0x540)) & 0x3fffff; in nv50_disp_intr_unk20_1() local
992 if (pclk) in nv50_disp_intr_unk20_1()
993 clk->pll_set(clk, PLL_VPLL0 + head, pclk); in nv50_disp_intr_unk20_1()
998 struct dcb_output *outp, u32 pclk) in nv50_disp_intr_unk20_2_dp() argument
1028 link_data_rate = (pclk * bits / 8) / link_nr; in nv50_disp_intr_unk20_2_dp()
1107 u32 pclk = nv_rd32(priv, 0x610ad0 + (head * 0x540)) & 0x3fffff; in nv50_disp_intr_unk20_2() local
[all …]
/drivers/cpufreq/
Dspear-cpufreq.c46 int pclk; in spear1340_cpu_get_possible_parent() local
63 pclk = 0; /* src is sys_syn_clk */ in spear1340_cpu_get_possible_parent()
65 pclk = 3; /* src is pll3_clk */ in spear1340_cpu_get_possible_parent()
67 pclk = 1; /* src is pll1_clk */ in spear1340_cpu_get_possible_parent()
72 sys_pclk = clk_get(NULL, sys_clk_src[pclk]); in spear1340_cpu_get_possible_parent()
74 pr_err("Failed to get %s clock\n", sys_clk_src[pclk]); in spear1340_cpu_get_possible_parent()
/drivers/input/keyboard/
Dnomadik-ske-keypad.c70 struct clk *pclk; member
275 keypad->pclk = clk_get(&pdev->dev, "apb_pclk"); in ske_keypad_probe()
276 if (IS_ERR(keypad->pclk)) { in ske_keypad_probe()
278 error = PTR_ERR(keypad->pclk); in ske_keypad_probe()
305 error = clk_prepare_enable(keypad->pclk); in ske_keypad_probe()
354 clk_disable_unprepare(keypad->pclk); in ske_keypad_probe()
358 clk_put(keypad->pclk); in ske_keypad_probe()
/drivers/net/ethernet/cadence/
Dat91_ether.c349 lp->pclk = devm_clk_get(&pdev->dev, "ether_clk"); in at91ether_probe()
350 if (IS_ERR(lp->pclk)) { in at91ether_probe()
351 res = PTR_ERR(lp->pclk); in at91ether_probe()
354 clk_enable(lp->pclk); in at91ether_probe()
418 clk_disable(lp->pclk); in at91ether_probe()
436 clk_disable(lp->pclk); in at91ether_remove()
453 clk_disable(lp->pclk); in at91ether_suspend()
464 clk_enable(lp->pclk); in at91ether_resume()
Dmacb.c985 unsigned long pclk_hz = clk_get_rate(bp->pclk); in gem_mdc_clk_div()
1011 pclk_hz = clk_get_rate(bp->pclk); in macb_mdc_clk_div()
1540 bp->pclk = clk_get(&pdev->dev, "pclk"); in macb_probe()
1541 if (IS_ERR(bp->pclk)) { in macb_probe()
1545 clk_prepare_enable(bp->pclk); in macb_probe()
1646 clk_disable_unprepare(bp->pclk); in macb_probe()
1648 clk_put(bp->pclk); in macb_probe()
1675 clk_disable_unprepare(bp->pclk); in macb_remove()
1676 clk_put(bp->pclk); in macb_remove()
1694 clk_disable_unprepare(bp->pclk); in macb_suspend()
[all …]
/drivers/media/platform/soc_camera/
Datmel-isi.c94 struct clk *pclk; member
759 ret = clk_enable(isi->pclk); in isi_camera_add_device()
765 clk_disable(isi->pclk); in isi_camera_add_device()
783 clk_disable(isi->pclk); in isi_camera_remove_device()
918 clk_unprepare(isi->pclk); in atmel_isi_remove()
919 clk_put(isi->pclk); in atmel_isi_remove()
929 struct clk *pclk; in atmel_isi_probe() local
947 pclk = clk_get(&pdev->dev, "isi_clk"); in atmel_isi_probe()
948 if (IS_ERR(pclk)) in atmel_isi_probe()
949 return PTR_ERR(pclk); in atmel_isi_probe()
[all …]
Dsoc_mediabus.c486 bool hsync = true, vsync = true, pclk, data, mode; in soc_mbus_config_compatible() local
498 pclk = common_flags & (V4L2_MBUS_PCLK_SAMPLE_RISING | in soc_mbus_config_compatible()
503 return (!hsync || !vsync || !pclk || !data || !mode) ? in soc_mbus_config_compatible()
/drivers/video/omap2/dss/
Ddispc.c74 int (*calc_scaling) (unsigned long pclk, unsigned long lclk,
80 unsigned long (*calc_core_clk) (unsigned long pclk,
1988 static int check_horiz_timing_omap3(unsigned long pclk, unsigned long lclk, in check_horiz_timing_omap3() argument
2005 blank = div_u64((u64)(t->hbp + t->hsw + t->hfp) * lclk, pclk); in check_horiz_timing_omap3()
2015 val = div_u64((u64)(nonactive - pos_x) * lclk, pclk); in check_horiz_timing_omap3()
2026 val = div_u64((u64)nonactive * lclk, pclk); in check_horiz_timing_omap3()
2035 static unsigned long calc_core_clk_five_taps(unsigned long pclk, in calc_core_clk_five_taps() argument
2044 return (unsigned long) pclk; in calc_core_clk_five_taps()
2049 tmp = pclk * height * out_width; in calc_core_clk_five_taps()
2057 tmp = pclk * (height - 2 * out_height) * out_width; in calc_core_clk_five_taps()
[all …]
Dsdi.c75 static int sdi_calc_clock_div(unsigned long pclk, in sdi_calc_clock_div() argument
93 if (pclk > 1000 * i * i * i) in sdi_calc_clock_div()
94 ctx.pck_min = max(pclk - 1000 * i * i * i, 0lu); in sdi_calc_clock_div()
97 ctx.pck_max = pclk + 1000 * i * i * i; in sdi_calc_clock_div()
Dhdmi.c818 u32 pclk = hdmi.ip_data.cfg.timings.pixel_clock; in hdmi_compute_acr() local
838 if (pclk == 27027 || pclk == 74250) in hdmi_compute_acr()
841 if (pclk == 27027) in hdmi_compute_acr()
848 if (pclk == 27027) in hdmi_compute_acr()
909 *cts = pclk * (*n / 128) * deep_color / (sample_freq / 10); in hdmi_compute_acr()
/drivers/clocksource/
Dsamsung_pwm_timer.c264 unsigned long pclk; in samsung_clockevent_init() local
268 pclk = clk_get_rate(pwm.timerclk); in samsung_clockevent_init()
273 clock_rate = pclk / (pwm.tscaler_div * pwm.tdiv); in samsung_clockevent_init()
326 unsigned long pclk; in samsung_clocksource_init() local
330 pclk = clk_get_rate(pwm.timerclk); in samsung_clocksource_init()
335 clock_rate = pclk / (pwm.tscaler_div * pwm.tdiv); in samsung_clocksource_init()
/drivers/iommu/
Dmsm_iommu_dev.c237 drvdata->pclk = iommu_pclk; in msm_iommu_probe()
280 clk_put(drv->pclk); in msm_iommu_remove()
317 ret = clk_enable(drvdata->pclk); in msm_iommu_ctx_probe()
324 clk_disable(drvdata->pclk); in msm_iommu_ctx_probe()
356 clk_disable(drvdata->pclk); in msm_iommu_ctx_probe()
/drivers/tty/serial/
Dmsm_serial.c46 struct clk *pclk; member
412 if (!IS_ERR(msm_port->pclk)) in msm_init_clock()
413 clk_enable(msm_port->pclk); in msm_init_clock()
692 if (!IS_ERR(msm_port->pclk)) in msm_power()
693 clk_enable(msm_port->pclk); in msm_power()
697 if (!IS_ERR(msm_port->pclk)) in msm_power()
698 clk_disable(msm_port->pclk); in msm_power()
888 msm_port->pclk = clk_get(&pdev->dev, "gsbi_pclk"); in msm_serial_probe()
891 msm_port->pclk = ERR_PTR(-ENOENT); in msm_serial_probe()
894 if (unlikely(IS_ERR(msm_port->clk) || (IS_ERR(msm_port->pclk) && in msm_serial_probe()
/drivers/media/i2c/soc_camera/
Dov6650.c533 unsigned long pclk; in to_clkrc() local
536 pclk = pclk_max * timeperframe->denominator / in to_clkrc()
539 pclk = pclk_max; in to_clkrc()
541 if (pclk_limit && pclk_limit < pclk) in to_clkrc()
542 pclk = pclk_limit; in to_clkrc()
544 return (pclk_max - 1) / pclk; in to_clkrc()
567 unsigned long mclk, pclk; in ov6650_s_fmt() local
674 pclk = priv->pclk_max / GET_CLKRC_DIV(clkrc); in ov6650_s_fmt()
676 mclk / pclk, 10 * mclk % pclk / pclk); in ov6650_s_fmt()
/drivers/usb/phy/
Dphy-msm-usb.c517 clk_disable(motg->pclk); in msm_otg_suspend()
557 clk_enable(motg->pclk); in msm_otg_resume()
1476 motg->pclk = clk_get(&pdev->dev, "usb_hs_pclk"); in msm_otg_probe()
1477 if (IS_ERR(motg->pclk)) { in msm_otg_probe()
1479 ret = PTR_ERR(motg->pclk); in msm_otg_probe()
1515 clk_enable(motg->pclk); in msm_otg_probe()
1582 clk_disable(motg->pclk); in msm_otg_probe()
1593 clk_put(motg->pclk); in msm_otg_probe()
1646 clk_disable(motg->pclk); in msm_otg_remove()
1660 clk_put(motg->pclk); in msm_otg_remove()
/drivers/usb/gadget/
Datmel_usba_udc.c1789 clk_enable(udc->pclk); in atmel_usba_start()
1831 clk_disable(udc->pclk); in atmel_usba_stop()
1842 struct clk *pclk, *hclk; in usba_udc_probe() local
1855 pclk = clk_get(&pdev->dev, "pclk"); in usba_udc_probe()
1856 if (IS_ERR(pclk)) in usba_udc_probe()
1857 return PTR_ERR(pclk); in usba_udc_probe()
1866 udc->pclk = pclk; in usba_udc_probe()
1889 clk_enable(pclk); in usba_udc_probe()
1892 clk_disable(pclk); in usba_udc_probe()
1993 clk_put(pclk); in usba_udc_probe()
[all …]
/drivers/mmc/host/
Dmsm_sdcc.c82 clk_disable(host->pclk); in msmsdcc_disable_clocks()
96 rc = clk_enable(host->pclk); in msmsdcc_enable_clocks()
101 clk_disable(host->pclk); in msmsdcc_enable_clocks()
1253 host->pclk = clk_get(&pdev->dev, "sdc_pclk"); in msmsdcc_probe()
1254 if (IS_ERR(host->pclk)) { in msmsdcc_probe()
1255 ret = PTR_ERR(host->pclk); in msmsdcc_probe()
1276 host->pclk_rate = clk_get_rate(host->pclk); in msmsdcc_probe()
1392 clk_put(host->pclk); in msmsdcc_probe()
/drivers/gpu/drm/radeon/
Drs690.c256 fixed20_12 pclk, request_fifo_depth, tolerable_latency, estimated_width; in rs690_crtc_bandwidth_compute() local
290 pclk.full = dfixed_div(b, a); in rs690_crtc_bandwidth_compute()
298 consumption_time.full = dfixed_div(pclk, b); in rs690_crtc_bandwidth_compute()
300 consumption_time.full = pclk.full; in rs690_crtc_bandwidth_compute()
312 line_time.full = dfixed_mul(a, pclk); in rs690_crtc_bandwidth_compute()

12