Lines Matching refs:vfpriv
43 struct virtio_gpu_fpriv *vfpriv)
48 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id,
49 vfpriv->context_init, strlen(dbgname),
52 vfpriv->context_created = true;
58 struct virtio_gpu_fpriv *vfpriv = file->driver_priv;
60 mutex_lock(&vfpriv->context_lock);
61 if (vfpriv->context_created)
64 virtio_gpu_create_context_locked(vgdev, vfpriv);
67 mutex_unlock(&vfpriv->context_lock);
218 struct virtio_gpu_fpriv *vfpriv = file->driver_priv;
256 (vgdev, vfpriv->ctx_id, offset, args->level, args->stride,
273 struct virtio_gpu_fpriv *vfpriv = file->driver_priv;
316 vfpriv ? vfpriv->ctx_id : 0, offset, args->level,
430 struct virtio_gpu_fpriv *vfpriv,
468 params->ctx_id = vfpriv->ctx_id;
497 struct virtio_gpu_fpriv *vfpriv = file->driver_priv;
500 if (verify_blob(vgdev, vfpriv, ¶ms, rc_blob,
517 vfpriv->ctx_id, NULL, NULL);
573 struct virtio_gpu_fpriv *vfpriv = file->driver_priv;
592 mutex_lock(&vfpriv->context_lock);
593 if (vfpriv->context_created) {
615 if (vfpriv->context_init &
621 vfpriv->context_init |= value;
624 if (vfpriv->base_fence_ctx) {
634 vfpriv->base_fence_ctx = dma_fence_context_alloc(value);
635 vfpriv->num_rings = value;
638 if (vfpriv->ring_idx_mask) {
643 vfpriv->ring_idx_mask = value;
651 if (vfpriv->ring_idx_mask) {
653 for (i = 0; i < vfpriv->num_rings; i++)
656 if (~valid_ring_mask & vfpriv->ring_idx_mask) {
662 virtio_gpu_create_context_locked(vgdev, vfpriv);
666 mutex_unlock(&vfpriv->context_lock);