Lines Matching refs:devfn
142 static int PCI_RefinedAccessConfig(struct pci_bus *bus, unsigned int devfn, u8 offset, u32 *value) in PCI_RefinedAccessConfig() argument
146 if (pci_bus_read_config_dword (bus, devfn, PCI_VENDOR_ID, &vendID) == -1) in PCI_RefinedAccessConfig()
150 return pci_bus_read_config_dword (bus, devfn, offset, value); in PCI_RefinedAccessConfig()
178 fakedev->devfn = dev_num << 3; in cpqhp_set_irq()
253 tdevice = cpqhp_routing_table->slots[loop].devfn; in PCI_GetBusDevHelper()
565 unsigned int devfn; in cpqhp_save_base_addr_length() local
571 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_base_addr_length()
574 pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_save_base_addr_length()
577 pci_bus_read_config_byte (pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_save_base_addr_length()
598 pci_bus_write_config_dword (pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
599 pci_bus_read_config_dword (pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
634 pci_bus_write_config_dword (pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
635 pci_bus_read_config_dword (pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
710 unsigned int devfn; in cpqhp_save_used_resources() local
716 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_used_resources()
719 pci_bus_read_config_word(pci_bus, devfn, PCI_COMMAND, &save_command); in cpqhp_save_used_resources()
723 pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); in cpqhp_save_used_resources()
726 pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_save_used_resources()
731 pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, command); in cpqhp_save_used_resources()
732 pci_bus_read_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_save_used_resources()
733 pci_bus_read_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, &temp_byte); in cpqhp_save_used_resources()
746 pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_BASE, &b_base); in cpqhp_save_used_resources()
747 pci_bus_read_config_byte(pci_bus, devfn, PCI_IO_LIMIT, &b_length); in cpqhp_save_used_resources()
762 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_BASE, &w_base); in cpqhp_save_used_resources()
763 pci_bus_read_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
778 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, &w_base); in cpqhp_save_used_resources()
779 pci_bus_read_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, &w_length); in cpqhp_save_used_resources()
794 pci_bus_read_config_dword (pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
797 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
798 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
866 pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
869 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
870 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
963 unsigned int devfn; in cpqhp_configure_board() local
969 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_configure_board()
975 pci_bus_write_config_dword (pci_bus, devfn, cloop, func->config_space[cloop >> 2]); in cpqhp_configure_board()
977 pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_configure_board()
981 pci_bus_read_config_byte (pci_bus, devfn, PCI_SECONDARY_BUS, &secondary_bus); in cpqhp_configure_board()
1001 pci_bus_read_config_dword (pci_bus, devfn, cloop, &temp); in cpqhp_configure_board()
1042 unsigned int devfn; in cpqhp_valid_replace() local
1051 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_valid_replace()
1053 pci_bus_read_config_dword (pci_bus, devfn, PCI_VENDOR_ID, &temp_register); in cpqhp_valid_replace()
1063 pci_bus_read_config_dword (pci_bus, devfn, PCI_CLASS_REVISION, &temp_register); in cpqhp_valid_replace()
1070 pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_valid_replace()
1079 pci_bus_write_config_dword (pci_bus, devfn, PCI_PRIMARY_BUS, temp_register); in cpqhp_valid_replace()
1097 pci_bus_read_config_dword (pci_bus, devfn, PCI_SUBSYSTEM_VENDOR_ID, &temp_register); in cpqhp_valid_replace()
1111 pci_bus_write_config_dword (pci_bus, devfn, cloop, temp_register); in cpqhp_valid_replace()
1112 pci_bus_read_config_dword (pci_bus, devfn, cloop, &base); in cpqhp_valid_replace()