Lines Matching refs:block_id
599 static struct memory_block *find_memory_block_by_id(int block_id, in find_memory_block_by_id() argument
605 dev = subsys_find_device_by_id(&memory_subsys, block_id, hintdev); in find_memory_block_by_id()
616 int block_id = base_memory_block_id(__section_nr(section)); in find_memory_block_hinted() local
618 return find_memory_block_by_id(block_id, hint); in find_memory_block_hinted()
675 static int init_memory_block(struct memory_block **memory, int block_id, in init_memory_block() argument
682 mem = find_memory_block_by_id(block_id, NULL); in init_memory_block()
691 mem->start_section_nr = block_id * sections_per_block; in init_memory_block()
745 unsigned long block_id; in create_memory_block_devices() local
753 for (block_id = start_block_id; block_id != end_block_id; block_id++) { in create_memory_block_devices()
754 ret = init_memory_block(&mem, block_id, MEM_OFFLINE); in create_memory_block_devices()
760 end_block_id = block_id; in create_memory_block_devices()
761 for (block_id = start_block_id; block_id != end_block_id; in create_memory_block_devices()
762 block_id++) { in create_memory_block_devices()
763 mem = find_memory_block_by_id(block_id, NULL); in create_memory_block_devices()
782 int block_id; in remove_memory_block_devices() local
789 for (block_id = start_block_id; block_id != end_block_id; block_id++) { in remove_memory_block_devices()
790 mem = find_memory_block_by_id(block_id, NULL); in remove_memory_block_devices()