Home
last modified time | relevance | path

Searched refs:pixel_clk (Results 1 – 18 of 18) sorted by relevance

/linux-6.3-rc2/drivers/media/platform/cadence/
A Dcdns-csi2rx.c70 struct clk *pixel_clk[CSI2RX_STREAMS_MAX]; member
153 ret = clk_prepare_enable(csi2rx->pixel_clk[i]); in csi2rx_start()
178 clk_disable_unprepare(csi2rx->pixel_clk[i - 1]); in csi2rx_start()
196 clk_disable_unprepare(csi2rx->pixel_clk[i]); in csi2rx_stop()
355 csi2rx->pixel_clk[i] = devm_clk_get(&pdev->dev, clk_name); in csi2rx_get_resources()
356 if (IS_ERR(csi2rx->pixel_clk[i])) { in csi2rx_get_resources()
358 return PTR_ERR(csi2rx->pixel_clk[i]); in csi2rx_get_resources()
A Dcdns-csi2tx.c108 struct clk *pixel_clk[CSI2TX_STREAMS_MAX]; member
486 csi2tx->pixel_clk[i] = devm_clk_get(&pdev->dev, clk_name); in csi2tx_get_resources()
487 if (IS_ERR(csi2tx->pixel_clk[i])) { in csi2tx_get_resources()
490 return PTR_ERR(csi2tx->pixel_clk[i]); in csi2tx_get_resources()
/linux-6.3-rc2/drivers/gpu/drm/i915/display/
A Dintel_audio.c523 unsigned int h_active, h_total, hblank_delta, pixel_clk; in calc_hblank_early_prog() local
530 pixel_clk = crtc_state->hw.adjusted_mode.crtc_clock; in calc_hblank_early_prog()
542 if (WARN_ON(!link_clk || !pixel_clk || !lanes || !vdsc_bpp || !cdclk)) in calc_hblank_early_prog()
545 link_clks_available = (h_total - h_active) * link_clk / pixel_clk - 28; in calc_hblank_early_prog()
551 hblank_delta = DIV64_U64_ROUND_UP(mul_u32_u32(5 * (link_clk + cdclk), pixel_clk), in calc_hblank_early_prog()
554 tu_data = div64_u64(mul_u32_u32(pixel_clk * vdsc_bpp * 8, 1000000), in calc_hblank_early_prog()
557 mul_u32_u32(64 * pixel_clk, 1000000)); in calc_hblank_early_prog()
567 unsigned int h_active, h_total, pixel_clk; in calc_samples_room() local
572 pixel_clk = crtc_state->hw.adjusted_mode.clock; in calc_samples_room()
576 return ((h_total - h_active) * link_clk - 12 * pixel_clk) / in calc_samples_room()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/mediatek/
A Dmtk_dpi.c73 struct clk *pixel_clk; member
474 clk_disable_unprepare(dpi->pixel_clk); in mtk_dpi_power_off()
491 ret = clk_prepare_enable(dpi->pixel_clk); in mtk_dpi_power_on()
540 clk_set_rate(dpi->pixel_clk, vm.pixelclock * 2); in mtk_dpi_set_display_mode()
542 clk_set_rate(dpi->pixel_clk, vm.pixelclock); in mtk_dpi_set_display_mode()
545 vm.pixelclock = clk_get_rate(dpi->pixel_clk); in mtk_dpi_set_display_mode()
1058 dpi->pixel_clk = devm_clk_get(dev, "pixel"); in mtk_dpi_probe()
1059 if (IS_ERR(dpi->pixel_clk)) { in mtk_dpi_probe()
1060 ret = PTR_ERR(dpi->pixel_clk); in mtk_dpi_probe()
/linux-6.3-rc2/drivers/gpu/drm/stm/
A Dltdc.c842 result = clk_round_rate(ldev->pixel_clk, target); in ltdc_crtc_mode_valid()
878 if (clk_set_rate(ldev->pixel_clk, rate) < 0) { in ltdc_crtc_mode_fixup()
1897 clk_disable_unprepare(ldev->pixel_clk); in ltdc_suspend()
1907 ret = clk_prepare_enable(ldev->pixel_clk); in ltdc_resume()
1937 ldev->pixel_clk = devm_clk_get(dev, "lcd"); in ltdc_load()
1938 if (IS_ERR(ldev->pixel_clk)) { in ltdc_load()
1939 if (PTR_ERR(ldev->pixel_clk) != -EPROBE_DEFER) in ltdc_load()
1941 return PTR_ERR(ldev->pixel_clk); in ltdc_load()
1944 if (clk_prepare_enable(ldev->pixel_clk)) { in ltdc_load()
2066 clk_disable_unprepare(ldev->pixel_clk); in ltdc_load()
[all …]
A Dltdc.h46 struct clk *pixel_clk; /* lcd pixel clock */ member
/linux-6.3-rc2/drivers/gpu/drm/msm/dsi/
A Ddsi_host.c119 struct clk *pixel_clk; member
334 msm_host->pixel_clk = msm_clk_get(pdev, "pixel"); in dsi_clk_init()
335 if (IS_ERR(msm_host->pixel_clk)) { in dsi_clk_init()
336 ret = PTR_ERR(msm_host->pixel_clk); in dsi_clk_init()
339 msm_host->pixel_clk = NULL; in dsi_clk_init()
359 msm_host->pixel_clk_src = clk_get_parent(msm_host->pixel_clk); in dsi_clk_init()
449 ret = clk_prepare_enable(msm_host->pixel_clk); in dsi_link_clk_enable_6g()
465 clk_disable_unprepare(msm_host->pixel_clk); in dsi_link_clk_enable_6g()
531 ret = clk_prepare_enable(msm_host->pixel_clk); in dsi_link_clk_enable_v2()
554 clk_disable_unprepare(msm_host->pixel_clk); in dsi_link_clk_disable_6g()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/bridge/synopsys/
A Ddw-hdmi.c590 if (pixel_clk == 25175000) in hdmi_compute_n()
592 else if (pixel_clk == 27027000) in hdmi_compute_n()
594 else if (pixel_clk == 74176000 || pixel_clk == 148352000) in hdmi_compute_n()
596 else if (pixel_clk == 297000000) in hdmi_compute_n()
604 if (pixel_clk == 25175000) in hdmi_compute_n()
606 else if (pixel_clk == 74176000) in hdmi_compute_n()
608 else if (pixel_clk == 148352000) in hdmi_compute_n()
618 if (pixel_clk == 25175000) in hdmi_compute_n()
620 else if (pixel_clk == 27027000) in hdmi_compute_n()
622 else if (pixel_clk == 74176000) in hdmi_compute_n()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/
A Dclock_source.h179 unsigned int pixel_clk,
/linux-6.3-rc2/drivers/gpu/drm/aspeed/
A Daspeed_gfx_crtc.c93 clk_set_rate(priv->pixel_clk, m->crtc_clock * 1000); in aspeed_gfx_crtc_mode_set_nofb()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/include/
A Dgrph_object_ctrl_defs.h128 uint32_t pixel_clk; /* in KHz */ member
/linux-6.3-rc2/drivers/gpu/ipu-v3/
A Dipu-csi.c192 static int ipu_csi_set_testgen_mclk(struct ipu_csi *csi, u32 pixel_clk, in ipu_csi_set_testgen_mclk() argument
198 div_ratio = (ipu_clk / pixel_clk) - 1; in ipu_csi_set_testgen_mclk()
/linux-6.3-rc2/drivers/video/fbdev/
A Dmx3fb.c501 uint32_t pixel_clk, in sdc_init_panel() argument
562 div = clk_get_rate(ipu_clk) * 16 / pixel_clk; in sdc_init_panel()
575 pixel_clk, div >> 4, (div & 7) * 125); in sdc_init_panel()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/bios/
A Dcommand_table.c1542 uint64_t pixel_clk = (uint64_t)bp_params->pixel_clock; in adjust_display_pll_v2() local
1546 div_u64(pixel_clk * pixel_clk_10_khz_out, in adjust_display_pll_v2()
1592 uint64_t pixel_clk = (uint64_t)bp_params->pixel_clock; in adjust_display_pll_v3() local
1596 div_u64(pixel_clk * pixel_clk_10_khz_out, in adjust_display_pll_v3()
A Dbios_parser.c1241 info->lcd_timing.pixel_clk = in get_embedded_panel_info_v1_2()
1359 info->lcd_timing.pixel_clk = in get_embedded_panel_info_v1_3()
A Dbios_parser2.c1451 info->lcd_timing.pixel_clk = le16_to_cpu(lvds->lcd_timing.pixclk) * 10; in get_embedded_panel_info_v2_1()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/
A Ddce_clock_source.c1234 unsigned int pixel_clk, in dcn20_override_dp_pix_clk() argument
1240 REG_WRITE(PHASE[inst], pixel_clk); in dcn20_override_dp_pix_clk()
/linux-6.3-rc2/drivers/gpu/drm/i915/gvt/
A Dhandlers.c673 u64 pixel_clk = 0; in vgpu_update_refresh_rate() local
678 pixel_clk = div_u64(mul_u32_u32(link_m, dp_br), link_n); in vgpu_update_refresh_rate()
679 pixel_clk *= MSEC_PER_SEC; in vgpu_update_refresh_rate()
682 …new_rate = DIV64_U64_ROUND_CLOSEST(mul_u64_u32_shr(pixel_clk, MSEC_PER_SEC, 0), mul_u32_u32(htotal… in vgpu_update_refresh_rate()

Completed in 158 milliseconds