Lines Matching defs:page
1227 /* Large page NAND uses first 2 bytes for BBI */
1230 /* Small page NAND uses last byte before ECC for BBI */
1448 * @i: sub-page sector index
1471 * @i: sub-page sector index
2010 /* for program page check NAND status */
2198 * Check a page to see if it is erased (w/ bitflips) after an uncorrectable ECC
2203 * page with bitflips, not a truly corrupted page.
2217 int page = addr >> chip->page_shift;
2226 ret = chip->ecc.read_page_raw(chip, buf, true, page);
2306 * Controller version 7.2 has hw encoder to detect erased page
2312 /* erased page bitflips corrected */
2343 int oob_required, int page)
2349 nand_read_page_op(chip, page, 0, NULL, 0);
2356 int oob_required, int page)
2363 nand_read_page_op(chip, page, 0, NULL, 0);
2372 static int brcmnand_read_oob(struct nand_chip *chip, int page)
2376 return brcmnand_read(mtd, chip, (u64)page << chip->page_shift,
2381 static int brcmnand_read_oob_raw(struct nand_chip *chip, int page)
2387 brcmnand_read(mtd, chip, (u64)page << chip->page_shift,
2466 int oob_required, int page)
2472 nand_prog_page_begin_op(chip, page, 0, NULL, 0);
2479 int oob_required, int page)
2485 nand_prog_page_begin_op(chip, page, 0, NULL, 0);
2493 static int brcmnand_write_oob(struct nand_chip *chip, int page)
2496 (u64)page << chip->page_shift, NULL,
2500 static int brcmnand_write_oob_raw(struct nand_chip *chip, int page)
2507 ret = brcmnand_write(mtd, chip, (u64)page << chip->page_shift, NULL,
2564 dev_warn(ctrl->dev, "invalid page size %u\n",
2574 dev_warn(ctrl->dev, "invalid page size %u\n", cfg->page_size);
2639 * Minimum number of bytes to address a page. Calculated as:
2640 * roundup(log2(size / page-size) / 8)