Lines Matching refs:rc_blob
442 struct drm_virtgpu_resource_create_blob *rc_blob, in verify_blob() argument
448 if (rc_blob->blob_flags & ~VIRTGPU_BLOB_FLAG_USE_MASK) in verify_blob()
451 if (rc_blob->blob_flags & VIRTGPU_BLOB_FLAG_USE_CROSS_DEVICE) { in verify_blob()
456 switch (rc_blob->blob_mem) { in verify_blob()
475 if (rc_blob->cmd_size % 4 != 0) in verify_blob()
479 params->blob_id = rc_blob->blob_id; in verify_blob()
481 if (rc_blob->blob_id != 0) in verify_blob()
484 if (rc_blob->cmd_size != 0) in verify_blob()
488 params->blob_mem = rc_blob->blob_mem; in verify_blob()
489 params->size = rc_blob->size; in verify_blob()
491 params->blob_flags = rc_blob->blob_flags; in verify_blob()
508 struct drm_virtgpu_resource_create_blob *rc_blob = data; in virtio_gpu_resource_create_blob_ioctl() local
510 if (verify_blob(vgdev, vfpriv, ¶ms, rc_blob, in virtio_gpu_resource_create_blob_ioctl()
517 if (rc_blob->cmd_size) { in virtio_gpu_resource_create_blob_ioctl()
520 buf = memdup_user(u64_to_user_ptr(rc_blob->cmd), in virtio_gpu_resource_create_blob_ioctl()
521 rc_blob->cmd_size); in virtio_gpu_resource_create_blob_ioctl()
526 virtio_gpu_cmd_submit(vgdev, buf, rc_blob->cmd_size, in virtio_gpu_resource_create_blob_ioctl()
542 bo->blob_mem = rc_blob->blob_mem; in virtio_gpu_resource_create_blob_ioctl()
543 bo->blob_flags = rc_blob->blob_flags; in virtio_gpu_resource_create_blob_ioctl()
560 rc_blob->res_handle = bo->hw_res_handle; in virtio_gpu_resource_create_blob_ioctl()
561 rc_blob->bo_handle = handle; in virtio_gpu_resource_create_blob_ioctl()