Lines Matching refs:last_bdf
255 static inline unsigned long tbl_size(int entry_size, int last_bdf) in tbl_size() argument
258 get_order((last_bdf + 1) * entry_size); in tbl_size()
616 int last_devid, last_bdf = 0; in find_last_devid_acpi() local
629 if (last_devid > last_bdf) in find_last_devid_acpi()
630 last_bdf = last_devid; in find_last_devid_acpi()
636 return last_bdf; in find_last_devid_acpi()
718 for (i = 0; i <= pci_seg->last_bdf; ++i) in alloc_alias_table()
1076 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in __copy_device_table()
1339 for (dev_i = 0; dev_i <= pci_seg->last_bdf; ++dev_i) in init_iommu_from_acpi()
1567 int last_bdf; in alloc_pci_segment() local
1574 last_bdf = find_last_devid_acpi(ivrs_base, id); in alloc_pci_segment()
1575 if (last_bdf < 0) in alloc_pci_segment()
1582 pci_seg->last_bdf = last_bdf; in alloc_pci_segment()
1583 DUMP_printk("PCI segment : 0x%0x, last bdf : 0x%04x\n", id, last_bdf); in alloc_pci_segment()
1584 pci_seg->dev_table_size = tbl_size(DEV_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
1585 pci_seg->alias_table_size = tbl_size(ALIAS_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
1586 pci_seg->rlookup_table_size = tbl_size(RLOOKUP_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
2490 e->devid_end = pci_seg->last_bdf; in init_unity_map_range()
2557 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2572 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2587 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()