Lines Matching refs:bdf
287 pci_dev_t bdf; in pci_hose_find_devices() local
290 for (bdf = PCI_BDF(busnum, 0, 0); in pci_hose_find_devices()
291 bdf < PCI_BDF(busnum + 1, 0, 0); in pci_hose_find_devices()
292 bdf += PCI_BDF(0, 0, 1)) { in pci_hose_find_devices()
293 if (pci_skip_dev(hose, bdf)) in pci_hose_find_devices()
296 if (!PCI_FUNC(bdf)) { in pci_hose_find_devices()
297 pci_read_config_byte(bdf, PCI_HEADER_TYPE, in pci_hose_find_devices()
305 pci_read_config_word(bdf, PCI_VENDOR_ID, &vendor); in pci_hose_find_devices()
306 pci_read_config_word(bdf, PCI_DEVICE_ID, &device); in pci_hose_find_devices()
312 return bdf; in pci_hose_find_devices()
326 pci_dev_t bdf; in pci_find_class() local
336 for (bdf = PCI_BDF(bus, devnum, 0); in pci_find_class()
337 bdf <= PCI_BDF(bus, devnum, in pci_find_class()
339 bdf += PCI_BDF(0, 0, 1)) { in pci_find_class()
340 pci_read_config_dword(bdf, PCI_CLASS_REVISION, in pci_find_class()
356 return bdf; in pci_find_class()