Home
last modified time | relevance | path

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

/linux-6.3-rc2/fs/pstore/
A Dram_core.c131 int ecc_size = prz->ecc_info.ecc_size; in persistent_ram_update_ecc() local
134 if (!ecc_size) in persistent_ram_update_ecc()
145 par += ecc_size; in persistent_ram_update_ecc()
153 if (!prz->ecc_info.ecc_size) in persistent_ram_update_header_ecc()
166 if (!prz->ecc_info.ecc_size) in persistent_ram_ecc_old()
185 par += prz->ecc_info.ecc_size; in persistent_ram_ecc_old()
197 if (!ecc_info || !ecc_info->ecc_size) in persistent_ram_init_ecc()
201 prz->ecc_info.ecc_size = ecc_info->ecc_size ?: 16; in persistent_ram_init_ecc()
207 prz->ecc_info.ecc_size); in persistent_ram_init_ecc()
226 0, 1, prz->ecc_info.ecc_size); in persistent_ram_init_ecc()
[all …]
A Dram.c688 parse_u32("ecc-size", pdata->ecc_info.ecc_size, 0); in ramoops_parse_dt()
708 !pdata->pmsg_size && !pdata->ecc_info.ecc_size) { in ramoops_parse_dt()
864 cxt->ecc_info.ecc_size); in ramoops_probe()
950 pdata.ecc_info.ecc_size = ramoops_ecc == 1 ? 16 : ramoops_ecc; in ramoops_register_dummy()
/linux-6.3-rc2/include/linux/
A Dpstore_ram.h15 int ecc_size; member
/linux-6.3-rc2/drivers/mtd/nand/raw/
A Dcadence-nand-controller.c1520 int ecc_size = chip->ecc.size; in cadence_nand_write_page_raw() local
1545 len = ecc_size; in cadence_nand_write_page_raw()
1554 if (len < ecc_size) { in cadence_nand_write_page_raw()
1555 len = ecc_size - len; in cadence_nand_write_page_raw()
1579 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw()
1713 int ecc_size = chip->ecc.size; in cadence_nand_read_page_raw() local
1746 len = ecc_size; in cadence_nand_read_page_raw()
1755 if (len < ecc_size) { in cadence_nand_read_page_raw()
1756 len = ecc_size - len; in cadence_nand_read_page_raw()
1781 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw()
[all …]
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()
A 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()
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()
A Dfsl_ifc_nand.c641 const int ecc_size = chip->ecc.bytes; in check_erased_page() local
650 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page()
660 ecc += ecc_size; in check_erased_page()
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()
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()
A Dnand_base.c4179 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local
4182 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc()
4183 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc()
4196 ret = nand_write_data_op(chip, buf, ecc_size, false); in nand_write_subpage_hwecc()
4211 buf += ecc_size; in nand_write_subpage_hwecc()

Completed in 37 milliseconds