Lines Matching refs:block_no
93 static int build_block_map(struct partition *part, int block_no) in build_block_map() argument
95 struct block *block = &part->blocks[block_no]; in build_block_map()
98 block->offset = part->block_size * block_no; in build_block_map()
127 part->mbd.mtd->name, block_no, i, entry); in build_block_map()
146 part->reserved_block = block_no; in build_block_map()
319 static int move_block_contents(struct partition *part, int block_no, u_long *old_sector) in move_block_contents() argument
336 rc = mtd_read(part->mbd.mtd, part->blocks[block_no].offset, in move_block_contents()
345 part->blocks[block_no].offset); in move_block_contents()
365 addr = part->blocks[block_no].offset + in move_block_contents()
370 if (!part->blocks[block_no].used_sectors--) { in move_block_contents()
371 rc = erase_block(part, block_no); in move_block_contents()