Lines Matching +full:- +full:- +full:disable +full:- +full:cloop
1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
46 endp = (end - sizeof(struct hrt) + 1); in detect_HRT_floating_pointer()
77 if (func->pci_dev == NULL) in cpqhp_configure_device()
78 func->pci_dev = pci_get_domain_bus_and_slot(0, func->bus, in cpqhp_configure_device()
79 PCI_DEVFN(func->device, in cpqhp_configure_device()
80 func->function)); in cpqhp_configure_device()
83 if (func->pci_dev == NULL) { in cpqhp_configure_device()
86 num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function)); in cpqhp_configure_device()
88 pci_bus_add_devices(ctrl->pci_dev->bus); in cpqhp_configure_device()
90 func->pci_dev = pci_get_domain_bus_and_slot(0, func->bus, in cpqhp_configure_device()
91 PCI_DEVFN(func->device, in cpqhp_configure_device()
92 func->function)); in cpqhp_configure_device()
93 if (func->pci_dev == NULL) { in cpqhp_configure_device()
99 if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { in cpqhp_configure_device()
100 pci_hp_add_bridge(func->pci_dev); in cpqhp_configure_device()
101 child = func->pci_dev->subordinate; in cpqhp_configure_device()
106 pci_dev_put(func->pci_dev); in cpqhp_configure_device()
118 dbg("%s: bus/dev/func = %x/%x/%x\n", __func__, func->bus, func->device, func->function); in cpqhp_unconfigure_device()
123 func->bus, in cpqhp_unconfigure_device()
124 PCI_DEVFN(func->device, in cpqhp_unconfigure_device()
170 return -ENOMEM; in cpqhp_set_irq()
173 fakedev->devfn = dev_num << 3; in cpqhp_set_irq()
174 fakedev->bus = fakebus; in cpqhp_set_irq()
175 fakebus->number = bus_num; in cpqhp_set_irq()
178 rc = pcibios_set_irq_routing(fakedev, int_pin - 1, irq_num); in cpqhp_set_irq()
210 ctrl->pci_bus->number = bus_num; in PCI_ScanBusForNonBridge()
214 ret = PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work); in PCI_ScanBusForNonBridge()
227 ret = PCI_RefinedAccessConfig(ctrl->pci_bus, tdevice, 0x08, &work); in PCI_ScanBusForNonBridge()
233 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(tdevice, 0), PCI_SECONDARY_BUS, &tbus); in PCI_ScanBusForNonBridge()
240 return -1; in PCI_ScanBusForNonBridge()
252 tbus = cpqhp_routing_table->slots[loop].bus; in PCI_GetBusDevHelper()
253 tdevice = cpqhp_routing_table->slots[loop].devfn; in PCI_GetBusDevHelper()
254 tslot = cpqhp_routing_table->slots[loop].slot; in PCI_GetBusDevHelper()
259 ctrl->pci_bus->number = tbus; in PCI_GetBusDevHelper()
260 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); 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()
279 return -1; in PCI_GetBusDevHelper()
300 * Note: For non-hot plug buses, the slot # saved is the device #
319 int cloop = 0; in cpqhp_save_config() local
331 LastSupported = FirstSupported + (is_hot_plug & 0x0F) - 1; in cpqhp_save_config()
338 ctrl->pci_bus->number = busnumber; in cpqhp_save_config()
341 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
352 new_slot->bus = (u8) busnumber; in cpqhp_save_config()
353 new_slot->device = (u8) device; in cpqhp_save_config()
354 new_slot->function = 0; in cpqhp_save_config()
355 new_slot->is_a_board = 0; in cpqhp_save_config()
356 new_slot->presence_save = 0; in cpqhp_save_config()
357 new_slot->switch_save = 0; in cpqhp_save_config()
362 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), 0x0B, &class_code); in cpqhp_save_config()
366 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, 0), PCI_HEADER_TYPE, &header_type); in cpqhp_save_config()
370 /* If multi-function device, set max_functions to 8 */ in cpqhp_save_config()
384 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &seco… in cpqhp_save_config()
396 ctrl->pci_bus->number = busnumber; in cpqhp_save_config()
403 (new_slot->function != (u8) function)) in cpqhp_save_config()
413 new_slot->bus = (u8) busnumber; in cpqhp_save_config()
414 new_slot->device = (u8) device; in cpqhp_save_config()
415 new_slot->function = (u8) function; in cpqhp_save_config()
416 new_slot->is_a_board = 1; in cpqhp_save_config()
417 new_slot->switch_save = 0x10; in cpqhp_save_config()
419 new_slot->status = DevError; in cpqhp_save_config()
420 devfn = (new_slot->device << 3) | new_slot->function; in cpqhp_save_config()
421 new_slot->pci_dev = pci_get_domain_bus_and_slot(0, in cpqhp_save_config()
422 new_slot->bus, devfn); in cpqhp_save_config()
424 for (cloop = 0; cloop < 0x20; cloop++) { in cpqhp_save_config()
425 … pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(new_s… in cpqhp_save_config()
430 pci_dev_put(new_slot->pci_dev); in cpqhp_save_config()
440 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID); in cpqhp_save_config()
445 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), 0x0B, &class_code); in cpqhp_save_config()
449 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_HEADER_TYPE, &header… in cpqhp_save_config()
481 int cloop; in cpqhp_save_slot_config() local
486 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
487 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_VENDOR_ID, &ID); in cpqhp_save_slot_config()
492 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), 0x0B, &class_code); in cpqhp_save_slot_config()
493 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, 0), PCI_HEADER_TYPE, &header_t… in cpqhp_save_slot_config()
495 if (header_type & 0x80) /* Multi-function device */ in cpqhp_save_slot_config()
503 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, … in cpqhp_save_slot_config()
513 ctrl->pci_bus->number = new_slot->bus; in cpqhp_save_slot_config()
517 new_slot->status = 0; in cpqhp_save_slot_config()
519 for (cloop = 0; cloop < 0x20; cloop++) in cpqhp_save_slot_config()
520 …bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) &(… in cpqhp_save_slot_config()
530 …pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID… in cpqhp_save_slot_config()
535 … pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code); in cpqhp_save_slot_config()
536 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &h… in cpqhp_save_slot_config()
557 u8 cloop; in cpqhp_save_base_addr_length() local
567 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_save_base_addr_length()
570 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_save_base_addr_length()
573 pci_bus->number = func->bus; in cpqhp_save_base_addr_length()
574 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_base_addr_length()
591 next = next->next; in cpqhp_save_base_addr_length()
593 pci_bus->number = func->bus; in cpqhp_save_base_addr_length()
595 /* FIXME: this loop is duplicated in the non-bridge in cpqhp_save_base_addr_length()
599 for (cloop = 0x10; cloop <= 0x14; cloop += 4) { in cpqhp_save_base_addr_length()
601 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
602 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
627 func->base_length[(cloop - 0x10) >> 2] = in cpqhp_save_base_addr_length()
629 func->base_type[(cloop - 0x10) >> 2] = type; in cpqhp_save_base_addr_length()
635 for (cloop = 0x10; cloop <= 0x24; cloop += 4) { in cpqhp_save_base_addr_length()
637 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_base_addr_length()
638 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_base_addr_length()
667 func->base_length[(cloop - 0x10) >> 2] = base; in cpqhp_save_base_addr_length()
668 func->base_type[(cloop - 0x10) >> 2] = type; in cpqhp_save_base_addr_length()
676 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_save_base_addr_length()
694 u8 cloop; in cpqhp_save_used_resources() local
712 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_save_used_resources()
715 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_save_used_resources()
717 while ((func != NULL) && func->is_a_board) { in cpqhp_save_used_resources()
718 pci_bus->number = func->bus; in cpqhp_save_used_resources()
719 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_save_used_resources()
724 /* disable card */ in cpqhp_save_used_resources()
740 return -ENOMEM; in cpqhp_save_used_resources()
742 bus_node->base = secondary_bus; in cpqhp_save_used_resources()
743 bus_node->length = temp_byte - secondary_bus + 1; in cpqhp_save_used_resources()
745 bus_node->next = func->bus_head; in cpqhp_save_used_resources()
746 func->bus_head = bus_node; in cpqhp_save_used_resources()
755 return -ENOMEM; in cpqhp_save_used_resources()
757 io_node->base = (b_base & 0xF0) << 8; in cpqhp_save_used_resources()
758 io_node->length = (b_length - b_base + 0x10) << 8; in cpqhp_save_used_resources()
760 io_node->next = func->io_head; in cpqhp_save_used_resources()
761 func->io_head = io_node; in cpqhp_save_used_resources()
771 return -ENOMEM; in cpqhp_save_used_resources()
773 mem_node->base = w_base << 16; in cpqhp_save_used_resources()
774 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
776 mem_node->next = func->mem_head; in cpqhp_save_used_resources()
777 func->mem_head = mem_node; in cpqhp_save_used_resources()
787 return -ENOMEM; in cpqhp_save_used_resources()
789 p_mem_node->base = w_base << 16; in cpqhp_save_used_resources()
790 p_mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
792 p_mem_node->next = func->p_mem_head; in cpqhp_save_used_resources()
793 func->p_mem_head = p_mem_node; in cpqhp_save_used_resources()
796 for (cloop = 0x10; cloop <= 0x14; cloop += 4) { in cpqhp_save_used_resources()
797 pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
800 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
801 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
819 return -ENOMEM; in cpqhp_save_used_resources()
821 io_node->base = in cpqhp_save_used_resources()
823 io_node->length = temp_register; in cpqhp_save_used_resources()
825 io_node->next = func->io_head; in cpqhp_save_used_resources()
826 func->io_head = io_node; in cpqhp_save_used_resources()
837 return -ENOMEM; in cpqhp_save_used_resources()
839 p_mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources()
840 p_mem_node->length = temp_register; in cpqhp_save_used_resources()
842 p_mem_node->next = func->p_mem_head; in cpqhp_save_used_resources()
843 func->p_mem_head = p_mem_node; in cpqhp_save_used_resources()
854 return -ENOMEM; in cpqhp_save_used_resources()
856 mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources()
857 mem_node->length = temp_register; in cpqhp_save_used_resources()
859 mem_node->next = func->mem_head; in cpqhp_save_used_resources()
860 func->mem_head = mem_node; in cpqhp_save_used_resources()
868 for (cloop = 0x10; cloop <= 0x24; cloop += 4) { in cpqhp_save_used_resources()
869 pci_bus_read_config_dword(pci_bus, devfn, cloop, &save_base); in cpqhp_save_used_resources()
872 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_save_used_resources()
873 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_save_used_resources()
891 return -ENOMEM; in cpqhp_save_used_resources()
893 io_node->base = save_base & (~0x01L); in cpqhp_save_used_resources()
894 io_node->length = temp_register; in cpqhp_save_used_resources()
896 io_node->next = func->io_head; in cpqhp_save_used_resources()
897 func->io_head = io_node; in cpqhp_save_used_resources()
908 return -ENOMEM; in cpqhp_save_used_resources()
910 p_mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources()
911 p_mem_node->length = temp_register; in cpqhp_save_used_resources()
913 p_mem_node->next = func->p_mem_head; in cpqhp_save_used_resources()
914 func->p_mem_head = p_mem_node; in cpqhp_save_used_resources()
925 return -ENOMEM; in cpqhp_save_used_resources()
927 mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources()
928 mem_node->length = temp_register; in cpqhp_save_used_resources()
930 mem_node->next = func->mem_head; in cpqhp_save_used_resources()
931 func->mem_head = mem_node; in cpqhp_save_used_resources()
939 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_save_used_resources()
957 int cloop; in cpqhp_configure_board() local
965 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_configure_board()
968 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_configure_board()
971 pci_bus->number = func->bus; in cpqhp_configure_board()
972 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_configure_board()
977 for (cloop = 0x3C; cloop > 0; cloop -= 4) in cpqhp_configure_board()
978 pci_bus_write_config_dword(pci_bus, devfn, cloop, func->config_space[cloop >> 2]); in cpqhp_configure_board()
995 next = next->next; in cpqhp_configure_board()
1003 for (cloop = 16; cloop < 40; cloop += 4) { in cpqhp_configure_board()
1004 pci_bus_read_config_dword(pci_bus, devfn, cloop, &temp); in cpqhp_configure_board()
1006 if (temp != func->config_space[cloop >> 2]) { in cpqhp_configure_board()
1007 dbg("Config space compare failure!!! offset = %x\n", cloop); in cpqhp_configure_board()
1008 dbg("bus = %x, device = %x, function = %x\n", func->bus, func->device, func->function); in cpqhp_configure_board()
1009 dbg("temp = %x, config space = %x\n\n", temp, func->config_space[cloop >> 2]); in cpqhp_configure_board()
1015 func->configured = 1; in cpqhp_configure_board()
1017 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_configure_board()
1035 u8 cloop; in cpqhp_valid_replace() local
1044 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_valid_replace()
1047 if (!func->is_a_board) in cpqhp_valid_replace()
1050 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_valid_replace()
1053 pci_bus->number = func->bus; in cpqhp_valid_replace()
1054 devfn = PCI_DEVFN(func->device, func->function); in cpqhp_valid_replace()
1062 if (temp_register != func->config_space[0]) in cpqhp_valid_replace()
1069 if (temp_register != func->config_space[0x08 >> 2]) in cpqhp_valid_replace()
1081 temp_register = func->config_space[0x18 >> 2]; in cpqhp_valid_replace()
1093 next = next->next; in cpqhp_valid_replace()
1102 if (temp_register != func->config_space[0x2C >> 2]) { in cpqhp_valid_replace()
1103 /* If it's a SMART-2 and the register isn't in cpqhp_valid_replace()
1107 if (!((func->config_space[0] == 0xAE100E11) in cpqhp_valid_replace()
1112 for (cloop = 0x10; cloop <= 0x24; cloop += 4) { in cpqhp_valid_replace()
1114 pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in cpqhp_valid_replace()
1115 pci_bus_read_config_dword(pci_bus, devfn, cloop, &base); in cpqhp_valid_replace()
1141 if (func->base_length[(cloop - 0x10) >> 2] != base) in cpqhp_valid_replace()
1144 if (func->base_type[(cloop - 0x10) >> 2] != type) in cpqhp_valid_replace()
1158 func = cpqhp_slot_find(func->bus, func->device, index++); in cpqhp_valid_replace()
1194 return -ENODEV; in cpqhp_find_available_resources()
1229 cpqhp_nic_irq = ctrl->cfgspc_irq; in cpqhp_find_available_resources()
1232 cpqhp_disk_irq = ctrl->cfgspc_irq; in cpqhp_find_available_resources()
1267 if (primary_bus != ctrl->bus) { in cpqhp_find_available_resources()
1268 i--; in cpqhp_find_available_resources()
1273 ctrl->pci_bus->number = primary_bus; in cpqhp_find_available_resources()
1274 pci_bus_read_config_dword(ctrl->pci_bus, dev_func, PCI_VENDOR_ID, &temp_dword); in cpqhp_find_available_resources()
1281 while (func && (func->function != (dev_func & 0x07))) { in cpqhp_find_available_resources()
1288 i--; in cpqhp_find_available_resources()
1312 return -ENOMEM; in cpqhp_find_available_resources()
1314 io_node->base = io_base; in cpqhp_find_available_resources()
1315 io_node->length = io_length; in cpqhp_find_available_resources()
1318 io_node->base, io_node->length); in cpqhp_find_available_resources()
1321 io_node->next = ctrl->io_head; in cpqhp_find_available_resources()
1322 ctrl->io_head = io_node; in cpqhp_find_available_resources()
1324 io_node->next = func->io_head; in cpqhp_find_available_resources()
1325 func->io_head = io_node; in cpqhp_find_available_resources()
1334 return -ENOMEM; in cpqhp_find_available_resources()
1336 mem_node->base = mem_base << 16; in cpqhp_find_available_resources()
1338 mem_node->length = mem_length << 16; in cpqhp_find_available_resources()
1341 mem_node->base, mem_node->length); in cpqhp_find_available_resources()
1344 mem_node->next = ctrl->mem_head; in cpqhp_find_available_resources()
1345 ctrl->mem_head = mem_node; in cpqhp_find_available_resources()
1347 mem_node->next = func->mem_head; in cpqhp_find_available_resources()
1348 func->mem_head = mem_node; in cpqhp_find_available_resources()
1359 return -ENOMEM; in cpqhp_find_available_resources()
1361 p_mem_node->base = pre_mem_base << 16; in cpqhp_find_available_resources()
1363 p_mem_node->length = pre_mem_length << 16; in cpqhp_find_available_resources()
1365 p_mem_node->base, p_mem_node->length); in cpqhp_find_available_resources()
1369 p_mem_node->next = ctrl->p_mem_head; in cpqhp_find_available_resources()
1370 ctrl->p_mem_head = p_mem_node; in cpqhp_find_available_resources()
1372 p_mem_node->next = func->p_mem_head; in cpqhp_find_available_resources()
1373 func->p_mem_head = p_mem_node; in cpqhp_find_available_resources()
1379 * populated slots that don't have PCI-PCI bridges in cpqhp_find_available_resources()
1384 return -ENOMEM; in cpqhp_find_available_resources()
1386 bus_node->base = secondary_bus; in cpqhp_find_available_resources()
1387 bus_node->length = max_bus - secondary_bus + 1; in cpqhp_find_available_resources()
1389 bus_node->base, bus_node->length); in cpqhp_find_available_resources()
1392 bus_node->next = ctrl->bus_head; in cpqhp_find_available_resources()
1393 ctrl->bus_head = bus_node; in cpqhp_find_available_resources()
1395 bus_node->next = func->bus_head; in cpqhp_find_available_resources()
1396 func->bus_head = bus_node; in cpqhp_find_available_resources()
1400 i--; in cpqhp_find_available_resources()
1408 rc &= cpqhp_resource_sort_and_combine(&(ctrl->mem_head)); in cpqhp_find_available_resources()
1409 rc &= cpqhp_resource_sort_and_combine(&(ctrl->p_mem_head)); in cpqhp_find_available_resources()
1410 rc &= cpqhp_resource_sort_and_combine(&(ctrl->io_head)); in cpqhp_find_available_resources()
1411 rc &= cpqhp_resource_sort_and_combine(&(ctrl->bus_head)); in cpqhp_find_available_resources()
1435 node = func->io_head; in cpqhp_return_board_resources()
1436 func->io_head = NULL; in cpqhp_return_board_resources()
1438 t_node = node->next; in cpqhp_return_board_resources()
1439 return_resource(&(resources->io_head), node); in cpqhp_return_board_resources()
1443 node = func->mem_head; in cpqhp_return_board_resources()
1444 func->mem_head = NULL; in cpqhp_return_board_resources()
1446 t_node = node->next; in cpqhp_return_board_resources()
1447 return_resource(&(resources->mem_head), node); in cpqhp_return_board_resources()
1451 node = func->p_mem_head; in cpqhp_return_board_resources()
1452 func->p_mem_head = NULL; in cpqhp_return_board_resources()
1454 t_node = node->next; in cpqhp_return_board_resources()
1455 return_resource(&(resources->p_mem_head), node); in cpqhp_return_board_resources()
1459 node = func->bus_head; in cpqhp_return_board_resources()
1460 func->bus_head = NULL; in cpqhp_return_board_resources()
1462 t_node = node->next; in cpqhp_return_board_resources()
1463 return_resource(&(resources->bus_head), node); in cpqhp_return_board_resources()
1467 rc |= cpqhp_resource_sort_and_combine(&(resources->mem_head)); in cpqhp_return_board_resources()
1468 rc |= cpqhp_resource_sort_and_combine(&(resources->p_mem_head)); in cpqhp_return_board_resources()
1469 rc |= cpqhp_resource_sort_and_combine(&(resources->io_head)); in cpqhp_return_board_resources()
1470 rc |= cpqhp_resource_sort_and_combine(&(resources->bus_head)); in cpqhp_return_board_resources()
1485 res = resources->io_head; in cpqhp_destroy_resource_list()
1486 resources->io_head = NULL; in cpqhp_destroy_resource_list()
1490 res = res->next; in cpqhp_destroy_resource_list()
1494 res = resources->mem_head; in cpqhp_destroy_resource_list()
1495 resources->mem_head = NULL; in cpqhp_destroy_resource_list()
1499 res = res->next; in cpqhp_destroy_resource_list()
1503 res = resources->p_mem_head; in cpqhp_destroy_resource_list()
1504 resources->p_mem_head = NULL; in cpqhp_destroy_resource_list()
1508 res = res->next; in cpqhp_destroy_resource_list()
1512 res = resources->bus_head; in cpqhp_destroy_resource_list()
1513 resources->bus_head = NULL; in cpqhp_destroy_resource_list()
1517 res = res->next; in cpqhp_destroy_resource_list()
1532 res = func->io_head; in cpqhp_destroy_board_resources()
1533 func->io_head = NULL; in cpqhp_destroy_board_resources()
1537 res = res->next; in cpqhp_destroy_board_resources()
1541 res = func->mem_head; in cpqhp_destroy_board_resources()
1542 func->mem_head = NULL; in cpqhp_destroy_board_resources()
1546 res = res->next; in cpqhp_destroy_board_resources()
1550 res = func->p_mem_head; in cpqhp_destroy_board_resources()
1551 func->p_mem_head = NULL; in cpqhp_destroy_board_resources()
1555 res = res->next; in cpqhp_destroy_board_resources()
1559 res = func->bus_head; in cpqhp_destroy_board_resources()
1560 func->bus_head = NULL; in cpqhp_destroy_board_resources()
1564 res = res->next; in cpqhp_destroy_board_resources()