Home
last modified time | relevance | path

Searched refs:RTE_PTR_SUB (Results 1 – 11 of 11) sorted by relevance

/f-stack/dpdk/lib/librte_eal/common/
H A Dmalloc_elem.h106 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 Dmalloc_elem.c518 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 Dmalloc_heap.c939 aligned_end = RTE_PTR_SUB(aligned_end, page_sz); in malloc_heap_free()
/f-stack/dpdk/app/test/
H A Dtest_common.c38 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 Drte_mempool.h307 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 Drte_mempool.c162 hdr = RTE_PTR_SUB(obj, sizeof(*hdr)); in mempool_add_elem()
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Drte_common.h214 #define RTE_PTR_SUB(ptr, x) ((void*)((uintptr_t)ptr - (x))) macro
/f-stack/dpdk/lib/librte_mbuf/
H A Drte_mbuf.h183 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 Drte_common.h253 #define RTE_PTR_SUB(ptr, x) ((void*)((uintptr_t)ptr - (x))) macro
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_rxtx.h873 buf_addr = RTE_PTR_SUB(addr, RTE_PKTMBUF_HEADROOM); in mprq_buf_to_pkt()
/f-stack/dpdk/drivers/net/avp/
H A Davp_ethdev.c353 return RTE_PTR_ADD(RTE_PTR_SUB(host_mbuf_address, in avp_dev_translate_buffer()