Lines Matching refs:test_vector

90 static struct test_bbdev_vector test_vector;  variable
244 nb_segs = test_vector.entries[type].nb_segments; in convert_op_data_to_be()
245 op = &test_vector.entries[type]; in convert_op_data_to_be()
278 nb_inputs = test_vector.entries[DATA_INPUT].nb_segments; in check_dev_cap()
279 nb_soft_outputs = test_vector.entries[DATA_SOFT_OUTPUT].nb_segments; in check_dev_cap()
280 nb_hard_outputs = test_vector.entries[DATA_HARD_OUTPUT].nb_segments; in check_dev_cap()
281 nb_harq_inputs = test_vector.entries[DATA_HARQ_INPUT].nb_segments; in check_dev_cap()
282 nb_harq_outputs = test_vector.entries[DATA_HARQ_OUTPUT].nb_segments; in check_dev_cap()
285 if (op_cap->type != test_vector.op_type) in check_dev_cap()
297 if ((test_vector.turbo_dec.op_flags & in check_dev_cap()
305 &test_vector.turbo_dec.op_flags); in check_dev_cap()
308 if (!flags_match(test_vector.turbo_dec.op_flags, in check_dev_cap()
317 (test_vector.turbo_dec.op_flags & in check_dev_cap()
344 if (!flags_match(test_vector.turbo_enc.op_flags, in check_dev_cap()
370 if (!flags_match(test_vector.ldpc_enc.op_flags, in check_dev_cap()
398 if (!flags_match(test_vector.ldpc_dec.op_flags, in check_dev_cap()
435 if (intr_enabled && (test_vector.ldpc_dec.op_flags & in check_dev_cap()
447 if ((i == 0) && (test_vector.op_type == RTE_BBDEV_OP_NONE)) in check_dev_cap()
493 struct op_data_entries *in = &test_vector.entries[DATA_INPUT]; in create_mempools()
495 &test_vector.entries[DATA_HARD_OUTPUT]; in create_mempools()
497 &test_vector.entries[DATA_SOFT_OUTPUT]; in create_mempools()
499 &test_vector.entries[DATA_HARQ_INPUT]; in create_mempools()
501 &test_vector.entries[DATA_HARQ_OUTPUT]; in create_mempools()
859 ret = add_active_device(dev_id, &info, &test_vector); in populate_active_devices()
876 memset(&test_vector, 0, sizeof(test_vector)); in read_test_vector()
878 ret = test_bbdev_vector_read(get_vector_filename(), &test_vector); in read_test_vector()
908 test_vector.op_type == RTE_BBDEV_OP_NONE) { in interrupt_testsuite_setup()
1228 &test_vector.entries[type]; in fill_queue_buffers()
1244 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in fill_queue_buffers()
1248 if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) { in fill_queue_buffers()
2046 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_dec_op()
2048 &test_vector.entries[DATA_SOFT_OUTPUT]; in validate_dec_op()
2088 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_ldpc_bler()
2113 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_ldpc_dec_op()
2115 &test_vector.entries[DATA_SOFT_OUTPUT]; in validate_ldpc_dec_op()
2117 &test_vector.entries[DATA_HARQ_OUTPUT]; in validate_ldpc_dec_op()
2183 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_enc_op()
2206 &test_vector.entries[DATA_HARD_OUTPUT]; in validate_ldpc_enc_op()
2228 op->turbo_dec = test_vector.turbo_dec; in create_reference_dec_op()
2229 entry = &test_vector.entries[DATA_INPUT]; in create_reference_dec_op()
2241 op->ldpc_dec = test_vector.ldpc_dec; in create_reference_ldpc_dec_op()
2242 entry = &test_vector.entries[DATA_INPUT]; in create_reference_ldpc_dec_op()
2246 if (test_vector.ldpc_dec.op_flags & in create_reference_ldpc_dec_op()
2248 entry = &test_vector.entries[DATA_HARQ_INPUT]; in create_reference_ldpc_dec_op()
2262 op->turbo_enc = test_vector.turbo_enc; in create_reference_enc_op()
2263 entry = &test_vector.entries[DATA_INPUT]; in create_reference_enc_op()
2275 op->ldpc_enc = test_vector.ldpc_enc; in create_reference_ldpc_enc_op()
2276 entry = &test_vector.entries[DATA_INPUT]; in create_reference_ldpc_enc_op()
2398 enum rte_bbdev_op_type op_type = test_vector.op_type; in run_test_case_on_device()
2404 if (!is_avail_op(ad, test_vector.op_type)) in run_test_case_on_device()
2420 f_ret = init_test_op_params(op_params, test_vector.op_type, in run_test_case_on_device()
2421 test_vector.expected_status, in run_test_case_on_device()
2422 test_vector.mask, in run_test_case_on_device()
2436 if (cap->type == test_vector.op_type) { in run_test_case_on_device()
2445 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) { in run_test_case_on_device()
2447 } else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) in run_test_case_on_device()
2449 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in run_test_case_on_device()
2451 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in run_test_case_on_device()
2649 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in dequeue_event_callback()
2654 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in dequeue_event_callback()
2659 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in dequeue_event_callback()
2689 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) { in dequeue_event_callback()
2699 } else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) { in dequeue_event_callback()
2703 } else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) { in dequeue_event_callback()
2707 } else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) { in dequeue_event_callback()
2719 switch (test_vector.op_type) { in dequeue_event_callback()
2736 printf("Unknown op type: %d\n", test_vector.op_type); in dequeue_event_callback()
2793 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_ldpc_dec()
2887 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_dec()
2974 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_enc()
3061 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_intr_lcore_ldpc_enc()
3144 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_dec()
3188 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_dec()
3255 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in bler_pmd_lcore_ldpc_dec()
3316 if (test_vector.op_type != RTE_BBDEV_OP_NONE in bler_pmd_lcore_ldpc_dec()
3384 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_ldpc_dec()
3440 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_ldpc_dec()
3493 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_enc()
3503 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_enc()
3531 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_enc()
3583 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_ldpc_enc()
3593 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in throughput_pmd_lcore_ldpc_enc()
3621 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in throughput_pmd_lcore_ldpc_enc()
3727 op_type_str = rte_bbdev_op_type_str(test_vector.op_type); in bler_test()
3729 test_vector.op_type); in bler_test()
3751 if ((test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) && in bler_test()
3752 !check_bit(test_vector.ldpc_dec.op_flags, in bler_test()
3754 && !check_bit(test_vector.ldpc_dec.op_flags, in bler_test()
3821 op_type_str = rte_bbdev_op_type_str(test_vector.op_type); in throughput_test()
3823 test_vector.op_type); in throughput_test()
3846 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in throughput_test()
3848 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3850 else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) in throughput_test()
3852 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in throughput_test()
3866 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC) in throughput_test()
3868 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3870 else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC) in throughput_test()
3872 else if (test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in throughput_test()
3916 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC || in throughput_test()
3917 test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3958 if (test_vector.op_type == RTE_BBDEV_OP_TURBO_DEC || in throughput_test()
3959 test_vector.op_type == RTE_BBDEV_OP_LDPC_DEC) in throughput_test()
3961 else if (test_vector.op_type == RTE_BBDEV_OP_TURBO_ENC || in throughput_test()
3962 test_vector.op_type == RTE_BBDEV_OP_LDPC_ENC) in throughput_test()
3993 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_dec()
4026 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_dec()
4075 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_ldpc_dec()
4117 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_ldpc_dec()
4152 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_enc()
4184 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_enc()
4219 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in latency_test_ldpc_enc()
4251 if (test_vector.op_type != RTE_BBDEV_OP_NONE) { in latency_test_ldpc_enc()
4271 const enum rte_bbdev_op_type op_type = test_vector.op_type; in validation_latency_test()
4391 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_dec()
4476 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_ldpc_dec()
4571 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_enc()
4654 if (test_vector.op_type != RTE_BBDEV_OP_NONE) in offload_latency_test_ldpc_enc()
4730 const enum rte_bbdev_op_type op_type = test_vector.op_type; in offload_cost_test()
4923 const enum rte_bbdev_op_type op_type = test_vector.op_type; in offload_latency_empty_q_test()