Lines Matching refs:vfpriv

43 					     struct virtio_gpu_fpriv *vfpriv)  in virtio_gpu_create_context_locked()  argument
45 if (vfpriv->explicit_debug_name) { in virtio_gpu_create_context_locked()
46 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
47 vfpriv->context_init, in virtio_gpu_create_context_locked()
48 strlen(vfpriv->debug_name), in virtio_gpu_create_context_locked()
49 vfpriv->debug_name); in virtio_gpu_create_context_locked()
54 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
55 vfpriv->context_init, strlen(dbgname), in virtio_gpu_create_context_locked()
59 vfpriv->context_created = true; in virtio_gpu_create_context_locked()
65 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_create_context() local
67 mutex_lock(&vfpriv->context_lock); in virtio_gpu_create_context()
68 if (vfpriv->context_created) in virtio_gpu_create_context()
71 virtio_gpu_create_context_locked(vgdev, vfpriv); in virtio_gpu_create_context()
74 mutex_unlock(&vfpriv->context_lock); in virtio_gpu_create_context()
228 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_transfer_from_host_ioctl() local
266 (vgdev, vfpriv->ctx_id, offset, args->level, args->stride, in virtio_gpu_transfer_from_host_ioctl()
283 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_transfer_to_host_ioctl() local
326 vfpriv ? vfpriv->ctx_id : 0, offset, args->level, in virtio_gpu_transfer_to_host_ioctl()
440 struct virtio_gpu_fpriv *vfpriv, in verify_blob() argument
478 params->ctx_id = vfpriv->ctx_id; in verify_blob()
507 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_resource_create_blob_ioctl() local
510 if (verify_blob(vgdev, vfpriv, &params, rc_blob, in virtio_gpu_resource_create_blob_ioctl()
527 vfpriv->ctx_id, NULL, NULL); in virtio_gpu_resource_create_blob_ioctl()
583 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_context_init_ioctl() local
602 mutex_lock(&vfpriv->context_lock); in virtio_gpu_context_init_ioctl()
603 if (vfpriv->context_created) { in virtio_gpu_context_init_ioctl()
625 if (vfpriv->context_init & in virtio_gpu_context_init_ioctl()
631 vfpriv->context_init |= value; in virtio_gpu_context_init_ioctl()
634 if (vfpriv->base_fence_ctx) { in virtio_gpu_context_init_ioctl()
644 vfpriv->base_fence_ctx = dma_fence_context_alloc(value); in virtio_gpu_context_init_ioctl()
645 vfpriv->num_rings = value; in virtio_gpu_context_init_ioctl()
648 if (vfpriv->ring_idx_mask) { in virtio_gpu_context_init_ioctl()
653 vfpriv->ring_idx_mask = value; in virtio_gpu_context_init_ioctl()
656 if (vfpriv->explicit_debug_name) { in virtio_gpu_context_init_ioctl()
661 ret = strncpy_from_user(vfpriv->debug_name, in virtio_gpu_context_init_ioctl()
667 vfpriv->explicit_debug_name = true; in virtio_gpu_context_init_ioctl()
676 if (vfpriv->ring_idx_mask) { in virtio_gpu_context_init_ioctl()
678 for (i = 0; i < vfpriv->num_rings; i++) in virtio_gpu_context_init_ioctl()
681 if (~valid_ring_mask & vfpriv->ring_idx_mask) { in virtio_gpu_context_init_ioctl()
687 virtio_gpu_create_context_locked(vgdev, vfpriv); in virtio_gpu_context_init_ioctl()
691 mutex_unlock(&vfpriv->context_lock); in virtio_gpu_context_init_ioctl()