• Home
  • Raw
  • Download

Lines Matching refs:bytes

770 	int eccbytes = chip->ecc.bytes;  in nand_read_page_swecc()
824 eccfrag_len = num_steps * chip->ecc.bytes; in nand_read_subpage()
835 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) in nand_read_subpage()
842 if (eccpos[i + start_step * chip->ecc.bytes] + 1 != in nand_read_subpage()
843 eccpos[i + start_step * chip->ecc.bytes + 1]) { in nand_read_subpage()
854 aligned_pos = eccpos[start_step * chip->ecc.bytes] & ~(busw - 1); in nand_read_subpage()
856 if (eccpos[start_step * chip->ecc.bytes] & (busw - 1)) in nand_read_subpage()
858 if (eccpos[(start_step + num_steps) * chip->ecc.bytes] & (busw - 1)) in nand_read_subpage()
866 chip->buffers->ecccode[i] = chip->oob_poi[eccpos[i + start_step * chip->ecc.bytes]]; in nand_read_subpage()
869 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) { in nand_read_subpage()
893 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc()
938 int eccbytes = chip->ecc.bytes; in nand_read_page_syndrome()
999 size_t bytes = 0; in nand_transfer_oob() local
1001 for(; free->length && len; free++, len -= bytes) { in nand_transfer_oob()
1009 bytes = min_t(size_t, len, in nand_transfer_oob()
1013 bytes = min_t(size_t, len, free->length); in nand_transfer_oob()
1016 memcpy(oob, chip->oob_poi + boffs, bytes); in nand_transfer_oob()
1017 oob += bytes; in nand_transfer_oob()
1039 int chipnr, page, realpage, col, bytes, aligned; in nand_do_read_ops() local
1063 bytes = min(mtd->writesize - col, readlen); in nand_do_read_ops()
1064 aligned = (bytes == mtd->writesize); in nand_do_read_ops()
1079 ret = chip->ecc.read_subpage(mtd, chip, col, bytes, bufpoi); in nand_do_read_ops()
1089 memcpy(buf, chip->buffers->databuf + col, bytes); in nand_do_read_ops()
1092 buf += bytes; in nand_do_read_ops()
1123 memcpy(buf, chip->buffers->databuf + col, bytes); in nand_do_read_ops()
1124 buf += bytes; in nand_do_read_ops()
1127 readlen -= bytes; in nand_do_read_ops()
1233 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_read_oob_syndrome()
1292 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; in nand_write_oob_syndrome()
1503 int eccbytes = chip->ecc.bytes; in nand_write_page_swecc()
1529 int eccbytes = chip->ecc.bytes; in nand_write_page_hwecc()
1560 int eccbytes = chip->ecc.bytes; in nand_write_page_syndrome()
1668 size_t bytes = 0; in nand_fill_oob() local
1670 for(; free->length && len; free++, len -= bytes) { in nand_fill_oob()
1678 bytes = min_t(size_t, len, in nand_fill_oob()
1682 bytes = min_t(size_t, len, free->length); in nand_fill_oob()
1685 memcpy(chip->oob_poi + boffs, oob, bytes); in nand_fill_oob()
1686 oob += bytes; in nand_fill_oob()
1754 int bytes = mtd->writesize; in nand_do_write_ops() local
1755 int cached = writelen > bytes && page != blockmask; in nand_do_write_ops()
1761 bytes = min_t(int, bytes - column, (int) writelen); in nand_do_write_ops()
1764 memcpy(&chip->buffers->databuf[column], buf, bytes); in nand_do_write_ops()
1776 writelen -= bytes; in nand_do_write_ops()
1781 buf += bytes; in nand_do_write_ops()
2664 chip->ecc.bytes = 3; in nand_scan_tail()
2675 chip->ecc.bytes = 0; in nand_scan_tail()
2703 chip->ecc.total = chip->ecc.steps * chip->ecc.bytes; in nand_scan_tail()