Lines Matching defs:plane
1101 struct vfio_device_gfx_plane_info *plane)
1107 if (plane->flags & VFIO_GFX_PLANE_TYPE_PROBE) {
1108 if (plane->flags == (VFIO_GFX_PLANE_TYPE_PROBE |
1114 if (plane->flags != VFIO_GFX_PLANE_TYPE_DMABUF)
1117 plane->drm_format_mod = 0;
1118 plane->x_pos = 0;
1119 plane->y_pos = 0;
1120 plane->x_hot = 0;
1121 plane->y_hot = 0;
1126 if (plane->drm_plane_type == DRM_PLANE_TYPE_PRIMARY)
1129 plane->drm_format = 0;
1130 plane->width = 0;
1131 plane->height = 0;
1132 plane->stride = 0;
1133 plane->size = 0;
1134 plane->dmabuf_id = 0;
1146 plane->drm_format = dmabuf->mode.drm_format;
1147 plane->width = dmabuf->mode.width;
1148 plane->height = dmabuf->mode.height;
1149 plane->stride = dmabuf->mode.stride;
1150 plane->size = dmabuf->mode.size;
1151 plane->dmabuf_id = dmabuf->id;
1154 if (plane->drm_plane_type == DRM_PLANE_TYPE_PRIMARY &&
1155 mdev_state->active_id != plane->dmabuf_id) {
1157 __func__, mdev_state->active_id, plane->dmabuf_id);
1158 mdev_state->active_id = plane->dmabuf_id;
1267 struct vfio_device_gfx_plane_info plane = {};
1272 if (copy_from_user(&plane, (void __user *)arg, minsz))
1275 if (plane.argsz < minsz)
1278 ret = mbochs_query_gfx_plane(mdev_state, &plane);
1282 if (copy_to_user((void __user *)arg, &plane, minsz))