Home
last modified time | relevance | path

Searched refs:ecc1 (Results 1 – 11 of 11) sorted by relevance

/linux-2.6.39/drivers/staging/keucr/
Dsmilecc.c51 static void trans_result(reg2,reg3,ecc1,ecc2) in trans_result() argument
54 BYTE *ecc1; // LP15,LP14,LP13,...
62 *ecc1=*ecc2=0; // Clear ecc1,ecc2
65 *ecc1|=b; // LP15,13,11,9 -> ecc1
68 *ecc1|=b; // LP14,12,10,8 -> ecc1
86 void calculate_ecc(table,data,ecc1,ecc2,ecc3) in calculate_ecc() argument
89 BYTE *ecc1; // LP15,LP14,LP13,...
111 trans_result(reg2,reg3,ecc1,ecc2);
112 *ecc1=~(*ecc1); *ecc2=~(*ecc2); // Inv. ecc2 & ecc3
116 BYTE correct_data(data,eccdata,ecc1,ecc2,ecc3) in correct_data() argument
[all …]
/linux-2.6.39/drivers/mtd/devices/
Ddocecc.c439 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()
/linux-2.6.39/drivers/mtd/nand/
Dr852.c458 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()
Dbf5xx_nand.c334 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()
Dsm_common.h20 uint8_t ecc1[3]; member
Dfsmc_nand.c358 ecc_tmp = readl(&regs->bank_regs[bank].ecc1); in fsmc_read_hwecc_ecc4()
396 ecc_tmp = readl(&regs->bank_regs[bank].ecc1); in fsmc_read_hwecc_ecc1()
Drtc_from4.c340 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
/linux-2.6.39/include/linux/mtd/
Dfsmc.h72 uint32_t ecc1; member
Ddoc2000.h204 int doc_decode_ecc(unsigned char sector[512], unsigned char ecc1[6]);
/linux-2.6.39/drivers/mtd/
Dsm_ftl.c227 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()
/linux-2.6.39/Documentation/mtd/
Dnand_ecc.txt189 void ecc1(const unsigned char *buf, unsigned char *code)