Home
last modified time | relevance | path

Searched refs:sections_per_block (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/base/
Dmemory.c51 static int sections_per_block; variable
55 return section_nr / sections_per_block; in memory_block_id()
121 phys_index = mem->start_section_nr / sections_per_block; in phys_index_show()
181 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_action()
328 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in valid_zones_show()
420 unsigned long pages_per_block = PAGES_PER_SECTION * sections_per_block; in probe_store()
435 MIN_MEMORY_BLOCK_SIZE * sections_per_block, in probe_store()
551 memory->dev.id = memory->start_section_nr / sections_per_block; in register_memory()
583 mem->start_section_nr = block_id * sections_per_block; in init_memory_block()
597 for (nr = base_section_nr; nr < base_section_nr + sections_per_block; in add_memory_block()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dhotplug-memory.c288 int sections_per_block; in pseries_remove_memblock() local
299 sections_per_block = block_sz / MIN_MEMORY_BLOCK_SIZE; in pseries_remove_memblock()
302 for (i = 0; i < sections_per_block; i++) { in pseries_remove_memblock()