Lines Matching full:page
4 unsigned int page, page_offset; in nand_spl_load_image() local
6 /* offs has to be aligned to a page address! */ in nand_spl_load_image()
9 page = (offs % CONFIG_SYS_NAND_BLOCK_SIZE) / CONFIG_SYS_NAND_PAGE_SIZE; in nand_spl_load_image()
15 while (page < CONFIG_SYS_NAND_PAGE_COUNT) { in nand_spl_load_image()
16 nand_read_page(block, page, dst); in nand_spl_load_image()
18 * When offs is not aligned to page address the in nand_spl_load_image()
30 page++; in nand_spl_load_image()
33 page = 0; in nand_spl_load_image()
46 * Temporary storage for non NAND page aligned and non NAND page sized
76 int page, read; in nand_spl_read_block() local
78 /* Calculate the page number */ in nand_spl_read_block()
79 page = offset / CONFIG_SYS_NAND_PAGE_SIZE; in nand_spl_read_block()
81 /* Offset to the start of a flash page */ in nand_spl_read_block()
86 * Non page aligned reads go to the scratch buffer. in nand_spl_read_block()
87 * Page aligned reads go directly to the destination. in nand_spl_read_block()
90 nand_read_page(block, page, scratch_buf); in nand_spl_read_block()
95 nand_read_page(block, page, dst); in nand_spl_read_block()
98 page++; in nand_spl_read_block()