Home
last modified time | relevance | path

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

/linux/drivers/mtd/nand/raw/
A Dmarvell_nand.c263 int ecc_bytes; member
278 .ecc_bytes = eb, \
1172 lt->ecc_bytes + lt->spare_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page()
1236 int chunk_size = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw()
1241 int ecc_len = lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw()
1270 (ALIGN(lt->ecc_bytes, 32) * chunk), in marvell_nfc_hw_ecc_bch_read_page_raw()
1420 lt->ecc_bytes); in marvell_nfc_hw_ecc_bch_read_page()
1432 (chunk * (lt->ecc_bytes + 2)); in marvell_nfc_hw_ecc_bch_read_page()
1438 ecc_len = chunk < lt->full_chunk_cnt ? lt->ecc_bytes : in marvell_nfc_hw_ecc_bch_read_page()
1493 int ecc_len = lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_write_page_raw()
[all …]
A Dintel-nand-controller.c452 u32 ecc_steps, ecc_bytes, ecc_total, pagesize, pg_per_blk; in ebu_nand_attach_chip() local
488 ecc_bytes = 14; in ebu_nand_attach_chip()
490 ecc_bytes = DIV_ROUND_UP(ecc_strength_ds * fls(8 * ecc_size), 8); in ebu_nand_attach_chip()
493 ecc_total = ecc_steps * ecc_bytes; in ebu_nand_attach_chip()
A 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()
1774 len = ecc_bytes; in cadence_nand_read_page_raw()
1786 if (len < ecc_bytes) { in cadence_nand_read_page_raw()
[all …]
A Domap2.c1589 int ecc_bytes = chip->ecc.bytes; in omap_write_subpage_bch() local
1620 memset(ecc_calc + (step * ecc_bytes), 0xff, in omap_write_subpage_bch()
1621 ecc_bytes); in omap_write_subpage_bch()
1625 ecc_calc + (step * ecc_bytes), in omap_write_subpage_bch()
1922 unsigned int ecc_bytes = nanddev_get_ecc_bytes_per_step(nand); in omap_sw_ooblayout_ecc() local
1932 oobregion->offset = off + (section * (ecc_bytes + 1)); in omap_sw_ooblayout_ecc()
1933 oobregion->length = ecc_bytes; in omap_sw_ooblayout_ecc()
1943 unsigned int ecc_bytes = nanddev_get_ecc_bytes_per_step(nand); in omap_sw_ooblayout_free() local
1953 off += ((ecc_bytes + 1) * nsteps); in omap_sw_ooblayout_free()
A Dnand_base.c4007 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc() local
4029 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc()
4039 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc()
5720 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_check_ecc_caps()
5721 return ecc_bytes; in nand_check_ecc_caps()
5729 chip->ecc.bytes = ecc_bytes; in nand_check_ecc_caps()
5794 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_match_ecc_req()
5810 best_ecc_bytes = ecc_bytes; in nand_match_ecc_req()
5863 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_maximize_ecc()
5866 if (ecc_bytes * nsteps > oobavail) in nand_maximize_ecc()
[all …]
A Dmeson_nand.c201 int ecc_bytes; in meson_nand_calc_ecc_bytes() local
206 ecc_bytes = DIV_ROUND_UP(strength * fls(step_size * 8), 8); in meson_nand_calc_ecc_bytes()
207 ecc_bytes = ALIGN(ecc_bytes, 2); in meson_nand_calc_ecc_bytes()
209 return ecc_bytes; in meson_nand_calc_ecc_bytes()
A 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()
/linux/include/linux/
A Dbch.h43 unsigned int ecc_bytes; member
/linux/drivers/mtd/nand/
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()
/linux/include/uapi/linux/
A Dhdreg.h415 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
/linux/drivers/mtd/nand/raw/brcmnand/
A Dbrcmnand.c2149 void *ecc_bytes; in brcmstb_nand_verify_erased_page() local
2164 ecc_bytes = chip->oob_poi + ecc.offset; in brcmstb_nand_verify_erased_page()
2167 ecc_bytes, ecc.length, in brcmstb_nand_verify_erased_page()
/linux/lib/
A Dbch.c1375 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); in bch_init()

Completed in 61 milliseconds