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()
1529 struct comp_testsuite_params *ts_params = &testsuite_params; in test_deflate_decomp_run() local
1554 ret = rte_comp_op_bulk_alloc(ts_params->op_pool, ops, num_bufs); in test_deflate_decomp_run()
2170 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_fixed() local
2191 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_fixed()
2200 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_fixed()
2242 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_dynamic() local
2263 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_dynamic()
2272 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_dynamic()
2314 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_multi_op() local
2327 &ts_params->def_comp_xform, in test_compressdev_deflate_stateless_multi_op()
2328 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_multi_op()
2361 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_multi_level() local
2375 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_multi_level()
2383 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_multi_level()
2424 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_multi_xform() local
2445 memcpy(compress_xforms[i], ts_params->def_comp_xform, in test_compressdev_deflate_stateless_multi_xform()
2459 memcpy(decompress_xforms[i], ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_multi_xform()
2508 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_sgl() local
2523 &ts_params->def_comp_xform, in test_compressdev_deflate_stateless_sgl()
2524 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_sgl()
2594 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_checksum() local
2617 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_checksum()
2628 memcpy(decompress_xform, ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_checksum()
2737 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_out_of_space_buffer() local
2754 &ts_params->def_comp_xform, in test_compressdev_out_of_space_buffer()
2755 &ts_params->def_decomp_xform, in test_compressdev_out_of_space_buffer()
2806 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_dynamic_big() local
2833 &ts_params->def_comp_xform, in test_compressdev_deflate_stateless_dynamic_big()
2834 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_dynamic_big()
2849 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_stateless_dynamic_big()
2873 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_stateless_dynamic_big()
2882 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateful_decomp() local
2897 &ts_params->def_comp_xform, in test_compressdev_deflate_stateful_decomp()
2898 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateful_decomp()
2939 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateful_decomp_checksum() local
2963 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateful_decomp_checksum()
2974 memcpy(decompress_xform, ts_params->def_decomp_xform, in test_compressdev_deflate_stateful_decomp_checksum()
3103 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_external_mbufs() local
3115 &ts_params->def_comp_xform, in test_compressdev_external_mbufs()
3116 &ts_params->def_decomp_xform, in test_compressdev_external_mbufs()
3167 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_stateless_fixed_oos_recoverable() local
3189 memcpy(compress_xform, ts_params->def_comp_xform, in test_compressdev_deflate_stateless_fixed_oos_recoverable()
3198 &ts_params->def_decomp_xform, in test_compressdev_deflate_stateless_fixed_oos_recoverable()
3250 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_1op() local
3277 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_1op()
3278 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_1op()
3298 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_1op()
3313 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_1op()
3322 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_2ops_first() local
3353 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_first()
3354 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_first()
3369 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_first()
3384 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_first()
3393 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_2ops_second() local
3424 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_second()
3425 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_2ops_second()
3440 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_second()
3455 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_2ops_second()
3464 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_3ops() local
3496 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_3ops()
3497 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_3ops()
3512 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_3ops()
3527 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_3ops()
3536 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_LB_4ops() local
3569 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_LB_4ops()
3570 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_LB_4ops()
3585 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_4ops()
3600 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_LB_4ops()
3610 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_1op() local
3637 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_1op()
3638 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_1op()
3653 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_1op()
3668 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_1op()
3677 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_2ops_first() local
3708 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3709 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3724 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3739 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_first()
3748 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_2ops_second() local
3779 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3780 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3795 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3810 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_2ops_second()
3819 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_3ops() local
3851 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_3ops()
3852 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_3ops()
3867 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_3ops()
3882 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_3ops()
3892 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_4ops() local
3925 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_4ops()
3926 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_4ops()
3941 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_4ops()
3956 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_4ops()
3965 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_over_1op() local
3994 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_over_1op()
3995 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_over_1op()
4010 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_1op()
4025 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_1op()
4036 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_over_2ops_first() local
4069 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4070 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4085 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4100 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_first()
4109 struct comp_testsuite_params *ts_params = &testsuite_params; in test_compressdev_deflate_im_buffers_SGL_over_2ops_second() local
4142 &ts_params->def_comp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()
4143 &ts_params->def_decomp_xform, in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()
4158 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()
4173 ts_params->def_comp_xform->compress.deflate.huffman = in test_compressdev_deflate_im_buffers_SGL_over_2ops_second()