Searched refs:memory_block (Results 1 – 9 of 9) sorted by relevance
/linux-6.6.21/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() 123 struct memory_block *mem = to_memory_block(dev); in phys_index_show() 144 struct memory_block *mem = to_memory_block(dev); in state_show() 175 static unsigned long memblk_nr_poison(struct memory_block *mem); 177 static inline unsigned long memblk_nr_poison(struct memory_block *mem) in memblk_nr_poison() 186 static int memory_block_online(struct memory_block *mem) in memory_block_online() 242 static int memory_block_offline(struct memory_block *mem) in memory_block_offline() 288 memory_block_action(struct memory_block *mem, unsigned long action) in memory_block_action() 308 static int memory_block_change_state(struct memory_block *mem, in memory_block_change_state() [all …]
|
D | node.c | 757 struct memory_block *mem_blk, in do_register_memory_block_under_node() 783 static int register_mem_block_under_node_early(struct memory_block *mem_blk, in register_mem_block_under_node_early() 826 static int register_mem_block_under_node_hotplug(struct memory_block *mem_blk, in register_mem_block_under_node_hotplug() 839 void unregister_memory_block_under_nodes(struct memory_block *mem_blk) in unregister_memory_block_under_nodes()
|
/linux-6.6.21/tools/testing/memblock/tests/ |
D | common.c | 12 static struct test_memory memory_block; variable 64 memset(memory_block.base, 1, MEM_SIZE); in fill_memblock() 70 memblock_add((phys_addr_t)memory_block.base, MEM_SIZE); in setup_memblock() 91 base = (phys_addr_t)memory_block.base; in setup_numa_memblock() 106 memory_block.base = malloc(MEM_SIZE); in dummy_physical_memory_init() 107 assert(memory_block.base); in dummy_physical_memory_init() 113 free(memory_block.base); in dummy_physical_memory_cleanup() 118 return (phys_addr_t)memory_block.base; in dummy_physical_memory_base()
|
/linux-6.6.21/include/linux/ |
D | memory.h | 67 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 *); 171 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-6.6.21/mm/ |
D | memory_hotplug.c | 1312 static int online_memory_block(struct memory_block *mem, void *arg) in online_memory_block() 2050 static int check_memblock_offlined_cb(struct memory_block *mem, void *arg) in check_memblock_offlined_cb() 2068 static int test_has_altmap_cb(struct memory_block *mem, void *arg) in test_has_altmap_cb() 2070 struct memory_block **mem_ptr = (struct memory_block **)arg; in test_has_altmap_cb() 2098 static int check_no_memblock_for_node_cb(struct memory_block *mem, void *arg) in check_no_memblock_for_node_cb() 2154 struct memory_block *mem; in try_remove_memory() 2264 static int try_offline_memory_block(struct memory_block *mem, void *arg) in try_offline_memory_block() 2293 static int try_reonline_memory_block(struct memory_block *mem, void *arg) in try_reonline_memory_block()
|
/linux-6.6.21/arch/powerpc/platforms/pseries/ |
D | hotplug-memory.c | 164 static struct memory_block *lmb_to_memblock(struct drmem_lmb *lmb) in lmb_to_memblock() 167 struct memory_block *mem_block; in lmb_to_memblock() 206 struct memory_block *mem_block; in dlpar_change_lmb_state() 307 struct memory_block *mem_block; in dlpar_remove_lmb()
|
/linux-6.6.21/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-6.6.21/tools/testing/memblock/ |
D | README | 112 memory of the memory_block.
|