Lines Matching full:vring
41 struct eni_vring *vring; member
104 int irq = eni_vdpa->vring[idx].irq; in eni_vdpa_get_vq_irq()
119 if (eni_vdpa->vring[i].irq != VIRTIO_MSI_NO_VECTOR) { in eni_vdpa_free_irq()
121 devm_free_irq(&pdev->dev, eni_vdpa->vring[i].irq, in eni_vdpa_free_irq()
122 &eni_vdpa->vring[i]); in eni_vdpa_free_irq()
123 eni_vdpa->vring[i].irq = VIRTIO_MSI_NO_VECTOR; in eni_vdpa_free_irq()
141 struct eni_vring *vring = arg; in eni_vdpa_vq_handler() local
143 if (vring->cb.callback) in eni_vdpa_vq_handler()
144 return vring->cb.callback(vring->cb.private); in eni_vdpa_vq_handler()
178 snprintf(eni_vdpa->vring[i].msix_name, ENI_MSIX_NAME_SIZE, in eni_vdpa_request_irq()
183 0, eni_vdpa->vring[i].msix_name, in eni_vdpa_request_irq()
184 &eni_vdpa->vring[i]); in eni_vdpa_request_irq()
190 eni_vdpa->vring[i].irq = irq; in eni_vdpa_request_irq()
293 eni_vdpa->vring[qid].cb = *cb; in eni_vdpa_set_vq_cb()
349 iowrite16(qid, eni_vdpa->vring[qid].notify); in eni_vdpa_kick_vq()
502 eni_vdpa->vring = devm_kcalloc(&pdev->dev, eni_vdpa->queues, in eni_vdpa_probe()
503 sizeof(*eni_vdpa->vring), in eni_vdpa_probe()
505 if (!eni_vdpa->vring) { in eni_vdpa_probe()
512 eni_vdpa->vring[i].irq = VIRTIO_MSI_NO_VECTOR; in eni_vdpa_probe()
513 eni_vdpa->vring[i].notify = ldev->ioaddr + VIRTIO_PCI_QUEUE_NOTIFY; in eni_vdpa_probe()