/kernel/linux/linux-6.6/drivers/mtd/nand/spi/ |
H A D | alliancememory.c | 50 int ecc_bytes; in am_ooblayout_ecc() local 52 ecc_bytes = am_get_eccsize(mtd); in am_ooblayout_ecc() 53 if (ecc_bytes < 0) in am_ooblayout_ecc() 54 return ecc_bytes; in am_ooblayout_ecc() 56 region->offset = mtd->oobsize - ecc_bytes; in am_ooblayout_ecc() 57 region->length = ecc_bytes; in am_ooblayout_ecc() 65 int ecc_bytes; in am_ooblayout_free() local 70 ecc_bytes = am_get_eccsize(mtd); in am_ooblayout_free() 71 if (ecc_bytes < 0) in am_ooblayout_free() 72 return ecc_bytes; in am_ooblayout_free() [all...] |
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
H A D | nand_bch.c | 138 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init() 140 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init()
|
H A D | marvell_nand.c | 245 * (data_bytes + spare_bytes + ecc_bytes). 248 * @ecc_bytes: Number of ecc bytes per chunk 263 int ecc_bytes; member 278 .ecc_bytes = eb, \ 1036 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); in marvell_nfc_hw_ecc_hmg_do_read_page() 1085 unsigned int full_sz = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; in marvell_nfc_hw_ecc_hmg_read_page() 1150 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); in marvell_nfc_hw_ecc_hmg_do_write_page() 1173 lt->ecc_bytes + lt->spare_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page() 1248 int chunk_size = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw() 1253 int ecc_len = lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw() [all...] |
H A D | cadence-nand-controller.c | 1513 int ecc_bytes = chip->ecc.bytes; in cadence_nand_write_page_raw() local 1536 pos = i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw() 1571 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw() 1575 len = ecc_bytes; in cadence_nand_write_page_raw() 1584 if (len < ecc_bytes) { in cadence_nand_write_page_raw() 1585 len = ecc_bytes - len; in cadence_nand_write_page_raw() 1706 int ecc_bytes = chip->ecc.bytes; in cadence_nand_read_page_raw() local 1737 pos = i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw() 1773 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw() 1774 len = ecc_bytes; in cadence_nand_read_page_raw() [all...] |
H A D | nand_base.c | 3784 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc() local 3806 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc() 3816 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc() 5320 int ecc_bytes, nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps() local 5333 ecc_bytes = caps->calc_ecc_bytes(preset_step, in nand_check_ecc_caps() 5335 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_check_ecc_caps() 5336 return ecc_bytes; in nand_check_ecc_caps() 5338 if (ecc_bytes * nsteps > oobavail) { in nand_check_ecc_caps() 5344 chip->ecc.bytes = ecc_bytes; in nand_check_ecc_caps() 5376 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_tota in nand_match_ecc_req() local 5455 int step_size, strength, nsteps, ecc_bytes, corr; nand_maximize_ecc() local [all...] |
H A D | meson_nand.c | 203 int ecc_bytes; in meson_nand_calc_ecc_bytes() local 208 ecc_bytes = DIV_ROUND_UP(strength * fls(step_size * 8), 8); in meson_nand_calc_ecc_bytes() 209 ecc_bytes = ALIGN(ecc_bytes, 2); in meson_nand_calc_ecc_bytes() 211 return ecc_bytes; in meson_nand_calc_ecc_bytes()
|
H A D | omap2.c | 1570 int ecc_bytes = chip->ecc.bytes; in omap_write_subpage_bch() local 1593 memset(ecc_calc, 0xff, ecc_bytes); in omap_write_subpage_bch() 1601 ecc_calc += ecc_bytes; in omap_write_subpage_bch()
|
H A D | mtk_nand.c | 1194 u32 ecc_bytes; in mtk_nfc_set_fdm() local 1196 ecc_bytes = DIV_ROUND_UP(nand->ecc.strength * in mtk_nfc_set_fdm() 1199 fdm->reg_size = chip->spare_per_sector - ecc_bytes; in mtk_nfc_set_fdm()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | bch.h | 25 * @ecc_bytes: ecc max size (m*t bits) in bytes 43 unsigned int ecc_bytes; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | bch.h | 25 * @ecc_bytes: ecc max size (m*t bits) in bytes 43 unsigned int ecc_bytes; member
|
/kernel/linux/linux-6.6/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 280 .ecc_bytes = eb, \ 1050 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); in marvell_nfc_hw_ecc_hmg_do_read_page() 1099 unsigned int full_sz = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; in marvell_nfc_hw_ecc_hmg_read_page() 1164 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); in marvell_nfc_hw_ecc_hmg_do_write_page() 1187 lt->ecc_bytes + lt->spare_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page() 1262 int chunk_size = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw() 1267 int ecc_len = lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw() [all...] |
H A D | cadence-nand-controller.c | 1521 int ecc_bytes = chip->ecc.bytes; in cadence_nand_write_page_raw() local 1544 pos = i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw() 1579 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw() 1583 len = ecc_bytes; in cadence_nand_write_page_raw() 1592 if (len < ecc_bytes) { in cadence_nand_write_page_raw() 1593 len = ecc_bytes - len; in cadence_nand_write_page_raw() 1714 int ecc_bytes = chip->ecc.bytes; in cadence_nand_read_page_raw() local 1745 pos = i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw() 1781 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw() 1782 len = ecc_bytes; in cadence_nand_read_page_raw() [all...] |
H A D | omap2.c | 1445 int ecc_bytes = chip->ecc.bytes; in omap_write_subpage_bch() local 1476 memset(ecc_calc + (step * ecc_bytes), 0xff, in omap_write_subpage_bch() 1477 ecc_bytes); in omap_write_subpage_bch() 1481 ecc_calc + (step * ecc_bytes), in omap_write_subpage_bch() 1778 unsigned int ecc_bytes = nanddev_get_ecc_bytes_per_step(nand); in omap_sw_ooblayout_ecc() local 1788 oobregion->offset = off + (section * (ecc_bytes + 1)); in omap_sw_ooblayout_ecc() 1789 oobregion->length = ecc_bytes; in omap_sw_ooblayout_ecc() 1799 unsigned int ecc_bytes = nanddev_get_ecc_bytes_per_step(nand); in omap_sw_ooblayout_free() local 1809 off += ((ecc_bytes + 1) * nsteps); in omap_sw_ooblayout_free()
|
H A D | intel-nand-controller.c | 449 u32 ecc_steps, ecc_bytes, ecc_total, pagesize, pg_per_blk; in ebu_nand_attach_chip() local 485 ecc_bytes = 14; in ebu_nand_attach_chip() 487 ecc_bytes = DIV_ROUND_UP(ecc_strength_ds * fls(8 * ecc_size), 8); in ebu_nand_attach_chip() 490 ecc_total = ecc_steps * ecc_bytes; in ebu_nand_attach_chip()
|
H A D | nand_base.c | 4234 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc() local 4256 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc() 4266 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc() 5984 int ecc_bytes, nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps() local 5997 ecc_bytes = caps->calc_ecc_bytes(preset_step, in nand_check_ecc_caps() 5999 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_check_ecc_caps() 6000 return ecc_bytes; in nand_check_ecc_caps() 6002 if (ecc_bytes * nsteps > oobavail) { in nand_check_ecc_caps() 6008 chip->ecc.bytes = ecc_bytes; in nand_check_ecc_caps() 6040 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_tota in nand_match_ecc_req() local 6119 int step_size, strength, nsteps, ecc_bytes, corr; nand_maximize_ecc() local [all...] |
H A D | meson_nand.c | 216 int ecc_bytes; in meson_nand_calc_ecc_bytes() local 221 ecc_bytes = DIV_ROUND_UP(strength * fls(step_size * 8), 8); in meson_nand_calc_ecc_bytes() 222 ecc_bytes = ALIGN(ecc_bytes, 2); in meson_nand_calc_ecc_bytes() 224 return ecc_bytes; in meson_nand_calc_ecc_bytes()
|
H A D | mtk_nand.c | 1167 u32 ecc_bytes; in mtk_nfc_set_fdm() local 1169 ecc_bytes = DIV_ROUND_UP(nand->ecc.strength * in mtk_nfc_set_fdm() 1172 fdm->reg_size = chip->spare_per_sector - ecc_bytes; in mtk_nfc_set_fdm()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/ |
H A D | ecc-sw-bch.c | 148 if (engine_conf->bch->ecc_bytes != eccbytes) { in nand_ecc_sw_bch_init() 150 eccbytes, engine_conf->bch->ecc_bytes); in nand_ecc_sw_bch_init()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | hdreg.h | 415 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | hdreg.h | 415 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | hdreg.h | 318 unsigned short ecc_bytes; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | hdreg.h | 318 unsigned short ecc_bytes; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | hdreg.h | 319 unsigned short ecc_bytes; member
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 2163 void *ecc_bytes; in brcmstb_nand_verify_erased_page() local 2178 ecc_bytes = chip->oob_poi + ecc.offset; in brcmstb_nand_verify_erased_page() 2181 ecc_bytes, ecc.length, in brcmstb_nand_verify_erased_page()
|
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/brcmnand/ |
H A D | brcmnand.c | 2219 void *ecc_bytes; in brcmstb_nand_verify_erased_page() local 2234 ecc_bytes = chip->oob_poi + ecc.offset; in brcmstb_nand_verify_erased_page() 2237 ecc_bytes, ecc.length, in brcmstb_nand_verify_erased_page()
|