Home
last modified time | relevance | path

Searched refs:ecc_bytes (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/drivers/mtd/nand/spi/
H A Dalliancememory.c50 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 …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Ddenali.c328 ecc_code, ecc_bytes, in denali_check_erased_page()
339 ecc_code += ecc_bytes; in denali_check_erased_page()
656 len = ecc_bytes; in denali_oob_xfer()
669 if (len < ecc_bytes) { in denali_oob_xfer()
670 len = ecc_bytes - len; in denali_oob_xfer()
739 len = ecc_bytes; in denali_read_page_raw()
748 if (len < ecc_bytes) { in denali_read_page_raw()
749 len = ecc_bytes - len; in denali_read_page_raw()
873 len = ecc_bytes; in denali_write_page_raw()
882 if (len < ecc_bytes) { in denali_write_page_raw()
[all …]
H A Dsunxi_nand_spl.c252 static const int ecc_bytes[] = {32, 46, 54, 60, 74, 88, 102, 110, 116}; variable
259 int oob_chunk_sz = ecc_bytes[conf->ecc_strength]; in nand_read_page()
356 for (i = 0; i < ARRAY_SIZE(ecc_bytes); i++) { in nand_max_ecc_strength()
357 if (ecc_bytes[i] > max_ecc_bytes) in nand_max_ecc_strength()
H A Dnand_bch.c143 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init()
145 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init()
H A Dnand_base.c2289 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc() local
2306 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc()
2316 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc()
4047 int nsteps, ecc_bytes; in nand_check_ecc_caps() local
4070 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_check_ecc_caps()
4071 return ecc_bytes; in nand_check_ecc_caps()
4079 chip->ecc.bytes = ecc_bytes; in nand_check_ecc_caps()
4145 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_match_ecc_req()
4161 best_ecc_bytes = ecc_bytes; in nand_match_ecc_req()
4217 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_maximize_ecc()
[all …]
/openbmc/u-boot/include/linux/
H A Dbch.h42 unsigned int ecc_bytes; member
/openbmc/linux/include/linux/
H A Dbch.h43 unsigned int ecc_bytes; member
/openbmc/linux/drivers/mtd/nand/raw/
H A Dmarvell_nand.c265 int ecc_bytes; member
280 .ecc_bytes = eb, \
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()
1296 (ALIGN(lt->ecc_bytes, 32) * chunk), in marvell_nfc_hw_ecc_bch_read_page_raw()
1446 lt->ecc_bytes); in marvell_nfc_hw_ecc_bch_read_page()
1458 (chunk * (lt->ecc_bytes + 2)); in marvell_nfc_hw_ecc_bch_read_page()
1464 ecc_len = chunk < lt->full_chunk_cnt ? lt->ecc_bytes : in marvell_nfc_hw_ecc_bch_read_page()
1519 int ecc_len = lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_write_page_raw()
[all …]
H A Dintel-nand-controller.c449 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 Domap2.c1445 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 Dcadence-nand-controller.c1521 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()
1782 len = ecc_bytes; in cadence_nand_read_page_raw()
1794 if (len < ecc_bytes) { in cadence_nand_read_page_raw()
[all …]
H A Dnand_base.c4241 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc() local
4263 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc()
4273 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc()
6015 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_check_ecc_caps()
6016 return ecc_bytes; in nand_check_ecc_caps()
6024 chip->ecc.bytes = ecc_bytes; in nand_check_ecc_caps()
6089 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_match_ecc_req()
6105 best_ecc_bytes = ecc_bytes; in nand_match_ecc_req()
6158 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_maximize_ecc()
6161 if (ecc_bytes * nsteps > oobavail) in nand_maximize_ecc()
[all …]
H A Dmeson_nand.c216 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 Dmtk_nand.c1167 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()
/openbmc/u-boot/include/
H A Data.h153 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
/openbmc/linux/drivers/mtd/nand/
H A Decc-sw-bch.c148 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()
/openbmc/u-boot/board/ge/common/
H A Dvpd_reader.c60 if (bch->ecc_bytes != ecc_length) { in verify_bch()
/openbmc/linux/include/uapi/linux/
H A Dhdreg.h415 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c2219 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()
/openbmc/u-boot/lib/
H A Dbch.c1343 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); in init_bch()
/openbmc/linux/lib/
H A Dbch.c1341 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); in bch_init()