Lines Matching refs:block
3 unsigned int block, lastblock; in nand_spl_load_image() local
7 block = offs / CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_load_image()
12 while (block <= lastblock) { in nand_spl_load_image()
13 if (!nand_is_bad_block(block)) { in nand_spl_load_image()
16 nand_read_page(block, page, dst); in nand_spl_load_image()
38 block++; in nand_spl_load_image()
55 unsigned int block, lastblock; in nand_spl_adjust_offset() local
57 block = sector / CONFIG_SYS_NAND_BLOCK_SIZE; in nand_spl_adjust_offset()
60 while (block <= lastblock) { in nand_spl_adjust_offset()
61 if (nand_is_bad_block(block)) { in nand_spl_adjust_offset()
66 block++; in nand_spl_adjust_offset()
102 int nand_spl_read_block(int block, int offset, int len, void *dst) in nand_spl_read_block() argument
118 nand_read_page(block, page, scratch_buf); in nand_spl_read_block()
123 nand_read_page(block, page, dst); in nand_spl_read_block()