Lines Matching refs:devfn
162 fakedev->devfn = dev_num << 3; in cpqhp_set_irq()
239 tdevice = cpqhp_routing_table->slots[loop].devfn; in PCI_GetBusDevHelper()
308 u16 devfn; in cpqhp_save_config() local
406 devfn = (new_slot->device << 3) | new_slot->function; in cpqhp_save_config()
408 new_slot->bus, devfn); in cpqhp_save_config()
554 unsigned int devfn; in cpqhp_save_base_addr_length() local
560 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_base_addr_length()
563 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_save_base_addr_length()
566 pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_save_base_addr_length()
587 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
588 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
623 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
624 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
699 unsigned int devfn; in cpqhp_save_used_resources() local
705 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_used_resources()
708 pci_bus_read_config_word(pci_bus, devfn, PCI_COMMAND, &save_command); in cpqhp_save_used_resources()
712 pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); in cpqhp_save_used_resources()
715 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_save_used_resources()
720 pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, command); in cpqhp_save_used_resources()
721 pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_save_used_resources()
722 pci_bus_read_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, &temp_byte); in cpqhp_save_used_resources()
735 pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_BASE, &b_base); in cpqhp_save_used_resources()
736 pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_LIMIT, &b_length); in cpqhp_save_used_resources()
751 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_BASE, &w_base); in cpqhp_save_used_resources()
752 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
767 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, &w_base); in cpqhp_save_used_resources()
768 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
783 pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
786 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
787 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
855 pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
858 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
859 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
952 unsigned int devfn; in cpqhp_configure_board() local
958 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_configure_board()
964 pci_bus_write_config_dword(pci_bus, devfn, cloop, func->config_space[cloop >> 2]); in cpqhp_configure_board()
966 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_configure_board()
970 pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_configure_board()
990 pci_bus_read_config_dword(pci_bus, devfn, cloop, &temp); in cpqhp_configure_board()
1031 unsigned int devfn; in cpqhp_valid_replace() local
1040 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_valid_replace()
1042 pci_bus_read_config_dword(pci_bus, devfn, PCI_VENDOR_ID, &temp_register); in cpqhp_valid_replace()
1052 pci_bus_read_config_dword(pci_bus, devfn, PCI_CLASS_REVISION, &temp_register); in cpqhp_valid_replace()
1059 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_valid_replace()
1068 pci_bus_write_config_dword(pci_bus, devfn, PCI_PRIMARY_BUS, temp_register); in cpqhp_valid_replace()
1086 pci_bus_read_config_dword(pci_bus, devfn, PCI_SUBSYSTEM_VENDOR_ID, &temp_register); in cpqhp_valid_replace()
1100 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_valid_replace()
1101 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_valid_replace()