Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/sti/
Dsti_crtc.c54 struct clk *compo_clk, *pix_clk; in sti_crtc_mode_set() local
64 pix_clk = compo->clk_pix_main; in sti_crtc_mode_set()
67 pix_clk = compo->clk_pix_aux; in sti_crtc_mode_set()
77 if (clk_set_rate(pix_clk, rate) < 0) { in sti_crtc_mode_set()
81 if (clk_prepare_enable(pix_clk)) { in sti_crtc_mode_set()
96 clk_disable_unprepare(pix_clk); in sti_crtc_mode_set()
/linux-6.1.9/drivers/media/v4l2-core/
Dv4l2-dv-timings.c502 unsigned pix_clk; in v4l2_detect_cvt() local
597 pix_clk = (image_width + h_blank) * hfreq; in v4l2_detect_cvt()
598 pix_clk = (pix_clk / clk_gran) * clk_gran; in v4l2_detect_cvt()
617 pix_clk = (image_width + h_blank) * hfreq; in v4l2_detect_cvt()
618 pix_clk = (pix_clk / CVT_PXL_CLK_GRAN) * CVT_PXL_CLK_GRAN; in v4l2_detect_cvt()
652 fmt->bt.pixelclock = pix_clk; in v4l2_detect_cvt()
716 int pix_clk; in v4l2_detect_gtf() local
778 pix_clk = (image_width + h_blank) * hfreq; in v4l2_detect_gtf()
779 pix_clk = pix_clk / GTF_PXL_CLK_GRAN * GTF_PXL_CLK_GRAN; in v4l2_detect_gtf()
810 fmt->bt.pixelclock = pix_clk; in v4l2_detect_gtf()
/linux-6.1.9/drivers/gpu/drm/fsl-dcu/
Dfsl_dcu_drm_drv.c309 fsl_dev->pix_clk = clk_register_divider(dev, pix_clk_name, in fsl_dcu_drm_probe()
312 if (IS_ERR(fsl_dev->pix_clk)) { in fsl_dcu_drm_probe()
314 ret = PTR_ERR(fsl_dev->pix_clk); in fsl_dcu_drm_probe()
343 clk_unregister(fsl_dev->pix_clk); in fsl_dcu_drm_probe()
356 clk_unregister(fsl_dev->pix_clk); in fsl_dcu_drm_remove()
Dfsl_dcu_drm_crtc.c63 clk_disable_unprepare(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_disable()
72 clk_prepare_enable(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_enable()
91 clk_set_rate(fsl_dev->pix_clk, mode->clock * 1000); in fsl_dcu_drm_crtc_mode_set_nofb()
Dfsl_dcu_drm_drv.h185 struct clk *pix_clk; member
/linux-6.1.9/drivers/video/fbdev/omap/
Dhwa742.c763 unsigned long *sys_clk, unsigned long *pix_clk) in calc_hwa742_clk_rates() argument
779 *pix_clk = *sys_clk / pix_div; /* HZ */ in calc_hwa742_clk_rates()
784 *sys_clk, *pix_clk); in calc_hwa742_clk_rates()
788 static int setup_tearsync(unsigned long pix_clk, int extif_div) in setup_tearsync() argument
830 hwa742.line_upd_time = (hdisp + hndp) * 1000000 / (pix_clk / 1000); in setup_tearsync()
866 hs = hs * 1000000 / (pix_clk / 1000); /* ps */ in setup_tearsync()
869 vs = vs * (hdisp + hndp) * 1000000 / (pix_clk / 1000); /* ps */ in setup_tearsync()
889 pix_clk, hwa742.pix_tx_time, hwa742.line_upd_time); in setup_tearsync()
940 unsigned long sys_clk, pix_clk; in hwa742_init() local
968 calc_hwa742_clk_rates(ext_clk, &sys_clk, &pix_clk); in hwa742_init()
[all …]
/linux-6.1.9/drivers/gpu/drm/imx/dcss/
Ddcss-dev.c24 clk_prepare_enable(dcss->pix_clk); in dcss_clocks_enable()
29 clk_disable_unprepare(dcss->pix_clk); in dcss_clocks_disable()
139 {"pix", &dcss->pix_clk}, in dcss_clks_init()
160 devm_clk_put(dcss->dev, dcss->pix_clk); in dcss_clks_release()
Ddcss-dtg.c223 clk_disable_unprepare(dcss->pix_clk); in dcss_dtg_sync_set()
224 clk_set_rate(dcss->pix_clk, vm->pixelclock); in dcss_dtg_sync_set()
225 clk_prepare_enable(dcss->pix_clk); in dcss_dtg_sync_set()
227 actual_clk = clk_get_rate(dcss->pix_clk); in dcss_dtg_sync_set()
Ddcss-dev.h82 struct clk *pix_clk; member
/linux-6.1.9/drivers/staging/media/imx/
Dimx6-mipi-csi2.c43 struct clk *pix_clk; /* what is this? */ member
345 ret = clk_prepare_enable(csi2->pix_clk); in csi2_start()
392 clk_disable_unprepare(csi2->pix_clk); in csi2_start()
403 clk_disable_unprepare(csi2->pix_clk); in csi2_stop()
719 csi2->pix_clk = devm_clk_get(&pdev->dev, "pix"); in csi2_probe()
720 if (IS_ERR(csi2->pix_clk)) { in csi2_probe()
722 return PTR_ERR(csi2->pix_clk); in csi2_probe()
/linux-6.1.9/drivers/gpu/drm/ingenic/
Dingenic-drm-drv.c96 struct clk *lcd_clk, *pix_clk; member
393 rate = clk_round_rate(priv->pix_clk, mode->clock * 1000); in ingenic_drm_crtc_mode_valid()
437 clk_set_rate(priv->pix_clk, in ingenic_drm_crtc_atomic_flush()
1171 priv->pix_clk = devm_clk_get(dev, "lcd_pclk"); in ingenic_drm_bind()
1172 if (IS_ERR(priv->pix_clk)) { in ingenic_drm_bind()
1174 return PTR_ERR(priv->pix_clk); in ingenic_drm_bind()
1329 ret = clk_prepare_enable(priv->pix_clk); in ingenic_drm_bind()
1367 parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_bind()
1406 clk_disable_unprepare(priv->pix_clk); in ingenic_drm_bind()
1418 struct clk *parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_unbind()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/soc/imx/
Dfsl,imx8mp-media-blk-ctrl.yaml51 - description: The pixel clock for the first LCDIF (pix_clk)
52 - description: The pixel clock for the second LCDIF (pix_clk)
/linux-6.1.9/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8996.c218 static int pll_calculate(unsigned long pix_clk, unsigned long ref_clk, in pll_calculate() argument
237 bclk = ((u64)pix_clk) * 10; in pll_calculate()
240 tmds_clk = pix_clk >> 2; in pll_calculate()
242 tmds_clk = pix_clk; in pll_calculate()
272 DBG("pix_clk: %lu", pix_clk); in pll_calculate()
/linux-6.1.9/drivers/media/i2c/
Dar0521.c256 u64 pix_clk = AR0521_PIXEL_CLOCK_RATE; in ar0521_calc_mode() local
259 pix_clk = calc_pll(sensor, 1, pix_clk * (DIV / 2), &sensor->pll_pre, in ar0521_calc_mode()
261 pix_clk = div64_round(pix_clk, (DIV / 2)); in ar0521_calc_mode()
262 calc_pll(sensor, 2, pix_clk * (DIV / 2) * speed_mod, &sensor->pll_pre2, in ar0521_calc_mode()
Dadv7604.c1381 u32 pix_clk; in stdi2dv_timings() local
1396 pix_clk = hfreq * htotal(bt); in stdi2dv_timings()
1398 if ((pix_clk < bt->pixelclock + 1000000) && in stdi2dv_timings()
1399 (pix_clk > bt->pixelclock - 1000000)) { in stdi2dv_timings()
Dadv7842.c1409 u32 pix_clk; in stdi2dv_timings() local
1424 pix_clk = hfreq * htotal(bt); in stdi2dv_timings()
1426 if ((pix_clk < bt->pixelclock + 1000000) && in stdi2dv_timings()
1427 (pix_clk > bt->pixelclock - 1000000)) { in stdi2dv_timings()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/
Ddc_link_ddc.h115 uint32_t pix_clk,
/linux-6.1.9/drivers/gpu/drm/amd/display/modules/inc/
Dmod_freesync.h187 unsigned int vtotal, unsigned int htotal, unsigned int pix_clk);
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer_debug.c429 int pix_clk = 0; in dcn10_get_otg_states() local
432pix_clk = dc->current_state->res_ctx.pipe_ctx[i].stream_res.pix_clk_params.requested_pix_clk_100hz… in dcn10_get_otg_states()
457 pix_clk); in dcn10_get_otg_states()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c729 uint32_t pix_clk, in dal_ddc_service_write_scdc_data() argument
732 bool over_340_mhz = pix_clk > 340000 ? 1 : 0; in dal_ddc_service_write_scdc_data()
Ddc_resource.c2286 uint32_t pix_clk = timing->pix_clk_100hz; in get_norm_pix_clk() local
2287 uint32_t normalized_pix_clk = pix_clk; in get_norm_pix_clk()
2290 pix_clk /= 2; in get_norm_pix_clk()
2295 normalized_pix_clk = pix_clk; in get_norm_pix_clk()
2298 normalized_pix_clk = (pix_clk * 30) / 24; in get_norm_pix_clk()
2301 normalized_pix_clk = (pix_clk * 36) / 24; in get_norm_pix_clk()
2304 normalized_pix_clk = (pix_clk * 48) / 24; in get_norm_pix_clk()
/linux-6.1.9/drivers/gpu/ipu-v3/
Dipu-csi.c629 u32 pix_clk) in ipu_csi_set_test_generator() argument
644 ipu_csi_set_testgen_mclk(csi, pix_clk, ipu_clk); in ipu_csi_set_test_generator()
/linux-6.1.9/include/video/
Dimx-ipu-v3.h370 u32 pix_clk);
/linux-6.1.9/drivers/gpu/drm/amd/display/modules/freesync/
Dfreesync.c1352 unsigned int vtotal, unsigned int htotal, unsigned int pix_clk) in mod_freesync_calc_field_rate_from_timing() argument
1358 field_rate_in_uhz = pix_clk; in mod_freesync_calc_field_rate_from_timing()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dr100.c3148 fixed20_12 peak_disp_bw, mem_bw, pix_clk, pix_clk2, temp_ff; in r100_bandwidth_update() local
3265 pix_clk.full = 0; in r100_bandwidth_update()
3270 pix_clk.full = dfixed_const(mode1->clock); /* convert to fixed point */ in r100_bandwidth_update()
3271 pix_clk.full = dfixed_div(pix_clk, temp_ff); in r100_bandwidth_update()
3273 peak_disp_bw.full += dfixed_mul(pix_clk, temp_ff); in r100_bandwidth_update()
3476 disp_drain_rate.full = dfixed_div(pix_clk, temp_ff); in r100_bandwidth_update()