Lines Matching refs:section
577 struct memory_block *find_memory_block_hinted(struct mem_section *section, in find_memory_block_hinted() argument
580 int block_id = base_memory_block_id(__section_nr(section)); in find_memory_block_hinted()
600 struct memory_block *find_memory_block(struct mem_section *section) in find_memory_block() argument
602 return find_memory_block_hinted(section, NULL); in find_memory_block()
641 struct mem_section *section, unsigned long state) in init_memory_block() argument
652 scn_nr = __section_nr(section); in init_memory_block()
702 int register_new_memory(int nid, struct mem_section *section) in register_new_memory() argument
707 if (is_zone_device_section(section)) in register_new_memory()
712 mem = find_memory_block(section); in register_new_memory()
717 ret = init_memory_block(&mem, section, MEM_OFFLINE); in register_new_memory()
742 struct mem_section *section, int phys_device) in remove_memory_section() argument
746 if (is_zone_device_section(section)) in remove_memory_section()
750 mem = find_memory_block(section); in remove_memory_section()
751 unregister_mem_sect_under_nodes(mem, __section_nr(section)); in remove_memory_section()
763 int unregister_memory_section(struct mem_section *section) in unregister_memory_section() argument
765 if (!present_section(section)) in unregister_memory_section()
768 return remove_memory_section(0, section, 0); in unregister_memory_section()