Lines Matching full:vring
32 struct vring_info *vring = arg; in ifcvf_vq_intr_handler() local
34 if (vring->cb.callback) in ifcvf_vq_intr_handler()
35 return vring->cb.callback(vring->cb.private); in ifcvf_vq_intr_handler()
43 struct vring_info *vring; in ifcvf_vqs_reused_intr_handler() local
47 vring = &vf->vring[i]; in ifcvf_vqs_reused_intr_handler()
48 if (vring->cb.callback) in ifcvf_vqs_reused_intr_handler()
49 vring->cb.callback(vring->cb.private); in ifcvf_vqs_reused_intr_handler()
79 if (vf->vring[i].irq != -EINVAL) { in ifcvf_free_per_vq_irq()
80 devm_free_irq(&pdev->dev, vf->vring[i].irq, &vf->vring[i]); in ifcvf_free_per_vq_irq()
81 vf->vring[i].irq = -EINVAL; in ifcvf_free_per_vq_irq()
171 snprintf(vf->vring[i].msix_name, 256, "ifcvf[%s]-%d\n", pci_name(pdev), i); in ifcvf_request_per_vq_irq()
176 vf->vring[i].msix_name, in ifcvf_request_per_vq_irq()
177 &vf->vring[i]); in ifcvf_request_per_vq_irq()
183 vf->vring[i].irq = irq; in ifcvf_request_per_vq_irq()
205 snprintf(vf->vring[0].msix_name, 256, "ifcvf[%s]-vqs-reused-irq\n", pci_name(pdev)); in ifcvf_request_vqs_reused_irq()
209 vf->vring[0].msix_name, vf); in ifcvf_request_vqs_reused_irq()
217 vf->vring[i].irq = -EINVAL; in ifcvf_request_vqs_reused_irq()
239 snprintf(vf->vring[0].msix_name, 256, "ifcvf[%s]-dev-irq\n", pci_name(pdev)); in ifcvf_request_dev_irq()
243 vf->vring[0].msix_name, vf); in ifcvf_request_dev_irq()
251 vf->vring[i].irq = -EINVAL; in ifcvf_request_dev_irq()
383 vf->vring[i].cb.callback = NULL; in ifcvf_stop_datapath()
396 vf->vring[i].last_avail_idx = 0; in ifcvf_reset_vring()
397 vf->vring[i].desc = 0; in ifcvf_reset_vring()
398 vf->vring[i].avail = 0; in ifcvf_reset_vring()
399 vf->vring[i].used = 0; in ifcvf_reset_vring()
400 vf->vring[i].ready = 0; in ifcvf_reset_vring()
401 vf->vring[i].cb.callback = NULL; in ifcvf_reset_vring()
402 vf->vring[i].cb.private = NULL; in ifcvf_reset_vring()
549 vf->vring[qid].cb = *cb; in ifcvf_vdpa_set_vq_cb()
557 vf->vring[qid].ready = ready; in ifcvf_vdpa_set_vq_ready()
564 return vf->vring[qid].ready; in ifcvf_vdpa_get_vq_ready()
572 vf->vring[qid].size = num; in ifcvf_vdpa_set_vq_num()
581 vf->vring[qid].desc = desc_area; in ifcvf_vdpa_set_vq_address()
582 vf->vring[qid].avail = driver_area; in ifcvf_vdpa_set_vq_address()
583 vf->vring[qid].used = device_area; in ifcvf_vdpa_set_vq_address()
667 return vf->vring[qid].irq; in ifcvf_vdpa_get_vq_irq()
678 area.addr = vf->vring[idx].notify_pa; in ifcvf_get_vq_notification()
856 vf->vring[i].irq = -EINVAL; in ifcvf_probe()