Home
last modified time | relevance | path

Searched refs:ecc_size (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/fs/pstore/
Dram_core.c105 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 …]
Dram.c690 parse_size("ecc-size", pdata->ecc_info.ecc_size); in ramoops_parse_dt()
709 !pdata->pmsg_size && !pdata->ecc_info.ecc_size) { in ramoops_parse_dt()
862 cxt->ecc_info.ecc_size); in ramoops_probe()
945 pdata.ecc_info.ecc_size = ramoops_ecc == 1 ? 16 : ramoops_ecc; in ramoops_register_dummy()
/Linux-v5.4/drivers/mtd/nand/raw/
Dtango_nand.c180 const int ecc_size = chip->ecc.bytes; in check_erased_page() local
186 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page()
196 ecc += ecc_size; in check_erased_page()
371 const int ecc_size = chip->ecc.bytes; in raw_read() local
383 aux_read(chip, &oob, ecc_size, &pos); in raw_read()
390 aux_read(chip, &oob, ecc_size, &pos); in raw_read()
398 const int ecc_size = chip->ecc.bytes; in raw_write() local
410 aux_write(chip, &oob, ecc_size, &pos); in raw_write()
417 aux_write(chip, &oob, ecc_size, &pos); in raw_write()
Dmtk_nand.c122 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()
1129 oob_region->length = fdm->reg_size - fdm->ecc_size; in mtk_nfc_ooblayout_free()
1130 oob_region->offset = section * fdm->reg_size + fdm->ecc_size; in mtk_nfc_ooblayout_free()
1172 fdm->ecc_size = 1; in mtk_nfc_set_fdm()
Dfsl_ifc_nand.c642 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()
Ddenali.c479 unsigned int ecc_size = chip->ecc.size; in denali_sw_ecc_fixup() local
511 } else if (err_byte < ecc_size) { in denali_sw_ecc_fixup()
522 offset = (err_sector * ecc_size + err_byte) * in denali_sw_ecc_fixup()
Domap2.c1569 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()
Dnand_base.c3780 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local
3783 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc()
3784 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc()
3797 ret = nand_write_data_op(chip, buf, ecc_size, false); in nand_write_subpage_hwecc()
3812 buf += ecc_size; in nand_write_subpage_hwecc()
/Linux-v5.4/include/linux/
Dpstore_ram.h36 int ecc_size; member