Lines Matching refs:align
54 malloc_socket(const char *type, size_t size, unsigned int align, in malloc_socket() argument
60 if (size == 0 || (align && !rte_is_power_of_2(align))) in malloc_socket()
73 align == 0 ? 1 : align, 0, false); in malloc_socket()
76 rte_eal_trace_mem_malloc(type, size, align, socket_arg, ptr); in malloc_socket()
84 rte_malloc_socket(const char *type, size_t size, unsigned int align, in rte_malloc_socket() argument
87 return malloc_socket(type, size, align, socket_arg, true); in rte_malloc_socket()
91 eal_malloc_no_trace(const char *type, size_t size, unsigned int align) in eal_malloc_no_trace() argument
93 return malloc_socket(type, size, align, SOCKET_ID_ANY, false); in eal_malloc_no_trace()
100 rte_malloc(const char *type, size_t size, unsigned align) in rte_malloc() argument
102 return rte_malloc_socket(type, size, align, SOCKET_ID_ANY); in rte_malloc()
109 rte_zmalloc_socket(const char *type, size_t size, unsigned align, int socket) in rte_zmalloc_socket() argument
111 void *ptr = rte_malloc_socket(type, size, align, socket); in rte_zmalloc_socket()
130 rte_eal_trace_mem_zmalloc(type, size, align, socket, ptr); in rte_zmalloc_socket()
138 rte_zmalloc(const char *type, size_t size, unsigned align) in rte_zmalloc() argument
140 return rte_zmalloc_socket(type, size, align, SOCKET_ID_ANY); in rte_zmalloc()
147 rte_calloc_socket(const char *type, size_t num, size_t size, unsigned align, int socket) in rte_calloc_socket() argument
149 return rte_zmalloc_socket(type, num * size, align, socket); in rte_calloc_socket()
156 rte_calloc(const char *type, size_t num, size_t size, unsigned align) in rte_calloc() argument
158 return rte_zmalloc(type, num * size, align); in rte_calloc()
165 rte_realloc_socket(void *ptr, size_t size, unsigned int align, int socket) in rte_realloc_socket() argument
170 return rte_malloc_socket(NULL, size, align, socket); in rte_realloc_socket()
180 size = RTE_CACHE_LINE_ROUNDUP(size), align = RTE_CACHE_LINE_ROUNDUP(align); in rte_realloc_socket()
187 RTE_PTR_ALIGN(ptr, align) == ptr && in rte_realloc_socket()
189 rte_eal_trace_mem_realloc(size, align, socket, ptr); in rte_realloc_socket()
200 void *new_ptr = rte_malloc_socket(NULL, size, align, socket); in rte_realloc_socket()
208 rte_eal_trace_mem_realloc(size, align, socket, new_ptr); in rte_realloc_socket()
216 rte_realloc(void *ptr, size_t size, unsigned int align) in rte_realloc() argument
218 return rte_realloc_socket(ptr, size, align, SOCKET_ID_ANY); in rte_realloc()