Home
last modified time | relevance | path

Searched refs:memory_block (Results 1 – 10 of 10) sorted by relevance

/linux-5.19.10/tools/testing/memblock/tests/
Dcommon.c8 static struct test_memory memory_block; variable
36 memblock_add((phys_addr_t)memory_block.base, MEM_SIZE); in setup_memblock()
41 memory_block.base = malloc(MEM_SIZE); in dummy_physical_memory_init()
42 assert(memory_block.base); in dummy_physical_memory_init()
47 free(memory_block.base); in dummy_physical_memory_cleanup()
/linux-5.19.10/drivers/base/
Dmemory.c49 #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 …]
Dnode.c800 struct memory_block *mem_blk, in do_register_memory_block_under_node()
826 static int register_mem_block_under_node_early(struct memory_block *mem_blk, in register_mem_block_under_node_early()
869 static int register_mem_block_under_node_hotplug(struct memory_block *mem_blk, in register_mem_block_under_node_hotplug()
882 void unregister_memory_block_under_nodes(struct memory_block *mem_blk) in unregister_memory_block_under_nodes()
/linux-5.19.10/include/linux/
Dmemory.h68 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,
Dnode.h97 struct memory_block;
142 extern void unregister_memory_block_under_nodes(struct memory_block *mem_blk);
176 static inline void unregister_memory_block_under_nodes(struct memory_block *mem_blk) in unregister_memory_block_under_nodes()
Dmemory_hotplug.h14 struct memory_block;
336 extern bool is_memblock_offlined(struct memory_block *mem);
/linux-5.19.10/arch/powerpc/platforms/pseries/
Dhotplug-memory.c212 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-5.19.10/drivers/acpi/
Dacpi_memhotplug.c146 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-5.19.10/mm/
Dmemory_hotplug.c1271 static int online_memory_block(struct memory_block *mem, void *arg) in online_memory_block()
1971 static int check_memblock_offlined_cb(struct memory_block *mem, void *arg) in check_memblock_offlined_cb()
1990 static int get_nr_vmemmap_pages_cb(struct memory_block *mem, void *arg) in get_nr_vmemmap_pages_cb()
2014 static int check_no_memblock_for_node_cb(struct memory_block *mem, void *arg) in check_no_memblock_for_node_cb()
2178 static int try_offline_memory_block(struct memory_block *mem, void *arg) in try_offline_memory_block()
2207 static int try_reonline_memory_block(struct memory_block *mem, void *arg) in try_reonline_memory_block()
/linux-5.19.10/tools/testing/memblock/
DREADME101 memory of the memory_block.