Lines Matching defs:page
1213 /* Large page NAND uses first 2 bytes for BBI */
1216 /* Small page NAND uses last byte before ECC for BBI */
1434 * @i: sub-page sector index
1457 * @i: sub-page sector index
1954 /* for program page check NAND status */
2142 * Check a page to see if it is erased (w/ bitflips) after an uncorrectable ECC
2147 * page with bitflips, not a truly corrupted page.
2161 int page = addr >> chip->page_shift;
2170 ret = chip->ecc.read_page_raw(chip, buf, true, page);
2249 * Controller version 7.2 has hw encoder to detect erased page
2255 /* erased page bitflips corrected */
2286 int oob_required, int page)
2292 nand_read_page_op(chip, page, 0, NULL, 0);
2299 int oob_required, int page)
2306 nand_read_page_op(chip, page, 0, NULL, 0);
2315 static int brcmnand_read_oob(struct nand_chip *chip, int page)
2319 return brcmnand_read(mtd, chip, (u64)page << chip->page_shift,
2324 static int brcmnand_read_oob_raw(struct nand_chip *chip, int page)
2330 brcmnand_read(mtd, chip, (u64)page << chip->page_shift,
2405 int oob_required, int page)
2411 nand_prog_page_begin_op(chip, page, 0, NULL, 0);
2418 int oob_required, int page)
2424 nand_prog_page_begin_op(chip, page, 0, NULL, 0);
2432 static int brcmnand_write_oob(struct nand_chip *chip, int page)
2435 (u64)page << chip->page_shift, NULL,
2439 static int brcmnand_write_oob_raw(struct nand_chip *chip, int page)
2446 ret = brcmnand_write(mtd, chip, (u64)page << chip->page_shift, NULL,
2503 dev_warn(ctrl->dev, "invalid page size %u\n",
2513 dev_warn(ctrl->dev, "invalid page size %u\n", cfg->page_size);
2578 * Minimum number of bytes to address a page. Calculated as:
2579 * roundup(log2(size / page-size) / 8)