Searched refs:ecc_size (Results 1 – 7 of 7) sorted by relevance
1512 int ecc_size = chip->ecc.size; in cadence_nand_write_page_raw() local1536 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() local1737 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 …]
451 u32 ecc_size = chip->ecc.size; in ebu_nand_attach_chip() local460 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()
122 u32 ecc_size; member381 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()
641 const int ecc_size = chip->ecc.bytes; in check_erased_page() local650 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page()660 ecc += ecc_size; in check_erased_page()
478 unsigned int ecc_size = chip->ecc.size; in denali_sw_ecc_fixup() local510 } else if (err_byte < ecc_size) { in denali_sw_ecc_fixup()521 offset = (err_sector * ecc_size + err_byte) * in denali_sw_ecc_fixup()
1444 int ecc_size = chip->ecc.size; in omap_write_subpage_bch() local1446 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()
4083 int ecc_size = chip->ecc.size; in nand_write_subpage_hwecc() local4086 uint32_t start_step = offset / ecc_size; in nand_write_subpage_hwecc()4087 uint32_t end_step = (offset + data_len - 1) / ecc_size; in nand_write_subpage_hwecc()4100 ret = nand_write_data_op(chip, buf, ecc_size, false); in nand_write_subpage_hwecc()4115 buf += ecc_size; in nand_write_subpage_hwecc()