Lines Matching refs:crtc
411 static int dpu_kms_enable_vblank(struct msm_kms *kms, struct drm_crtc *crtc) in dpu_kms_enable_vblank() argument
413 return dpu_crtc_vblank(crtc, true); in dpu_kms_enable_vblank()
416 static void dpu_kms_disable_vblank(struct msm_kms *kms, struct drm_crtc *crtc) in dpu_kms_disable_vblank() argument
418 dpu_crtc_vblank(crtc, false); in dpu_kms_disable_vblank()
436 struct drm_crtc *crtc; in dpu_kms_flush_commit() local
438 for_each_crtc_mask(dpu_kms->dev, crtc, crtc_mask) { in dpu_kms_flush_commit()
439 if (!crtc->state->active) in dpu_kms_flush_commit()
442 trace_dpu_kms_commit(DRMID(crtc)); in dpu_kms_flush_commit()
443 dpu_crtc_commit_kickoff(crtc); in dpu_kms_flush_commit()
450 struct drm_crtc *crtc; in dpu_kms_complete_commit() local
454 for_each_crtc_mask(dpu_kms->dev, crtc, crtc_mask) in dpu_kms_complete_commit()
455 dpu_crtc_complete_commit(crtc); in dpu_kms_complete_commit()
461 struct drm_crtc *crtc) in dpu_kms_wait_for_commit_done() argument
467 if (!kms || !crtc || !crtc->state) { in dpu_kms_wait_for_commit_done()
472 dev = crtc->dev; in dpu_kms_wait_for_commit_done()
474 if (!crtc->state->enable) { in dpu_kms_wait_for_commit_done()
475 DPU_DEBUG("[crtc:%d] not enable\n", crtc->base.id); in dpu_kms_wait_for_commit_done()
479 if (!drm_atomic_crtc_effectively_active(crtc->state)) { in dpu_kms_wait_for_commit_done()
480 DPU_DEBUG("[crtc:%d] not active\n", crtc->base.id); in dpu_kms_wait_for_commit_done()
485 if (encoder->crtc != crtc) in dpu_kms_wait_for_commit_done()
492 trace_dpu_kms_wait_for_commit_done(DRMID(crtc)); in dpu_kms_wait_for_commit_done()
504 struct drm_crtc *crtc; in dpu_kms_wait_flush() local
506 for_each_crtc_mask(dpu_kms->dev, crtc, crtc_mask) in dpu_kms_wait_flush()
507 dpu_kms_wait_for_commit_done(kms, crtc); in dpu_kms_wait_flush()
730 struct drm_crtc *crtc; in _dpu_kms_drm_obj_init() local
791 crtc = dpu_crtc_init(dev, primary_planes[i], cursor_planes[i]); in _dpu_kms_drm_obj_init()
792 if (IS_ERR(crtc)) { in _dpu_kms_drm_obj_init()
793 ret = PTR_ERR(crtc); in _dpu_kms_drm_obj_init()