Lines Matching refs:vkms_state
121 struct vkms_crtc_state *vkms_state; in vkms_atomic_crtc_duplicate_state() local
126 vkms_state = kzalloc(sizeof(*vkms_state), GFP_KERNEL); in vkms_atomic_crtc_duplicate_state()
127 if (!vkms_state) in vkms_atomic_crtc_duplicate_state()
130 __drm_atomic_helper_crtc_duplicate_state(crtc, &vkms_state->base); in vkms_atomic_crtc_duplicate_state()
132 INIT_WORK(&vkms_state->composer_work, vkms_composer_worker); in vkms_atomic_crtc_duplicate_state()
134 return &vkms_state->base; in vkms_atomic_crtc_duplicate_state()
140 struct vkms_crtc_state *vkms_state = to_vkms_crtc_state(state); in vkms_atomic_crtc_destroy_state() local
144 WARN_ON(work_pending(&vkms_state->composer_work)); in vkms_atomic_crtc_destroy_state()
145 kfree(vkms_state->active_planes); in vkms_atomic_crtc_destroy_state()
146 kfree(vkms_state); in vkms_atomic_crtc_destroy_state()
151 struct vkms_crtc_state *vkms_state = in vkms_atomic_crtc_reset() local
152 kzalloc(sizeof(*vkms_state), GFP_KERNEL); in vkms_atomic_crtc_reset()
157 __drm_atomic_helper_crtc_reset(crtc, &vkms_state->base); in vkms_atomic_crtc_reset()
158 if (vkms_state) in vkms_atomic_crtc_reset()
159 INIT_WORK(&vkms_state->composer_work, vkms_composer_worker); in vkms_atomic_crtc_reset()
182 struct vkms_crtc_state *vkms_state = to_vkms_crtc_state(crtc_state); in vkms_crtc_atomic_check() local
187 if (vkms_state->active_planes) in vkms_crtc_atomic_check()
205 vkms_state->active_planes = kcalloc(i, sizeof(plane), GFP_KERNEL); in vkms_crtc_atomic_check()
206 if (!vkms_state->active_planes) in vkms_crtc_atomic_check()
208 vkms_state->num_active_planes = i; in vkms_crtc_atomic_check()
218 vkms_state->active_planes[i++] = in vkms_crtc_atomic_check()