search for: per_vq_irq

Displaying 6 results from an estimated 6 matches for "per_vq_irq".

2014 Nov 06
2
[RFC PATCH] virtio-mmio: support for multiple irqs
...y_safe(vq, n, &vdev->vqs, list) >> vm_del_vq(vq); >> >> - free_irq(platform_get_irq(vm_dev->pdev, 0), vm_dev); >> + vm_free_irqs(vdev); >> +} >> + >> +static int vm_request_multiple_irqs(struct virtio_device *vdev, int nirqs, >> + bool per_vq_irq) >> +{ >> + int err = -ENOMEM; >> + struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); >> + unsigned i, v; >> + int irq = 0; >> + >> + vm_dev->num_irqs = nirqs; >> + vm_dev->used_irqs = 0; >> + >> + vm_dev->vm_vq_nam...
2014 Nov 06
2
[RFC PATCH] virtio-mmio: support for multiple irqs
...y_safe(vq, n, &vdev->vqs, list) >> vm_del_vq(vq); >> >> - free_irq(platform_get_irq(vm_dev->pdev, 0), vm_dev); >> + vm_free_irqs(vdev); >> +} >> + >> +static int vm_request_multiple_irqs(struct virtio_device *vdev, int nirqs, >> + bool per_vq_irq) >> +{ >> + int err = -ENOMEM; >> + struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); >> + unsigned i, v; >> + int irq = 0; >> + >> + vm_dev->num_irqs = nirqs; >> + vm_dev->used_irqs = 0; >> + >> + vm_dev->vm_vq_nam...
2014 Nov 06
0
[RFC PATCH] virtio-mmio: support for multiple irqs
...> > list_for_each_entry_safe(vq, n, &vdev->vqs, list) > vm_del_vq(vq); > > - free_irq(platform_get_irq(vm_dev->pdev, 0), vm_dev); > + vm_free_irqs(vdev); > +} > + > +static int vm_request_multiple_irqs(struct virtio_device *vdev, int nirqs, > + bool per_vq_irq) > +{ > + int err = -ENOMEM; > + struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); > + unsigned i, v; > + int irq = 0; > + > + vm_dev->num_irqs = nirqs; > + vm_dev->used_irqs = 0; > + > + vm_dev->vm_vq_names = kmalloc_array(nirqs, sizeof(*vm_dev...
2014 Nov 06
0
[RFC PATCH] virtio-mmio: support for multiple irqs
...gt; >> vm_del_vq(vq); > >> > >> - free_irq(platform_get_irq(vm_dev->pdev, 0), vm_dev); > >> + vm_free_irqs(vdev); > >> +} > >> + > >> +static int vm_request_multiple_irqs(struct virtio_device *vdev, int nirqs, > >> + bool per_vq_irq) > >> +{ > >> + int err = -ENOMEM; > >> + struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); > >> + unsigned i, v; > >> + int irq = 0; > >> + > >> + vm_dev->num_irqs = nirqs; > >> + vm_dev->used_irqs = 0; &g...
2014 Nov 04
6
[RFC PATCH] virtio-mmio: support for multiple irqs
...rtio_device *vdev) +{ struct virtqueue *vq, *n; list_for_each_entry_safe(vq, n, &vdev->vqs, list) vm_del_vq(vq); - free_irq(platform_get_irq(vm_dev->pdev, 0), vm_dev); + vm_free_irqs(vdev); +} + +static int vm_request_multiple_irqs(struct virtio_device *vdev, int nirqs, + bool per_vq_irq) +{ + int err = -ENOMEM; + struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); + unsigned i, v; + int irq = 0; + + vm_dev->num_irqs = nirqs; + vm_dev->used_irqs = 0; + + vm_dev->vm_vq_names = kmalloc_array(nirqs, sizeof(*vm_dev->vm_vq_names), + GFP_KERNEL); + if (!v...
2014 Nov 04
6
[RFC PATCH] virtio-mmio: support for multiple irqs
...rtio_device *vdev) +{ struct virtqueue *vq, *n; list_for_each_entry_safe(vq, n, &vdev->vqs, list) vm_del_vq(vq); - free_irq(platform_get_irq(vm_dev->pdev, 0), vm_dev); + vm_free_irqs(vdev); +} + +static int vm_request_multiple_irqs(struct virtio_device *vdev, int nirqs, + bool per_vq_irq) +{ + int err = -ENOMEM; + struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); + unsigned i, v; + int irq = 0; + + vm_dev->num_irqs = nirqs; + vm_dev->used_irqs = 0; + + vm_dev->vm_vq_names = kmalloc_array(nirqs, sizeof(*vm_dev->vm_vq_names), + GFP_KERNEL); + if (!v...