| 2681 | } |
| 2682 | |
| 2683 | static int |
| 2684 | validate_fft_op(struct rte_bbdev_fft_op **ops, const uint16_t n, |
| 2685 | struct rte_bbdev_fft_op *ref_op) |
| 2686 | { |
| 2687 | unsigned int i; |
| 2688 | int ret; |
| 2689 | struct op_data_entries *fft_data_orig = &test_vector.entries[DATA_HARD_OUTPUT]; |
| 2690 | struct op_data_entries *fft_pwr_orig = &test_vector.entries[DATA_SOFT_OUTPUT]; |
| 2691 | |
| 2692 | for (i = 0; i < n; ++i) { |
| 2693 | ret = check_fft_status_and_ordering(ops[i], i, ref_op->status); |
| 2694 | TEST_ASSERT_SUCCESS(ret, "Checking status and ordering for FFT failed"); |
| 2695 | TEST_ASSERT_SUCCESS(validate_op_fft_chain( |
| 2696 | &ops[i]->fft.base_output, fft_data_orig), |
| 2697 | "FFT Output buffers (op=%u) are not matched", i); |
| 2698 | if (check_bit(ops[i]->fft.op_flags, RTE_BBDEV_FFT_POWER_MEAS)) |
| 2699 | TEST_ASSERT_SUCCESS(validate_op_fft_chain( |
| 2700 | &ops[i]->fft.power_meas_output, fft_pwr_orig), |
| 2701 | "FFT Power Output buffers (op=%u) are not matched", i); |
| 2702 | } |
| 2703 | |
| 2704 | return TEST_SUCCESS; |
| 2705 | } |
| 2706 | |
| 2707 | static int |
| 2708 | validate_mldts_op(struct rte_bbdev_mldts_op **ops, const uint16_t n, |
no test coverage detected