/linux-4.19.296/drivers/virtio/ |
D | virtio_pci_common.c | 206 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 …]
|
D | virtio_pci_common.h | 83 struct virtio_pci_vq_info **vqs; member 134 struct virtqueue *vqs[], vq_callback_t *callbacks[],
|
D | virtio_input.c | 170 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()
|
D | virtio_mmio.c | 347 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()
|
D | virtio_balloon.c | 394 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()
|
D | virtio_pci_modern.c | 406 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()
|
D | virtio.c | 350 INIT_LIST_HEAD(&dev->vqs); in register_virtio_device()
|
D | virtio_ring.c | 992 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/ |
D | virtio_config.h | 76 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()
|
D | virtio.h | 135 struct list_head vqs; member 160 list_for_each_entry(vq, &vdev->vqs, list)
|
/linux-4.19.296/drivers/s390/virtio/ |
D | virtio_ccw.c | 239 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/ |
D | vop_main.c | 269 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/ |
D | virtio_console.c | 1873 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 …]
|