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()
703 const unsigned align = 1 << (rte_rand() % 12); /* up to 4k alignment */ in test_random_alloc_free() local
705 mem_size, align); in test_random_alloc_free()
708 if (RTE_PTR_ALIGN(entry, align)!= entry) in test_random_alloc_free()
835 unsigned align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params() local
838 char *bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
843 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
848 align = 17; in test_malloc_bad_params()
851 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
856 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
864 align = RTE_CACHE_LINE_SIZE; in test_malloc_bad_params()
867 bad_ptr = rte_malloc(type, size, align); in test_malloc_bad_params()
871 bad_ptr = rte_realloc(NULL, size, align); in test_malloc_bad_params()
920 const unsigned align = 0; in test_alloc_single_socket() local
926 mem = rte_calloc_socket(type, size, sizeof(char), align, socket); in test_alloc_single_socket()
936 mem = rte_malloc_socket(type, size, align, socket); in test_alloc_single_socket()
945 mem = rte_zmalloc_socket(type, size, align, socket); in test_alloc_single_socket()