Lines Matching refs:ptr2
52 uintptr_t ptr2 = (uintptr_t)p2; in is_memory_overlap() local
54 if (ptr2 >= ptr1 && (ptr2 - ptr1) < len1) in is_memory_overlap()
56 else if (ptr2 < ptr1 && (ptr1 - ptr2) < len2) in is_memory_overlap()
402 char *ptr2 = rte_realloc_socket( in test_realloc_socket() local
404 if (!ptr2){ in test_realloc_socket()
409 if (ptr1 == ptr2){ in test_realloc_socket()
412 if (strcmp(ptr2, hello_str) != 0){ in test_realloc_socket()
414 rte_free(ptr2); in test_realloc_socket()
419 if (ptr2[i] != 0){ in test_realloc_socket()
421 rte_free(ptr2); in test_realloc_socket()
431 rte_free(ptr2); in test_realloc_socket()
438 rte_free(ptr2); in test_realloc_socket()
441 rte_free(ptr2); in test_realloc_socket()
583 void *ptr1, *ptr2; in test_realloc_numa() local
595 ptr2 = rte_realloc_socket(ptr1, size, in test_realloc_numa()
598 if (ptr2 == NULL) { in test_realloc_numa()
603 ptr1 = ptr2; in test_realloc_numa()
604 socket_allocated = addr_to_socket(ptr2); in test_realloc_numa()