ioat_test.c (1ffae6e80a8266dee424fd2cc699056bdf147629) ioat_test.c (faefad9c125a9478dd46ccadd0b20a2c825de803)
1/*-
2 * Copyright (C) 2012 Intel Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 152 unchanged lines hidden (view full) ---

161 dst = test->raw_vtarget;
162 dump_hex(dst, tx->length / 32);
163 }
164 }
165 return (true);
166}
167
168static void
1/*-
2 * Copyright (C) 2012 Intel Corporation
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 152 unchanged lines hidden (view full) ---

161 dst = test->raw_vtarget;
162 dump_hex(dst, tx->length / 32);
163 }
164 }
165 return (true);
166}
167
168static void
169ioat_dma_test_callback(void *arg)
169ioat_dma_test_callback(void *arg, int error)
170{
171 struct test_transaction *tx;
172 struct ioat_test *test;
173
170{
171 struct test_transaction *tx;
172 struct ioat_test *test;
173
174 if (error != 0)
175 ioat_test_log(0, "%s: Got error: %d\n", __func__, error);
176
174 tx = arg;
175 test = tx->test;
176
177 if (test->verify && !ioat_compare_ok(tx)) {
178 ioat_test_log(0, "miscompare found\n");
179 atomic_add_32(&test->status[IOAT_TEST_MISCOMPARE], tx->depth);
180 } else if (!test->too_late)
181 atomic_add_32(&test->status[IOAT_TEST_OK], tx->depth);

--- 353 unchanged lines hidden ---
177 tx = arg;
178 test = tx->test;
179
180 if (test->verify && !ioat_compare_ok(tx)) {
181 ioat_test_log(0, "miscompare found\n");
182 atomic_add_32(&test->status[IOAT_TEST_MISCOMPARE], tx->depth);
183 } else if (!test->too_late)
184 atomic_add_32(&test->status[IOAT_TEST_OK], tx->depth);

--- 353 unchanged lines hidden ---