Lines Matching defs:index
53 unsigned long index)
55 return xa_load(&vdev->ctx, index);
59 struct vfio_pci_irq_ctx *ctx, unsigned long index)
61 xa_erase(&vdev->ctx, index);
66 vfio_irq_ctx_alloc(struct vfio_pci_core_device *vdev, unsigned long index)
75 ret = xa_insert(&vdev->ctx, index, ctx, GFP_KERNEL_ACCOUNT);
444 return map.index < 0 ? map.index : map.virq;
588 unsigned index, unsigned start,
619 unsigned index, unsigned start,
639 unsigned index, unsigned start,
686 unsigned index, unsigned start,
691 bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX) ? true : false;
693 if (irq_is(vdev, index) && !count && (flags & VFIO_IRQ_SET_DATA_NONE)) {
698 if (!(irq_is(vdev, index) || is_irq_none(vdev)))
705 if (vdev->irq_type == index)
720 if (!irq_is(vdev, index))
794 unsigned index, unsigned start,
797 if (index != VFIO_PCI_ERR_IRQ_INDEX || start != 0 || count > 1)
805 unsigned index, unsigned start,
808 if (index != VFIO_PCI_REQ_IRQ_INDEX || start != 0 || count > 1)
816 unsigned index, unsigned start, unsigned count,
819 int (*func)(struct vfio_pci_core_device *vdev, unsigned index,
823 switch (index) {
869 return func(vdev, index, start, count, flags, data);