Lines Matching refs:test_vector

90 static struct test_bbdev_vector test_vector;  variable
238 nb_inputs = test_vector.entries[DATA_INPUT].nb_segments; in check_dev_cap()
239 nb_soft_outputs = test_vector.entries[DATA_SOFT_OUTPUT].nb_segments; in check_dev_cap()
240 nb_hard_outputs = test_vector.entries[DATA_HARD_OUTPUT].nb_segments; in check_dev_cap()
241 nb_harq_inputs = test_vector.entries[DATA_HARQ_INPUT].nb_segments; in check_dev_cap()
242 nb_harq_outputs = test_vector.entries[DATA_HARQ_OUTPUT].nb_segments; in check_dev_cap()
245 if (op_cap->type != test_vector.op_type) in check_dev_cap()
254 if ((test_vector.turbo_dec.op_flags & in check_dev_cap()
262 &test_vector.turbo_dec.op_flags); in check_dev_cap()
265 if (!flags_match(test_vector.turbo_dec.op_flags, in check_dev_cap()
274 (test_vector.turbo_dec.op_flags & in check_dev_cap()
301 if (!flags_match(test_vector.turbo_enc.op_flags, in check_dev_cap()
327 if (!flags_match(test_vector.ldpc_enc.op_flags, in check_dev_cap()
355 if (!flags_match(test_vector.ldpc_dec.op_flags, in check_dev_cap()
392 if (intr_enabled && (test_vector.ldpc_dec.op_flags & in check_dev_cap()
404 if ((i == 0) && (test_vector.op_type == RTE_BBDEV_OP_NONE)) in check_dev_cap()
450 struct op_data_entries *in = &test_vector.entries[DATA_INPUT]; in create_mempools()
452 &test_vector.entries[DATA_HARD_OUTPUT]; in create_mempools()
454 &test_vector.entries[DATA_SOFT_OUTPUT]; in create_mempools()
456 &test_vector.entries[DATA_HARQ_INPUT]; in create_mempools()
458 &test_vector.entries[DATA_HARQ_OUTPUT]; in create_mempools()
816 ret = add_active_device(dev_id, &info, &test_vector); in populate_active_devices()
833 memset(&test_vector, 0, sizeof(test_vector)); in read_test_vector()
835 ret = test_bbdev_vector_read(get_vector_filename(), &test_vector); in read_test_vector()
865 test_vector.op_type == RTE_BBDEV_OP_NONE) { in interrupt_testsuite_setup()
1182 &test_vector.entries[type]; in fill_queue_buffers()
1198 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in fill_queue_buffers()
1202 if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) { in fill_queue_buffers()
2000 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_dec_op()
2002 &test_vector.entries[DATA_SOFT_OUTPUT]; in validate_dec_op()
2042 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_ldpc_bler()
2067 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_ldpc_dec_op()
2069 &test_vector.entries[DATA_SOFT_OUTPUT]; in validate_ldpc_dec_op()
2071 &test_vector.entries[DATA_HARQ_OUTPUT]; in validate_ldpc_dec_op()
2137 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_enc_op()
2160 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_ldpc_enc_op()
2182 op->turbo_dec = test_vector.turbo_dec; in create_reference_dec_op()
2183 entry = &test_vector.entries[DATA_INPUT]; in create_reference_dec_op()
2195 op->ldpc_dec = test_vector.ldpc_dec; in create_reference_ldpc_dec_op()
2196 entry = &test_vector.entries[DATA_INPUT]; in create_reference_ldpc_dec_op()
2200 if (test_vector.ldpc_dec.op_flags & in create_reference_ldpc_dec_op()
2202 entry = &test_vector.entries[DATA_HARQ_INPUT]; in create_reference_ldpc_dec_op()
2216 op->turbo_enc = test_vector.turbo_enc; in create_reference_enc_op()
2217 entry = &test_vector.entries[DATA_INPUT]; in create_reference_enc_op()
2229 op->ldpc_enc = test_vector.ldpc_enc; in create_reference_ldpc_enc_op()
2230 entry = &test_vector.entries[DATA_INPUT]; in create_reference_ldpc_enc_op()
2352 enum rte_bbdev_op_type op_type = test_vector.op_type; in run_test_case_on_device()
2358 if (!is_avail_op(ad, test_vector.op_type)) in run_test_case_on_device()
2374 f_ret = init_test_op_params(op_params, test_vector.op_type, in run_test_case_on_device()
2375 test_vector.expected_status, in run_test_case_on_device()
2376 test_vector.mask, in run_test_case_on_device()
2390 if (cap->type == test_vector.op_type) { in run_test_case_on_device()
2399 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) { in run_test_case_on_device()
2401 } else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) in run_test_case_on_device()
2403 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in run_test_case_on_device()
2405 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in run_test_case_on_device()
2603 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in dequeue_event_callback()
2608 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in dequeue_event_callback()
2613 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in dequeue_event_callback()
2643 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) { in dequeue_event_callback()
2653 } else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) { in dequeue_event_callback()
2657 } else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) { in dequeue_event_callback()
2661 } else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) { in dequeue_event_callback()
2673 switch (test_vector.op_type) { in dequeue_event_callback()
2690 printf("Unknown op type: %d\n", test_vector.op_type); in dequeue_event_callback()
2748 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_ldpc_dec()
2845 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_dec()
2935 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_enc()
3025 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_ldpc_enc()
3111 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_dec()
3155 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_dec()
3223 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in bler_pmd_lcore_ldpc_dec()
3284 if (test_vector.op_type != RTE_BBDEV_OP_NONE in bler_pmd_lcore_ldpc_dec()
3353 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_ldpc_dec()
3409 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_ldpc_dec()
3463 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_enc()
3473 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_enc()
3501 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_enc()
3554 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_ldpc_enc()
3564 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_ldpc_enc()
3592 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_ldpc_enc()
3698 op_type_str = rte_bbdev_op_type_str(test_vector.op_type); in bler_test()
3700 test_vector.op_type); in bler_test()
3722 if ((test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) && in bler_test()
3723 !check_bit(test_vector.ldpc_dec.op_flags, in bler_test()
3725 && !check_bit(test_vector.ldpc_dec.op_flags, in bler_test()
3792 op_type_str = rte_bbdev_op_type_str(test_vector.op_type); in throughput_test()
3794 test_vector.op_type); in throughput_test()
3817 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in throughput_test()
3819 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3821 else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) in throughput_test()
3823 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in throughput_test()
3837 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in throughput_test()
3839 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3841 else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) in throughput_test()
3843 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in throughput_test()
3887 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC || in throughput_test()
3888 test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3929 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC || in throughput_test()
3930 test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3932 else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC || in throughput_test()
3933 test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in throughput_test()
3964 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_dec()
3997 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_dec()
4046 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_ldpc_dec()
4088 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_ldpc_dec()
4123 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_enc()
4155 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_enc()
4190 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_ldpc_enc()
4222 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_ldpc_enc()
4242 const enum rte_bbdev_op_type op_type = test_vector.op_type; in validation_latency_test()
4362 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_dec()
4447 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_ldpc_dec()
4542 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_enc()
4625 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_ldpc_enc()
4701 const enum rte_bbdev_op_type op_type = test_vector.op_type; in offload_cost_test()
4894 const enum rte_bbdev_op_type op_type = test_vector.op_type; in offload_latency_empty_q_test()