Lines Matching refs:ptr2
51 unsigned long ptr2 = (unsigned long)p2; in is_memory_overlap() local
53 if (ptr2 >= ptr1 && (ptr2 - ptr1) < len1) in is_memory_overlap()
55 else if (ptr2 < ptr1 && (ptr1 - ptr2) < len2) in is_memory_overlap()
393 char *ptr2 = rte_realloc_socket( in test_realloc_socket() local
395 if (!ptr2){ in test_realloc_socket()
400 if (ptr1 == ptr2){ in test_realloc_socket()
403 if (strcmp(ptr2, hello_str) != 0){ in test_realloc_socket()
405 rte_free(ptr2); in test_realloc_socket()
410 if (ptr2[i] != 0){ in test_realloc_socket()
412 rte_free(ptr2); in test_realloc_socket()
422 rte_free(ptr2); in test_realloc_socket()
429 rte_free(ptr2); in test_realloc_socket()
432 rte_free(ptr2); in test_realloc_socket()
574 void *ptr1, *ptr2; in test_realloc_numa() local
586 ptr2 = rte_realloc_socket(ptr1, size, in test_realloc_numa()
589 if (ptr2 == NULL) { in test_realloc_numa()
594 ptr1 = ptr2; in test_realloc_numa()
595 socket_allocated = addr_to_socket(ptr2); in test_realloc_numa()