| /OK3568_Linux_fs/kernel/fs/pstore/ |
| H A D | ram_core.c | 105 prz->ecc_info.ecc_size * sizeof(prz->ecc_info.par[0])); in persistent_ram_encode_rs8() 107 for (i = 0; i < prz->ecc_info.ecc_size; i++) in persistent_ram_encode_rs8() 116 for (i = 0; i < prz->ecc_info.ecc_size; i++) in persistent_ram_decode_rs8() 130 int ecc_size = prz->ecc_info.ecc_size; in persistent_ram_update_ecc() local 133 if (!ecc_size) in persistent_ram_update_ecc() 137 par = prz->par_buffer + (start / ecc_block_size) * ecc_size; in persistent_ram_update_ecc() 144 par += ecc_size; in persistent_ram_update_ecc() 152 if (!prz->ecc_info.ecc_size) in persistent_ram_update_header_ecc() 165 if (!prz->ecc_info.ecc_size) in persistent_ram_ecc_old() 184 par += prz->ecc_info.ecc_size; in persistent_ram_ecc_old() [all …]
|
| H A D | ram.c | 749 parse_u32("ecc-size", pdata->ecc_info.ecc_size, 0); in ramoops_parse_dt() 773 !pdata->pmsg_size && !pdata->ecc_info.ecc_size) { in ramoops_parse_dt() 1017 cxt->ecc_info.ecc_size); in ramoops_probe() 1109 pdata.ecc_info.ecc_size = ramoops_ecc == 1 ? 16 : ramoops_ecc; in ramoops_register_dummy()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | sunxi_nand_spl.c | 89 int ecc_size; member 211 writel(conf->ecc_size, SUNXI_NFC_BASE + NFC_CNT); in nand_apply_config() 258 int nsectors = len / conf->ecc_size; in nand_read_page() 265 if (offs % conf->page_size || len % conf->ecc_size || in nand_read_page() 275 int data_off = i * conf->ecc_size; in nand_read_page() 283 (conf->ecc_size == 512 ? NFC_ECC_BLOCK_SIZE : 0) | in nand_read_page() 289 writel(conf->ecc_size, SUNXI_NFC_BASE + NFC_CNT); in nand_read_page() 315 conf->ecc_size); in nand_read_page() 321 if (data_off + conf->ecc_size >= len) in nand_read_page() 331 int nsectors = conf->page_size / conf->ecc_size; in nand_max_ecc_strength() [all …]
|
| H A D | denali.c | 315 int ecc_size = chip->ecc.size; in denali_check_erased_page() local 328 stat = nand_check_erased_ecc_chunk(buf, ecc_size, in denali_check_erased_page() 339 buf += ecc_size; in denali_check_erased_page() 385 unsigned int ecc_size = denali->nand.ecc.size; in denali_sw_ecc_fixup() local 417 } else if (err_byte < ecc_size) { in denali_sw_ecc_fixup() 428 offset = (err_sector * ecc_size + err_byte) * in denali_sw_ecc_fixup() 640 int ecc_size = chip->ecc.size; in denali_oob_xfer() local 656 pos = ecc_size + i * (ecc_size + ecc_bytes); in denali_oob_xfer() 697 int ecc_size = chip->ecc.size; in denali_read_page_raw() local 711 pos = i * (ecc_size + ecc_bytes); in denali_read_page_raw() [all …]
|
| H A D | pxa3xx_nand.c | 226 unsigned int ecc_size; member 625 data_len += info->step_spare_size + info->ecc_size; in handle_data_pio() 890 info->step_spare_size + info->ecc_size; in prepare_set_command() 1312 (chunk * (info->ecc_size)), in pxa3xx_nand_read_page_raw() 1313 info->ecc_size - 2); in pxa3xx_nand_read_page_raw() 1326 (info->nfullchunks * (info->ecc_size)), in pxa3xx_nand_read_page_raw() 1327 info->ecc_size - 2); in pxa3xx_nand_read_page_raw() 1529 info->ecc_size = 24; in pxa_ecc_init() 1539 info->ecc_size = 8; in pxa_ecc_init() 1554 info->ecc_size = 32; in pxa_ecc_init() [all …]
|
| H A D | fsl_ifc_nand.c | 712 const int ecc_size = chip->ecc.bytes; in check_erased_page() local 720 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page() 731 ecc += ecc_size; in check_erased_page()
|
| H A D | nand_base.c | 2959 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local 2963 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc() 2964 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc() 2974 ret = nand_write_data_op(chip, buf, ecc_size, false); in nand_write_subpage_hwecc() 2989 buf += ecc_size; in nand_write_subpage_hwecc()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | tango_nand.c | 201 const int ecc_size = chip->ecc.bytes; in check_erased_page() local 207 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page() 217 ecc += ecc_size; in check_erased_page() 405 const int ecc_size = chip->ecc.bytes; in raw_read() local 417 aux_read(chip, &oob, ecc_size, &pos); in raw_read() 424 aux_read(chip, &oob, ecc_size, &pos); in raw_read() 432 const int ecc_size = chip->ecc.bytes; in raw_write() local 444 aux_write(chip, &oob, ecc_size, &pos); in raw_write() 451 aux_write(chip, &oob, ecc_size, &pos); in raw_write()
|
| H A D | cadence-nand-controller.c | 1512 int ecc_size = chip->ecc.size; in cadence_nand_write_page_raw() local 1536 pos = i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw() 1537 len = ecc_size; in cadence_nand_write_page_raw() 1546 if (len < ecc_size) { in cadence_nand_write_page_raw() 1547 len = ecc_size - len; in cadence_nand_write_page_raw() 1571 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw() 1705 int ecc_size = chip->ecc.size; in cadence_nand_read_page_raw() local 1737 pos = i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw() 1738 len = ecc_size; in cadence_nand_read_page_raw() 1747 if (len < ecc_size) { in cadence_nand_read_page_raw() [all …]
|
| H A D | mtk_nand.c | 122 u32 ecc_size; member 381 fmt |= mtk_nand->fdm.ecc_size << PAGEFMT_FDM_ECC_SHIFT; in mtk_nfc_hw_runtime_config() 385 nfc->ecc_cfg.len = chip->ecc.size + mtk_nand->fdm.ecc_size; in mtk_nfc_hw_runtime_config() 1161 oob_region->length = fdm->reg_size - fdm->ecc_size; in mtk_nfc_ooblayout_free() 1162 oob_region->offset = section * fdm->reg_size + fdm->ecc_size; in mtk_nfc_ooblayout_free() 1204 fdm->ecc_size = 1; in mtk_nfc_set_fdm()
|
| H A D | fsl_ifc_nand.c | 642 const int ecc_size = chip->ecc.bytes; in check_erased_page() local 651 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page() 661 ecc += ecc_size; in check_erased_page()
|
| H A D | denali.c | 478 unsigned int ecc_size = chip->ecc.size; in denali_sw_ecc_fixup() local 510 } else if (err_byte < ecc_size) { in denali_sw_ecc_fixup() 521 offset = (err_sector * ecc_size + err_byte) * in denali_sw_ecc_fixup()
|
| H A D | omap2.c | 1569 int ecc_size = chip->ecc.size; in omap_write_subpage_bch() local 1572 u32 start_step = offset / ecc_size; in omap_write_subpage_bch() 1573 u32 end_step = (offset + data_len - 1) / ecc_size; in omap_write_subpage_bch() 1600 buf += ecc_size; in omap_write_subpage_bch()
|
| H A D | nand_base.c | 3783 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local 3786 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc() 3787 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc() 3800 ret = nand_write_data_op(chip, buf, ecc_size, false); in nand_write_subpage_hwecc() 3815 buf += ecc_size; in nand_write_subpage_hwecc()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | pstore_ram.h | 36 int ecc_size; member
|