Home
last modified time | relevance | path

Searched refs:ddp_comp (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_crtc.c57 struct mtk_ddp_comp **ddp_comp; member
172 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_enable_vblank()
182 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_disable_vblank()
193 ret = clk_prepare_enable(mtk_crtc->ddp_comp[i]->clk); in mtk_crtc_ddp_clk_enable()
203 clk_disable_unprepare(mtk_crtc->ddp_comp[i]->clk); in mtk_crtc_ddp_clk_enable()
212 clk_disable_unprepare(mtk_crtc->ddp_comp[i]->clk); in mtk_crtc_ddp_clk_disable()
226 comp = mtk_crtc->ddp_comp[i]; in mtk_drm_ddp_comp_for_plane()
297 mtk_crtc->ddp_comp[i]->id, in mtk_crtc_ddp_hw_init()
298 mtk_crtc->ddp_comp[i + 1]->id); in mtk_crtc_ddp_hw_init()
300 mtk_crtc->ddp_comp[i]->id); in mtk_crtc_ddp_hw_init()
[all …]
Dmtk_disp_color.c37 struct mtk_ddp_comp ddp_comp; member
44 return container_of(comp, struct mtk_disp_color, ddp_comp); in comp_to_color()
78 ret = mtk_ddp_comp_register(drm_dev, &priv->ddp_comp); in mtk_disp_color_bind()
94 mtk_ddp_comp_unregister(drm_dev, &priv->ddp_comp); in mtk_disp_color_unbind()
119 ret = mtk_ddp_comp_init(dev, dev->of_node, &priv->ddp_comp, comp_id, in mtk_disp_color_probe()
Dmtk_disp_rdma.c63 struct mtk_ddp_comp ddp_comp; member
70 return container_of(comp, struct mtk_disp_rdma, ddp_comp); in comp_to_rdma()
76 struct mtk_ddp_comp *rdma = &priv->ddp_comp; in mtk_disp_rdma_irq_handler()
247 ret = mtk_ddp_comp_register(drm_dev, &priv->ddp_comp); in mtk_disp_rdma_bind()
264 mtk_ddp_comp_unregister(drm_dev, &priv->ddp_comp); in mtk_disp_rdma_unbind()
294 ret = mtk_ddp_comp_init(dev, dev->of_node, &priv->ddp_comp, comp_id, in mtk_disp_rdma_probe()
305 writel(0x0, priv->ddp_comp.regs + DISP_REG_RDMA_INT_ENABLE); in mtk_disp_rdma_probe()
306 writel(0x0, priv->ddp_comp.regs + DISP_REG_RDMA_INT_STATUS); in mtk_disp_rdma_probe()
Dmtk_drm_ddp_comp.c419 static bool mtk_drm_find_comp_in_ddp(struct mtk_ddp_comp ddp_comp, in mtk_drm_find_comp_in_ddp() argument
429 if (ddp_comp.id == path[i]) in mtk_drm_find_comp_in_ddp()
451 struct mtk_ddp_comp ddp_comp) in mtk_drm_find_possible_crtc_by_comp() argument
456 if (mtk_drm_find_comp_in_ddp(ddp_comp, private->data->main_path, private->data->main_len)) in mtk_drm_find_possible_crtc_by_comp()
458 else if (mtk_drm_find_comp_in_ddp(ddp_comp, private->data->ext_path, in mtk_drm_find_possible_crtc_by_comp()
461 else if (mtk_drm_find_comp_in_ddp(ddp_comp, private->data->third_path, in mtk_drm_find_possible_crtc_by_comp()
557 if (private->ddp_comp[comp->id]) in mtk_ddp_comp_register()
560 private->ddp_comp[comp->id] = comp; in mtk_ddp_comp_register()
568 private->ddp_comp[comp->id] = NULL; in mtk_ddp_comp_unregister()
Dmtk_disp_ovl.c72 struct mtk_ddp_comp ddp_comp; member
79 return container_of(comp, struct mtk_disp_ovl, ddp_comp); in comp_to_ovl()
85 struct mtk_ddp_comp *ovl = &priv->ddp_comp; in mtk_disp_ovl_irq_handler()
335 ret = mtk_ddp_comp_register(drm_dev, &priv->ddp_comp); in mtk_disp_ovl_bind()
351 mtk_ddp_comp_unregister(drm_dev, &priv->ddp_comp); in mtk_disp_ovl_unbind()
386 ret = mtk_ddp_comp_init(dev, dev->of_node, &priv->ddp_comp, comp_id, in mtk_disp_ovl_probe()
Dmtk_dpi.c59 struct mtk_ddp_comp ddp_comp; member
548 struct mtk_dpi *dpi = container_of(comp, struct mtk_dpi, ddp_comp); in mtk_dpi_start()
555 struct mtk_dpi *dpi = container_of(comp, struct mtk_dpi, ddp_comp); in mtk_dpi_stop()
571 ret = mtk_ddp_comp_register(drm_dev, &dpi->ddp_comp); in mtk_dpi_bind()
585 dpi->encoder.possible_crtcs = mtk_drm_find_possible_crtc_by_comp(drm_dev, dpi->ddp_comp); in mtk_dpi_bind()
603 mtk_ddp_comp_unregister(drm_dev, &dpi->ddp_comp); in mtk_dpi_bind()
614 mtk_ddp_comp_unregister(drm_dev, &dpi->ddp_comp); in mtk_dpi_unbind()
759 ret = mtk_ddp_comp_init(dev, dev->of_node, &dpi->ddp_comp, comp_id, in mtk_dpi_probe()
Dmtk_dsi.c181 struct mtk_ddp_comp ddp_comp; member
805 struct mtk_dsi *dsi = container_of(comp, struct mtk_dsi, ddp_comp); in mtk_dsi_ddp_start()
812 struct mtk_dsi *dsi = container_of(comp, struct mtk_dsi, ddp_comp); in mtk_dsi_ddp_stop()
1005 dsi->encoder.possible_crtcs = mtk_drm_find_possible_crtc_by_comp(drm, dsi->ddp_comp); in mtk_dsi_encoder_init()
1033 ret = mtk_ddp_comp_register(drm, &dsi->ddp_comp); in mtk_dsi_bind()
1047 mtk_ddp_comp_unregister(drm, &dsi->ddp_comp); in mtk_dsi_bind()
1058 mtk_ddp_comp_unregister(drm, &dsi->ddp_comp); in mtk_dsi_unbind()
1150 ret = mtk_ddp_comp_init(dev, dev->of_node, &dsi->ddp_comp, comp_id, in mtk_dsi_probe()
Dmtk_drm_drv.c548 private->ddp_comp[comp_id] = comp; in mtk_drm_probe()
574 if (private->ddp_comp[i]) { in mtk_drm_probe()
575 put_device(private->ddp_comp[i]->larb_dev); in mtk_drm_probe()
576 private->ddp_comp[i] = NULL; in mtk_drm_probe()
Dmtk_drm_drv.h44 struct mtk_ddp_comp *ddp_comp[DDP_COMPONENT_ID_MAX]; member
Dmtk_drm_ddp_comp.h174 struct mtk_ddp_comp ddp_comp);