Home
last modified time | relevance | path

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

/drivers/mtd/nand/raw/
Dnand_bch.c138 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init()
140 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init()
Dmarvell_nand.c263 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()
1282 (ALIGN(lt->ecc_bytes, 32) * chunk), in marvell_nfc_hw_ecc_bch_read_page_raw()
1432 lt->ecc_bytes); in marvell_nfc_hw_ecc_bch_read_page()
[all …]
Dcadence-nand-controller.c1513 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 …]
Dnand_base.c3784 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_total; in nand_match_ecc_req() local
[all …]
Dmeson_nand.c203 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()
Dmtk_nand.c1194 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()
Domap2.c1570 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()
/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c2163 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()