Lines Matching refs:crtc
511 if (!plane_state->fb || !plane_state->crtc) in sprd_plane_atomic_check()
518 crtc_state = drm_atomic_get_crtc_state(plane_state->state, plane_state->crtc); in sprd_plane_atomic_check()
533 struct sprd_dpu *dpu = to_sprd_crtc(new_state->crtc); in sprd_plane_atomic_update()
544 struct sprd_dpu *dpu = to_sprd_crtc(old_state->crtc); in sprd_plane_atomic_disable()
616 static void sprd_crtc_mode_set_nofb(struct drm_crtc *crtc) in sprd_crtc_mode_set_nofb() argument
618 struct sprd_dpu *dpu = to_sprd_crtc(crtc); in sprd_crtc_mode_set_nofb()
619 struct drm_display_mode *mode = &crtc->state->adjusted_mode; in sprd_crtc_mode_set_nofb()
625 drm_for_each_encoder_mask(encoder, crtc->dev, in sprd_crtc_mode_set_nofb()
626 crtc->state->encoder_mask) { in sprd_crtc_mode_set_nofb()
638 static void sprd_crtc_atomic_enable(struct drm_crtc *crtc, in sprd_crtc_atomic_enable() argument
641 struct sprd_dpu *dpu = to_sprd_crtc(crtc); in sprd_crtc_atomic_enable()
648 static void sprd_crtc_atomic_disable(struct drm_crtc *crtc, in sprd_crtc_atomic_disable() argument
651 struct sprd_dpu *dpu = to_sprd_crtc(crtc); in sprd_crtc_atomic_disable()
659 if (crtc->state->event) { in sprd_crtc_atomic_disable()
660 drm_crtc_send_vblank_event(crtc, crtc->state->event); in sprd_crtc_atomic_disable()
661 crtc->state->event = NULL; in sprd_crtc_atomic_disable()
666 static void sprd_crtc_atomic_flush(struct drm_crtc *crtc, in sprd_crtc_atomic_flush() argument
670 struct sprd_dpu *dpu = to_sprd_crtc(crtc); in sprd_crtc_atomic_flush()
676 if (crtc->state->event) { in sprd_crtc_atomic_flush()
677 drm_crtc_send_vblank_event(crtc, crtc->state->event); in sprd_crtc_atomic_flush()
678 crtc->state->event = NULL; in sprd_crtc_atomic_flush()
683 static int sprd_crtc_enable_vblank(struct drm_crtc *crtc) in sprd_crtc_enable_vblank() argument
685 struct sprd_dpu *dpu = to_sprd_crtc(crtc); in sprd_crtc_enable_vblank()
692 static void sprd_crtc_disable_vblank(struct drm_crtc *crtc) in sprd_crtc_disable_vblank() argument
694 struct sprd_dpu *dpu = to_sprd_crtc(crtc); in sprd_crtc_disable_vblank()