Lines Matching refs:comp

172 	struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0];  in mtk_drm_crtc_enable_vblank()  local
174 mtk_ddp_comp_enable_vblank(comp, &mtk_crtc->base); in mtk_drm_crtc_enable_vblank()
182 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_disable_vblank() local
184 mtk_ddp_comp_disable_vblank(comp); in mtk_drm_crtc_disable_vblank()
221 struct mtk_ddp_comp *comp; in mtk_drm_ddp_comp_for_plane() local
226 comp = mtk_crtc->ddp_comp[i]; in mtk_drm_ddp_comp_for_plane()
227 if (local_index < (count + mtk_ddp_comp_layer_nr(comp))) { in mtk_drm_ddp_comp_for_plane()
229 return comp; in mtk_drm_ddp_comp_for_plane()
231 count += mtk_ddp_comp_layer_nr(comp); in mtk_drm_ddp_comp_for_plane()
306 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[i]; in mtk_crtc_ddp_hw_init() local
309 mtk_ddp_comp_bgclr_in_on(comp); in mtk_crtc_ddp_hw_init()
311 mtk_ddp_comp_config(comp, width, height, vrefresh, bpc, NULL); in mtk_crtc_ddp_hw_init()
312 mtk_ddp_comp_start(comp); in mtk_crtc_ddp_hw_init()
319 struct mtk_ddp_comp *comp; in mtk_crtc_ddp_hw_init() local
323 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, &local_layer); in mtk_crtc_ddp_hw_init()
324 if (comp) in mtk_crtc_ddp_hw_init()
325 mtk_ddp_comp_layer_config(comp, local_layer, in mtk_crtc_ddp_hw_init()
380 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_crtc_ddp_config() local
390 mtk_ddp_comp_config(comp, state->pending_width, in mtk_crtc_ddp_config()
408 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, in mtk_crtc_ddp_config()
411 if (comp) in mtk_crtc_ddp_config()
412 mtk_ddp_comp_layer_config(comp, local_layer, in mtk_crtc_ddp_config()
430 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, in mtk_crtc_ddp_config()
433 if (comp) in mtk_crtc_ddp_config()
434 mtk_ddp_comp_layer_config(comp, local_layer, in mtk_crtc_ddp_config()
497 struct mtk_ddp_comp *comp; in mtk_drm_crtc_plane_check() local
499 comp = mtk_drm_ddp_comp_for_plane(crtc, plane, &local_layer); in mtk_drm_crtc_plane_check()
500 if (comp) in mtk_drm_crtc_plane_check()
501 return mtk_ddp_comp_layer_check(comp, local_layer, state); in mtk_drm_crtc_plane_check()
523 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_atomic_enable() local
528 ret = mtk_smi_larb_get(comp->larb_dev); in mtk_drm_crtc_atomic_enable()
536 mtk_smi_larb_put(comp->larb_dev); in mtk_drm_crtc_atomic_enable()
548 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[0]; in mtk_drm_crtc_atomic_disable() local
572 mtk_smi_larb_put(comp->larb_dev); in mtk_drm_crtc_atomic_disable()
660 void mtk_crtc_ddp_irq(struct drm_crtc *crtc, struct mtk_ddp_comp *comp) in mtk_crtc_ddp_irq() argument
678 struct mtk_ddp_comp *comp; in mtk_drm_crtc_num_comp_planes() local
683 comp = mtk_crtc->ddp_comp[comp_idx]; in mtk_drm_crtc_num_comp_planes()
684 if (!comp->funcs) in mtk_drm_crtc_num_comp_planes()
687 if (comp_idx == 1 && !comp->funcs->bgclr_in_on) in mtk_drm_crtc_num_comp_planes()
690 return mtk_ddp_comp_layer_nr(comp); in mtk_drm_crtc_num_comp_planes()
711 struct mtk_ddp_comp *comp = mtk_crtc->ddp_comp[comp_idx]; in mtk_drm_crtc_init_comp_planes() local
720 mtk_ddp_comp_supported_rotations(comp)); in mtk_drm_crtc_init_comp_planes()
779 struct mtk_ddp_comp *comp; in mtk_drm_crtc_create() local
783 comp = priv->ddp_comp[comp_id]; in mtk_drm_crtc_create()
784 if (!comp) { in mtk_drm_crtc_create()
790 mtk_crtc->ddp_comp[i] = comp; in mtk_drm_crtc_create()
792 if (comp->funcs) { in mtk_drm_crtc_create()
793 if (comp->funcs->gamma_set) in mtk_drm_crtc_create()
796 if (comp->funcs->ctm_set) in mtk_drm_crtc_create()