Lines Matching refs:p1
48 is_memory_overlap(void *p1, size_t len1, void *p2, size_t len2) in is_memory_overlap() argument
50 unsigned long ptr1 = (unsigned long)p1; in is_memory_overlap()
78 void *p1 = NULL, *p2 = NULL, *p3 = NULL; in test_align_overlap_per_lcore() local
82 p1 = rte_zmalloc("dummy", 1000, align1); in test_align_overlap_per_lcore()
83 if (!p1){ in test_align_overlap_per_lcore()
89 if( *(char *)p1 != 0) { in test_align_overlap_per_lcore()
98 rte_free(p1); in test_align_overlap_per_lcore()
105 rte_free(p1); in test_align_overlap_per_lcore()
109 if (is_memory_overlap(p1, 1000, p2, 1000)) { in test_align_overlap_per_lcore()
117 if (is_memory_overlap(p1, 1000, p3, 1000)) { in test_align_overlap_per_lcore()
121 if (!is_aligned(p1, align1)) { in test_align_overlap_per_lcore()
133 rte_free(p1); in test_align_overlap_per_lcore()
149 void *p1, *p2, *p3; in test_reordered_free_per_lcore() local
153 p1 = rte_zmalloc("dummy", 1000, align1); in test_reordered_free_per_lcore()
154 if (!p1){ in test_reordered_free_per_lcore()
160 if( *(char *)p1 != 0) { in test_reordered_free_per_lcore()
174 if (is_memory_overlap(p1, 1000, p2, 1000)) { in test_reordered_free_per_lcore()
182 if (is_memory_overlap(p1, 1000, p3, 1000)) { in test_reordered_free_per_lcore()
186 if (!is_aligned(p1, align1)) { in test_reordered_free_per_lcore()
201 rte_free(p1); in test_reordered_free_per_lcore()
206 rte_free(p1); in test_reordered_free_per_lcore()
212 rte_free(p1); in test_reordered_free_per_lcore()
218 rte_free(p1); in test_reordered_free_per_lcore()
222 rte_free(p1); in test_reordered_free_per_lcore()
228 rte_free(p1); in test_reordered_free_per_lcore()
295 void *p1 = rte_malloc_socket("stats", size , align, socket); in test_multi_alloc_statistics() local
296 if (!p1) in test_multi_alloc_statistics()
298 rte_free(p1); in test_multi_alloc_statistics()
805 char *p1 = rte_malloc(NULL,1024, 0); in test_zero_aligned_alloc() local
806 if (!p1) in test_zero_aligned_alloc()
808 if (!rte_is_aligned(p1, RTE_CACHE_LINE_SIZE)) in test_zero_aligned_alloc()
810 rte_free(p1); in test_zero_aligned_alloc()
815 if (p1) rte_free(p1); in test_zero_aligned_alloc()