Home
last modified time | relevance | path

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

/dpdk/lib/eal/common/
H A Dmalloc_elem.h181 void *ptr = RTE_PTR_SUB(elem, MALLOC_ELEM_TRAILER_LEN); in asan_clear_split_alloczone()
312 struct malloc_elem *elem = RTE_PTR_SUB(data, MALLOC_ELEM_HEADER_LEN); in malloc_elem_from_data()
315 return elem->state != ELEM_PAD ? elem: RTE_PTR_SUB(elem, elem->pad); in malloc_elem_from_data()
H A Dmalloc_elem.c524 erase = RTE_PTR_SUB(elem->next, MALLOC_ELEM_TRAILER_LEN); in malloc_elem_join_adjacent_free()
546 erase = RTE_PTR_SUB(elem, MALLOC_ELEM_TRAILER_LEN); in malloc_elem_join_adjacent_free()
H A Dmalloc_heap.c972 aligned_end = RTE_PTR_SUB(aligned_end, page_sz); in malloc_heap_free()
1045 void *aligned_trailer = RTE_PTR_SUB(aligned_start, in malloc_heap_free()
/dpdk/app/test/
H A Dtest_common.c42 if ((uintptr_t)RTE_PTR_SUB(BIGGER, PTR_DIFF) != SMALLER) in test_macros()
43 FAIL_MACRO(RTE_PTR_SUB); in test_macros()
/dpdk/lib/mempool/
H A Drte_mempool.h340 return (struct rte_mempool_objhdr *)RTE_PTR_SUB(obj, in rte_mempool_get_header()
1729 hdr = (const struct rte_mempool_objhdr *)RTE_PTR_SUB(elt, in rte_mempool_virt2iova()
H A Drte_mempool.c168 hdr = RTE_PTR_SUB(obj, sizeof(*hdr)); in mempool_add_elem()
/dpdk/lib/mbuf/
H A Drte_mbuf.h181 return (struct rte_mbuf *)RTE_PTR_SUB(mi->buf_addr, sizeof(*mi) + mi->priv_size); in rte_mbuf_from_indirect()
975 addr = RTE_PTR_ALIGN_FLOOR(RTE_PTR_SUB(buf_end, sizeof(*shinfo)), in rte_pktmbuf_ext_shinfo_init_helper()
/dpdk/drivers/event/cnxk/
H A Dcnxk_eventdev.h226 return RTE_PTR_SUB(ws, sizeof(struct cnxk_sso_hws_cookie)); in cnxk_sso_hws_get_cookie()
/dpdk/lib/eal/include/
H A Drte_common.h298 #define RTE_PTR_SUB(ptr, x) ((void*)((uintptr_t)ptr - (x))) macro
/dpdk/drivers/net/mlx5/
H A Dmlx5_rx.h535 buf_addr = RTE_PTR_SUB(addr, RTE_PKTMBUF_HEADROOM); in mprq_buf_to_pkt()
/dpdk/drivers/net/avp/
H A Davp_ethdev.c353 return RTE_PTR_ADD(RTE_PTR_SUB(host_mbuf_address, in avp_dev_translate_buffer()