/linux-master/drivers/mtd/nand/spi/ |
H A D | alliancememory.c | 50 int ecc_bytes; local 52 ecc_bytes = am_get_eccsize(mtd); 53 if (ecc_bytes < 0) 54 return ecc_bytes; 56 region->offset = mtd->oobsize - ecc_bytes; 57 region->length = ecc_bytes; 65 int ecc_bytes; local 70 ecc_bytes = am_get_eccsize(mtd); 71 if (ecc_bytes < 0) 72 return ecc_bytes; [all...] |
/linux-master/include/linux/ |
H A D | bch.h | 25 * @ecc_bytes: ecc max size (m*t bits) in bytes 43 unsigned int ecc_bytes; member in struct:bch_control
|
/linux-master/drivers/mtd/nand/raw/ |
H A D | marvell_nand.c | 247 * (data_bytes + spare_bytes + ecc_bytes). 250 * @ecc_bytes: Number of ecc bytes per chunk 265 int ecc_bytes; member in struct:marvell_hw_ecc_layout 280 .ecc_bytes = eb, \ 1050 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); 1099 unsigned int full_sz = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; 1164 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); 1187 lt->ecc_bytes + lt->spare_bytes); 1262 int chunk_size = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; 1267 int ecc_len = lt->ecc_bytes; [all...] |
H A D | cadence-nand-controller.c | 1523 int ecc_bytes = chip->ecc.bytes; local 1546 pos = i * (ecc_size + ecc_bytes); 1581 pos = ecc_size + i * (ecc_size + ecc_bytes); 1585 len = ecc_bytes; 1594 if (len < ecc_bytes) { 1595 len = ecc_bytes - len; 1716 int ecc_bytes = chip->ecc.bytes; local 1747 pos = i * (ecc_size + ecc_bytes); 1783 pos = ecc_size + i * (ecc_size + ecc_bytes); 1784 len = ecc_bytes; [all...] |
H A D | intel-nand-controller.c | 449 u32 ecc_steps, ecc_bytes, ecc_total, pagesize, pg_per_blk; local 485 ecc_bytes = 14; 487 ecc_bytes = DIV_ROUND_UP(ecc_strength_ds * fls(8 * ecc_size), 8); 490 ecc_total = ecc_steps * ecc_bytes;
|
H A D | nand_base.c | 4260 int ecc_bytes = chip->ecc.bytes; local 4282 memset(ecc_calc, 0xff, ecc_bytes); 4292 ecc_calc += ecc_bytes; 6019 int ecc_bytes, nsteps = mtd->writesize / preset_step; local 6032 ecc_bytes = caps->calc_ecc_bytes(preset_step, 6034 if (WARN_ON_ONCE(ecc_bytes < 0)) 6035 return ecc_bytes; 6037 if (ecc_bytes * nsteps > oobavail) { 6043 chip->ecc.bytes = ecc_bytes; 6075 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_tota local 6154 int step_size, strength, nsteps, ecc_bytes, corr; local [all...] |
H A D | omap2.c | 1445 int ecc_bytes = chip->ecc.bytes; local 1476 memset(ecc_calc + (step * ecc_bytes), 0xff, 1477 ecc_bytes); 1481 ecc_calc + (step * ecc_bytes), 1778 unsigned int ecc_bytes = nanddev_get_ecc_bytes_per_step(nand); local 1788 oobregion->offset = off + (section * (ecc_bytes + 1)); 1789 oobregion->length = ecc_bytes; 1799 unsigned int ecc_bytes = nanddev_get_ecc_bytes_per_step(nand); local 1809 off += ((ecc_bytes + 1) * nsteps);
|
H A D | meson_nand.c | 218 int ecc_bytes; local 223 ecc_bytes = DIV_ROUND_UP(strength * fls(step_size * 8), 8); 224 ecc_bytes = ALIGN(ecc_bytes, 2); 226 return ecc_bytes;
|
H A D | mtk_nand.c | 1167 u32 ecc_bytes; local 1169 ecc_bytes = DIV_ROUND_UP(nand->ecc.strength * 1172 fdm->reg_size = chip->spare_per_sector - ecc_bytes;
|
/linux-master/drivers/mtd/nand/ |
H A D | ecc-sw-bch.c | 148 if (engine_conf->bch->ecc_bytes != eccbytes) { 150 eccbytes, engine_conf->bch->ecc_bytes);
|
/linux-master/include/uapi/linux/ |
H A D | hdreg.h | 415 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member in struct:hd_driveid
|
/linux-master/lib/ |
H A D | bch.c | 202 * @ecc_bytes of @bch, and should be initialized to 0 before the first call. 1282 * BCH control structure, ecc length in bytes is given by member @ecc_bytes of 1341 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8);
|
/linux-master/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 2109 void *ecc_bytes; local 2124 ecc_bytes = chip->oob_poi + ecc.offset; 2127 ecc_bytes, ecc.length,
|