Lines Matching refs:devfn
110 struct rt_pci_device *rt_pci_scan_single_device(struct rt_pci_bus *bus, rt_uint32_t devfn) in rt_pci_scan_single_device() argument
121 err = rt_pci_bus_read_config_u16(bus, devfn, PCIR_VENDOR, &vendor); in rt_pci_scan_single_device()
122 rt_pci_bus_read_config_u16(bus, devfn, PCIR_DEVICE, &device); in rt_pci_scan_single_device()
135 pdev->devfn = devfn; in rt_pci_scan_single_device()
141 RT_PCI_SLOT(pdev->devfn), RT_PCI_FUNC(pdev->devfn)); in rt_pci_scan_single_device()
209 if (!rt_pci_is_pcie(pdev) || pdev->devfn) in pci_configure_ari()
343 pdev->bus->number, RT_PCI_SLOT(pdev->devfn), RT_PCI_FUNC(pdev->devfn)); in rt_pci_setup_device()
678 rt_size_t rt_pci_scan_slot(struct rt_pci_bus *bus, rt_uint32_t devfn) in rt_pci_scan_slot() argument
688 if (devfn > 0 && only_one_child(bus)) in rt_pci_scan_slot()
695 pdev = rt_pci_scan_single_device(bus, devfn + func); in rt_pci_scan_slot()
729 for (rt_uint32_t devfn = 0; in rt_pci_scan_child_buses() local
730 devfn < RT_PCI_DEVFN(RT_PCI_DEVICE_MAX - 1, RT_PCI_FUNCTION_MAX - 1); in rt_pci_scan_child_buses()
731 devfn += RT_PCI_FUNCTION_MAX) in rt_pci_scan_child_buses()
733 rt_pci_scan_slot(bus, devfn); in rt_pci_scan_child_buses()