Lines Matching defs:section
65 int register_memory(struct memory_block *memory, struct mem_section *section,
71 memory->sysdev.id = __section_nr(section);
84 unregister_memory(struct memory_block *memory, struct mem_section *section,
88 BUG_ON(memory->sysdev.id != __section_nr(section));
97 * use this as the physical section index that this memsection
173 printk(KERN_WARNING "section number %ld page number %d "
338 * section belongs to...
341 static int add_memory_block(unsigned long node_id, struct mem_section *section,
350 mem->phys_index = __section_nr(section);
355 ret = register_memory(mem, section, NULL);
374 static struct memory_block *find_memory_block(struct mem_section *section)
382 * This only works because we know that section == sysdev->id
385 sprintf(&name[0], "%s%d", MEMORY_CLASS_NAME, __section_nr(section));
397 int remove_memory_block(unsigned long node_id, struct mem_section *section,
402 mem = find_memory_block(section);
406 unregister_memory(mem, section, NULL);
415 int register_new_memory(struct mem_section *section)
417 return add_memory_block(0, section, MEM_OFFLINE, 0);
420 int unregister_memory_section(struct mem_section *section)
422 if (!valid_section(section))
425 return remove_memory_block(0, section, 0);