Lines Matching defs:section
62 struct mem_section *section = NULL;
68 section = kmalloc_node(array_size, GFP_KERNEL, nid);
70 section = kmalloc(array_size, GFP_KERNEL);
72 section = alloc_bootmem_node(NODE_DATA(nid), array_size);
74 if (section)
75 memset(section, 0, array_size);
77 return section;
84 struct mem_section *section;
90 section = sparse_index_alloc(nid);
91 if (!section)
104 mem_section[root] = section;
140 * mem_map, we use section_mem_map to store the section's NUMA
149 static inline int sparse_early_nid(struct mem_section *section)
151 return (section->section_mem_map >> SECTION_NID_SHIFT);
188 unsigned long section = pfn_to_section_nr(pfn);
191 sparse_index_init(section, nid);
192 set_section_nid(section, nid);
194 ms = __nr_to_section(section);
282 * page being freed and making a section unremovable while
284 * a pgdat can prevent a section being removed. If section A
285 * contains a pgdat and section B contains the usemap, both
287 * from the same section as the pgdat where possible to avoid
317 "node %d must be removed before remove section %ld\n",
323 * Some platforms allow un-removable section because they will just
325 * Just notify un-removable section's number here.
479 * for each and record the physical to section mapping.
685 * When this function is called, the removing section is
687 * from page allocator. If removing section's memmap is placed
688 * on the same section, it must not be freed.
719 * on the section which has pgdat at boot time. Just keep it as is now.