Home
last modified time | relevance | path

Searched refs:vkms_state (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/vkms/
Dvkms_plane.c22 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()
[all …]
Dvkms_crtc.c115 struct vkms_crtc_state *vkms_state; in vkms_atomic_crtc_duplicate_state() local
120 vkms_state = kzalloc(sizeof(*vkms_state), GFP_KERNEL); in vkms_atomic_crtc_duplicate_state()
121 if (!vkms_state) in vkms_atomic_crtc_duplicate_state()
124 __drm_atomic_helper_crtc_duplicate_state(crtc, &vkms_state->base); in vkms_atomic_crtc_duplicate_state()
126 INIT_WORK(&vkms_state->composer_work, vkms_composer_worker); in vkms_atomic_crtc_duplicate_state()
128 return &vkms_state->base; in vkms_atomic_crtc_duplicate_state()
134 struct vkms_crtc_state *vkms_state = to_vkms_crtc_state(state); in vkms_atomic_crtc_destroy_state() local
138 WARN_ON(work_pending(&vkms_state->composer_work)); in vkms_atomic_crtc_destroy_state()
139 kfree(vkms_state->active_planes); in vkms_atomic_crtc_destroy_state()
140 kfree(vkms_state); in vkms_atomic_crtc_destroy_state()
[all …]
Dvkms_drv.c88 struct vkms_crtc_state *vkms_state = in vkms_atomic_commit_tail() local
91 flush_work(&vkms_state->composer_work); in vkms_atomic_commit_tail()