Searched refs:ecc1 (Results 1 – 8 of 8) 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() 70 *ecc1 |= b; /* LP15,13,11,9 -> ecc1 */ in trans_result() 73 *ecc1 |= b; /* LP14,12,10,8 -> ecc1 */ 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/devices/ |
D | docecc.c | 439 int doc_decode_ecc(unsigned char sector[SECTOR_SIZE], unsigned char ecc1[6]) in doc_decode_ecc() 460 parity = ecc1[1]; in doc_decode_ecc() 462 bb[0] = (ecc1[4] & 0xff) | ((ecc1[5] & 0x03) << 8); in doc_decode_ecc() 463 bb[1] = ((ecc1[5] & 0xfc) >> 2) | ((ecc1[2] & 0x0f) << 6); in doc_decode_ecc() 464 bb[2] = ((ecc1[2] & 0xf0) >> 4) | ((ecc1[3] & 0x3f) << 4); in doc_decode_ecc() 465 bb[3] = ((ecc1[3] & 0xc0) >> 6) | ((ecc1[0] & 0xff) << 2); in doc_decode_ecc()
|
/drivers/mtd/nand/ |
D | r852.c | 458 uint32_t ecc1, ecc2; in r852_ecc_calculate() local 466 ecc1 = r852_read_reg_dword(dev, R852_DATALINE); in r852_ecc_calculate() 469 oob->ecc1[0] = (ecc1) & 0xFF; in r852_ecc_calculate() 470 oob->ecc1[1] = (ecc1 >> 8) & 0xFF; in r852_ecc_calculate() 471 oob->ecc1[2] = (ecc1 >> 16) & 0xFF; in r852_ecc_calculate()
|
D | bf5xx_nand.c | 334 u16 ecc0, ecc1; in bf5xx_nand_calculate_ecc() local 340 ecc1 = bfin_read_NFC_ECC1(); in bf5xx_nand_calculate_ecc() 342 code[0] = (ecc0 & 0x7ff) | ((ecc1 & 0x7ff) << 11); in bf5xx_nand_calculate_ecc() 352 ecc1 = bfin_read_NFC_ECC3(); in bf5xx_nand_calculate_ecc() 353 code[1] = (ecc0 & 0x7ff) | ((ecc1 & 0x7ff) << 11); in bf5xx_nand_calculate_ecc()
|
D | sm_common.h | 20 uint8_t ecc1[3]; member
|
D | fsmc_nand.c | 780 uint32_t ecc1, ecc2, ecc3, ecc4; in fsmc_bch8_correct_data() local 825 ecc1 = readl(FSMC_NAND_REG(regs, bank, ECC1)); in fsmc_bch8_correct_data() 830 err_idx[0] = (ecc1 >> 0) & 0x1FFF; in fsmc_bch8_correct_data() 831 err_idx[1] = (ecc1 >> 13) & 0x1FFF; in fsmc_bch8_correct_data() 832 err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F); in fsmc_bch8_correct_data()
|
D | rtc_from4.c | 340 static int rtc_from4_correct_data(struct mtd_info *mtd, const u_char *buf, u_char *ecc1, u_char *ec… in rtc_from4_correct_data() argument
|
/drivers/mtd/ |
D | sm_ftl.c | 227 if (__nand_correct_data(buffer, ecc, oob->ecc1, SM_SMALL_PAGE) < 0) in sm_correct_sector() 400 SM_SMALL_PAGE, oob.ecc1); in sm_write_block()
|