Searched refs:ecc_bytes (Results 1 – 6 of 6) sorted by relevance
/drivers/mtd/nand/raw/ |
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()
|
D | marvell_nand.c | 261 int ecc_bytes; member 276 .ecc_bytes = eb, \ 999 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); in marvell_nfc_hw_ecc_hmg_do_read_page() 1048 unsigned int full_sz = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; in marvell_nfc_hw_ecc_hmg_read_page() 1111 unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0); in marvell_nfc_hw_ecc_hmg_do_write_page() 1133 lt->ecc_bytes + lt->spare_bytes); in marvell_nfc_hw_ecc_hmg_do_write_page() 1197 int chunk_size = lt->data_bytes + lt->spare_bytes + lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw() 1202 int ecc_len = lt->ecc_bytes; in marvell_nfc_hw_ecc_bch_read_page_raw() 1231 (ALIGN(lt->ecc_bytes, 32) * chunk), in marvell_nfc_hw_ecc_bch_read_page_raw() 1382 lt->ecc_bytes); in marvell_nfc_hw_ecc_bch_read_page() [all …]
|
D | nand_base.c | 3785 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc() local 3807 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc() 3817 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc() 5200 int ecc_bytes, nsteps = mtd->writesize / preset_step; in nand_check_ecc_caps() local 5213 ecc_bytes = caps->calc_ecc_bytes(preset_step, in nand_check_ecc_caps() 5215 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_check_ecc_caps() 5216 return ecc_bytes; in nand_check_ecc_caps() 5218 if (ecc_bytes * nsteps > oobavail) { in nand_check_ecc_caps() 5224 chip->ecc.bytes = ecc_bytes; in nand_check_ecc_caps() 5254 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total; in nand_match_ecc_req() local [all …]
|
D | meson_nand.c | 201 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()
|
D | mtk_nand.c | 1162 u32 ecc_bytes; in mtk_nfc_set_fdm() local 1164 ecc_bytes = DIV_ROUND_UP(nand->ecc.strength * in mtk_nfc_set_fdm() 1167 fdm->reg_size = chip->spare_per_sector - ecc_bytes; in mtk_nfc_set_fdm()
|
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()
|