Lines Matching full:vring
37 struct vp_vring *vring; member
102 int irq = vp_vdpa->vring[idx].irq; in vp_vdpa_get_vq_irq()
117 if (vp_vdpa->vring[i].irq != VIRTIO_MSI_NO_VECTOR) { in vp_vdpa_free_irq()
119 devm_free_irq(&pdev->dev, vp_vdpa->vring[i].irq, in vp_vdpa_free_irq()
120 &vp_vdpa->vring[i]); in vp_vdpa_free_irq()
121 vp_vdpa->vring[i].irq = VIRTIO_MSI_NO_VECTOR; in vp_vdpa_free_irq()
139 struct vp_vring *vring = arg; in vp_vdpa_vq_handler() local
141 if (vring->cb.callback) in vp_vdpa_vq_handler()
142 return vring->cb.callback(vring->cb.private); in vp_vdpa_vq_handler()
167 if (vp_vdpa->vring[i].cb.callback) in vp_vdpa_request_irq()
182 if (!vp_vdpa->vring[i].cb.callback) in vp_vdpa_request_irq()
185 snprintf(vp_vdpa->vring[i].msix_name, VP_VDPA_NAME_SIZE, in vp_vdpa_request_irq()
190 0, vp_vdpa->vring[i].msix_name, in vp_vdpa_request_irq()
191 &vp_vdpa->vring[i]); in vp_vdpa_request_irq()
198 vp_vdpa->vring[i].irq = irq; in vp_vdpa_request_irq()
318 vp_vdpa->vring[qid].cb = *cb; in vp_vdpa_set_vq_cb()
367 vp_iowrite16(qid, vp_vdpa->vring[qid].notify); in vp_vdpa_kick_vq()
451 notify.addr = vp_vdpa->vring[qid].notify_pa; in vp_vdpa_get_vq_notification()
539 vp_vdpa->vring = devm_kcalloc(&pdev->dev, vp_vdpa->queues, in vp_vdpa_dev_add()
540 sizeof(*vp_vdpa->vring), in vp_vdpa_dev_add()
542 if (!vp_vdpa->vring) { in vp_vdpa_dev_add()
549 vp_vdpa->vring[i].irq = VIRTIO_MSI_NO_VECTOR; in vp_vdpa_dev_add()
550 vp_vdpa->vring[i].notify = in vp_vdpa_dev_add()
552 &vp_vdpa->vring[i].notify_pa); in vp_vdpa_dev_add()
553 if (!vp_vdpa->vring[i].notify) { in vp_vdpa_dev_add()