/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
D | mtk_drm_crtc.c | 57 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 …]
|
D | mtk_disp_color.c | 37 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()
|
D | mtk_disp_rdma.c | 63 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()
|
D | mtk_drm_ddp_comp.c | 419 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()
|
D | mtk_disp_ovl.c | 72 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()
|
D | mtk_dpi.c | 59 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()
|
D | mtk_dsi.c | 181 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()
|
D | mtk_drm_drv.c | 548 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()
|
D | mtk_drm_drv.h | 44 struct mtk_ddp_comp *ddp_comp[DDP_COMPONENT_ID_MAX]; member
|
D | mtk_drm_ddp_comp.h | 174 struct mtk_ddp_comp ddp_comp);
|