Lines Matching refs:bytes
1138 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome()
1179 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc()
1238 index = start_step * chip->ecc.bytes; in nand_read_subpage()
1242 eccfrag_len = num_steps * chip->ecc.bytes; in nand_read_subpage()
1253 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) in nand_read_subpage()
1278 if (eccpos[index + (num_steps * chip->ecc.bytes)] & (busw - 1)) in nand_read_subpage()
1290 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) { in nand_read_subpage()
1319 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc()
1372 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc_oob_first()
1421 int eccbytes = chip->ecc.bytes; in nand_read_page_syndrome()
1485 size_t bytes = 0; in nand_transfer_oob() local
1487 for (; free->length && len; free++, len -= bytes) { in nand_transfer_oob()
1495 bytes = min_t(size_t, len, in nand_transfer_oob()
1499 bytes = min_t(size_t, len, free->length); in nand_transfer_oob()
1502 memcpy(oob, chip->oob_poi + boffs, bytes); in nand_transfer_oob()
1503 oob += bytes; in nand_transfer_oob()
1548 int chipnr, page, realpage, col, bytes, aligned, oob_required; in nand_do_read_ops() local
1577 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
1578 aligned = (bytes == mtd->writesize); in nand_do_read_ops()
1609 col, bytes, bufpoi, in nand_do_read_ops()
1634 memcpy(buf, chip->buffers->databuf + col, bytes); in nand_do_read_ops()
1672 buf += bytes; in nand_do_read_ops()
1674 memcpy(buf, chip->buffers->databuf + col, bytes); in nand_do_read_ops()
1675 buf += bytes; in nand_do_read_ops()
1680 readlen -= bytes; in nand_do_read_ops()
1773 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_read_oob_syndrome()
1832 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_write_oob_syndrome()
2058 int eccbytes = chip->ecc.bytes; in nand_write_page_raw_syndrome()
2097 int eccbytes = chip->ecc.bytes; in nand_write_page_swecc()
2124 int eccbytes = chip->ecc.bytes; in nand_write_page_hwecc()
2162 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc()
2221 int eccbytes = chip->ecc.bytes; in nand_write_page_syndrome()
2348 size_t bytes = 0; in nand_fill_oob() local
2350 for (; free->length && len; free++, len -= bytes) { in nand_fill_oob()
2358 bytes = min_t(size_t, len, in nand_fill_oob()
2362 bytes = min_t(size_t, len, free->length); in nand_fill_oob()
2365 memcpy(chip->oob_poi + boffs, oob, bytes); in nand_fill_oob()
2366 oob += bytes; in nand_fill_oob()
2440 int bytes = mtd->writesize; in nand_do_write_ops() local
2441 int cached = writelen > bytes && page != blockmask; in nand_do_write_ops()
2459 bytes = min_t(int, bytes - column, writelen); in nand_do_write_ops()
2462 memcpy(&chip->buffers->databuf[column], buf, bytes); in nand_do_write_ops()
2474 ret = chip->write_page(mtd, chip, column, bytes, wbuf, in nand_do_write_ops()
2480 writelen -= bytes; in nand_do_write_ops()
2485 buf += bytes; in nand_do_write_ops()
4039 ecc->bytes = 3; in nand_scan_tail()
4068 ecc->bytes = DIV_ROUND_UP( in nand_scan_tail()
4070 ecc->priv = nand_bch_init(mtd, ecc->size, ecc->bytes, in nand_scan_tail()
4087 ecc->bytes = 0; in nand_scan_tail()
4126 ecc->total = ecc->steps * ecc->bytes; in nand_scan_tail()