Lines Matching refs:ts_params
174 struct comp_testsuite_params *ts_params = &testsuite_params; in testsuite_teardown() local
176 if (rte_mempool_in_use_count(ts_params->large_mbuf_pool)) in testsuite_teardown()
178 if (rte_mempool_in_use_count(ts_params->small_mbuf_pool)) in testsuite_teardown()
180 if (rte_mempool_in_use_count(ts_params->big_mbuf_pool)) in testsuite_teardown()
182 if (rte_mempool_in_use_count(ts_params->op_pool)) in testsuite_teardown()
185 rte_mempool_free(ts_params->large_mbuf_pool); in testsuite_teardown()
186 rte_mempool_free(ts_params->small_mbuf_pool); in testsuite_teardown()
187 rte_mempool_free(ts_params->big_mbuf_pool); in testsuite_teardown()
188 rte_mempool_free(ts_params->op_pool); in testsuite_teardown()
189 rte_free(ts_params->def_comp_xform); in testsuite_teardown()
190 rte_free(ts_params->def_decomp_xform); in testsuite_teardown()
196 struct comp_testsuite_params *ts_params = &testsuite_params; in testsuite_setup() local
219 ts_params->large_mbuf_pool = rte_pktmbuf_pool_create("large_mbuf_pool", in testsuite_setup()
224 if (ts_params->large_mbuf_pool == NULL) { in testsuite_setup()
230 ts_params->small_mbuf_pool = rte_pktmbuf_pool_create("small_mbuf_pool", in testsuite_setup()
235 if (ts_params->small_mbuf_pool == NULL) { in testsuite_setup()
241 ts_params->big_mbuf_pool = rte_pktmbuf_pool_create("big_mbuf_pool", in testsuite_setup()
246 if (ts_params->big_mbuf_pool == NULL) { in testsuite_setup()
251 ts_params->op_pool = rte_comp_op_pool_create("op_pool", NUM_OPS, in testsuite_setup()
254 if (ts_params->op_pool == NULL) { in testsuite_setup()
259 ts_params->def_comp_xform = in testsuite_setup()
261 if (ts_params->def_comp_xform == NULL) { in testsuite_setup()
266 ts_params->def_decomp_xform = in testsuite_setup()
268 if (ts_params->def_decomp_xform == NULL) { in testsuite_setup()
275 ts_params->def_comp_xform->type = RTE_COMP_COMPRESS; in testsuite_setup()
276 ts_params->def_comp_xform->compress.algo = RTE_COMP_ALGO_DEFLATE, in testsuite_setup()
277 ts_params->def_comp_xform->compress.deflate.huffman = in testsuite_setup()
279 ts_params->def_comp_xform->compress.level = RTE_COMP_LEVEL_PMD_DEFAULT; in testsuite_setup()
280 ts_params->def_comp_xform->compress.chksum = RTE_COMP_CHECKSUM_NONE; in testsuite_setup()
281 ts_params->def_comp_xform->compress.window_size = DEFAULT_WINDOW_SIZE; in testsuite_setup()
283 ts_params->def_decomp_xform->type = RTE_COMP_DECOMPRESS; in testsuite_setup()
284 ts_params->def_decomp_xform->decompress.algo = RTE_COMP_ALGO_DEFLATE, in testsuite_setup()
285 ts_params->def_decomp_xform->decompress.chksum = RTE_COMP_CHECKSUM_NONE; in testsuite_setup()
286 ts_params->def_decomp_xform->decompress.window_size = DEFAULT_WINDOW_SIZE; in testsuite_setup()
861 struct comp_testsuite_params *ts_params = &testsuite_params; in test_setup_com_bufs() local
895 buf_pool = ts_params->big_mbuf_pool; in test_setup_com_bufs()
897 buf_pool = ts_params->small_mbuf_pool; in test_setup_com_bufs()
899 buf_pool = ts_params->large_mbuf_pool; in test_setup_com_bufs()
935 big_data ? buf_pool : ts_params->small_mbuf_pool, in test_setup_com_bufs()
936 big_data ? buf_pool : ts_params->large_mbuf_pool, in test_setup_com_bufs()
1081 struct comp_testsuite_params *ts_params = &testsuite_params; in test_setup_output_bufs() local
1085 buf_pool = ts_params->big_mbuf_pool; in test_setup_output_bufs()
1087 buf_pool = ts_params->small_mbuf_pool; in test_setup_output_bufs()
1089 buf_pool = ts_params->large_mbuf_pool; in test_setup_output_bufs()
1127 ts_params->def_comp_xform->compress.deflate.huffman; in test_setup_output_bufs()
1148 ts_params->small_mbuf_pool, in test_setup_output_bufs()
1150 ts_params->large_mbuf_pool, in test_setup_output_bufs()
1201 struct comp_testsuite_params *ts_params = &testsuite_params; in test_deflate_comp_run() local
1225 ret = rte_comp_op_bulk_alloc(ts_params->op_pool, ops, num_bufs); in test_deflate_comp_run()
1530 struct comp_testsuite_params *ts_params = &testsuite_params; in test_deflate_decomp_run() local
1555 ret = rte_comp_op_bulk_alloc(ts_params->op_pool, ops, num_bufs); in test_deflate_decomp_run()
2173 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_fixed() local
2194 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_fixed()
2203 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_fixed()
2245 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_dynamic() local
2266 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_dynamic()
2275 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_dynamic()
2317 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_multi_op() local
2330 &ts_params->def_comp_xform, in test_compressdev_deflate_stateless_multi_op()
2331 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_multi_op()
2364 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_multi_level() local
2378 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_multi_level()
2386 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_multi_level()
2427 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_multi_xform() local
2448 memcpy(compress_xforms[i], ts_params->def_comp_xform, in test_compressdev_deflate_stateless_multi_xform()
2462 memcpy(decompress_xforms[i], ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_multi_xform()
2511 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_sgl() local
2526 &ts_params->def_comp_xform, in test_compressdev_deflate_stateless_sgl()
2527 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_sgl()
2597 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_checksum() local
2620 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_checksum()
2631 memcpy(decompress_xform, ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_checksum()
2740 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_out_of_space_buffer() local
2757 &ts_params->def_comp_xform, in test_compressdev_out_of_space_buffer()
2758 &ts_params->def_decomp_xform, in test_compressdev_out_of_space_buffer()
2809 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_dynamic_big() local
2836 &ts_params->def_comp_xform, in test_compressdev_deflate_stateless_dynamic_big()
2837 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_dynamic_big()
2852 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_stateless_dynamic_big()
2876 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_stateless_dynamic_big()
2885 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateful_decomp() local
2900 &ts_params->def_comp_xform, in test_compressdev_deflate_stateful_decomp()
2901 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateful_decomp()
2942 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateful_decomp_checksum() local
2966 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateful_decomp_checksum()
2977 memcpy(decompress_xform, ts_params->def_decomp_xform, in test_compressdev_deflate_stateful_decomp_checksum()
3106 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_external_mbufs() local
3118 &ts_params->def_comp_xform, in test_compressdev_external_mbufs()
3119 &ts_params->def_decomp_xform, in test_compressdev_external_mbufs()
3170 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_fixed_oos_recoverable() local
3192 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_fixed_oos_recoverable()
3201 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_fixed_oos_recoverable()
3253 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_1op() local
3280 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_1op()
3281 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_1op()
3301 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_1op()
3316 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_1op()
3325 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_2ops_first() local
3356 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_first()
3357 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_first()
3372 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_first()
3387 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_first()
3396 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_2ops_second() local
3427 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_second()
3428 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_second()
3443 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_second()
3458 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_second()
3467 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_3ops() local
3499 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_3ops()
3500 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_3ops()
3515 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_3ops()
3530 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_3ops()
3539 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_4ops() local
3572 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_4ops()
3573 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_4ops()
3588 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_4ops()
3603 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_4ops()
3613 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_1op() local
3640 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_1op()
3641 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_1op()
3656 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_1op()
3671 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_1op()
3680 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_2ops_first() local
3711 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3712 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3727 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3742 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3751 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_2ops_second() local
3782 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3783 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3798 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3813 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3822 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_3ops() local
3854 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_3ops()
3855 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_3ops()
3870 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_3ops()
3885 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_3ops()
3895 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_4ops() local
3928 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_4ops()
3929 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_4ops()
3944 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_4ops()
3959 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_4ops()
3968 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_over_1op() local
3997 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_over_1op()
3998 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_over_1op()
4013 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_1op()
4028 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_1op()
4039 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_over_2ops_first() local
4072 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4073 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4088 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4103 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4112 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_over_2ops_second() local
4145 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()
4146 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()
4161 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()
4176 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()