Lines Matching refs:last_bdf

258 static inline unsigned long tbl_size(int entry_size, int last_bdf)  in tbl_size()  argument
261 get_order((last_bdf + 1) * entry_size); in tbl_size()
631 int last_devid, last_bdf = 0; in find_last_devid_acpi() local
644 if (last_devid > last_bdf) in find_last_devid_acpi()
645 last_bdf = last_devid; in find_last_devid_acpi()
651 return last_bdf; in find_last_devid_acpi()
733 for (i = 0; i <= pci_seg->last_bdf; ++i) in alloc_alias_table()
1141 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in __copy_device_table()
1404 for (dev_i = 0; dev_i <= pci_seg->last_bdf; ++dev_i) in init_iommu_from_acpi()
1632 int last_bdf; in alloc_pci_segment() local
1639 last_bdf = find_last_devid_acpi(ivrs_base, id); in alloc_pci_segment()
1640 if (last_bdf < 0) in alloc_pci_segment()
1647 pci_seg->last_bdf = last_bdf; in alloc_pci_segment()
1648 DUMP_printk("PCI segment : 0x%0x, last bdf : 0x%04x\n", id, last_bdf); in alloc_pci_segment()
1649 pci_seg->dev_table_size = tbl_size(DEV_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
1650 pci_seg->alias_table_size = tbl_size(ALIAS_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
1651 pci_seg->rlookup_table_size = tbl_size(RLOOKUP_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
2582 e->devid_end = pci_seg->last_bdf; in init_unity_map_range()
2649 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2664 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2679 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()