Lines Matching refs:mem_node
703 struct pci_resource *mem_node; in cpqhp_save_used_resources() local
764 mem_node = kmalloc(sizeof(*mem_node), GFP_KERNEL); in cpqhp_save_used_resources()
765 if (!mem_node) in cpqhp_save_used_resources()
768 mem_node->base = w_base << 16; in cpqhp_save_used_resources()
769 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
771 mem_node->next = func->mem_head; in cpqhp_save_used_resources()
772 func->mem_head = mem_node; in cpqhp_save_used_resources()
846 mem_node = kmalloc(sizeof(*mem_node), in cpqhp_save_used_resources()
848 if (!mem_node) in cpqhp_save_used_resources()
851 mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources()
852 mem_node->length = temp_register; in cpqhp_save_used_resources()
854 mem_node->next = func->mem_head; in cpqhp_save_used_resources()
855 func->mem_head = mem_node; in cpqhp_save_used_resources()
917 mem_node = kmalloc(sizeof(*mem_node), in cpqhp_save_used_resources()
919 if (!mem_node) in cpqhp_save_used_resources()
922 mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources()
923 mem_node->length = temp_register; in cpqhp_save_used_resources()
925 mem_node->next = func->mem_head; in cpqhp_save_used_resources()
926 func->mem_head = mem_node; in cpqhp_save_used_resources()
1180 struct pci_resource *mem_node; in cpqhp_find_available_resources() local
1327 mem_node = kmalloc(sizeof(*mem_node), GFP_KERNEL); in cpqhp_find_available_resources()
1328 if (!mem_node) in cpqhp_find_available_resources()
1331 mem_node->base = mem_base << 16; in cpqhp_find_available_resources()
1333 mem_node->length = mem_length << 16; in cpqhp_find_available_resources()
1336 mem_node->base, mem_node->length); in cpqhp_find_available_resources()
1339 mem_node->next = ctrl->mem_head; in cpqhp_find_available_resources()
1340 ctrl->mem_head = mem_node; in cpqhp_find_available_resources()
1342 mem_node->next = func->mem_head; in cpqhp_find_available_resources()
1343 func->mem_head = mem_node; in cpqhp_find_available_resources()