Home
last modified time | relevance | path

Searched refs:fck (Results 1 – 22 of 22) sorted by relevance

/drivers/video/fbdev/omap/
Dsossi.c49 struct clk *fck; member
219 clk_set_rate(sossi.fck, sossi.fck_hz / div); in _set_timing()
220 clk_enable(sossi.fck); in _set_timing()
225 clk_disable(sossi.fck); in _set_timing()
408 clk_enable(sossi.fck); in sossi_setup_tearsync()
422 clk_disable(sossi.fck); in sossi_setup_tearsync()
449 clk_enable(sossi.fck); in sossi_write_command()
459 clk_disable(sossi.fck); in sossi_write_command()
464 clk_enable(sossi.fck); in sossi_write_data()
474 clk_disable(sossi.fck); in sossi_write_data()
[all …]
/drivers/gpu/drm/omapdrm/dss/
Dsdi.c45 unsigned long fck; member
62 static bool dpi_calc_dss_cb(unsigned long fck, void *data) in dpi_calc_dss_cb() argument
66 ctx->fck = fck; in dpi_calc_dss_cb()
68 return dispc_div_calc(ctx->sdi->dss->dispc, fck, in dpi_calc_dss_cb()
74 unsigned long *fck, in sdi_calc_clock_div() argument
103 *fck = ctx.fck; in sdi_calc_clock_div()
149 unsigned long fck; in sdi_bridge_mode_valid() local
155 ret = sdi_calc_clock_div(sdi, pixelclock, &fck, &dispc_cinfo); in sdi_bridge_mode_valid()
169 unsigned long fck; in sdi_bridge_mode_fixup() local
173 ret = sdi_calc_clock_div(sdi, pixelclock, &fck, &dispc_cinfo); in sdi_bridge_mode_fixup()
[all …]
Ddpi.c147 unsigned long fck; member
208 static bool dpi_calc_dss_cb(unsigned long fck, void *data) in dpi_calc_dss_cb() argument
212 ctx->fck = fck; in dpi_calc_dss_cb()
214 return dispc_div_calc(ctx->dpi->dss->dispc, fck, in dpi_calc_dss_cb()
320 r = dss_set_fck_rate(dpi->dss, ctx.fck); in dpi_set_dispc_clk()
358 unsigned long fck; in dpi_clock_update() local
365 fck = ctx.pll_cinfo.clkout[ctx.clkout_idx]; in dpi_clock_update()
370 fck = ctx.fck; in dpi_clock_update()
376 *clock = fck / lck_div / pck_div; in dpi_clock_update()
Ddss.c602 unsigned long fck; in dss_div_calc() local
615 fck = pck * pckd; in dss_div_calc()
617 fck = clk_round_rate(dss->dss_clk, fck); in dss_div_calc()
619 return func(fck, data); in dss_div_calc()
633 fck = DIV_ROUND_UP(prate, fckd) * m; in dss_div_calc()
635 if (func(fck, data)) in dss_div_calc()
673 unsigned long fck; in dss_setup_default_clock() local
680 fck = clk_round_rate(dss->dss_clk, max_dss_fck); in dss_setup_default_clock()
686 fck = DIV_ROUND_UP(prate, fck_div) in dss_setup_default_clock()
690 r = dss_set_fck_rate(dss, fck); in dss_setup_default_clock()
Ddsi.c2406 unsigned long fck; in dsi_set_lp_rx_timeout() local
2413 fck = dsi_fclk_rate(dsi); in dsi_set_lp_rx_timeout()
2427 (total_ticks * 1000) / (fck / 1000 / 1000)); in dsi_set_lp_rx_timeout()
2433 unsigned long fck; in dsi_set_ta_timeout() local
2440 fck = dsi_fclk_rate(dsi); in dsi_set_ta_timeout()
2454 (total_ticks * 1000) / (fck / 1000 / 1000)); in dsi_set_ta_timeout()
2460 unsigned long fck; in dsi_set_stop_state_counter() local
2467 fck = dsi_fclk_rate(dsi); in dsi_set_stop_state_counter()
2481 (total_ticks * 1000) / (fck / 1000 / 1000)); in dsi_set_stop_state_counter()
2487 unsigned long fck; in dsi_set_hs_tx_timeout() local
[all …]
Ddss.h341 typedef bool (*dss_div_calc_func)(unsigned long fck, void *data);
Ddispc.c3689 unsigned long fck; in dispc_div_calc() local
3724 fck = dispc_core_clk_rate(dispc); in dispc_div_calc()
3726 fck = lck; in dispc_div_calc()
3728 if (fck < pck * min_fck_per_pck) in dispc_div_calc()
3754 unsigned long fck; in dispc_mgr_get_clock_div() local
3756 fck = dispc_fclk_rate(dispc); in dispc_mgr_get_clock_div()
3761 cinfo->lck = fck / cinfo->lck_div; in dispc_mgr_get_clock_div()
/drivers/video/fbdev/omap2/omapfb/dss/
Ddpi.c141 unsigned long fck; member
209 static bool dpi_calc_dss_cb(unsigned long fck, void *data) in dpi_calc_dss_cb() argument
213 ctx->fck = fck; in dpi_calc_dss_cb()
215 return dispc_div_calc(fck, ctx->pck_min, ctx->pck_max, in dpi_calc_dss_cb()
272 unsigned long pck_req, unsigned long *fck, int *lck_div, in dpi_set_dsi_clk() argument
292 *fck = ctx.dsi_cinfo.clkout[HSDIV_DISPC]; in dpi_set_dsi_clk()
300 unsigned long *fck, int *lck_div, int *pck_div) in dpi_set_dispc_clk() argument
310 r = dss_set_fck_rate(ctx.fck); in dpi_set_dispc_clk()
316 *fck = ctx.fck; in dpi_set_dispc_clk()
329 unsigned long fck = 0; in dpi_set_mode() local
[all …]
Dsdi.c42 unsigned long fck; member
59 static bool dpi_calc_dss_cb(unsigned long fck, void *data) in dpi_calc_dss_cb() argument
63 ctx->fck = fck; in dpi_calc_dss_cb()
65 return dispc_div_calc(fck, ctx->pck_min, ctx->pck_max, in dpi_calc_dss_cb()
70 unsigned long *fck, in sdi_calc_clock_div() argument
95 *fck = ctx.fck; in sdi_calc_clock_div()
123 unsigned long fck; in sdi_display_enable() local
145 r = sdi_calc_clock_div(t->pixelclock, &fck, &dispc_cinfo); in sdi_display_enable()
151 pck = fck / dispc_cinfo.lck_div / dispc_cinfo.pck_div; in sdi_display_enable()
163 r = dss_set_fck_rate(fck); in sdi_display_enable()
Ddss.c514 unsigned long fck; in dss_div_calc() local
527 fck = pck * pckd; in dss_div_calc()
529 fck = clk_round_rate(dss.dss_clk, fck); in dss_div_calc()
531 return func(fck, data); in dss_div_calc()
545 fck = DIV_ROUND_UP(prate, fckd) * m; in dss_div_calc()
547 if (func(fck, data)) in dss_div_calc()
581 unsigned long fck; in dss_setup_default_clock() local
588 fck = clk_round_rate(dss.dss_clk, max_dss_fck); in dss_setup_default_clock()
594 fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; in dss_setup_default_clock()
597 r = dss_set_fck_rate(fck); in dss_setup_default_clock()
Ddsi.c3208 unsigned long fck; in dsi_set_lp_rx_timeout() local
3215 fck = dsi_fclk_rate(dsidev); in dsi_set_lp_rx_timeout()
3229 (total_ticks * 1000) / (fck / 1000 / 1000)); in dsi_set_lp_rx_timeout()
3235 unsigned long fck; in dsi_set_ta_timeout() local
3242 fck = dsi_fclk_rate(dsidev); in dsi_set_ta_timeout()
3256 (total_ticks * 1000) / (fck / 1000 / 1000)); in dsi_set_ta_timeout()
3262 unsigned long fck; in dsi_set_stop_state_counter() local
3269 fck = dsi_fclk_rate(dsidev); in dsi_set_stop_state_counter()
3283 (total_ticks * 1000) / (fck / 1000 / 1000)); in dsi_set_stop_state_counter()
3289 unsigned long fck; in dsi_set_hs_tx_timeout() local
[all …]
Ddispc.c3600 unsigned long fck; in dispc_div_calc() local
3635 fck = dispc_core_clk_rate(); in dispc_div_calc()
3637 fck = lck; in dispc_div_calc()
3639 if (fck < pck * min_fck_per_pck) in dispc_div_calc()
3662 unsigned long fck; in dispc_mgr_get_clock_div() local
3664 fck = dispc_fclk_rate(); in dispc_mgr_get_clock_div()
3669 cinfo->lck = fck / cinfo->lck_div; in dispc_mgr_get_clock_div()
Ddss.h295 typedef bool (*dss_div_calc_func)(unsigned long fck, void *data);
/drivers/spi/
Dspi-omap-100k.c69 struct clk *fck; member
278 clk_prepare_enable(spi100k->fck); in omap1_spi100k_setup()
283 clk_disable_unprepare(spi100k->fck); in omap1_spi100k_setup()
386 spi100k->fck = devm_clk_get(&pdev->dev, "fck"); in omap1_spi100k_probe()
387 if (IS_ERR(spi100k->fck)) { in omap1_spi100k_probe()
389 status = PTR_ERR(spi100k->fck); in omap1_spi100k_probe()
399 status = clk_prepare_enable(spi100k->fck); in omap1_spi100k_probe()
416 clk_disable_unprepare(spi100k->fck); in omap1_spi100k_probe()
431 clk_disable_unprepare(spi100k->fck); in omap1_spi100k_remove()
444 clk_disable_unprepare(spi100k->fck); in omap1_spi100k_runtime_suspend()
[all …]
/drivers/soc/ti/
Dsmartreflex.c132 if (IS_ERR(sr->fck)) in sr_set_clk_length()
135 fclk_speed = clk_get_rate(sr->fck); in sr_set_clk_length()
580 clk_enable(sr->fck); in sr_enable()
639 clk_disable(sr->fck); in sr_disable()
853 sr_info->fck = devm_clk_get(pdev->dev.parent, "fck"); in omap_sr_probe()
854 if (IS_ERR(sr_info->fck)) in omap_sr_probe()
855 return PTR_ERR(sr_info->fck); in omap_sr_probe()
856 clk_prepare(sr_info->fck); in omap_sr_probe()
937 clk_unprepare(sr_info->fck); in omap_sr_probe()
965 clk_unprepare(sr_info->fck); in omap_sr_remove()
/drivers/clk/davinci/
Dda8xx-cfgchip.c348 struct clk *fck; member
363 return clk_prepare(usb0->fck); in da8xx_usb0_clk48_prepare()
370 clk_unprepare(usb0->fck); in da8xx_usb0_clk48_unprepare()
382 clk_enable(usb0->fck); in da8xx_usb0_clk48_enable()
394 clk_disable(usb0->fck); in da8xx_usb0_clk48_enable()
527 usb0->fck = fck_clk; in da8xx_cfgchip_register_usb0_clk48()
/drivers/hsi/controllers/
Domap_ssi_core.c264 unsigned long rate = clk_get_rate(omap_ssi->fck); in ssi_get_clk_rate()
393 omap_ssi->fck = devm_clk_get(&ssi->device, "ssi_ssr_fck"); in ssi_add_controller()
394 if (IS_ERR(omap_ssi->fck)) { in ssi_add_controller()
396 PTR_ERR(omap_ssi->fck)); in ssi_add_controller()
403 clk_notifier_register(omap_ssi->fck, &omap_ssi->fck_nb); in ssi_add_controller()
451 clk_notifier_unregister(omap_ssi->fck, &omap_ssi->fck_nb); in ssi_remove_controller()
Domap_ssi.h141 struct clk *fck; member
/drivers/clocksource/
Dtimer-ti-dm-systimer.c48 struct clk *fck; member
356 t->fck = clock; in dmtimer_systimer_init_clock()
517 clk_disable(t->fck); in omap_clockevent_idle()
526 error = clk_enable(t->fck); in omap_clockevent_unidle()
736 clk_disable(t->fck); in dmtimer_clocksource_suspend()
745 error = clk_enable(t->fck); in dmtimer_clocksource_resume()
/drivers/scsi/fnic/
Dcq_exch_desc.h81 u8 *fck, in cq_fcp_rq_desc_dec() argument
115 *fck = desc_ptr->fcs_fer_fck & CQ_FCP_RQ_DESC_FC_CRC_OK_MASK; in cq_fcp_rq_desc_dec()
/drivers/remoteproc/
Domap_remoteproc.c116 struct clk *fck; member
766 return ti_clk_is_in_standby(oproc->fck); in _is_rproc_in_standby()
1338 oproc->fck = devm_clk_get(&pdev->dev, 0); in omap_rproc_probe()
1339 if (IS_ERR(oproc->fck)) { in omap_rproc_probe()
1340 ret = PTR_ERR(oproc->fck); in omap_rproc_probe()
/drivers/bus/
Dti-sysc.c2108 struct clk *fck = NULL, *ick = NULL; in sysc_clockdomain_init() local
2119 fck = ddata->clocks[SYSC_FCK]; in sysc_clockdomain_init()
2125 error = pdata->init_clockdomain(ddata->dev, fck, ick, &ddata->cookie); in sysc_clockdomain_init()