Lines Matching defs:bytes
1083 * Fills the first or the first two bytes of the @addrs field depending
1107 * The offset in page is expressed in bytes, if the NAND bus is 16-bit
1809 /* READ_ID data bytes are received twice in NV-DDR mode */
1984 * @data: 4 bytes of data
2034 * @data: 4 bytes of data
2063 /* GET_FEATURE data bytes are received twice in NV-DDR mode */
2295 * unique operation, or cannot read/write more than Y bytes at the same time.
2649 * nand_subop_get_data_len - Get the number of bytes to retrieve
2722 * @subfeature_param: the subfeature parameters, a four bytes array
2743 * @subfeature_param: the subfeature parameters, a four bytes array
2842 * shouldn't consider the chunk as erased, and checking ECC bytes prevent
2991 int eccbytes = chip->ecc.bytes;
3053 int eccbytes = chip->ecc.bytes;
3108 /* Column address within the page aligned to ECC size (256bytes) */
3112 index = start_step * chip->ecc.bytes;
3116 eccfrag_len = num_steps * chip->ecc.bytes;
3126 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size)
3148 * Send the command to read the particular ECC bytes take care
3155 if ((oobregion.offset + (num_steps * chip->ecc.bytes)) &
3173 for (i = 0; i < eccfrag_len ; i += chip->ecc.bytes, p += chip->ecc.size) {
3183 chip->ecc.bytes,
3212 int eccbytes = chip->ecc.bytes;
3285 int eccbytes = chip->ecc.bytes;
3351 int eccbytes = chip->ecc.bytes;
3417 /* Calculate remaining oob bytes */
3546 int chipnr, page, realpage, col, bytes, aligned, oob_required;
3580 bytes = min(mtd->writesize - col, readlen);
3581 aligned = (bytes == mtd->writesize);
3611 ret = chip->ecc.read_subpage(chip, col, bytes,
3637 memcpy(buf, bufpoi + col, bytes);
3669 buf += bytes;
3672 memcpy(buf, chip->data_buf + col, bytes);
3673 buf += bytes;
3680 readlen -= bytes;
3744 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad;
3811 int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad;
4095 int eccbytes = chip->ecc.bytes;
4156 int eccbytes = chip->ecc.bytes;
4185 int eccbytes = chip->ecc.bytes;
4234 int ecc_bytes = chip->ecc.bytes;
4302 int eccbytes = chip->ecc.bytes;
4346 /* Calculate remaining oob bytes */
4461 int bytes = mtd->writesize;
4483 bytes = min_t(int, bytes - column, writelen);
4486 memcpy(&wbuf[column], buf, bytes);
4498 ret = nand_write_page(chip, column, bytes, wbuf,
4504 writelen -= bytes;
4509 buf += bytes;
4534 * @len: number of bytes to write
4535 * @retlen: pointer to variable to store the number of written bytes
4833 * @len: number of bytes to lock (must be a multiple of block/page size)
4849 * @len: number of bytes to unlock (must be a multiple of block/page size)
4900 * Check if an ID string is repeated within a given sequence of bytes at
5744 chip->ecc.bytes = base->ecc.ctx.total / nanddev_get_ecc_nsteps(base);
5798 chip->ecc.bytes = base->ecc.ctx.total / nanddev_get_ecc_nsteps(base);
5914 ecc->bytes = 3;
5946 * used, otherwise we don't know how many bytes can really be
5973 * by the controller and the calculated ECC bytes fit within the chip's OOB.
5974 * On success, the calculated ECC bytes is set.
6008 chip->ecc.bytes = ecc_bytes;
6021 * nand_match_ecc_req - meet the chip's requirement with least ECC bytes
6027 * number of ECC bytes (i.e. with the largest number of OOB-free bytes).
6083 * with the least number of ECC bytes.
6099 chip->ecc.bytes = best_ecc_bytes;
6169 chip->ecc.bytes = best_ecc_bytes;
6388 ecc->bytes = 0;
6430 ecc->total = ecc->steps * ecc->bytes;
6435 WARN(1, "Total number of ECC bytes exceeded oobsize\n");
6441 * The number of bytes available for a client to place data into