Lines Matching refs:nvqs
284 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_msix() argument
294 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
301 for (i = 0; i < nvqs; ++i) in vp_find_vqs_msix()
316 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
358 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_intx() argument
365 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
376 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
397 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs() argument
405 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
409 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs()
416 return vp_find_vqs_intx(vdev, nvqs, vqs, callbacks, names, ctx); in vp_find_vqs()