Lines Matching defs:bytes
786 memset(oob, pattern, ecc->bytes + 4);
830 *cur_off = oob_off + ecc->bytes + 4;
850 nand_change_read_column_op(nand, oob_off, oob, ecc->bytes + 4,
854 oob, ecc->bytes + 4,
864 sunxi_nfc_randomizer_read_buf(nand, oob, ecc->bytes + 4,
883 int offset = ((ecc->bytes + 4) * ecc->steps);
953 int oob_off = i * (ecc->bytes + 4);
970 oob, ecc->bytes + 4, false);
985 int oob_off = i * (ecc->bytes + 4);
1005 oob, ecc->bytes + 4, false);
1008 oob, ecc->bytes + 4,
1060 *cur_off = oob_off + ecc->bytes + 4;
1071 int offset = ((ecc->bytes + 4) * ecc->steps);
1104 int oob_off = i * (ecc->bytes + 4);
1163 int oob_off = i * (ecc->bytes + 4);
1217 int oob_off = i * (ecc->bytes + 4);
1255 int oob_off = i * (ecc->bytes + 4);
1293 const u8 *oob = nand->oob_poi + (i * (ecc->bytes + 4));
1326 /* TODO: use DMA to transfer extra OOB bytes ? */
1558 oobregion->offset = section * (ecc->bytes + 4) + 4;
1559 oobregion->length = ecc->bytes;
1574 * The first 2 bytes are used for BB markers, hence we
1575 * only have 2 bytes available in the first user data
1585 oobregion->offset = section * (ecc->bytes + 4);
1619 int bytes;
1624 /* Reserve 2 bytes for the BBM */
1625 bytes = (mtd->oobsize - 2) / nsectors;
1627 /* 4 non-ECC bytes are added before each ECC bytes section */
1628 bytes -= 4;
1630 /* and bytes has to be even. */
1631 if (bytes % 2)
1632 bytes--;
1634 ecc->strength = bytes * 8 / fls(8 * ecc->size);
1680 /* HW ECC always request ECC bytes for 1024 bytes blocks */
1681 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8);
1683 /* HW ECC always work with even numbers of ECC bytes */
1684 ecc->bytes = ALIGN(ecc->bytes, 2);
1688 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) {