Lines Matching defs:page
144 /* Calculate the address shift from the page size */
172 static int mxs_read_page_ecc(struct mtd_info *mtd, void *buf, unsigned int page)
177 chip->cmdfunc(mtd, NAND_CMD_READ0, 0x0, page);
178 ret = nand_chip.ecc.read_page(mtd, chip, buf, 1, page);
190 unsigned int page = offs >> chip->page_shift;
192 debug("%s offs=0x%08x block:%d page:%d\n", __func__, (int)offs, block,
193 page);
194 chip->cmdfunc(mtd, NAND_CMD_READ0, mtd->writesize, page);
237 unsigned int page, page_offset;
250 /* offs has to be aligned to a page address! */
253 page = (offs % mtd->erasesize) / mtd->writesize;
260 while (page < nand_page_per_block && size) {
261 int curr_page = nand_page_per_block * block + page;
277 page++;
280 page = 0;