Searched refs:RTE_PTR_SUB (Results 1 – 11 of 11) sorted by relevance
| /f-stack/dpdk/lib/librte_eal/common/ |
| H A D | malloc_elem.h | 106 struct malloc_elem *elem = RTE_PTR_SUB(data, MALLOC_ELEM_HEADER_LEN); in malloc_elem_from_data() 109 return elem->state != ELEM_PAD ? elem: RTE_PTR_SUB(elem, elem->pad); in malloc_elem_from_data()
|
| H A D | malloc_elem.c | 518 erase = RTE_PTR_SUB(elem->next, MALLOC_ELEM_TRAILER_LEN); in malloc_elem_join_adjacent_free() 540 erase = RTE_PTR_SUB(elem, MALLOC_ELEM_TRAILER_LEN); in malloc_elem_join_adjacent_free()
|
| H A D | malloc_heap.c | 939 aligned_end = RTE_PTR_SUB(aligned_end, page_sz); in malloc_heap_free()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_common.c | 38 if ((uintptr_t)RTE_PTR_SUB(BIGGER, PTR_DIFF) != SMALLER) in test_macros() 39 FAIL_MACRO(RTE_PTR_SUB); in test_macros()
|
| /f-stack/dpdk/lib/librte_mempool/ |
| H A D | rte_mempool.h | 307 return (struct rte_mempool_objhdr *)RTE_PTR_SUB(obj, in __mempool_get_header() 1676 hdr = (const struct rte_mempool_objhdr *)RTE_PTR_SUB(elt, in rte_mempool_virt2iova()
|
| H A D | rte_mempool.c | 162 hdr = RTE_PTR_SUB(obj, sizeof(*hdr)); in mempool_add_elem()
|
| /f-stack/freebsd/contrib/dpdk_rte_lpm/ |
| H A D | rte_common.h | 214 #define RTE_PTR_SUB(ptr, x) ((void*)((uintptr_t)ptr - (x))) macro
|
| /f-stack/dpdk/lib/librte_mbuf/ |
| H A D | rte_mbuf.h | 183 return (struct rte_mbuf *)RTE_PTR_SUB(mi->buf_addr, sizeof(*mi) + mi->priv_size); in rte_mbuf_from_indirect() 996 addr = RTE_PTR_ALIGN_FLOOR(RTE_PTR_SUB(buf_end, sizeof(*shinfo)), in rte_pktmbuf_ext_shinfo_init_helper()
|
| /f-stack/dpdk/lib/librte_eal/include/ |
| H A D | rte_common.h | 253 #define RTE_PTR_SUB(ptr, x) ((void*)((uintptr_t)ptr - (x))) macro
|
| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5_rxtx.h | 873 buf_addr = RTE_PTR_SUB(addr, RTE_PKTMBUF_HEADROOM); in mprq_buf_to_pkt()
|
| /f-stack/dpdk/drivers/net/avp/ |
| H A D | avp_ethdev.c | 353 return RTE_PTR_ADD(RTE_PTR_SUB(host_mbuf_address, in avp_dev_translate_buffer()
|