Home
last modified time | relevance | path

Searched refs:vqs (Results 1 – 13 of 13) sorted by relevance

/linux-4.19.296/drivers/virtio/
Dvirtio_pci_common.c206 vp_dev->vqs[index] = info; in vp_setup_vq()
217 struct virtio_pci_vq_info *info = vp_dev->vqs[vq->index]; in vp_del_vq()
235 list_for_each_entry_safe(vq, n, &vdev->vqs, list) { in vp_del_vqs()
237 int v = vp_dev->vqs[vq->index]->msix_vector; in vp_del_vqs()
277 kfree(vp_dev->vqs); in vp_del_vqs()
278 vp_dev->vqs = NULL; in vp_del_vqs()
282 struct virtqueue *vqs[], vq_callback_t *callbacks[], in vp_find_vqs_msix() argument
291 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
292 if (!vp_dev->vqs) in vp_find_vqs_msix()
315 vqs[i] = NULL; in vp_find_vqs_msix()
[all …]
Dvirtio_pci_common.h83 struct virtio_pci_vq_info **vqs; member
134 struct virtqueue *vqs[], vq_callback_t *callbacks[],
Dvirtio_input.c170 struct virtqueue *vqs[2]; in virtinput_init_vqs() local
176 err = virtio_find_vqs(vi->vdev, 2, vqs, cbs, names, NULL); in virtinput_init_vqs()
179 vi->evt = vqs[0]; in virtinput_init_vqs()
180 vi->sts = vqs[1]; in virtinput_init_vqs()
Dvirtio_mmio.c347 list_for_each_entry_safe(vq, n, &vdev->vqs, list) in vm_del_vqs()
464 struct virtqueue *vqs[], in vm_find_vqs() argument
480 vqs[i] = vm_setup_vq(vdev, i, callbacks[i], names[i], in vm_find_vqs()
482 if (IS_ERR(vqs[i])) { in vm_find_vqs()
484 return PTR_ERR(vqs[i]); in vm_find_vqs()
Dvirtio_balloon.c394 struct virtqueue *vqs[3]; in init_vqs() local
404 err = virtio_find_vqs(vb->vdev, nvqs, vqs, callbacks, names, NULL); in init_vqs()
408 vb->inflate_vq = vqs[0]; in init_vqs()
409 vb->deflate_vq = vqs[1]; in init_vqs()
413 vb->stats_vq = vqs[2]; in init_vqs()
Dvirtio_pci_modern.c406 struct virtqueue *vqs[], in vp_modern_find_vqs() argument
413 int rc = vp_find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, desc); in vp_modern_find_vqs()
421 list_for_each_entry(vq, &vdev->vqs, list) { in vp_modern_find_vqs()
Dvirtio.c350 INIT_LIST_HEAD(&dev->vqs); in register_virtio_device()
Dvirtio_ring.c992 list_add_tail(&vq->vq.list, &vdev->vqs); in __vring_new_virtqueue()
1212 list_for_each_entry(_vq, &dev->vqs, list) { in virtio_break_device()
/linux-4.19.296/include/linux/
Dvirtio_config.h76 struct virtqueue *vqs[], vq_callback_t *callbacks[],
189 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs() argument
193 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
198 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs_ctx() argument
202 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
Dvirtio.h135 struct list_head vqs; member
160 list_for_each_entry(vq, &vdev->vqs, list)
/linux-4.19.296/drivers/s390/virtio/
Dvirtio_ccw.c239 static unsigned long get_airq_indicator(struct virtqueue *vqs[], int nvqs, in get_airq_indicator() argument
267 (unsigned long)vqs[j]); in get_airq_indicator()
485 list_for_each_entry_safe(vq, n, &vdev->vqs, list) in virtio_ccw_del_vqs()
587 struct virtqueue *vqs[], int nvqs, in virtio_ccw_register_adapter_ind() argument
600 thinint_area->indicator = get_airq_indicator(vqs, nvqs, in virtio_ccw_register_adapter_ind()
635 struct virtqueue *vqs[], in virtio_ccw_find_vqs() argument
651 vqs[i] = virtio_ccw_setup_vq(vdev, i, callbacks[i], names[i], in virtio_ccw_find_vqs()
653 if (IS_ERR(vqs[i])) { in virtio_ccw_find_vqs()
654 ret = PTR_ERR(vqs[i]); in virtio_ccw_find_vqs()
655 vqs[i] = NULL; in virtio_ccw_find_vqs()
[all …]
/linux-4.19.296/drivers/misc/mic/vop/
Dvop_main.c269 list_for_each_entry_safe(vq, n, &dev->vqs, list) in vop_del_vqs()
376 struct virtqueue *vqs[], in vop_find_vqs() argument
393 vqs[i] = vop_find_vq(dev, i, callbacks[i], names[i], in vop_find_vqs()
395 if (IS_ERR(vqs[i])) { in vop_find_vqs()
396 err = PTR_ERR(vqs[i]); in vop_find_vqs()
447 list_for_each_entry(vq, &vdev->vdev.vqs, list) in vop_virtio_intr_handler()
/linux-4.19.296/drivers/char/
Dvirtio_console.c1873 struct virtqueue **vqs; in init_vqs() local
1880 vqs = kmalloc_array(nr_queues, sizeof(struct virtqueue *), GFP_KERNEL); in init_vqs()
1888 if (!vqs || !io_callbacks || !io_names || !portdev->in_vqs || in init_vqs()
1921 err = virtio_find_vqs(portdev->vdev, nr_queues, vqs, in init_vqs()
1928 portdev->in_vqs[0] = vqs[0]; in init_vqs()
1929 portdev->out_vqs[0] = vqs[1]; in init_vqs()
1932 portdev->c_ivq = vqs[j]; in init_vqs()
1933 portdev->c_ovq = vqs[j + 1]; in init_vqs()
1937 portdev->in_vqs[i] = vqs[j]; in init_vqs()
1938 portdev->out_vqs[i] = vqs[j + 1]; in init_vqs()
[all …]