Lines Matching refs:rp
504 struct rte_ring *rp = NULL; in test_ring_negative_tests() local
509 rp = test_ring_create("test_bad_element_size", 23, in test_ring_negative_tests()
511 if (rp != NULL) { in test_ring_negative_tests()
519 rp = test_ring_create("test_bad_ring_size", esize[i], in test_ring_negative_tests()
521 if (rp != NULL) { in test_ring_negative_tests()
527 rp = test_ring_create("test_bad_ring_size", esize[i], in test_ring_negative_tests()
529 if (rp != NULL) { in test_ring_negative_tests()
535 rp = rte_ring_lookup("ring_not_found"); in test_ring_negative_tests()
536 if (rp != NULL && rte_errno != ENOENT) { in test_ring_negative_tests()
544 rp = test_ring_create("test_ring_count", esize[i], 4097, in test_ring_negative_tests()
546 if (rp != NULL) in test_ring_negative_tests()
549 rp = test_ring_create("test_ring_negative", esize[i], RING_SIZE, in test_ring_negative_tests()
552 if (rp == NULL) { in test_ring_negative_tests()
557 TEST_RING_VERIFY(rte_ring_lookup("test_ring_negative") == rp, in test_ring_negative_tests()
558 rp, goto test_fail); in test_ring_negative_tests()
560 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto test_fail); in test_ring_negative_tests()
570 rte_ring_free(rp); in test_ring_negative_tests()
571 rp = NULL; in test_ring_negative_tests()
578 rte_ring_free(rp); in test_ring_negative_tests()
966 struct rte_ring *rp = NULL; in test_ring_basic_ex() local
970 rp = test_ring_create("test_ring_basic_ex", esize[i], RING_SIZE, in test_ring_basic_ex()
973 if (rp == NULL) { in test_ring_basic_ex()
995 TEST_RING_VERIFY(rte_ring_lookup("test_ring_basic_ex") == rp, in test_ring_basic_ex()
996 rp, goto fail_test); in test_ring_basic_ex()
998 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1001 rte_ring_free_count(rp)); in test_ring_basic_ex()
1004 ret = test_ring_enqueue(rp, cur_src, esize[i], 1, in test_ring_basic_ex()
1006 TEST_RING_VERIFY(ret == 0, rp, goto fail_test); in test_ring_basic_ex()
1010 TEST_RING_VERIFY(rte_ring_full(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1013 ret = test_ring_dequeue(rp, cur_dst, esize[i], 1, in test_ring_basic_ex()
1015 TEST_RING_VERIFY(ret == 0, rp, goto fail_test); in test_ring_basic_ex()
1019 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1024 rp, goto fail_test); in test_ring_basic_ex()
1037 ret = test_ring_enqueue(rp, cur_src, esize[i], 2, in test_ring_basic_ex()
1039 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1042 ret = test_ring_dequeue(rp, cur_dst, esize[i], 2, in test_ring_basic_ex()
1044 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1048 ret = test_ring_enqueue(rp, cur_src, esize[i], 2, in test_ring_basic_ex()
1050 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1052 ret = test_ring_dequeue(rp, cur_dst, esize[i], 2, in test_ring_basic_ex()
1054 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1060 rp, goto fail_test); in test_ring_basic_ex()
1062 rte_ring_free(rp); in test_ring_basic_ex()
1065 rp = NULL; in test_ring_basic_ex()
1073 rte_ring_free(rp); in test_ring_basic_ex()