Lines Matching refs:devs
1061 struct vfio_devices *devs = data; in vfio_pci_get_devs() local
1064 if (devs->cur_index == devs->max_index) in vfio_pci_get_devs()
1076 devs->devices[devs->cur_index++] = device; in vfio_pci_get_devs()
1094 struct vfio_devices devs = { .cur_index = 0 }; in vfio_pci_try_bus_reset() local
1108 devs.max_index = i; in vfio_pci_try_bus_reset()
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()
1114 vfio_pci_get_devs, &devs, slot)) in vfio_pci_try_bus_reset()
1117 for (i = 0; i < devs.cur_index; i++) { in vfio_pci_try_bus_reset()
1118 tmp = vfio_device_data(devs.devices[i]); in vfio_pci_try_bus_reset()
1130 for (i = 0; i < devs.cur_index; 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()