This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
int | nand_calculate_ecc (struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) |
int | nand_correct_data (struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) |
int nand_calculate_ecc | ( | struct mtd_info * | mtd, | |
const u_char * | dat, | |||
u_char * | ecc_code | |||
) |
nand_calculate_ecc - [NAND Interface] Calculate 3 byte ECC code for 256 byte block : MTD block structure : raw data : buffer for ECC
Definition at line 125 of file nand_ecc.c.
References nand_ecc_precalc_table, and nand_trans_result().
Referenced by nand_scan(), and nand_scan_tail().
int nand_correct_data | ( | struct mtd_info * | mtd, | |
u_char * | dat, | |||
u_char * | read_ecc, | |||
u_char * | calc_ecc | |||
) |
nand_correct_data - [NAND Interface] Detect and correct bit error(s) : MTD block structure : raw data read from the chip : ECC from the chip : the ECC calculated from raw data
Detect and correct a 1 bit error for 256 byte block
Definition at line 167 of file nand_ecc.c.
Referenced by nand_scan(), and nand_scan_tail().