Lines Matching defs:page

168  * the largest page size we support is 8K, this will have 16 steps/codewords
340 * @data_buffer: our local DMA buffer for page read/writes,
415 * of a page, consisting of all data, ecc, spare
661 static void set_address(struct qcom_nand_host *host, u16 column, int page)
669 nandc_set_reg(nandc, NAND_ADDR0, page << 16 | column);
670 nandc_set_reg(nandc, NAND_ADDR1, page >> 16 & 0xff);
1076 * before reading a NAND page.
1090 * before reading each codeword in NAND page.
1113 * single codeword in page
1125 * before writing a NAND page.
1137 * before writing each codeword in NAND page.
1471 /* we read the entire page for now */
1519 * verify if the page is erased or not, and fix up the page for RS ECC by
1527 * an erased page flags an error in NAND_FLASH_STATUS, check if the page
1587 u8 *data_buf, u8 *oob_buf, int page, int cw)
1595 nand_read_page_op(chip, page, 0, NULL, 0);
1599 set_address(host, host->cw_size * cw, page);
1655 * error. The page will be assumed as erased if this count is less than or
1670 int page, unsigned int max_bitflips)
1700 cw_oob_buf, page, cw);
1705 * make sure it isn't an erased page reported
1724 * reads back status registers set by the controller to notify page read
1728 u8 *oob_buf, int page)
1779 * complete page is read i.e. data_buf is not NULL.
1794 * EIO will be returned for page read.
1823 uncorrectable_cws, page,
1828 * helper to perform the actual page read operation, used by ecc->read_page(),
1832 u8 *oob_buf, int page)
1901 dev_err(nandc->dev, "failure to read page/oob\n");
1905 return parse_read_errors(host, data_buf_start, oob_buf_start, page);
1909 * a helper that copies the last step/codeword of a page (containing free oob)
1912 static int copy_last_cw(struct qcom_nand_host *host, int page)
1927 set_address(host, host->cw_size * (ecc->steps - 1), page);
1945 int oob_required, int page)
1951 nand_read_page_op(chip, page, 0, NULL, 0);
1957 return read_page_ecc(host, data_buf, oob_buf, page);
1962 int oob_required, int page)
1972 page, cw);
1984 static int qcom_nandc_read_oob(struct nand_chip *chip, int page)
1994 set_address(host, 0, page);
1997 return read_page_ecc(host, NULL, chip->oob_poi, page);
2002 int oob_required, int page)
2010 nand_prog_page_begin_op(chip, page, 0, NULL, 0);
2060 dev_err(nandc->dev, "failure to write page\n");
2073 int page)
2082 nand_prog_page_begin_op(chip, page, 0, NULL, 0);
2133 dev_err(nandc->dev, "failure to write raw page\n");
2150 static int qcom_nandc_write_oob(struct nand_chip *chip, int page)
2172 set_address(host, host->cw_size * (ecc->steps - 1), page);
2198 int page, ret, bbpos, bad = 0;
2200 page = (int)(ofs >> chip->page_shift) & chip->pagemask;
2203 * configure registers for a raw sub page read, the address is set to
2211 ret = copy_last_cw(host, page);
2235 int page, ret;
2247 page = (int)(ofs >> chip->page_shift) & chip->pagemask;
2251 set_address(host, host->cw_size * (ecc->steps - 1), page);
2274 * aren't used for reading/writing page data, they are used for smaller data
2330 * NAND controller page layout info
2343 * n = Number of codewords in the page
2349 * 2K page: n = 4, spare = 16 bytes
2350 * 4K page: n = 8, spare = 32 bytes
2351 * 8K page: n = 16, spare = 64 bytes
2353 * the qcom nand controller operates at a sub page/codeword level. each
2361 * When we access a page with ECC enabled, the reserved bytes(s) are not
2377 * n = Number of codewords in the page
2401 * n = Number of codewords in the page
2409 * inaccessible Bad Block byte(s) are ignored when we write to a page/oob,
2410 * and assumed as 0xffs when we read a page/oob. The ECC, unused and
2730 * Initially allocate BAM transaction to read ONFI param page.
2834 * of a page with ECC disabled. currently, the nand_base and nand_bbt