Lines Matching defs:bytes
202 * @u32_count: number of bytes to be transferred
217 /* Set the amount of bytes to be prefetched */
272 /* read 32-bit words using prefetch and remaining bytes normally */
292 /* fetch any remaining bytes */
366 * @len: number of data bytes to be transferred
490 u32 bytes;
492 bytes = readl(info->reg.gpmc_prefetch_status);
493 bytes = PREFETCH_STATUS_FIFO_CNT(bytes);
494 bytes = bytes & 0xFFFC; /* io in multiple of 4 bytes */
499 if (info->buf_len && (info->buf_len < bytes))
500 bytes = info->buf_len;
502 bytes = 0;
504 bytes >> 2);
505 info->buf = info->buf + bytes;
506 info->buf_len -= bytes;
510 bytes >> 2);
511 info->buf = info->buf + bytes;
814 * omap_calculate_ecc - Generate non-inverted ECC bytes.
820 * page ie. padding will clear the ECC bytes. This is no problem as long
823 * ECC bytes that has to be dealt with separately.
890 * to 512 bytes and we use BCH_WRAPMODE_6 wrapping mode
893 * eccsize1 = 32 (skip 32 nibbles = 16 bytes per sector in spare area)
992 * _omap_calculate_ecc_bch - Generate ECC bytes for one sector
1005 int eccbytes = info->nand.ecc.bytes;
1123 * @ecc_calc: Buffer storing the calculated ECC bytes
1139 * @ecc_calc: Buffer storing the calculated ECC bytes
1147 int eccbytes = info->nand.ecc.bytes;
1184 for (i = 0; i < info->nand.ecc.bytes - 1; i++) {
1196 memset(oob, 0xFF, info->nand.ecc.bytes);
1234 actual_eccbytes = ecc->bytes - 1;
1239 actual_eccbytes = ecc->bytes - 1;
1243 actual_eccbytes = ecc->bytes;
1304 calc_ecc += ecc->bytes;
1305 read_ecc += ecc->bytes;
1369 spare_ecc += ecc->bytes;
1445 int ecc_bytes = chip->ecc.bytes;
1544 /* Read oob bytes */
1554 /* Calculate ecc bytes */
1936 chip->ecc.bytes = 3;
1943 oobbytes_per_step = chip->ecc.bytes;
1954 chip->ecc.bytes = 7;
1961 oobbytes_per_step = chip->ecc.bytes + 1;
1975 chip->ecc.bytes = 7 + 1;
1983 oobbytes_per_step = chip->ecc.bytes;
1991 chip->ecc.bytes = 13;
1998 oobbytes_per_step = chip->ecc.bytes + 1;
2012 chip->ecc.bytes = 13 + 1;
2020 oobbytes_per_step = chip->ecc.bytes;
2028 chip->ecc.bytes = 26;
2036 oobbytes_per_step = chip->ecc.bytes;
2054 info->eccpg_bytes = info->nsteps_per_eccpg * chip->ecc.bytes;
2058 chip->ecc.bytes);
2068 "Not enough OOB bytes: required = %d, available=%d\n",