| /f-stack/dpdk/lib/librte_ring/ |
| H A D | rte_ring_peek_zc.h | 149 __rte_ring_get_elem_addr(r, head, esize, n, &zcd->ptr1, in __rte_ring_do_enqueue_zc_elem_start() 150 &zcd->n1, &zcd->ptr2); in __rte_ring_do_enqueue_zc_elem_start() 186 RTE_RING_QUEUE_FIXED, zcd, free_space); in rte_ring_enqueue_zc_bulk_elem_start() 217 zcd, free_space); in rte_ring_enqueue_zc_bulk_start() 249 RTE_RING_QUEUE_VARIABLE, zcd, free_space); in rte_ring_enqueue_zc_burst_elem_start() 280 zcd, free_space); in rte_ring_enqueue_zc_burst_start() 364 &zcd->n1, &zcd->ptr2); in __rte_ring_do_dequeue_zc_elem_start() 399 RTE_RING_QUEUE_FIXED, zcd, available); in rte_ring_dequeue_zc_bulk_elem_start() 429 n, zcd, available); in rte_ring_dequeue_zc_bulk_start() 462 RTE_RING_QUEUE_VARIABLE, zcd, available); in rte_ring_dequeue_zc_burst_elem_start() [all …]
|
| /f-stack/dpdk/app/test/ |
| H A D | test_ring.h | 75 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 D | test_ring_mt_peek_stress_zc.c | 14 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 D | test_ring_st_peek_stress_zc.c | 14 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 D | test_ring.c | 80 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_bulk() local 97 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_bulk_elem() local 100 &zcd, free_space); in test_ring_enqueue_zc_bulk_elem() 115 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_burst() local 132 struct rte_ring_zc_data zcd; in test_ring_enqueue_zc_burst_elem() local 135 &zcd, free_space); in test_ring_enqueue_zc_burst_elem() 150 struct rte_ring_zc_data zcd; in test_ring_dequeue_zc_bulk() local 167 struct rte_ring_zc_data zcd; in test_ring_dequeue_zc_bulk_elem() local 170 &zcd, available); in test_ring_dequeue_zc_bulk_elem() 185 struct rte_ring_zc_data zcd; in test_ring_dequeue_zc_burst() local [all …]
|
| /f-stack/dpdk/doc/guides/prog_guide/ |
| H A D | ring_lib.rst | 482 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);
|