Lines Matching full:comp
207 struct mtk_ddp_comp *comp; in mtk_drm_ddp_comp_for_plane() local
212 comp = mtk_crtc->ddp_comp[i]; in mtk_drm_ddp_comp_for_plane()
213 if (local_index < (count + mtk_ddp_comp_layer_nr(comp))) { in mtk_drm_ddp_comp_for_plane()
215 return comp; in mtk_drm_ddp_comp_for_plane()
217 count += mtk_ddp_comp_layer_nr(comp); in mtk_drm_ddp_comp_for_plane()
292 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[i]; in mtk_crtc_ddp_hw_init() local
295 mtk_ddp_comp_bgclr_in_on(comp); in mtk_crtc_ddp_hw_init()
297 mtk_ddp_comp_config(comp, width, height, vrefresh, bpc, NULL); in mtk_crtc_ddp_hw_init()
298 mtk_ddp_comp_start(comp); in mtk_crtc_ddp_hw_init()
305 struct mtk_ddp_comp *comp; in mtk_crtc_ddp_hw_init() local
309 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, &local_layer); in mtk_crtc_ddp_hw_init()
310 if (comp) in mtk_crtc_ddp_hw_init()
311 mtk_ddp_comp_layer_config(comp, local_layer, in mtk_crtc_ddp_hw_init()
366 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_crtc_ddp_config() local
376 mtk_ddp_comp_config(comp, state->pending_width, in mtk_crtc_ddp_config()
394 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, in mtk_crtc_ddp_config()
397 if (comp) in mtk_crtc_ddp_config()
398 mtk_ddp_comp_layer_config(comp, local_layer, in mtk_crtc_ddp_config()
416 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, in mtk_crtc_ddp_config()
419 if (comp) in mtk_crtc_ddp_config()
420 mtk_ddp_comp_layer_config(comp, local_layer, in mtk_crtc_ddp_config()
504 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_enable_vblank() local
506 mtk_ddp_comp_enable_vblank(comp, mtk_crtc_ddp_irq, &mtk_crtc->base); in mtk_drm_crtc_enable_vblank()
514 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_disable_vblank() local
516 mtk_ddp_comp_disable_vblank(comp); in mtk_drm_crtc_disable_vblank()
523 struct mtk_ddp_comp *comp; in mtk_drm_crtc_plane_check() local
525 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, &local_layer); in mtk_drm_crtc_plane_check()
526 if (comp) in mtk_drm_crtc_plane_check()
527 return mtk_ddp_comp_layer_check(comp, local_layer, state); in mtk_drm_crtc_plane_check()
546 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_atomic_enable() local
551 ret = mtk_smi_larb_get(comp->larb_dev); in mtk_drm_crtc_atomic_enable()
559 mtk_smi_larb_put(comp->larb_dev); in mtk_drm_crtc_atomic_enable()
571 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_atomic_disable() local
595 mtk_smi_larb_put(comp->larb_dev); in mtk_drm_crtc_atomic_disable()
685 struct mtk_ddp_comp *comp; in mtk_drm_crtc_num_comp_planes() local
690 comp = mtk_crtc->ddp_comp[comp_idx]; in mtk_drm_crtc_num_comp_planes()
691 if (!comp->funcs) in mtk_drm_crtc_num_comp_planes()
694 if (comp_idx == 1 && !comp->funcs->bgclr_in_on) in mtk_drm_crtc_num_comp_planes()
697 return mtk_ddp_comp_layer_nr(comp); in mtk_drm_crtc_num_comp_planes()
718 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[comp_idx]; in mtk_drm_crtc_init_comp_planes() local
727 mtk_ddp_comp_supported_rotations(comp)); in mtk_drm_crtc_init_comp_planes()
755 struct mtk_ddp_comp *comp; in mtk_drm_crtc_create() local
758 comp = &priv->ddp_comp[comp_id]; in mtk_drm_crtc_create()
767 if (!comp->dev) { in mtk_drm_crtc_create()
794 struct mtk_ddp_comp *comp; in mtk_drm_crtc_create() local
796 comp = &priv->ddp_comp[comp_id]; in mtk_drm_crtc_create()
797 mtk_crtc->ddp_comp[i] = comp; in mtk_drm_crtc_create()
799 if (comp->funcs) { in mtk_drm_crtc_create()
800 if (comp->funcs->gamma_set) in mtk_drm_crtc_create()
803 if (comp->funcs->ctm_set) in mtk_drm_crtc_create()