Home
last modified time | relevance | path

Searched refs:mem_node (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/soc/fsl/qbman/
Ddpaa_sys.c41 struct device_node *mem_node; in qbman_init_private_mem() local
51 mem_node = of_parse_phandle(dev->of_node, "memory-region", 0); in qbman_init_private_mem()
52 if (mem_node) { in qbman_init_private_mem()
53 ret = of_property_read_u64(mem_node, "size", &size64); in qbman_init_private_mem()
/Linux-v4.19/drivers/pci/hotplug/
Dcpqphp_pci.c701 struct pci_resource *mem_node; in cpqhp_save_used_resources() local
762 mem_node = kmalloc(sizeof(*mem_node), GFP_KERNEL); in cpqhp_save_used_resources()
763 if (!mem_node) in cpqhp_save_used_resources()
766 mem_node->base = w_base << 16; in cpqhp_save_used_resources()
767 mem_node->length = (w_length - w_base + 0x10) << 16; in cpqhp_save_used_resources()
769 mem_node->next = func->mem_head; in cpqhp_save_used_resources()
770 func->mem_head = mem_node; in cpqhp_save_used_resources()
844 mem_node = kmalloc(sizeof(*mem_node), in cpqhp_save_used_resources()
846 if (!mem_node) in cpqhp_save_used_resources()
849 mem_node->base = save_base & (~0x0FL); in cpqhp_save_used_resources()
[all …]
Dcpqphp_nvram.c430 struct pci_resource *mem_node; in compaq_nvram_load() local
510 mem_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in compaq_nvram_load()
512 if (!mem_node) in compaq_nvram_load()
515 mem_node->base = *(u32 *)p_byte; in compaq_nvram_load()
516 dbg("mem base = %8.8x\n", mem_node->base); in compaq_nvram_load()
520 kfree(mem_node); in compaq_nvram_load()
524 mem_node->length = *(u32 *)p_byte; in compaq_nvram_load()
525 dbg("mem length = %8.8x\n", mem_node->length); in compaq_nvram_load()
529 kfree(mem_node); in compaq_nvram_load()
533 mem_node->next = ctrl->mem_head; in compaq_nvram_load()
[all …]
Dcpqphp_ctrl.c2368 struct pci_resource *mem_node; in configure_new_function() local
2438 mem_node = get_max_resource(&(resources->mem_head), 0x100000); in configure_new_function()
2439 if (!mem_node) in configure_new_function()
2449 dbg("(base, len, next) (%x, %x, %p)\n", mem_node->base, in configure_new_function()
2450 mem_node->length, mem_node->next); in configure_new_function()
2476 temp_resources.mem_head = mem_node; in configure_new_function()
2518 memcpy(hold_mem_node, mem_node, sizeof(struct pci_resource)); in configure_new_function()
2519 mem_node->next = NULL; in configure_new_function()
2522 temp_word = mem_node->base >> 16; in configure_new_function()
2525 temp_word = (mem_node->base + mem_node->length - 1) >> 16; in configure_new_function()
[all …]
/Linux-v4.19/arch/sparc/kernel/
Dchmc.c398 struct device_node *mem_node; in jbusmc_probe() local
405 mem_node = of_find_node_by_path("/memory"); in jbusmc_probe()
406 if (!mem_node) { in jbusmc_probe()
410 mem_regs = of_get_property(mem_node, "reg", &len); in jbusmc_probe()
/Linux-v4.19/kernel/sched/
Dfair.c2371 void task_numa_fault(int last_cpupid, int mem_node, int pages, int flags) in task_numa_fault() argument
2421 numa_is_active_node(mem_node, ng)) in task_numa_fault()
2438 p->numa_faults[task_faults_idx(NUMA_MEMBUF, mem_node, priv)] += pages; in task_numa_fault()