Lines Matching refs:align
62 is_aligned(void *p, int align) in is_aligned() argument
65 unsigned mask = align - 1; in is_aligned()
273 int align = 1024; in test_multi_alloc_statistics() local
296 void *p1 = rte_malloc_socket("stats", size , align, socket); in test_multi_alloc_statistics()
315 align = 0; in test_multi_alloc_statistics()
317 void *p2 = rte_malloc_socket("add", size ,align, socket); in test_multi_alloc_statistics()
322 void *p3 = rte_malloc_socket("add2", size,align, socket); in test_multi_alloc_statistics()
701 const unsigned align = 1 << (rte_rand() % 12); /* up to 4k alignment */ in test_random_alloc_free() local
703 mem_size, align); in test_random_alloc_free()
706 if (RTE_PTR_ALIGN(entry, align)!= entry) in test_random_alloc_free()
833 unsigned align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params() local
836 char *bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
841 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
846 align = 17; in test_malloc_bad_params()
849 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
854 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
862 align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params()
865 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
869 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
918 const unsigned align = 0; in test_alloc_single_socket() local
924 mem = rte_calloc_socket(type, size, sizeof(char), align, socket); in test_alloc_single_socket()
934 mem = rte_malloc_socket(type, size, align, socket); in test_alloc_single_socket()
944 mem = rte_zmalloc_socket(type, size, align, socket); in test_alloc_single_socket()