Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/mtd/nand/
Dr852.c439 uint32_t ecc1, ecc2; in r852_ecc_calculate() local
447 ecc1 = r852_read_reg_dword(dev, R852_DATALINE); in r852_ecc_calculate()
450 oob->ecc1[0] = (ecc1) & 0xFF; in r852_ecc_calculate()
451 oob->ecc1[1] = (ecc1 >> 8) & 0xFF; in r852_ecc_calculate()
452 oob->ecc1[2] = (ecc1 >> 16) & 0xFF; in r852_ecc_calculate()
Dbf5xx_nand.c333 u16 ecc0, ecc1; in bf5xx_nand_calculate_ecc() local
339 ecc1 = bfin_read_NFC_ECC1(); in bf5xx_nand_calculate_ecc()
341 code[0] = (ecc0 & 0x7ff) | ((ecc1 & 0x7ff) << 11); in bf5xx_nand_calculate_ecc()
351 ecc1 = bfin_read_NFC_ECC3(); in bf5xx_nand_calculate_ecc()
352 code[1] = (ecc0 & 0x7ff) | ((ecc1 & 0x7ff) << 11); in bf5xx_nand_calculate_ecc()
Dsm_common.h20 uint8_t ecc1[3]; member
Dfsmc_nand.c792 uint32_t ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local
837 ecc1 = readl_relaxed(FSMC_NAND_REG(regs, bank, ECC1)); in fsmc_bch8_correct_data()
842 err_idx[0] = (ecc1 >> 0) & 0x1FFF; in fsmc_bch8_correct_data()
843 err_idx[1] = (ecc1 >> 13) & 0x1FFF; in fsmc_bch8_correct_data()
844 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data()
/linux-4.4.14/include/linux/mtd/
Ddoc2000.h218 int doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);
/linux-4.4.14/drivers/mtd/
Dsm_ftl.c224 if (__nand_correct_data(buffer, ecc, oob->ecc1, SM_SMALL_PAGE) < 0) in sm_correct_sector()
396 SM_SMALL_PAGE, oob.ecc1); in sm_write_block()
/linux-4.4.14/Documentation/mtd/
Dnand_ecc.txt189 void ecc1(const unsigned char *buf, unsigned char *code)