Lines Matching refs:pci_bus
72 struct pci_bus *child; in cpqhp_configure_device()
135 static int PCI_RefinedAccessConfig(struct pci_bus *bus, unsigned int devfn, u8 offset, u32 *value) in PCI_RefinedAccessConfig()
160 struct pci_bus *fakebus; in cpqhp_set_irq()
205 ctrl->pci_bus->number = bus_num; in PCI_ScanBusForNonBridge()
209 if (PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work) == -1) in PCI_ScanBusForNonBridge()
221 if (PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work) == -1) in PCI_ScanBusForNonBridge()
226 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(tdevice, 0), PCI_SECONDARY_BUS, &tbus); in PCI_ScanBusForNonBridge()
252 ctrl->pci_bus->number = tbus; in PCI_GetBusDevHelper()
253 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper()
258 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper()
262 pci_bus_read_config_byte(ctrl->pci_bus, *dev_num, PCI_SECONDARY_BUS, &tbus); in PCI_GetBusDevHelper()
331 ctrl->pci_bus->number = busnumber; in cpqhp_save_config()
334 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
355 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code); in cpqhp_save_config()
359 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_HEADER_TYPE, &header_type); in cpqhp_save_config()
377 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &seco… in cpqhp_save_config()
389 ctrl->pci_bus->number = busnumber; in cpqhp_save_config()
418 …rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(n… in cpqhp_save_config()
433 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
438 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), 0x0B, &class_code); in cpqhp_save_config()
442 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_HEADER_TYPE, &header… in cpqhp_save_config()
479 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
480 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_slot_config()
485 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), 0x0B, &class_code); in cpqhp_save_slot_config()
486 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_HEADER_TYPE, &header_t… in cpqhp_save_slot_config()
496 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, … in cpqhp_save_slot_config()
506 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
513 …pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *… in cpqhp_save_slot_config()
523 …pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID… in cpqhp_save_slot_config()
528 … pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code); in cpqhp_save_slot_config()
529 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &h… in cpqhp_save_slot_config()
560 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_save_base_addr_length() local
566 pci_bus->number = func->bus; in cpqhp_save_base_addr_length()
570 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_save_base_addr_length()
573 pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_save_base_addr_length()
586 pci_bus->number = func->bus; in cpqhp_save_base_addr_length()
594 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
595 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
630 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
631 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
705 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_save_used_resources() local
711 pci_bus->number = func->bus; in cpqhp_save_used_resources()
715 pci_bus_read_config_word(pci_bus, devfn, PCI_COMMAND, &save_command); in cpqhp_save_used_resources()
719 pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); in cpqhp_save_used_resources()
722 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_save_used_resources()
727 pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, command); in cpqhp_save_used_resources()
728 pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_save_used_resources()
729 pci_bus_read_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, &temp_byte); in cpqhp_save_used_resources()
742 pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_BASE, &b_base); in cpqhp_save_used_resources()
743 pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_LIMIT, &b_length); in cpqhp_save_used_resources()
758 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_BASE, &w_base); in cpqhp_save_used_resources()
759 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
774 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, &w_base); in cpqhp_save_used_resources()
775 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
790 pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
793 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
794 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
862 pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
865 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
866 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
958 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_configure_board() local
964 pci_bus->number = func->bus; in cpqhp_configure_board()
971 pci_bus_write_config_dword(pci_bus, devfn, cloop, func->config_space[cloop >> 2]); in cpqhp_configure_board()
973 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_configure_board()
977 pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_configure_board()
997 pci_bus_read_config_dword(pci_bus, devfn, cloop, &temp); in cpqhp_configure_board()
1037 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_valid_replace() local
1046 pci_bus->number = func->bus; in cpqhp_valid_replace()
1049 pci_bus_read_config_dword(pci_bus, devfn, PCI_VENDOR_ID, &temp_register); in cpqhp_valid_replace()
1059 pci_bus_read_config_dword(pci_bus, devfn, PCI_CLASS_REVISION, &temp_register); in cpqhp_valid_replace()
1066 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_valid_replace()
1075 pci_bus_write_config_dword(pci_bus, devfn, PCI_PRIMARY_BUS, temp_register); in cpqhp_valid_replace()
1093 pci_bus_read_config_dword(pci_bus, devfn, PCI_SUBSYSTEM_VENDOR_ID, &temp_register); in cpqhp_valid_replace()
1107 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_valid_replace()
1108 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_valid_replace()
1266 ctrl->pci_bus->number = primary_bus; in cpqhp_find_available_resources()
1267 pci_bus_read_config_dword(ctrl->pci_bus, dev_func, PCI_VENDOR_ID, &temp_dword); in cpqhp_find_available_resources()