Lines Matching refs:rp

505 	struct rte_ring *rp = NULL;  in test_ring_negative_tests()  local
510 rp = test_ring_create("test_bad_element_size", 23, in test_ring_negative_tests()
512 if (rp != NULL) { in test_ring_negative_tests()
520 rp = test_ring_create("test_bad_ring_size", esize[i], in test_ring_negative_tests()
522 if (rp != NULL) { in test_ring_negative_tests()
528 rp = test_ring_create("test_bad_ring_size", esize[i], in test_ring_negative_tests()
530 if (rp != NULL) { in test_ring_negative_tests()
536 rp = rte_ring_lookup("ring_not_found"); in test_ring_negative_tests()
537 if (rp != NULL && rte_errno != ENOENT) { in test_ring_negative_tests()
545 rp = test_ring_create("test_ring_count", esize[i], 4097, in test_ring_negative_tests()
547 if (rp != NULL) in test_ring_negative_tests()
550 rp = test_ring_create("test_ring_negative", esize[i], RING_SIZE, in test_ring_negative_tests()
553 if (rp == NULL) { in test_ring_negative_tests()
558 TEST_RING_VERIFY(rte_ring_lookup("test_ring_negative") == rp, in test_ring_negative_tests()
559 rp, goto test_fail); in test_ring_negative_tests()
561 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto test_fail); in test_ring_negative_tests()
571 rte_ring_free(rp); in test_ring_negative_tests()
572 rp = NULL; in test_ring_negative_tests()
579 rte_ring_free(rp); in test_ring_negative_tests()
967 struct rte_ring *rp = NULL; in test_ring_basic_ex() local
971 rp = test_ring_create("test_ring_basic_ex", esize[i], RING_SIZE, in test_ring_basic_ex()
974 if (rp == NULL) { in test_ring_basic_ex()
996 TEST_RING_VERIFY(rte_ring_lookup("test_ring_basic_ex") == rp, in test_ring_basic_ex()
997 rp, goto fail_test); in test_ring_basic_ex()
999 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1002 rte_ring_free_count(rp)); in test_ring_basic_ex()
1005 ret = test_ring_enqueue(rp, cur_src, esize[i], 1, in test_ring_basic_ex()
1007 TEST_RING_VERIFY(ret == 0, rp, goto fail_test); in test_ring_basic_ex()
1011 TEST_RING_VERIFY(rte_ring_full(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1014 ret = test_ring_dequeue(rp, cur_dst, esize[i], 1, in test_ring_basic_ex()
1016 TEST_RING_VERIFY(ret == 0, rp, goto fail_test); in test_ring_basic_ex()
1020 TEST_RING_VERIFY(rte_ring_empty(rp) == 1, rp, goto fail_test); in test_ring_basic_ex()
1025 rp, goto fail_test); in test_ring_basic_ex()
1038 ret = test_ring_enqueue(rp, cur_src, esize[i], 2, in test_ring_basic_ex()
1040 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1043 ret = test_ring_dequeue(rp, cur_dst, esize[i], 2, in test_ring_basic_ex()
1045 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1049 ret = test_ring_enqueue(rp, cur_src, esize[i], 2, in test_ring_basic_ex()
1051 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1053 ret = test_ring_dequeue(rp, cur_dst, esize[i], 2, in test_ring_basic_ex()
1055 TEST_RING_VERIFY(ret == 2, rp, goto fail_test); in test_ring_basic_ex()
1061 rp, goto fail_test); in test_ring_basic_ex()
1063 rte_ring_free(rp); in test_ring_basic_ex()
1066 rp = NULL; in test_ring_basic_ex()
1074 rte_ring_free(rp); in test_ring_basic_ex()