Searched refs:p_mem_node (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 702 struct pci_resource *p_mem_node; in cpqhp_save_used_resources() local 778 p_mem_node = kmalloc(sizeof(*p_mem_node), GFP_KERNEL); in cpqhp_save_used_resources() 779 if (!p_mem_node) in cpqhp_save_used_resources() 782 p_mem_node->base = w_base << 16; in cpqhp_save_used_resources() 783 p_mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources() 785 p_mem_node->next = func->p_mem_head; in cpqhp_save_used_resources() 786 func->p_mem_head = p_mem_node; in cpqhp_save_used_resources() 827 p_mem_node = kmalloc(sizeof(*p_mem_node), in cpqhp_save_used_resources() 829 if (!p_mem_node) in cpqhp_save_used_resources() 832 p_mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources() [all …]
|
D | cpqphp_nvram.c | 431 struct pci_resource *p_mem_node; in compaq_nvram_load() local 538 p_mem_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in compaq_nvram_load() 540 if (!p_mem_node) in compaq_nvram_load() 543 p_mem_node->base = *(u32 *)p_byte; in compaq_nvram_load() 544 dbg("pre-mem base = %8.8x\n", p_mem_node->base); in compaq_nvram_load() 548 kfree(p_mem_node); in compaq_nvram_load() 552 p_mem_node->length = *(u32 *)p_byte; in compaq_nvram_load() 553 dbg("pre-mem length = %8.8x\n", p_mem_node->length); in compaq_nvram_load() 557 kfree(p_mem_node); in compaq_nvram_load() 561 p_mem_node->next = ctrl->p_mem_head; in compaq_nvram_load() [all …]
|
D | cpqphp_ctrl.c | 2369 struct pci_resource *p_mem_node; in configure_new_function() local 2441 p_mem_node = get_max_resource(&(resources->p_mem_head), 0x100000); in configure_new_function() 2442 if (!p_mem_node) in configure_new_function() 2452 dbg("(base, len, next) (%x, %x, %p)\n", p_mem_node->base, in configure_new_function() 2453 p_mem_node->length, p_mem_node->next); in configure_new_function() 2477 temp_resources.p_mem_head = p_mem_node; in configure_new_function() 2528 memcpy(hold_p_mem_node, p_mem_node, sizeof(struct pci_resource)); in configure_new_function() 2529 p_mem_node->next = NULL; in configure_new_function() 2532 temp_word = p_mem_node->base >> 16; in configure_new_function() 2535 temp_word = (p_mem_node->base + p_mem_node->length - 1) >> 16; in configure_new_function() [all …]
|