Lines Matching refs:correct_ecc
88 static void single_bit_error_ecc(void *error_ecc, void *correct_ecc, in single_bit_error_ecc() argument
93 memcpy(error_ecc, correct_ecc, 3); in single_bit_error_ecc()
97 static void double_bit_error_ecc(void *error_ecc, void *correct_ecc, in double_bit_error_ecc() argument
107 memcpy(error_ecc, correct_ecc, 3); in double_bit_error_ecc()
113 void *correct_data, void *correct_ecc, const size_t size) in no_bit_error() argument
116 memcpy(error_ecc, correct_ecc, 3); in no_bit_error()
136 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_data() argument
139 memcpy(error_ecc, correct_ecc, 3); in single_bit_error_in_data()
143 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_ecc() argument
146 single_bit_error_ecc(error_ecc, correct_ecc, size); in single_bit_error_in_ecc()
166 void *correct_data, void *correct_ecc, const size_t size) in double_bit_error_in_data() argument
169 memcpy(error_ecc, correct_ecc, 3); in double_bit_error_in_data()
173 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_data_and_ecc() argument
176 single_bit_error_ecc(error_ecc, correct_ecc, size); in single_bit_error_in_data_and_ecc()
180 void *correct_data, void *correct_ecc, const size_t size) in double_bit_error_in_ecc() argument
183 double_bit_error_ecc(error_ecc, correct_ecc, size); in double_bit_error_in_ecc()
234 void *correct_ecc, const size_t size) in dump_data_ecc() argument
246 DUMP_PREFIX_NONE, 16, 1, correct_ecc, 3, false); in dump_data_ecc()
257 void *correct_ecc; in nand_ecc_test_run() local
262 correct_ecc = kmalloc(3, GFP_KERNEL); in nand_ecc_test_run()
264 if (!error_data || !error_ecc || !correct_data || !correct_ecc) { in nand_ecc_test_run()
270 ecc_sw_hamming_calculate(correct_data, size, correct_ecc, sm_order); in nand_ecc_test_run()
273 correct_data, correct_ecc, size); in nand_ecc_test_run()
281 correct_data, correct_ecc, size); in nand_ecc_test_run()
295 kfree(correct_ecc); in nand_ecc_test_run()