Lines Matching refs:last_bdf
604 int last_devid, last_bdf = 0; in find_last_devid_acpi() local
617 if (last_devid > last_bdf) in find_last_devid_acpi()
618 last_bdf = last_devid; in find_last_devid_acpi()
624 return last_bdf; in find_last_devid_acpi()
656 pci_seg->rlookup_table = kvcalloc(pci_seg->last_bdf + 1, in alloc_rlookup_table()
673 pci_seg->irq_lookup_table = kvcalloc(pci_seg->last_bdf + 1, in alloc_irq_lookup_table()
692 pci_seg->alias_table = kvmalloc_array(pci_seg->last_bdf + 1, in alloc_alias_table()
701 for (i = 0; i <= pci_seg->last_bdf; ++i) in alloc_alias_table()
1034 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in __copy_device_table()
1365 set_dev_entry_from_acpi_range(iommu, 0, pci_seg->last_bdf, e->flags, 0); in init_iommu_from_acpi()
1584 int last_bdf; in alloc_pci_segment() local
1591 last_bdf = find_last_devid_acpi(ivrs_base, id); in alloc_pci_segment()
1592 if (last_bdf < 0) in alloc_pci_segment()
1599 pci_seg->last_bdf = last_bdf; in alloc_pci_segment()
1600 DUMP_printk("PCI segment : 0x%0x, last bdf : 0x%04x\n", id, last_bdf); in alloc_pci_segment()
1602 max(roundup_pow_of_two((last_bdf + 1) * DEV_TABLE_ENTRY_SIZE), in alloc_pci_segment()
2530 e->devid_end = pci_seg->last_bdf; in init_unity_map_range()
2597 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in init_device_table_dma()
2612 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) { in uninit_device_table_dma()
2627 for (devid = 0; devid <= pci_seg->last_bdf; ++devid) in init_device_table()