Lines Matching refs:flip_state
835 struct vc4_async_flip_state *flip_state = in vc4_async_page_flip_complete() local
837 struct drm_crtc *crtc = flip_state->crtc; in vc4_async_page_flip_complete()
842 vc4_plane_async_set_fb(plane, flip_state->fb); in vc4_async_page_flip_complete()
843 if (flip_state->event) { in vc4_async_page_flip_complete()
847 drm_crtc_send_vblank_event(crtc, flip_state->event); in vc4_async_page_flip_complete()
852 drm_framebuffer_put(flip_state->fb); in vc4_async_page_flip_complete()
860 if (flip_state->old_fb) { in vc4_async_page_flip_complete()
864 cma_bo = drm_fb_cma_get_gem_obj(flip_state->old_fb, 0); in vc4_async_page_flip_complete()
867 drm_framebuffer_put(flip_state->old_fb); in vc4_async_page_flip_complete()
870 kfree(flip_state); in vc4_async_page_flip_complete()
890 struct vc4_async_flip_state *flip_state; in vc4_async_page_flip() local
905 flip_state = kzalloc(sizeof(*flip_state), GFP_KERNEL); in vc4_async_page_flip()
906 if (!flip_state) { in vc4_async_page_flip()
912 flip_state->fb = fb; in vc4_async_page_flip()
913 flip_state->crtc = crtc; in vc4_async_page_flip()
914 flip_state->event = event; in vc4_async_page_flip()
921 kfree(flip_state); in vc4_async_page_flip()
933 flip_state->old_fb = plane->state->fb; in vc4_async_page_flip()
934 if (flip_state->old_fb) in vc4_async_page_flip()
935 drm_framebuffer_get(flip_state->old_fb); in vc4_async_page_flip()
945 vc4_queue_seqno_cb(dev, &flip_state->cb, bo->seqno, in vc4_async_page_flip()