Lines Matching refs:bytes

1272 	int eccbytes = chip->ecc.bytes;  in nand_read_page_raw_syndrome()
1313 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc()
1372 index = start_step * chip->ecc.bytes; in nand_read_subpage()
1376 eccfrag_len = num_steps * chip->ecc.bytes; in nand_read_subpage()
1387 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) in nand_read_subpage()
1412 if (eccpos[index + (num_steps * chip->ecc.bytes)] & (busw - 1)) in nand_read_subpage()
1424 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) { in nand_read_subpage()
1453 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc()
1506 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc_oob_first()
1555 int eccbytes = chip->ecc.bytes; in nand_read_page_syndrome()
1619 size_t bytes = 0; in nand_transfer_oob() local
1621 for (; free->length && len; free++, len -= bytes) { in nand_transfer_oob()
1629 bytes = min_t(size_t, len, in nand_transfer_oob()
1633 bytes = min_t(size_t, len, free->length); in nand_transfer_oob()
1636 memcpy(oob, chip->oob_poi + boffs, bytes); in nand_transfer_oob()
1637 oob += bytes; in nand_transfer_oob()
1682 int chipnr, page, realpage, col, bytes, aligned, oob_required; in nand_do_read_ops() local
1711 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
1712 aligned = (bytes == mtd->writesize); in nand_do_read_ops()
1743 col, bytes, bufpoi, in nand_do_read_ops()
1768 memcpy(buf, chip->buffers->databuf + col, bytes); in nand_do_read_ops()
1806 buf += bytes; in nand_do_read_ops()
1808 memcpy(buf, chip->buffers->databuf + col, bytes); in nand_do_read_ops()
1809 buf += bytes; in nand_do_read_ops()
1814 readlen -= bytes; in nand_do_read_ops()
1907 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_read_oob_syndrome()
1966 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_write_oob_syndrome()
2195 int eccbytes = chip->ecc.bytes; in nand_write_page_raw_syndrome()
2236 int eccbytes = chip->ecc.bytes; in nand_write_page_swecc()
2265 int eccbytes = chip->ecc.bytes; in nand_write_page_hwecc()
2304 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc()
2365 int eccbytes = chip->ecc.bytes; in nand_write_page_syndrome()
2493 size_t bytes = 0; in nand_fill_oob() local
2495 for (; free->length && len; free++, len -= bytes) { in nand_fill_oob()
2503 bytes = min_t(size_t, len, in nand_fill_oob()
2507 bytes = min_t(size_t, len, free->length); in nand_fill_oob()
2510 memcpy(chip->oob_poi + boffs, oob, bytes); in nand_fill_oob()
2511 oob += bytes; in nand_fill_oob()
2585 int bytes = mtd->writesize; in nand_do_write_ops() local
2586 int cached = writelen > bytes && page != blockmask; in nand_do_write_ops()
2604 bytes = min_t(int, bytes - column, writelen); in nand_do_write_ops()
2607 memcpy(&chip->buffers->databuf[column], buf, bytes); in nand_do_write_ops()
2619 ret = chip->write_page(mtd, chip, column, bytes, wbuf, in nand_do_write_ops()
2625 writelen -= bytes; in nand_do_write_ops()
2630 buf += bytes; in nand_do_write_ops()
4220 ecc->bytes = 3; in nand_scan_tail()
4249 ecc->bytes = DIV_ROUND_UP( in nand_scan_tail()
4251 ecc->priv = nand_bch_init(mtd, ecc->size, ecc->bytes, in nand_scan_tail()
4268 ecc->bytes = 0; in nand_scan_tail()
4307 ecc->total = ecc->steps * ecc->bytes; in nand_scan_tail()