Lines Matching refs:frame_info
27 struct vkms_frame_info *frame_info; in vkms_plane_duplicate_state() local
33 frame_info = kzalloc(sizeof(*frame_info), GFP_KERNEL); in vkms_plane_duplicate_state()
34 if (!frame_info) { in vkms_plane_duplicate_state()
40 vkms_state->frame_info = frame_info; in vkms_plane_duplicate_state()
53 if (crtc && vkms_state->frame_info->fb) { in vkms_plane_destroy_state()
57 if (drm_framebuffer_read_refcount(vkms_state->frame_info->fb)) in vkms_plane_destroy_state()
58 drm_framebuffer_put(vkms_state->frame_info->fb); in vkms_plane_destroy_state()
61 kfree(vkms_state->frame_info); in vkms_plane_destroy_state()
62 vkms_state->frame_info = NULL; in vkms_plane_destroy_state()
102 struct vkms_frame_info *frame_info; in vkms_plane_atomic_update() local
112 frame_info = vkms_plane_state->frame_info; in vkms_plane_atomic_update()
113 memcpy(&frame_info->src, &new_state->src, sizeof(struct drm_rect)); in vkms_plane_atomic_update()
114 memcpy(&frame_info->dst, &new_state->dst, sizeof(struct drm_rect)); in vkms_plane_atomic_update()
115 memcpy(&frame_info->rotated, &new_state->dst, sizeof(struct drm_rect)); in vkms_plane_atomic_update()
116 frame_info->fb = fb; in vkms_plane_atomic_update()
117 memcpy(&frame_info->map, &shadow_plane_state->data, sizeof(frame_info->map)); in vkms_plane_atomic_update()
118 drm_framebuffer_get(frame_info->fb); in vkms_plane_atomic_update()
119 frame_info->rotation = drm_rotation_simplify(new_state->rotation, DRM_MODE_ROTATE_0 | in vkms_plane_atomic_update()
125 drm_rect_rotate(&frame_info->rotated, drm_rect_width(&frame_info->rotated), in vkms_plane_atomic_update()
126 drm_rect_height(&frame_info->rotated), frame_info->rotation); in vkms_plane_atomic_update()
128 frame_info->offset = fb->offsets[0]; in vkms_plane_atomic_update()
129 frame_info->pitch = fb->pitches[0]; in vkms_plane_atomic_update()
130 frame_info->cpp = fb->format->cpp[0]; in vkms_plane_atomic_update()