Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/nand/raw/
Dr852.c435 uint32_t ecc1, ecc2; in r852_ecc_calculate() local
444 ecc2 = r852_read_reg_dword(dev, R852_DATALINE); in r852_ecc_calculate()
450 oob->ecc2[0] = (ecc2) & 0xFF; in r852_ecc_calculate()
451 oob->ecc2[1] = (ecc2 >> 8) & 0xFF; in r852_ecc_calculate()
452 oob->ecc2[2] = (ecc2 >> 16) & 0xFF; in r852_ecc_calculate()
Dsm_common.h15 uint8_t ecc2[3]; member
Dfsmc_nand.c785 u32 ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local
831 ecc2 = readl_relaxed(host->regs_va + ECC2); in fsmc_bch8_correct_data()
837 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data()
838 err_idx[3] = (ecc2 >> 7) & 0x1FFF; in fsmc_bch8_correct_data()
839 err_idx[4] = (((ecc3 >> 0) & 0x1) << 12) | ((ecc2 >> 20) & 0xFFF); in fsmc_bch8_correct_data()
/linux-6.1.9/drivers/usb/storage/
Dalauda.c216 static unsigned char ecc2[256]; variable
238 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()
264 ecc[2] = ecc2[par]; in nand_compute_ecc()
Dsddr09.c186 static unsigned char ecc2[256]; variable
207 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()
232 ecc[2] = ecc2[par]; in nand_compute_ecc()
/linux-6.1.9/drivers/mtd/
Dsm_ftl.c230 if (ecc_sw_hamming_correct(buffer, ecc, oob->ecc2, SM_SMALL_PAGE, in sm_correct_sector()
405 SM_SMALL_PAGE, oob.ecc2, in sm_write_block()
/linux-6.1.9/Documentation/driver-api/mtd/
Dnand_ecc.rst323 void ecc2(const unsigned char *buf, unsigned char *code)