Searched refs:ecc2 (Results 1 – 6 of 6) sorted by relevance
438 uint32_t ecc1, ecc2; in r852_ecc_calculate() local447 ecc2 = r852_read_reg_dword(dev, R852_DATALINE); in r852_ecc_calculate()453 oob->ecc2[0] = (ecc2) & 0xFF; in r852_ecc_calculate()454 oob->ecc2[1] = (ecc2 >> 8) & 0xFF; in r852_ecc_calculate()455 oob->ecc2[2] = (ecc2 >> 16) & 0xFF; in r852_ecc_calculate()
15 uint8_t ecc2[3]; member
218 static unsigned char ecc2[256]; variable240 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()266 ecc[2] = ecc2[par]; in nand_compute_ecc()
186 static unsigned char ecc2[256]; variable207 ecc2[i] = ~(a ^ (a<<1) ^ (parity[i] ? 0xa8 : 0)); in nand_init_ecc()232 ecc[2] = ecc2[par]; in nand_compute_ecc()
228 if (ecc_sw_hamming_correct(buffer, ecc, oob->ecc2, SM_SMALL_PAGE, in sm_correct_sector()403 SM_SMALL_PAGE, oob.ecc2, in sm_write_block()
323 void ecc2(const unsigned char *buf, unsigned char *code)