/Linux-v5.10/drivers/gpu/drm/sti/ |
D | sti_crtc.c | 55 struct clk *compo_clk, *pix_clk; in sti_crtc_mode_set() local 65 pix_clk = compo->clk_pix_main; in sti_crtc_mode_set() 68 pix_clk = compo->clk_pix_aux; in sti_crtc_mode_set() 78 if (clk_set_rate(pix_clk, rate) < 0) { in sti_crtc_mode_set() 82 if (clk_prepare_enable(pix_clk)) { in sti_crtc_mode_set() 97 clk_disable_unprepare(pix_clk); in sti_crtc_mode_set()
|
/Linux-v5.10/drivers/media/v4l2-core/ |
D | v4l2-dv-timings.c | 480 unsigned pix_clk; in v4l2_detect_cvt() local 575 pix_clk = (image_width + h_blank) * hfreq; in v4l2_detect_cvt() 576 pix_clk = (pix_clk / clk_gran) * clk_gran; in v4l2_detect_cvt() 595 pix_clk = (image_width + h_blank) * hfreq; in v4l2_detect_cvt() 596 pix_clk = (pix_clk / CVT_PXL_CLK_GRAN) * CVT_PXL_CLK_GRAN; in v4l2_detect_cvt() 630 fmt->bt.pixelclock = pix_clk; in v4l2_detect_cvt() 694 int pix_clk; in v4l2_detect_gtf() local 756 pix_clk = (image_width + h_blank) * hfreq; in v4l2_detect_gtf() 757 pix_clk = pix_clk / GTF_PXL_CLK_GRAN * GTF_PXL_CLK_GRAN; in v4l2_detect_gtf() 788 fmt->bt.pixelclock = pix_clk; in v4l2_detect_gtf()
|
/Linux-v5.10/drivers/gpu/drm/fsl-dcu/ |
D | fsl_dcu_drm_drv.c | 296 fsl_dev->pix_clk = clk_register_divider(dev, pix_clk_name, in fsl_dcu_drm_probe() 299 if (IS_ERR(fsl_dev->pix_clk)) { in fsl_dcu_drm_probe() 301 ret = PTR_ERR(fsl_dev->pix_clk); in fsl_dcu_drm_probe() 330 clk_unregister(fsl_dev->pix_clk); in fsl_dcu_drm_probe() 343 clk_unregister(fsl_dev->pix_clk); in fsl_dcu_drm_remove()
|
D | fsl_dcu_drm_crtc.c | 61 clk_disable_unprepare(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_disable() 70 clk_prepare_enable(fsl_dev->pix_clk); in fsl_dcu_drm_crtc_atomic_enable() 89 clk_set_rate(fsl_dev->pix_clk, mode->clock * 1000); in fsl_dcu_drm_crtc_mode_set_nofb()
|
D | fsl_dcu_drm_drv.h | 185 struct clk *pix_clk; member
|
/Linux-v5.10/drivers/staging/media/imx/ |
D | imx6-mipi-csi2.c | 43 struct clk *pix_clk; /* what is this? */ member 307 ret = clk_prepare_enable(csi2->pix_clk); in csi2_start() 344 clk_disable_unprepare(csi2->pix_clk); in csi2_start() 354 clk_disable_unprepare(csi2->pix_clk); in csi2_stop() 653 csi2->pix_clk = devm_clk_get(&pdev->dev, "pix"); in csi2_probe() 654 if (IS_ERR(csi2->pix_clk)) { in csi2_probe() 656 return PTR_ERR(csi2->pix_clk); in csi2_probe()
|
/Linux-v5.10/drivers/gpu/drm/imx/dcss/ |
D | dcss-dev.c | 24 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()
|
D | dcss-dtg.c | 223 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()
|
D | dcss-dev.h | 81 struct clk *pix_clk; member
|
/Linux-v5.10/drivers/video/fbdev/omap/ |
D | hwa742.c | 750 unsigned long *sys_clk, unsigned long *pix_clk) in calc_hwa742_clk_rates() argument 766 *pix_clk = *sys_clk / pix_div; /* HZ */ in calc_hwa742_clk_rates() 771 *sys_clk, *pix_clk); in calc_hwa742_clk_rates() 775 static int setup_tearsync(unsigned long pix_clk, int extif_div) in setup_tearsync() argument 817 hwa742.line_upd_time = (hdisp + hndp) * 1000000 / (pix_clk / 1000); in setup_tearsync() 853 hs = hs * 1000000 / (pix_clk / 1000); /* ps */ in setup_tearsync() 856 vs = vs * (hdisp + hndp) * 1000000 / (pix_clk / 1000); /* ps */ in setup_tearsync() 876 pix_clk, hwa742.pix_tx_time, hwa742.line_upd_time); in setup_tearsync() 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() [all …]
|
/Linux-v5.10/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 63 struct clk *lcd_clk, *pix_clk; member 243 rate = clk_round_rate(priv->pix_clk, mode->clock * 1000); in ingenic_drm_crtc_mode_valid() 280 clk_set_rate(priv->pix_clk, state->adjusted_mode.clock * 1000); in ingenic_drm_crtc_atomic_flush() 757 priv->pix_clk = devm_clk_get(dev, "lcd_pclk"); in ingenic_drm_bind() 758 if (IS_ERR(priv->pix_clk)) { in ingenic_drm_bind() 760 return PTR_ERR(priv->pix_clk); in ingenic_drm_bind() 901 ret = clk_prepare_enable(priv->pix_clk); in ingenic_drm_bind() 951 clk_disable_unprepare(priv->pix_clk); in ingenic_drm_bind() 971 clk_disable_unprepare(priv->pix_clk); in ingenic_drm_unbind()
|
/Linux-v5.10/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_phy_8996.c | 218 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-v5.10/drivers/gpu/drm/amd/display/dc/inc/ |
D | dc_link_ddc.h | 113 uint32_t pix_clk,
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer_debug.c | 429 int pix_clk = 0; in dcn10_get_otg_states() local 432 …pix_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-v5.10/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_ddc.c | 677 uint32_t pix_clk, in dal_ddc_service_write_scdc_data() argument 680 bool over_340_mhz = pix_clk > 340000 ? 1 : 0; in dal_ddc_service_write_scdc_data()
|
D | dc_resource.c | 1947 uint32_t pix_clk = timing->pix_clk_100hz; in get_norm_pix_clk() local 1948 uint32_t normalized_pix_clk = pix_clk; in get_norm_pix_clk() 1951 pix_clk /= 2; in get_norm_pix_clk() 1956 normalized_pix_clk = pix_clk; in get_norm_pix_clk() 1959 normalized_pix_clk = (pix_clk * 30) / 24; in get_norm_pix_clk() 1962 normalized_pix_clk = (pix_clk * 36) / 24; in get_norm_pix_clk() 1965 normalized_pix_clk = (pix_clk * 48) / 24; in get_norm_pix_clk()
|
/Linux-v5.10/drivers/gpu/ipu-v3/ |
D | ipu-csi.c | 608 u32 pix_clk) in ipu_csi_set_test_generator() argument 623 ipu_csi_set_testgen_mclk(csi, pix_clk, ipu_clk); in ipu_csi_set_test_generator()
|
/Linux-v5.10/include/video/ |
D | imx-ipu-v3.h | 368 u32 pix_clk);
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | r100.c | 3151 fixed20_12 peak_disp_bw, mem_bw, pix_clk, pix_clk2, temp_ff; in r100_bandwidth_update() local 3268 pix_clk.full = 0; in r100_bandwidth_update() 3273 pix_clk.full = dfixed_const(mode1->clock); /* convert to fixed point */ in r100_bandwidth_update() 3274 pix_clk.full = dfixed_div(pix_clk, temp_ff); in r100_bandwidth_update() 3276 peak_disp_bw.full += dfixed_mul(pix_clk, temp_ff); in r100_bandwidth_update() 3479 disp_drain_rate.full = dfixed_div(pix_clk, temp_ff); in r100_bandwidth_update()
|
/Linux-v5.10/drivers/media/i2c/ |
D | adv7604.c | 1367 u32 pix_clk; in stdi2dv_timings() local 1382 pix_clk = hfreq * htotal(bt); in stdi2dv_timings() 1384 if ((pix_clk < bt->pixelclock + 1000000) && in stdi2dv_timings() 1385 (pix_clk > bt->pixelclock - 1000000)) { in stdi2dv_timings()
|
D | adv7842.c | 1421 u32 pix_clk; in stdi2dv_timings() local 1436 pix_clk = hfreq * htotal(bt); in stdi2dv_timings() 1438 if ((pix_clk < bt->pixelclock + 1000000) && in stdi2dv_timings() 1439 (pix_clk > bt->pixelclock - 1000000)) { in stdi2dv_timings()
|