Lines Matching defs:fill
667 struct vfio_pci_fill_info *fill = data;
670 if (fill->cur == fill->max)
677 fill->devices[fill->cur].group_id = iommu_group_id(iommu_group);
678 fill->devices[fill->cur].segment = pci_domain_nr(pdev->bus);
679 fill->devices[fill->cur].bus = pdev->bus->number;
680 fill->devices[fill->cur].devfn = pdev->devfn;
681 fill->cur++;
1095 struct vfio_pci_fill_info fill = { 0 };
1119 &fill.max, slot);
1123 WARN_ON(!fill.max); /* Should always be at least one */
1126 * If there's enough space, fill it now, otherwise return
1129 if (hdr.argsz < sizeof(hdr) + (fill.max * sizeof(*devices))) {
1131 hdr.count = fill.max;
1135 devices = kcalloc(fill.max, sizeof(*devices), GFP_KERNEL);
1139 fill.devices = devices;
1143 &fill, slot);
1147 * we may come up short of fill.max. If a device was
1151 hdr.count = fill.cur;
1632 * we ask it to fill the same range again.