Home
last modified time | relevance | path

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

/linux/fs/pstore/
H A 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 …]
H A Dram.c694 parse_u32("ecc-size", pdata->ecc_info.ecc_size, 0); in ramoops_parse_dt()
714 !pdata->pmsg_size && !pdata->ecc_info.ecc_size) { in ramoops_parse_dt()
870 cxt->ecc_info.ecc_size); in ramoops_probe()
965 pdata.ecc_info.ecc_size = ramoops_ecc == 1 ? 16 : ramoops_ecc; in ramoops_register_dummy()
/linux/include/linux/
H A Dpstore_ram.h15 int ecc_size; member
/linux/drivers/mtd/nand/raw/
H A Dintel-nand-controller.c451 u32 ecc_size = chip->ecc.size; in ebu_nand_attach_chip() local
460 switch (ecc_size) { in ebu_nand_attach_chip()
487 ecc_bytes = DIV_ROUND_UP(ecc_strength_ds * fls(8 * ecc_size), 8); in ebu_nand_attach_chip()
489 ecc_steps = writesize / ecc_size; in ebu_nand_attach_chip()
H A 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()
H A Ddenali.c478 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 Domap2.c1444 int ecc_size = chip->ecc.size; in omap_write_subpage_bch() local
1446 u32 start_step = offset / ecc_size; in omap_write_subpage_bch()
1447 u32 end_step = (offset + data_len - 1) / ecc_size; in omap_write_subpage_bch()
1480 bufoffs + (step * ecc_size), in omap_write_subpage_bch()
H A Dnand_base.c4266 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local
4269 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc()
4270 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc()
4283 ret = nand_write_data_op(chip, buf, ecc_size, false); in nand_write_subpage_hwecc()
4298 buf += ecc_size; in nand_write_subpage_hwecc()