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()
176 snprintf(vp_vdpa->vring[i].msix_name, VP_VDPA_NAME_SIZE, in vp_vdpa_request_irq()
181 0, vp_vdpa->vring[i].msix_name, in vp_vdpa_request_irq()
182 &vp_vdpa->vring[i]); in vp_vdpa_request_irq()
189 vp_vdpa->vring[i].irq = irq; in vp_vdpa_request_irq()
305 vp_vdpa->vring[qid].cb = *cb; in vp_vdpa_set_vq_cb()
347 vp_iowrite16(qid, vp_vdpa->vring[qid].notify); in vp_vdpa_kick_vq()
431 notify.addr = vp_vdpa->vring[qid].notify_pa; in vp_vdpa_get_vq_notification()
518 vp_vdpa->vring = devm_kcalloc(&pdev->dev, vp_vdpa->queues, in vp_vdpa_dev_add()
519 sizeof(*vp_vdpa->vring), in vp_vdpa_dev_add()
521 if (!vp_vdpa->vring) { in vp_vdpa_dev_add()
528 vp_vdpa->vring[i].irq = VIRTIO_MSI_NO_VECTOR; in vp_vdpa_dev_add()
529 vp_vdpa->vring[i].notify = in vp_vdpa_dev_add()
531 &vp_vdpa->vring[i].notify_pa); in vp_vdpa_dev_add()
532 if (!vp_vdpa->vring[i].notify) { in vp_vdpa_dev_add()