Lines Matching refs:align
61 is_aligned(void *p, int align) in is_aligned() argument
64 unsigned mask = align - 1; in is_aligned()
272 int align = 1024; in test_multi_alloc_statistics() local
295 void *p1 = rte_malloc_socket("stats", size , align, socket); in test_multi_alloc_statistics()
314 align = 0; in test_multi_alloc_statistics()
316 void *p2 = rte_malloc_socket("add", size ,align, socket); in test_multi_alloc_statistics()
321 void *p3 = rte_malloc_socket("add2", size,align, socket); in test_multi_alloc_statistics()
692 const unsigned align = 1 << (rte_rand() % 12); /* up to 4k alignment */ in test_random_alloc_free() local
694 mem_size, align); in test_random_alloc_free()
697 if (RTE_PTR_ALIGN(entry, align)!= entry) in test_random_alloc_free()
824 unsigned align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params() local
827 char *bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
832 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
837 align = 17; in test_malloc_bad_params()
840 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
845 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
853 align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params()
856 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
860 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
910 const unsigned align = 0; in test_alloc_single_socket() local
916 mem = rte_calloc_socket(type, size, sizeof(char), align, socket); in test_alloc_single_socket()
926 mem = rte_malloc_socket(type, size, align, socket); in test_alloc_single_socket()
935 mem = rte_zmalloc_socket(type, size, align, socket); in test_alloc_single_socket()