| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | denali.c | 316 int ecc_bytes = chip->ecc.bytes; in denali_check_erased_page() local 329 ecc_code, ecc_bytes, in denali_check_erased_page() 340 ecc_code += ecc_bytes; in denali_check_erased_page() 641 int ecc_bytes = chip->ecc.bytes; in denali_oob_xfer() local 656 pos = ecc_size + i * (ecc_size + ecc_bytes); in denali_oob_xfer() 657 len = ecc_bytes; in denali_oob_xfer() 670 if (len < ecc_bytes) { in denali_oob_xfer() 671 len = ecc_bytes - len; in denali_oob_xfer() 698 int ecc_bytes = chip->ecc.bytes; in denali_read_page_raw() local 711 pos = i * (ecc_size + ecc_bytes); in denali_read_page_raw() [all …]
|
| H A D | sunxi_nand_spl.c | 253 static const int ecc_bytes[] = {32, 46, 54, 60, 74, 88, 102, 110, 116}; variable 260 int oob_chunk_sz = ecc_bytes[conf->ecc_strength]; in nand_read_page() 357 for (i = 0; i < ARRAY_SIZE(ecc_bytes); i++) { in nand_max_ecc_strength() 358 if (ecc_bytes[i] > max_ecc_bytes) in nand_max_ecc_strength()
|
| H A D | nand_bch.c | 143 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init() 145 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init()
|
| H A D | nand_base.c | 2960 int ecc_bytes = chip->ecc.bytes; in nand_write_subpage_hwecc() local 2980 memset(ecc_calc, 0xff, ecc_bytes); in nand_write_subpage_hwecc() 2990 ecc_calc += ecc_bytes; in nand_write_subpage_hwecc() 4740 int nsteps, ecc_bytes; in nand_check_ecc_caps() local 4761 ecc_bytes = caps->calc_ecc_bytes(preset_step, in nand_check_ecc_caps() 4763 if (WARN_ON_ONCE(ecc_bytes < 0)) in nand_check_ecc_caps() 4764 return ecc_bytes; in nand_check_ecc_caps() 4766 if (ecc_bytes * nsteps > oobavail) { in nand_check_ecc_caps() 4772 chip->ecc.bytes = ecc_bytes; in nand_check_ecc_caps() 4802 int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total; in nand_match_ecc_req() local [all …]
|
| /OK3568_Linux_fs/kernel/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 | 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() 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() [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_total; in nand_match_ecc_req() local [all …]
|
| H A 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()
|
| 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()
|
| 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()
|
| /OK3568_Linux_fs/u-boot/include/linux/ |
| H A D | bch.h | 43 unsigned int ecc_bytes; member
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | bch.h | 43 unsigned int ecc_bytes; member
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | ata.h | 154 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | hdreg.h | 415 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | hdreg.h | 402 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | hdreg.h | 402 unsigned short ecc_bytes; /* for r/w long cmds; 0 = not_specified */ member
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/brcmnand/ |
| H A D | brcmnand.c | 2105 void *ecc_bytes; in brcmstb_nand_verify_erased_page() local 2120 ecc_bytes = chip->oob_poi + ecc.offset; in brcmstb_nand_verify_erased_page() 2123 ecc_bytes, ecc.length, in brcmstb_nand_verify_erased_page()
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | bch.c | 1375 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); in bch_init()
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | bch.c | 1337 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); in init_bch()
|