Lines Matching refs:correct_data
47 static void single_bit_error_data(void *error_data, void *correct_data, in single_bit_error_data() argument
52 memcpy(error_data, correct_data, size); in single_bit_error_data()
56 static void double_bit_error_data(void *error_data, void *correct_data, in double_bit_error_data() argument
66 memcpy(error_data, correct_data, size); in double_bit_error_data()
113 void *correct_data, void *correct_ecc, const size_t size) in no_bit_error() argument
115 memcpy(error_data, correct_data, size); in no_bit_error()
120 void *correct_data, const size_t size) in no_bit_error_verify() argument
129 if (ret == 0 && !memcmp(correct_data, error_data, size)) in no_bit_error_verify()
136 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_data() argument
138 single_bit_error_data(error_data, correct_data, size); in single_bit_error_in_data()
143 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_ecc() argument
145 memcpy(error_data, correct_data, size); in single_bit_error_in_ecc()
150 void *correct_data, const size_t size) in single_bit_error_correct() argument
159 if (ret == 1 && !memcmp(correct_data, error_data, size)) in single_bit_error_correct()
166 void *correct_data, void *correct_ecc, const size_t size) in double_bit_error_in_data() argument
168 double_bit_error_data(error_data, correct_data, size); 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
175 single_bit_error_data(error_data, correct_data, 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
182 memcpy(error_data, correct_data, size); in double_bit_error_in_ecc()
187 void *correct_data, const size_t size) in double_bit_error_detect() argument
233 static void dump_data_ecc(void *error_data, void *error_ecc, void *correct_data, in dump_data_ecc() argument
244 correct_data, size, false); in dump_data_ecc()
256 void *correct_data; in nand_ecc_test_run() local
261 correct_data = kmalloc(size, GFP_KERNEL); in nand_ecc_test_run()
264 if (!error_data || !error_ecc || !correct_data || !correct_ecc) { in nand_ecc_test_run()
269 get_random_bytes(correct_data, size); 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()
275 correct_data, size); in nand_ecc_test_run()
281 correct_data, correct_ecc, size); in nand_ecc_test_run()
294 kfree(correct_data); in nand_ecc_test_run()