Lines Matching defs:bytes
186 * @u32_count: number of bytes to be transferred
200 /* Set the amount of bytes to be prefetched */
269 * @len: number of bytes to read
282 * @len: number of bytes to write
303 * @len: number of bytes to read
316 * @len: number of bytes to write
339 * @len: number of bytes to read
386 * @len: number of bytes to write
451 * @len: number of data bytes to be transferred
532 * @len: number of bytes to read
550 * @len: number of bytes to write
572 u32 bytes;
574 bytes = readl(info->reg.gpmc_prefetch_status);
575 bytes = PREFETCH_STATUS_FIFO_CNT(bytes);
576 bytes = bytes & 0xFFFC; /* io in multiple of 4 bytes */
581 if (info->buf_len && (info->buf_len < bytes))
582 bytes = info->buf_len;
584 bytes = 0;
586 bytes >> 2);
587 info->buf = info->buf + bytes;
588 info->buf_len -= bytes;
592 bytes >> 2);
593 info->buf = info->buf + bytes;
614 * @len: number of bytes to read
662 * @len: number of bytes to write
909 * omap_calcuate_ecc - Generate non-inverted ECC bytes.
915 * page ie. padding will clear the ECC bytes. This is no problem as long
918 * ECC bytes that has to be dealt with separately.
1029 * to 512 bytes and we use BCH_WRAPMODE_6 wrapping mode
1032 * eccsize1 = 32 (skip 32 nibbles = 16 bytes per sector in spare area)
1131 * _omap_calculate_ecc_bch - Generate ECC bytes for one sector
1144 int eccbytes = info->nand.ecc.bytes;
1286 int eccbytes = info->nand.ecc.bytes;
1323 for (i = 0; i < info->nand.ecc.bytes - 1; i++) {
1335 memset(oob, 0xFF, info->nand.ecc.bytes);
1373 actual_eccbytes = ecc->bytes - 1;
1378 actual_eccbytes = ecc->bytes - 1;
1382 actual_eccbytes = ecc->bytes;
1443 calc_ecc += ecc->bytes;
1444 read_ecc += ecc->bytes;
1508 spare_ecc += ecc->bytes;
1570 int ecc_bytes = chip->ecc.bytes;
1649 /* Read oob bytes */
1655 /* Calculate ecc bytes */
1878 oobregion->offset = off + (section * (chip->ecc.bytes + 1));
1879 oobregion->length = chip->ecc.bytes;
1897 off += ((chip->ecc.bytes + 1) * chip->ecc.steps);
2023 chip->ecc.bytes = 3;
2030 oobbytes_per_step = chip->ecc.bytes;
2041 chip->ecc.bytes = 7;
2048 oobbytes_per_step = chip->ecc.bytes + 1;
2062 chip->ecc.bytes = 7 + 1;
2070 oobbytes_per_step = chip->ecc.bytes;
2074 chip->ecc.size, chip->ecc.bytes);
2083 chip->ecc.bytes = 13;
2090 oobbytes_per_step = chip->ecc.bytes + 1;
2104 chip->ecc.bytes = 13 + 1;
2112 oobbytes_per_step = chip->ecc.bytes;
2116 chip->ecc.size, chip->ecc.bytes);
2126 chip->ecc.bytes = 26;
2134 oobbytes_per_step = chip->ecc.bytes;
2138 chip->ecc.size, chip->ecc.bytes);
2153 "Not enough OOB bytes: required = %d, available=%d\n",