Lines Matching refs:devices
329 struct vfio_pci_dependent_device *devices; member
344 fill->devices[fill->cur].group_id = iommu_group_id(iommu_group); in vfio_pci_fill_devs()
345 fill->devices[fill->cur].segment = pci_domain_nr(pdev->bus); in vfio_pci_fill_devs()
346 fill->devices[fill->cur].bus = pdev->bus->number; in vfio_pci_fill_devs()
347 fill->devices[fill->cur].devfn = pdev->devfn; in vfio_pci_fill_devs()
616 struct vfio_pci_dependent_device *devices = NULL; in vfio_pci_ioctl() local
649 if (hdr.argsz < sizeof(hdr) + (fill.max * sizeof(*devices))) { in vfio_pci_ioctl()
655 devices = kcalloc(fill.max, sizeof(*devices), GFP_KERNEL); in vfio_pci_ioctl()
656 if (!devices) in vfio_pci_ioctl()
659 fill.devices = devices; in vfio_pci_ioctl()
678 if (copy_to_user((void __user *)(arg + minsz), devices, in vfio_pci_ioctl()
679 hdr.count * sizeof(*devices))) in vfio_pci_ioctl()
683 kfree(devices); in vfio_pci_ioctl()
1054 struct vfio_device **devices; member
1076 devs->devices[devs->cur_index++] = device; in vfio_pci_get_devs()
1109 devs.devices = kcalloc(i, sizeof(struct vfio_device *), GFP_KERNEL); in vfio_pci_try_bus_reset()
1110 if (!devs.devices) in vfio_pci_try_bus_reset()
1118 tmp = vfio_device_data(devs.devices[i]); in vfio_pci_try_bus_reset()
1131 tmp = vfio_device_data(devs.devices[i]); in vfio_pci_try_bus_reset()
1138 vfio_device_put(devs.devices[i]); in vfio_pci_try_bus_reset()
1141 kfree(devs.devices); in vfio_pci_try_bus_reset()