Lines Matching refs:vkms_state
31 struct vkms_plane_state *vkms_state; in vkms_plane_duplicate_state() local
34 vkms_state = kzalloc(sizeof(*vkms_state), GFP_KERNEL); in vkms_plane_duplicate_state()
35 if (!vkms_state) in vkms_plane_duplicate_state()
41 kfree(vkms_state); in vkms_plane_duplicate_state()
45 vkms_state->frame_info = frame_info; in vkms_plane_duplicate_state()
47 __drm_gem_duplicate_shadow_plane_state(plane, &vkms_state->base); in vkms_plane_duplicate_state()
49 return &vkms_state->base.base; in vkms_plane_duplicate_state()
55 struct vkms_plane_state *vkms_state = to_vkms_plane_state(old_state); in vkms_plane_destroy_state() local
56 struct drm_crtc *crtc = vkms_state->base.base.crtc; in vkms_plane_destroy_state()
58 if (crtc && vkms_state->frame_info->fb) { in vkms_plane_destroy_state()
62 if (drm_framebuffer_read_refcount(vkms_state->frame_info->fb)) in vkms_plane_destroy_state()
63 drm_framebuffer_put(vkms_state->frame_info->fb); in vkms_plane_destroy_state()
66 kfree(vkms_state->frame_info); in vkms_plane_destroy_state()
67 vkms_state->frame_info = NULL; in vkms_plane_destroy_state()
69 __drm_gem_destroy_shadow_plane_state(&vkms_state->base); in vkms_plane_destroy_state()
70 kfree(vkms_state); in vkms_plane_destroy_state()
75 struct vkms_plane_state *vkms_state; in vkms_plane_reset() local
82 vkms_state = kzalloc(sizeof(*vkms_state), GFP_KERNEL); in vkms_plane_reset()
83 if (!vkms_state) { in vkms_plane_reset()
88 __drm_gem_reset_shadow_plane(plane, &vkms_state->base); in vkms_plane_reset()