Searched refs:memory_block (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.1/drivers/base/ |
D | memory.c | 49 #define to_memory_block(dev) container_of(dev, struct memory_block, dev) 107 struct memory_block *mem = to_memory_block(dev); in memory_block_release() 124 struct memory_block *mem = to_memory_block(dev); in phys_index_show() 148 struct memory_block *mem = to_memory_block(dev); in state_show() 178 static int memory_block_online(struct memory_block *mem) in memory_block_online() 222 static int memory_block_offline(struct memory_block *mem) in memory_block_offline() 262 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action() 282 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state() 302 struct memory_block *mem = to_memory_block(dev); in memory_subsys_online() 323 struct memory_block *mem = to_memory_block(dev); in memory_subsys_offline() [all …]
|
D | node.c | 748 struct memory_block *mem_blk, in do_register_memory_block_under_node() 774 static int register_mem_block_under_node_early(struct memory_block *mem_blk, in register_mem_block_under_node_early() 817 static int register_mem_block_under_node_hotplug(struct memory_block *mem_blk, in register_mem_block_under_node_hotplug() 830 void unregister_memory_block_under_nodes(struct memory_block *mem_blk) in unregister_memory_block_under_nodes()
|
/Linux-v6.1/tools/testing/memblock/tests/ |
D | common.c | 14 static struct test_memory memory_block; variable 66 memset(memory_block.base, 1, MEM_SIZE); in fill_memblock() 72 memblock_add((phys_addr_t)memory_block.base, MEM_SIZE); in setup_memblock() 93 base = (phys_addr_t)memory_block.base; in setup_numa_memblock() 108 memory_block.base = malloc(MEM_SIZE); in dummy_physical_memory_init() 109 assert(memory_block.base); in dummy_physical_memory_init() 115 free(memory_block.base); in dummy_physical_memory_cleanup()
|
/Linux-v6.1/include/linux/ |
D | memory.h | 68 struct memory_block { struct 151 extern struct memory_block *find_memory_block(unsigned long section_nr); 152 typedef int (*walk_memory_blocks_func_t)(struct memory_block *, void *); 173 void memory_block_add_nid(struct memory_block *mem, int nid,
|
D | node.h | 92 struct memory_block; 136 extern void unregister_memory_block_under_nodes(struct memory_block *mem_blk); 165 static inline void unregister_memory_block_under_nodes(struct memory_block *mem_blk) in unregister_memory_block_under_nodes()
|
/Linux-v6.1/arch/powerpc/platforms/pseries/ |
D | hotplug-memory.c | 212 static struct memory_block *lmb_to_memblock(struct drmem_lmb *lmb) in lmb_to_memblock() 215 struct memory_block *mem_block; in lmb_to_memblock() 254 struct memory_block *mem_block; in dlpar_change_lmb_state() 369 struct memory_block *mem_block; in dlpar_remove_lmb()
|
/Linux-v6.1/drivers/acpi/ |
D | acpi_memhotplug.c | 146 static int acpi_bind_memblk(struct memory_block *mem, void *arg) in acpi_bind_memblk() 158 static int acpi_unbind_memblk(struct memory_block *mem, void *arg) in acpi_unbind_memblk()
|
/Linux-v6.1/mm/ |
D | memory_hotplug.c | 1269 static int online_memory_block(struct memory_block *mem, void *arg) in online_memory_block() 1968 static int check_memblock_offlined_cb(struct memory_block *mem, void *arg) in check_memblock_offlined_cb() 1986 static int get_nr_vmemmap_pages_cb(struct memory_block *mem, void *arg) in get_nr_vmemmap_pages_cb() 2010 static int check_no_memblock_for_node_cb(struct memory_block *mem, void *arg) in check_no_memblock_for_node_cb() 2174 static int try_offline_memory_block(struct memory_block *mem, void *arg) in try_offline_memory_block() 2203 static int try_reonline_memory_block(struct memory_block *mem, void *arg) in try_reonline_memory_block()
|
/Linux-v6.1/tools/testing/memblock/ |
D | README | 112 memory of the memory_block.
|