Lines Matching refs:ptr

113     char *ptr = cache_alloc(cache);  in cache_reuse_test()  local
114 cache_free(cache, ptr); in cache_reuse_test()
117 assert(p == ptr); in cache_reuse_test()
118 cache_free(cache, ptr); in cache_reuse_test()
132 void *ptr[ITERATIONS]; in cache_bulkalloc() local
135 ptr[ii] = cache_alloc(cache); in cache_bulkalloc()
136 assert(ptr[ii] != 0); in cache_bulkalloc()
137 memset(ptr[ii], 0xff, datasize); in cache_bulkalloc()
141 cache_free(cache, ptr[ii]); in cache_bulkalloc()
787 const char* ptr = buf; in send_ascii_command() local
791 ssize_t nw = con->write((void*)con, ptr + offset, len - offset); in send_ascii_command()
975 const char* ptr = buf; in safe_send() local
977 uint8_t val = *ptr; in safe_send()
984 val = *(ptr + ii); in safe_send()
998 ssize_t nw = con->write(con, ptr + offset, num_bytes); in safe_send()
1049 char *ptr = buf; in safe_recv_packet() local
1050 ptr += len; in safe_recv_packet()
1051 if (!safe_recv(ptr, response->message.header.response.bodylen)) { in safe_recv_packet()
1057 ptr = buf; in safe_recv_packet()
1059 uint8_t val = *ptr; in safe_recv_packet()
1066 val = *(ptr + ii); in safe_recv_packet()
1933 char *ptr = receive.bytes; in test_binary_concat_impl() local
1934 ptr += sizeof(receive.response); in test_binary_concat_impl()
1935 ptr += 4; in test_binary_concat_impl()
1937 assert(memcmp(ptr, key, strlen(key)) == 0); in test_binary_concat_impl()
1938 ptr += strlen(key); in test_binary_concat_impl()
1939 assert(memcmp(ptr, value, strlen(value)) == 0); in test_binary_concat_impl()
1940 ptr += strlen(value); in test_binary_concat_impl()
1941 assert(memcmp(ptr, value, strlen(value)) == 0); in test_binary_concat_impl()