Searched refs:RTE_PTR_SUB (Results 1 – 11 of 11) sorted by relevance
| /dpdk/lib/eal/common/ |
| H A D | malloc_elem.h | 181 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 D | malloc_elem.c | 524 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 D | malloc_heap.c | 972 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 D | test_common.c | 42 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 D | rte_mempool.h | 340 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 D | rte_mempool.c | 168 hdr = RTE_PTR_SUB(obj, sizeof(*hdr)); in mempool_add_elem()
|
| /dpdk/lib/mbuf/ |
| H A D | rte_mbuf.h | 181 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 D | cnxk_eventdev.h | 226 return RTE_PTR_SUB(ws, sizeof(struct cnxk_sso_hws_cookie)); in cnxk_sso_hws_get_cookie()
|
| /dpdk/lib/eal/include/ |
| H A D | rte_common.h | 298 #define RTE_PTR_SUB(ptr, x) ((void*)((uintptr_t)ptr - (x))) macro
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_rx.h | 535 buf_addr = RTE_PTR_SUB(addr, RTE_PKTMBUF_HEADROOM); in mprq_buf_to_pkt()
|
| /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()
|