Lines Matching refs:sections_per_block
35 static int sections_per_block; variable
39 return section_nr / sections_per_block; in base_memory_block_id()
118 phys_index = mem->start_section_nr / sections_per_block; in show_mem_start_phys_index()
135 for (i = 0; i < sections_per_block; i++) { in show_mem_removable()
197 unsigned long section_nr_end = section_nr + sections_per_block; in pages_correctly_probed()
237 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_action()
314 if (mem->section_count != sections_per_block) in memory_subsys_offline()
414 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in show_valid_zones()
513 unsigned long pages_per_block = PAGES_PER_SECTION * sections_per_block; in memory_probe_store()
524 MIN_MEMORY_BLOCK_SIZE * sections_per_block); in memory_probe_store()
653 memory->dev.id = memory->start_section_nr / sections_per_block; in register_memory()
679 base_memory_block_id(scn_nr) * sections_per_block; in init_memory_block()
680 mem->end_section_nr = mem->start_section_nr + sections_per_block - 1; in init_memory_block()
697 (i < base_section_nr + sections_per_block) && i < NR_MEM_SECTIONS; in add_memory_block()
835 sections_per_block = block_sz / MIN_MEMORY_BLOCK_SIZE; in memory_dev_init()
843 i += sections_per_block) { in memory_dev_init()