Lines Matching refs:correct_data
44 static void single_bit_error_data(void *error_data, void *correct_data, in single_bit_error_data() argument
49 memcpy(error_data, correct_data, size); in single_bit_error_data()
53 static void double_bit_error_data(void *error_data, void *correct_data, in double_bit_error_data() argument
63 memcpy(error_data, correct_data, size); in double_bit_error_data()
110 void *correct_data, void *correct_ecc, const size_t size) in no_bit_error() argument
112 memcpy(error_data, correct_data, size); in no_bit_error()
117 void *correct_data, const size_t size) in no_bit_error_verify() argument
124 if (ret == 0 && !memcmp(correct_data, error_data, size)) in no_bit_error_verify()
131 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_data() argument
133 single_bit_error_data(error_data, correct_data, size); in single_bit_error_in_data()
138 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_ecc() argument
140 memcpy(error_data, correct_data, size); in single_bit_error_in_ecc()
145 void *correct_data, const size_t size) in single_bit_error_correct() argument
152 if (ret == 1 && !memcmp(correct_data, error_data, size)) in single_bit_error_correct()
159 void *correct_data, void *correct_ecc, const size_t size) in double_bit_error_in_data() argument
161 double_bit_error_data(error_data, correct_data, size); in double_bit_error_in_data()
166 void *correct_data, void *correct_ecc, const size_t size) in single_bit_error_in_data_and_ecc() argument
168 single_bit_error_data(error_data, correct_data, size); in single_bit_error_in_data_and_ecc()
173 void *correct_data, void *correct_ecc, const size_t size) in double_bit_error_in_ecc() argument
175 memcpy(error_data, correct_data, size); in double_bit_error_in_ecc()
180 void *correct_data, const size_t size) in double_bit_error_detect() argument
224 static void dump_data_ecc(void *error_data, void *error_ecc, void *correct_data, in dump_data_ecc() argument
235 correct_data, size, false); in dump_data_ecc()
246 void *correct_data; in nand_ecc_test_run() local
251 correct_data = kmalloc(size, GFP_KERNEL); in nand_ecc_test_run()
254 if (!error_data || !error_ecc || !correct_data || !correct_ecc) { in nand_ecc_test_run()
259 prandom_bytes(correct_data, size); in nand_ecc_test_run()
260 __nand_calculate_ecc(correct_data, size, correct_ecc); in nand_ecc_test_run()
264 correct_data, correct_ecc, size); in nand_ecc_test_run()
266 correct_data, size); in nand_ecc_test_run()
272 correct_data, correct_ecc, size); in nand_ecc_test_run()
281 kfree(correct_data); in nand_ecc_test_run()