Lines Matching defs:bytes

785 			memset(oob, pattern, ecc->bytes + 4);
829 *cur_off = oob_off + ecc->bytes + 4;
849 nand_change_read_column_op(nand, oob_off, oob, ecc->bytes + 4,
853 oob, ecc->bytes + 4,
863 sunxi_nfc_randomizer_read_buf(nand, oob, ecc->bytes + 4,
882 int offset = ((ecc->bytes + 4) * ecc->steps);
957 int oob_off = i * (ecc->bytes + 4);
974 oob, ecc->bytes + 4, false);
989 int oob_off = i * (ecc->bytes + 4);
1009 oob, ecc->bytes + 4, false);
1012 oob, ecc->bytes + 4,
1064 *cur_off = oob_off + ecc->bytes + 4;
1075 int offset = ((ecc->bytes + 4) * ecc->steps);
1108 int oob_off = i * (ecc->bytes + 4);
1167 int oob_off = i * (ecc->bytes + 4);
1221 int oob_off = i * (ecc->bytes + 4);
1259 int oob_off = i * (ecc->bytes + 4);
1298 const u8 *oob = nand->oob_poi + (i * (ecc->bytes + 4));
1336 /* TODO: use DMA to transfer extra OOB bytes ? */
1568 oobregion->offset = section * (ecc->bytes + 4) + 4;
1569 oobregion->length = ecc->bytes;
1584 * The first 2 bytes are used for BB markers, hence we
1585 * only have 2 bytes available in the first user data
1596 * The controller does not provide access to OOB bytes
1602 oobregion->offset = section * (ecc->bytes + 4);
1630 int bytes;
1635 /* Reserve 2 bytes for the BBM */
1636 bytes = (mtd->oobsize - 2) / nsectors;
1638 /* 4 non-ECC bytes are added before each ECC bytes section */
1639 bytes -= 4;
1641 /* and bytes has to be even. */
1642 if (bytes % 2)
1643 bytes--;
1645 ecc->strength = bytes * 8 / fls(8 * ecc->size);
1684 /* HW ECC always request ECC bytes for 1024 bytes blocks */
1685 ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8);
1687 /* HW ECC always work with even numbers of ECC bytes */
1688 ecc->bytes = ALIGN(ecc->bytes, 2);
1692 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors))