Searched refs:ecc2 (Results 1 – 12 of 12) sorted by relevance
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | fsmc_nand.c | 199 u32 ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local 234 ecc2 = readl(&fsmc_regs_p->ecc2); in fsmc_bch8_correct_data() 240 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data() 241 err_idx[3] = (ecc2 >> 7) & 0x1FFF; in fsmc_bch8_correct_data() 242 err_idx[4] = (((ecc3 >> 0) & 0x1) << 12) | ((ecc2 >> 20) & 0xFFF); in fsmc_bch8_correct_data() 285 ecc_tmp = readl(&fsmc_regs_p->ecc2); in fsmc_read_hwecc()
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_mtdif.c | 56 spare->ecc2[0] = spare->ecc2[1] = spare->ecc2[2] = 0xff; in translate_oob2spare()
|
H A D | yaffs_tagscompat.c | 28 yaffs_ecc_calc(&data[256], spare->ecc2); in yaffs_calc_ecc() 170 yaffs_ecc_correct(&data[256], spare->ecc2, in yaffs_rd_chunk_nand()
|
H A D | yaffs_guts.h | 222 u8 ecc2[3]; member
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | r852.c | 435 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()
|
H A D | sm_common.h | 15 uint8_t ecc2[3]; member
|
H A D | fsmc_nand.c | 785 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()
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | fsmc_nand.h | 21 u32 ecc2; /* 0x58 */ member
|
/openbmc/linux/drivers/usb/storage/ |
H A D | alauda.c | 218 static unsigned char ecc2[256]; variable 240 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc() 266 ecc[2] = ecc2[par]; in nand_compute_ecc()
|
H A D | sddr09.c | 186 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()
|
/openbmc/linux/drivers/mtd/ |
H A D | sm_ftl.c | 230 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()
|
/openbmc/linux/Documentation/driver-api/mtd/ |
H A D | nand_ecc.rst | 323 void ecc2(const unsigned char *buf, unsigned char *code)
|