Home
last modified time | relevance | path

Searched refs:section_nr (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/mm/
Dbootmem_info.c45 unsigned long mapsize, section_nr, i; in register_page_bootmem_info_section() local
50 section_nr = pfn_to_section_nr(start_pfn); in register_page_bootmem_info_section()
51 ms = __nr_to_section(section_nr); in register_page_bootmem_info_section()
54 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); in register_page_bootmem_info_section()
66 get_page_bootmem(section_nr, page, SECTION_INFO); in register_page_bootmem_info_section()
74 get_page_bootmem(section_nr, page, MIX_SECTION_INFO); in register_page_bootmem_info_section()
80 unsigned long mapsize, section_nr, i; in register_page_bootmem_info_section() local
85 section_nr = pfn_to_section_nr(start_pfn); in register_page_bootmem_info_section()
86 ms = __nr_to_section(section_nr); in register_page_bootmem_info_section()
88 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); in register_page_bootmem_info_section()
[all …]
Dsparse.c52 static void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument
54 section_to_node_table[section_nr] = nid; in set_section_nid()
57 static inline void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument
82 static int __meminit sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument
84 unsigned long root = SECTION_NR_TO_ROOT(section_nr); in sparse_index_init()
106 static inline int sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument
165 unsigned long section_nr) in __section_mark_present() argument
167 if (section_nr > __highest_present_section_nr) in __section_mark_present()
168 __highest_present_section_nr = section_nr; in __section_mark_present()
173 #define for_each_present_section_nr(start, section_nr) \ argument
[all …]
/linux-6.6.21/arch/x86/mm/
Dinit_64.c1559 void register_page_bootmem_memmap(unsigned long section_nr, in register_page_bootmem_memmap() argument
1580 get_page_bootmem(section_nr, pgd_page(*pgd), MIX_SECTION_INFO); in register_page_bootmem_memmap()
1587 get_page_bootmem(section_nr, p4d_page(*p4d), MIX_SECTION_INFO); in register_page_bootmem_memmap()
1594 get_page_bootmem(section_nr, pud_page(*pud), MIX_SECTION_INFO); in register_page_bootmem_memmap()
1601 get_page_bootmem(section_nr, pmd_page(*pmd), in register_page_bootmem_memmap()
1607 get_page_bootmem(section_nr, pte_page(*pte), in register_page_bootmem_memmap()
1619 get_page_bootmem(section_nr, page++, in register_page_bootmem_memmap()
/linux-6.6.21/include/linux/
Dmemory.h151 extern struct memory_block *find_memory_block(unsigned long section_nr);
Dmmzone.h2032 static inline unsigned long next_present_section_nr(unsigned long section_nr) in next_present_section_nr() argument
2034 while (++section_nr <= __highest_present_section_nr) { in next_present_section_nr()
2035 if (present_section_nr(section_nr)) in next_present_section_nr()
2036 return section_nr; in next_present_section_nr()
Dmm.h3823 void register_page_bootmem_memmap(unsigned long section_nr, struct page *map,
/linux-6.6.21/drivers/base/
Dmemory.c53 static inline unsigned long memory_block_id(unsigned long section_nr) in memory_block_id() argument
55 return section_nr / sections_per_block; in memory_block_id()
631 struct memory_block *find_memory_block(unsigned long section_nr) in find_memory_block() argument
633 unsigned long block_id = memory_block_id(section_nr); in find_memory_block()
/linux-6.6.21/arch/powerpc/platforms/pseries/
Dhotplug-memory.c166 unsigned long section_nr; in lmb_to_memblock() local
169 section_nr = pfn_to_section_nr(PFN_DOWN(lmb->base_addr)); in lmb_to_memblock()
171 mem_block = find_memory_block(section_nr); in lmb_to_memblock()
/linux-6.6.21/arch/powerpc/mm/
Dinit_64.c389 void register_page_bootmem_memmap(unsigned long section_nr, in register_page_bootmem_memmap() argument