Lines Matching refs:ddp_comp
65 struct mtk_ddp_comp **ddp_comp; member
140 comp = mtk_crtc->ddp_comp[i]; in mtk_crtc_destroy()
194 status = mtk_ddp_comp_mode_valid(mtk_crtc->ddp_comp[i], mode); in mtk_crtc_mode_valid()
226 ret = mtk_ddp_comp_clk_enable(mtk_crtc->ddp_comp[i]); in mtk_crtc_ddp_clk_enable()
236 mtk_ddp_comp_clk_disable(mtk_crtc->ddp_comp[i]); in mtk_crtc_ddp_clk_enable()
245 mtk_ddp_comp_clk_disable(mtk_crtc->ddp_comp[i]); in mtk_crtc_ddp_clk_disable()
259 comp = mtk_crtc->ddp_comp[i]; in mtk_ddp_comp_for_plane()
378 if (!mtk_ddp_comp_connect(mtk_crtc->ddp_comp[i], mtk_crtc->mmsys_dev, in mtk_crtc_ddp_hw_init()
379 mtk_crtc->ddp_comp[i + 1]->id)) in mtk_crtc_ddp_hw_init()
381 mtk_crtc->ddp_comp[i]->id, in mtk_crtc_ddp_hw_init()
382 mtk_crtc->ddp_comp[i + 1]->id); in mtk_crtc_ddp_hw_init()
383 if (!mtk_ddp_comp_add(mtk_crtc->ddp_comp[i], mtk_crtc->mutex)) in mtk_crtc_ddp_hw_init()
385 mtk_crtc->ddp_comp[i]->id); in mtk_crtc_ddp_hw_init()
387 if (!mtk_ddp_comp_add(mtk_crtc->ddp_comp[i], mtk_crtc->mutex)) in mtk_crtc_ddp_hw_init()
388 mtk_mutex_add_comp(mtk_crtc->mutex, mtk_crtc->ddp_comp[i]->id); in mtk_crtc_ddp_hw_init()
392 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[i]; in mtk_crtc_ddp_hw_init()
435 mtk_ddp_comp_stop(mtk_crtc->ddp_comp[i]); in mtk_crtc_ddp_hw_fini()
437 mtk_ddp_comp_bgclr_in_off(mtk_crtc->ddp_comp[i]); in mtk_crtc_ddp_hw_fini()
441 if (!mtk_ddp_comp_remove(mtk_crtc->ddp_comp[i], mtk_crtc->mutex)) in mtk_crtc_ddp_hw_fini()
443 mtk_crtc->ddp_comp[i]->id); in mtk_crtc_ddp_hw_fini()
446 if (!mtk_ddp_comp_disconnect(mtk_crtc->ddp_comp[i], mtk_crtc->mmsys_dev, in mtk_crtc_ddp_hw_fini()
447 mtk_crtc->ddp_comp[i + 1]->id)) in mtk_crtc_ddp_hw_fini()
449 mtk_crtc->ddp_comp[i]->id, in mtk_crtc_ddp_hw_fini()
450 mtk_crtc->ddp_comp[i + 1]->id); in mtk_crtc_ddp_hw_fini()
451 if (!mtk_ddp_comp_remove(mtk_crtc->ddp_comp[i], mtk_crtc->mutex)) in mtk_crtc_ddp_hw_fini()
453 mtk_crtc->ddp_comp[i]->id); in mtk_crtc_ddp_hw_fini()
455 if (!mtk_ddp_comp_remove(mtk_crtc->ddp_comp[i], mtk_crtc->mutex)) in mtk_crtc_ddp_hw_fini()
456 mtk_mutex_remove_comp(mtk_crtc->mutex, mtk_crtc->ddp_comp[i]->id); in mtk_crtc_ddp_hw_fini()
475 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_crtc_ddp_config()
642 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_crtc_enable_vblank()
652 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_crtc_disable_vblank()
682 struct mtk_ddp_comp *comp = &priv->ddp_comp[comp_id]; in mtk_crtc_update_output()
686 mtk_crtc->ddp_comp[mtk_crtc->ddp_comp_nr - 1] = comp; in mtk_crtc_update_output()
721 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_crtc_atomic_enable()
748 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_crtc_atomic_disable()
816 mtk_ddp_gamma_set(mtk_crtc->ddp_comp[i], crtc->state); in mtk_crtc_atomic_flush()
817 mtk_ddp_ctm_set(mtk_crtc->ddp_comp[i], crtc->state); in mtk_crtc_atomic_flush()
878 comp = mtk_crtc->ddp_comp[comp_idx]; in mtk_crtc_num_comp_planes()
906 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[comp_idx]; in mtk_crtc_init_comp_planes()
970 comp = &priv->ddp_comp[comp_id]; in mtk_crtc_create()
994 mtk_crtc->ddp_comp = devm_kcalloc(dev, in mtk_crtc_create()
996 sizeof(*mtk_crtc->ddp_comp), in mtk_crtc_create()
998 if (!mtk_crtc->ddp_comp) in mtk_crtc_create()
1012 comp = &priv->ddp_comp[comp_id]; in mtk_crtc_create()
1013 mtk_crtc->ddp_comp[i] = comp; in mtk_crtc_create()
1050 mtk_crtc->dma_dev = mtk_ddp_comp_dma_dev_get(&priv->ddp_comp[path[0]]); in mtk_crtc_create()
1107 struct mtk_ddp_comp *comp = &priv->ddp_comp[comp_id]; in mtk_crtc_create()
1117 mtk_ddp_comp_encoder_index_set(&priv->ddp_comp[comp_id]); in mtk_crtc_create()