Home
last modified time | relevance | path

Searched refs:zcd (Results 1 – 6 of 6) sorted by relevance

/dpdk/lib/ring/
H A Drte_ring_peek_zc.h148 __rte_ring_get_elem_addr(r, head, esize, n, &zcd->ptr1, in __rte_ring_do_enqueue_zc_elem_start()
149 &zcd->n1, &zcd->ptr2); in __rte_ring_do_enqueue_zc_elem_start()
184 RTE_RING_QUEUE_FIXED, zcd, free_space); in rte_ring_enqueue_zc_bulk_elem_start()
214 zcd, free_space); in rte_ring_enqueue_zc_bulk_start()
245 RTE_RING_QUEUE_VARIABLE, zcd, free_space); in rte_ring_enqueue_zc_burst_elem_start()
275 zcd, free_space); in rte_ring_enqueue_zc_burst_start()
357 &zcd->n1, &zcd->ptr2); in __rte_ring_do_dequeue_zc_elem_start()
391 RTE_RING_QUEUE_FIXED, zcd, available); in rte_ring_dequeue_zc_bulk_elem_start()
420 n, zcd, available); in rte_ring_dequeue_zc_bulk_start()
452 RTE_RING_QUEUE_VARIABLE, zcd, available); in rte_ring_dequeue_zc_burst_elem_start()
[all …]
/dpdk/app/test/
H A Dtest_ring.h75 test_ring_mem_copy(zcd->ptr1, src, esize, zcd->n1); in test_ring_copy_to()
76 if (zcd->n1 != num) { in test_ring_copy_to()
78 src = src + zcd->n1; in test_ring_copy_to()
81 (zcd->n1 * esize / sizeof(uint32_t))); in test_ring_copy_to()
82 test_ring_mem_copy(zcd->ptr2, src, in test_ring_copy_to()
83 esize, num - zcd->n1); in test_ring_copy_to()
89 test_ring_copy_from(struct rte_ring_zc_data *zcd, void *dst, int esize, in test_ring_copy_from() argument
92 test_ring_mem_copy(dst, zcd->ptr1, esize, zcd->n1); in test_ring_copy_from()
94 if (zcd->n1 != num) { in test_ring_copy_from()
95 dst = test_ring_inc_ptr(dst, esize, zcd->n1); in test_ring_copy_from()
[all …]
H A Dtest_ring_mt_peek_stress_zc.c14 struct rte_ring_zc_data zcd; in _st_ring_dequeue_bulk() local
16 m = rte_ring_dequeue_zc_bulk_start(r, n, &zcd, avail); in _st_ring_dequeue_bulk()
19 test_ring_copy_from(&zcd, obj, -1, n); in _st_ring_dequeue_bulk()
31 struct rte_ring_zc_data zcd; in _st_ring_enqueue_bulk() local
33 m = rte_ring_enqueue_zc_bulk_start(r, n, &zcd, free); in _st_ring_enqueue_bulk()
36 test_ring_copy_to(&zcd, obj, -1, n); in _st_ring_enqueue_bulk()
H A Dtest_ring_st_peek_stress_zc.c14 struct rte_ring_zc_data zcd; in _st_ring_dequeue_bulk() local
20 m = rte_ring_dequeue_zc_bulk_start(r, n, &zcd, avail); in _st_ring_dequeue_bulk()
23 test_ring_copy_from(&zcd, obj, -1, m); in _st_ring_dequeue_bulk()
36 struct rte_ring_zc_data zcd; in _st_ring_enqueue_bulk() local
42 m = rte_ring_enqueue_zc_bulk_start(r, n, &zcd, free); in _st_ring_enqueue_bulk()
45 test_ring_copy_to(&zcd, obj, -1, m); in _st_ring_enqueue_bulk()
H A Dtest_ring.c79 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_bulk() local
96 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_bulk_elem() local
99 &zcd, free_space); in test_ring_enqueue_zc_bulk_elem()
114 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_burst() local
131 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_burst_elem() local
134 &zcd, free_space); in test_ring_enqueue_zc_burst_elem()
149 struct rte_ring_zc_data zcd; in test_ring_dequeue_zc_bulk() local
166 struct rte_ring_zc_data zcd; in test_ring_dequeue_zc_bulk_elem() local
169 &zcd, available); in test_ring_dequeue_zc_bulk_elem()
184 struct rte_ring_zc_data zcd; in test_ring_dequeue_zc_burst() local
[all …]
/dpdk/doc/guides/prog_guide/
H A Dring_lib.rst482 n = rte_ring_enqueue_zc_burst_start(r, 32, &zcd, NULL);
485 nb_rx = rte_eth_rx_burst(portid, queueid, zcd->ptr1, zcd->n1);
486 if (nb_rx == zcd->n1 && n != zcd->n1)
487 nb_rx += rte_eth_rx_burst(portid, queueid, zcd->ptr2,
488 n - zcd->n1);