Lines Matching refs:last_bdf
607 int last_devid, last_bdf = 0; in find_last_devid_acpi() local
620 if (last_devid > last_bdf) in find_last_devid_acpi()
621 last_bdf = last_devid; in find_last_devid_acpi()
627 return last_bdf; in find_last_devid_acpi()
663 pci_seg->last_bdf + 1); in alloc_rlookup_table()
679 pci_seg->last_bdf + 1); in alloc_irq_lookup_table()
697 pci_seg->last_bdf + 1); in alloc_alias_table()
704 for (i = 0; i <= pci_seg->last_bdf; ++i) in alloc_alias_table()
1184 for (devid = 0; devid <= pci_seg->last_bdf; devid++) { in __reuse_device_table()
1491 set_dev_entry_from_acpi_range(iommu, 0, pci_seg->last_bdf, e->flags, 0); in init_iommu_from_acpi()
1710 int last_bdf; in alloc_pci_segment() local
1717 last_bdf = find_last_devid_acpi(ivrs_base, id); in alloc_pci_segment()
1718 if (last_bdf < 0) in alloc_pci_segment()
1725 pci_seg->last_bdf = last_bdf; in alloc_pci_segment()
1726 DUMP_printk("PCI segment : 0x%0x, last bdf : 0x%04x\n", id, last_bdf); in alloc_pci_segment()
1728 max(roundup_pow_of_two((last_bdf + 1) * DEV_TABLE_ENTRY_SIZE), in alloc_pci_segment()
2657 e->devid_end = pci_seg->last_bdf; in init_unity_map_range()
2724 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2739 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2754 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()