Home
last modified time | relevance | path

Searched refs:ecc1 (Results 1 – 15 of 15) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/rkflash/
H A Dflash.c144 u32 ecc0, ecc1; in flash_read_ecc() local
149 ecc1 = nandc_readl(NANDC_CHIP_DATA(cs)) & 0xF; in flash_read_ecc()
150 if (ecc1 > ecc0) in flash_read_ecc()
151 ecc0 = ecc1; in flash_read_ecc()
152 ecc1 = nandc_readl(NANDC_CHIP_DATA(cs)) & 0xF; in flash_read_ecc()
153 if (ecc1 > ecc0) in flash_read_ecc()
154 ecc0 = ecc1; in flash_read_ecc()
155 ecc1 = nandc_readl(NANDC_CHIP_DATA(cs)) & 0xF; in flash_read_ecc()
156 if (ecc1 > ecc0) in flash_read_ecc()
157 ecc0 = ecc1; in flash_read_ecc()
/OK3568_Linux_fs/u-boot/drivers/rkflash/
H A Dflash.c143 u32 ecc0, ecc1; in flash_read_ecc() local
148 ecc1 = nandc_readl(NANDC_CHIP_DATA(cs)) & 0xF; in flash_read_ecc()
149 if (ecc1 > ecc0) in flash_read_ecc()
150 ecc0 = ecc1; in flash_read_ecc()
151 ecc1 = nandc_readl(NANDC_CHIP_DATA(cs)) & 0xF; in flash_read_ecc()
152 if (ecc1 > ecc0) in flash_read_ecc()
153 ecc0 = ecc1; in flash_read_ecc()
154 ecc1 = nandc_readl(NANDC_CHIP_DATA(cs)) & 0xF; in flash_read_ecc()
155 if (ecc1 > ecc0) in flash_read_ecc()
156 ecc0 = ecc1; in flash_read_ecc()
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dfsmc_nand.c200 u32 ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local
234 ecc1 = readl(&fsmc_regs_p->ecc1); in fsmc_bch8_correct_data()
239 err_idx[0] = (ecc1 >> 0) & 0x1FFF; in fsmc_bch8_correct_data()
240 err_idx[1] = (ecc1 >> 13) & 0x1FFF; in fsmc_bch8_correct_data()
241 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data()
280 ecc_tmp = readl(&fsmc_regs_p->ecc1); in fsmc_read_hwecc()
303 ecc_tmp = readl(&fsmc_regs_p->ecc1); in fsmc_read_hwecc()
/OK3568_Linux_fs/u-boot/fs/yaffs2/
H A Dyaffs_mtdif.c53 spare->ecc1[0] = spare->ecc1[1] = spare->ecc1[2] = 0xff; in translate_oob2spare()
H A Dyaffs_tagscompat.c27 yaffs_ecc_calc(data, spare->ecc1); in yaffs_calc_ecc()
167 yaffs_ecc_correct(data, spare->ecc1, calc_ecc); in yaffs_rd_chunk_nand()
H A Dyaffs_guts.h219 u8 ecc1[3]; member
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Dr852.c435 uint32_t ecc1, ecc2; in r852_ecc_calculate() local
443 ecc1 = r852_read_reg_dword(dev, R852_DATALINE); in r852_ecc_calculate()
446 oob->ecc1[0] = (ecc1) & 0xFF; in r852_ecc_calculate()
447 oob->ecc1[1] = (ecc1 >> 8) & 0xFF; in r852_ecc_calculate()
448 oob->ecc1[2] = (ecc1 >> 16) & 0xFF; in r852_ecc_calculate()
H A Dsm_common.h17 uint8_t ecc1[3]; member
H A Dfsmc_nand.c774 u32 ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local
819 ecc1 = readl_relaxed(host->regs_va + ECC1); in fsmc_bch8_correct_data()
824 err_idx[0] = (ecc1 >> 0) & 0x1FFF; in fsmc_bch8_correct_data()
825 err_idx[1] = (ecc1 >> 13) & 0x1FFF; in fsmc_bch8_correct_data()
826 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data()
H A Drockchip-nand-controller.c149 struct ecc_cnt_status ecc1; member
830 bch_st & BIT(nfc->cfg->ecc1.err_flag_bit)) { in rk_nfc_read_page_hwecc()
838 cnt = ECC_ERR_CNT(bch_st, nfc->cfg->ecc1); in rk_nfc_read_page_hwecc()
1261 .ecc1 = {
1298 .ecc1 = {
1335 .ecc1 = {
/OK3568_Linux_fs/u-boot/include/linux/mtd/
H A Dfsmc_nand.h21 u32 ecc1; /* 0x54 */ member
H A Ddoc2000.h197 int doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);
/OK3568_Linux_fs/kernel/include/linux/mtd/
H A Ddoc2000.h204 int doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dsm_ftl.c223 if (__nand_correct_data(buffer, ecc, oob->ecc1, SM_SMALL_PAGE, in sm_correct_sector()
399 oob.ecc1, in sm_write_block()
/OK3568_Linux_fs/kernel/Documentation/driver-api/mtd/
H A Dnand_ecc.rst212 void ecc1(const unsigned char *buf, unsigned char *code)