Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/mtd/nand/
Dr852.c439 uint32_t ecc1, ecc2; in r852_ecc_calculate() local
448 ecc2 = r852_read_reg_dword(dev, R852_DATALINE); in r852_ecc_calculate()
454 oob->ecc2[0] = (ecc2) & 0xFF; in r852_ecc_calculate()
455 oob->ecc2[1] = (ecc2 >> 8) & 0xFF; in r852_ecc_calculate()
456 oob->ecc2[2] = (ecc2 >> 16) & 0xFF; in r852_ecc_calculate()
Dsm_common.h18 uint8_t ecc2[3]; member
Dfsmc_nand.c792 uint32_t ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local
838 ecc2 = readl_relaxed(FSMC_NAND_REG(regs, bank, ECC2)); in fsmc_bch8_correct_data()
844 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data()
845 err_idx[3] = (ecc2 >> 7) & 0x1FFF; in fsmc_bch8_correct_data()
846 err_idx[4] = (((ecc3 >> 0) & 0x1) << 12) | ((ecc2 >> 20) & 0xFFF); in fsmc_bch8_correct_data()
/linux-4.1.27/drivers/usb/storage/
Dalauda.c225 static unsigned char ecc2[256]; variable
247 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()
273 ecc[2] = ecc2[par]; in nand_compute_ecc()
Dsddr09.c194 static unsigned char ecc2[256]; variable
215 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()
240 ecc[2] = ecc2[par]; in nand_compute_ecc()
/linux-4.1.27/drivers/mtd/
Dsm_ftl.c230 if (__nand_correct_data(buffer, ecc, oob->ecc2, SM_SMALL_PAGE) < 0) in sm_correct_sector()
399 SM_SMALL_PAGE, oob.ecc2); in sm_write_block()
/linux-4.1.27/Documentation/mtd/
Dnand_ecc.txt298 void ecc2(const unsigned char *buf, unsigned char *code)