Lines Matching refs:pci_bus
86 struct pci_bus* bus = wrapped_bus->bus; in configure_visit_pci_dev()
168 struct pci_bus* bus = wrapped_bus->bus; in unconfigure_visit_pci_bus_phase2()
228 struct pci_bus *child; in shpchp_configure_device()
275 child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus); in shpchp_configure_device()
337 struct pci_bus fakebus; in shpchp_set_irq()
393 struct pci_bus lpci_bus, *pci_bus; in shpchp_save_config() local
398 pci_bus = &lpci_bus; in shpchp_save_config()
417 pci_bus->number = busnumber; in shpchp_save_config()
420 rc = pci_bus_read_config_dword(pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in shpchp_save_config()
423 rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code); in shpchp_save_config()
427 rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(device, 0), PCI_HEADER_TYPE, &header_type); in shpchp_save_config()
448 …rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &secondary_… in shpchp_save_config()
491 …rc = pci_bus_read_config_dword(pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) & (new_sl… in shpchp_save_config()
506 rc = pci_bus_read_config_dword(pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID); in shpchp_save_config()
512 rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(device, function), 0x0B, &class_code); in shpchp_save_config()
516 …rc = pci_bus_read_config_byte(pci_bus, PCI_DEVFN(device, function), PCI_HEADER_TYPE, &header_type); in shpchp_save_config()
569 struct pci_bus lpci_bus, *pci_bus; in shpchp_save_slot_config() local
572 pci_bus = &lpci_bus; in shpchp_save_slot_config()
573 pci_bus->number = new_slot->bus; in shpchp_save_slot_config()
577 pci_bus_read_config_dword(pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_VENDOR_ID, &ID); in shpchp_save_slot_config()
580 pci_bus_read_config_byte(pci_bus, PCI_DEVFN(new_slot->device, 0), 0x0B, &class_code); in shpchp_save_slot_config()
582 pci_bus_read_config_byte(pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_HEADER_TYPE, &header_type); in shpchp_save_slot_config()
594 …pci_bus_read_config_byte(pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, &secon… in shpchp_save_slot_config()
609 …pci_bus_read_config_dword(pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) & (n… in shpchp_save_slot_config()
622 pci_bus_read_config_dword(pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID); in shpchp_save_slot_config()
627 pci_bus_read_config_byte(pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code); in shpchp_save_slot_config()
629 …pci_bus_read_config_byte(pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &header_… in shpchp_save_slot_config()
677 struct pci_bus lpci_bus, *pci_bus; in shpchp_save_used_resources() local
680 pci_bus = &lpci_bus; in shpchp_save_used_resources()
686 pci_bus->number = func->bus; in shpchp_save_used_resources()
690 pci_bus_read_config_word (pci_bus, devfn, PCI_COMMAND, &save_command); in shpchp_save_used_resources()
695 pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); in shpchp_save_used_resources()
699 pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in shpchp_save_used_resources()
706 pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, command); in shpchp_save_used_resources()
709 pci_bus_read_config_byte (pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in shpchp_save_used_resources()
710 pci_bus_read_config_byte (pci_bus, devfn, PCI_SUBORDINATE_BUS, &temp_byte); in shpchp_save_used_resources()
723 pci_bus_read_config_byte (pci_bus, devfn, PCI_IO_BASE, &temp_byte); in shpchp_save_used_resources()
725 pci_bus_read_config_byte (pci_bus, devfn, PCI_IO_LIMIT, &temp_byte); in shpchp_save_used_resources()
741 pci_bus_read_config_word (pci_bus, devfn, PCI_MEMORY_BASE, &w_base); in shpchp_save_used_resources()
742 pci_bus_read_config_word (pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in shpchp_save_used_resources()
756 pci_bus_read_config_word (pci_bus, devfn, PCI_PREF_MEMORY_BASE, &w_base); in shpchp_save_used_resources()
757 pci_bus_read_config_word (pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in shpchp_save_used_resources()
775 pci_bus_read_config_dword (pci_bus, devfn, cloop, &save_base); in shpchp_save_used_resources()
778 pci_bus_write_config_dword (pci_bus, devfn, cloop, temp_register); in shpchp_save_used_resources()
779 pci_bus_read_config_dword (pci_bus, devfn, cloop, &temp_register); in shpchp_save_used_resources()
782 pci_bus_write_config_dword (pci_bus, devfn, cloop, save_base); in shpchp_save_used_resources()
845 pci_bus_read_config_dword(pci_bus, devfn, cloop+4, &temp_register2); in shpchp_save_used_resources()