Lines Matching refs:dev_num
161 int cpqhp_set_irq (u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) in cpqhp_set_irq() argument
178 fakedev->devfn = dev_num << 3; in cpqhp_set_irq()
182 __func__, dev_num, bus_num, int_pin, irq_num); in cpqhp_set_irq()
206 static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 *dev_num) in PCI_ScanBusForNonBridge() argument
221 *dev_num = tdevice; in PCI_ScanBusForNonBridge()
244 static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobri… in PCI_GetBusDevHelper() argument
258 *dev_num = tdevice; in PCI_GetBusDevHelper()
260 pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper()
264 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper()
265 pci_bus_read_config_dword (ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper()
269 pci_bus_read_config_byte (ctrl->pci_bus, *dev_num, PCI_SECONDARY_BUS, &tbus); in PCI_GetBusDevHelper()
271 if (PCI_ScanBusForNonBridge(ctrl, tbus, dev_num) == 0) { in PCI_GetBusDevHelper()
283 int cpqhp_get_bus_dev (struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot) in cpqhp_get_bus_dev() argument
286 return PCI_GetBusDevHelper(ctrl, bus_num, dev_num, slot, 0); in cpqhp_get_bus_dev()