Searched refs:ecc2 (Results 1 – 7 of 7) sorted by relevance
/drivers/staging/keucr/ |
D | smilecc.c | 60 static void trans_result(BYTE reg2, BYTE reg3, BYTE *ecc1, BYTE *ecc2) in trans_result() argument 67 *ecc1 = *ecc2 = 0; /* Clear ecc1,ecc2 */ in trans_result() 81 *ecc2 |= b; /* LP7,5,3,1 -> ecc2 */ in trans_result() 84 *ecc2 |= b; /* LP6,4,2,0 -> ecc2 */ in trans_result() 98 void calculate_ecc(BYTE *table, BYTE *data, BYTE *ecc1, BYTE *ecc2, BYTE *ecc3) in calculate_ecc() argument 118 trans_result(reg2, reg3, ecc1, ecc2); in calculate_ecc() 119 *ecc1 = ~(*ecc1); *ecc2 = ~(*ecc2); /* Inv. ecc2 & ecc3 */ in calculate_ecc() 130 BYTE correct_data(BYTE *data, BYTE *eccdata, BYTE ecc1, BYTE ecc2, BYTE ecc3) in correct_data() argument 141 d1 = ecc1^eccdata[1]; d2 = ecc2^eccdata[0]; /* Compare LP's */ in correct_data() 184 eccdata[1] = ecc1; eccdata[0] = ecc2; /* Put right ECC code */ in correct_data()
|
/drivers/mtd/nand/ |
D | r852.c | 437 uint32_t ecc1, ecc2; in r852_ecc_calculate() local 446 ecc2 = r852_read_reg_dword(dev, R852_DATALINE); in r852_ecc_calculate() 452 oob->ecc2[0] = (ecc2) & 0xFF; in r852_ecc_calculate() 453 oob->ecc2[1] = (ecc2 >> 8) & 0xFF; in r852_ecc_calculate() 454 oob->ecc2[2] = (ecc2 >> 16) & 0xFF; in r852_ecc_calculate()
|
D | sm_common.h | 18 uint8_t ecc2[3]; member
|
D | fsmc_nand.c | 794 uint32_t ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local 840 ecc2 = readl_relaxed(FSMC_NAND_REG(regs, bank, ECC2)); in fsmc_bch8_correct_data() 846 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data() 847 err_idx[3] = (ecc2 >> 7) & 0x1FFF; in fsmc_bch8_correct_data() 848 err_idx[4] = (((ecc3 >> 0) & 0x1) << 12) | ((ecc2 >> 20) & 0xFFF); in fsmc_bch8_correct_data()
|
/drivers/usb/storage/ |
D | alauda.c | 224 static unsigned char ecc2[256]; variable 245 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc() 274 ecc[2] = ecc2[par]; in nand_compute_ecc()
|
D | sddr09.c | 194 static unsigned char ecc2[256]; variable 215 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc() 244 ecc[2] = ecc2[par]; in nand_compute_ecc()
|
/drivers/mtd/ |
D | sm_ftl.c | 233 if (__nand_correct_data(buffer, ecc, oob->ecc2, SM_SMALL_PAGE) < 0) in sm_correct_sector() 402 SM_SMALL_PAGE, oob.ecc2); in sm_write_block()
|