Lines Matching refs:block_id
581 static struct memory_block *find_memory_block_by_id(unsigned long block_id) in find_memory_block_by_id() argument
585 dev = subsys_find_device_by_id(&memory_subsys, block_id, NULL); in find_memory_block_by_id()
599 unsigned long block_id = base_memory_block_id(__section_nr(section)); in find_memory_block() local
601 return find_memory_block_by_id(block_id); in find_memory_block()
646 unsigned long block_id, unsigned long state) in init_memory_block() argument
652 mem = find_memory_block_by_id(block_id); in init_memory_block()
661 mem->start_section_nr = block_id * sections_per_block; in init_memory_block()
714 unsigned long block_id; in create_memory_block_devices() local
722 for (block_id = start_block_id; block_id != end_block_id; block_id++) { in create_memory_block_devices()
723 ret = init_memory_block(&mem, block_id, MEM_OFFLINE); in create_memory_block_devices()
729 end_block_id = block_id; in create_memory_block_devices()
730 for (block_id = start_block_id; block_id != end_block_id; in create_memory_block_devices()
731 block_id++) { in create_memory_block_devices()
732 mem = find_memory_block_by_id(block_id); in create_memory_block_devices()
751 unsigned long block_id; in remove_memory_block_devices() local
758 for (block_id = start_block_id; block_id != end_block_id; block_id++) { in remove_memory_block_devices()
759 mem = find_memory_block_by_id(block_id); in remove_memory_block_devices()
857 unsigned long block_id; in walk_memory_blocks() local
863 for (block_id = start_block_id; block_id <= end_block_id; block_id++) { in walk_memory_blocks()
864 mem = find_memory_block_by_id(block_id); in walk_memory_blocks()