Lines Matching refs:vkms_state
22 struct vkms_plane_state *vkms_state; in vkms_plane_duplicate_state() local
25 vkms_state = kzalloc(sizeof(*vkms_state), GFP_KERNEL); in vkms_plane_duplicate_state()
26 if (!vkms_state) in vkms_plane_duplicate_state()
32 kfree(vkms_state); in vkms_plane_duplicate_state()
36 vkms_state->composer = composer; in vkms_plane_duplicate_state()
39 &vkms_state->base); in vkms_plane_duplicate_state()
41 return &vkms_state->base; in vkms_plane_duplicate_state()
47 struct vkms_plane_state *vkms_state = to_vkms_plane_state(old_state); in vkms_plane_destroy_state() local
48 struct drm_crtc *crtc = vkms_state->base.crtc; in vkms_plane_destroy_state()
54 if (drm_framebuffer_read_refcount(&vkms_state->composer->fb)) in vkms_plane_destroy_state()
55 drm_framebuffer_put(&vkms_state->composer->fb); in vkms_plane_destroy_state()
58 kfree(vkms_state->composer); in vkms_plane_destroy_state()
59 vkms_state->composer = NULL; in vkms_plane_destroy_state()
62 kfree(vkms_state); in vkms_plane_destroy_state()
67 struct vkms_plane_state *vkms_state; in vkms_plane_reset() local
72 vkms_state = kzalloc(sizeof(*vkms_state), GFP_KERNEL); in vkms_plane_reset()
73 if (!vkms_state) { in vkms_plane_reset()
78 plane->state = &vkms_state->base; in vkms_plane_reset()