Lines Matching refs:buf

28 	uint64_t buf[2];  member
46 op.params[2].tmpref.buffer = handle->buf; in socket_tcp_open()
47 op.params[2].tmpref.size = sizeof(handle->buf); in socket_tcp_open()
76 op.params[2].tmpref.buffer = handle->buf; in socket_udp_open()
77 op.params[2].tmpref.size = sizeof(handle->buf); in socket_udp_open()
100 op.params[0].tmpref.buffer = handle->buf; in socket_send()
124 op.params[0].tmpref.buffer = handle->buf; in socket_recv()
147 op.params[0].tmpref.buffer = handle->buf; in socket_get_error()
165 op.params[0].tmpref.buffer = handle->buf; in socket_close()
181 op.params[0].tmpref.buffer = handle->buf; in socket_ioctl()
226 uint8_t buf[100] = { }; in test_200x_tcp_read_cb() local
230 r = read(fd, buf, sizeof(buf)); in test_200x_tcp_read_cb()
235 if (memcmp(buf, buf2, r)) { in test_200x_tcp_read_cb()
268 uint8_t buf[64] = { }; in xtest_tee_test_2001() local
301 blen = sizeof(buf); in xtest_tee_test_2001()
302 rand_stream_read(local_iostate.write_rs, buf, blen); in xtest_tee_test_2001()
304 buf, &blen, TEE_TIMEOUT_INFINITE, &ret_orig))) in xtest_tee_test_2001()
306 ADBG_EXPECT_COMPARE_UNSIGNED(c, blen, ==, sizeof(buf)); in xtest_tee_test_2001()
310 blen = sizeof(buf); in xtest_tee_test_2001()
312 buf, &blen, TEE_TIMEOUT_INFINITE, &ret_orig))) in xtest_tee_test_2001()
314 ADBG_EXPECT_COMPARE_UNSIGNED(c, blen, ==, sizeof(buf)); in xtest_tee_test_2001()
316 ADBG_EXPECT_BUFFER(c, buf2, blen, buf, blen); in xtest_tee_test_2001()
347 blen = sizeof(buf); in xtest_tee_test_2001()
349 buf, &blen, &ret_orig))) in xtest_tee_test_2001()
362 blen = sizeof(buf); in xtest_tee_test_2001()
366 buf, &blen, &ret_orig)); in xtest_tee_test_2001()
378 blen = sizeof(buf); in xtest_tee_test_2001()
381 buf, &blen, &ret_orig)); in xtest_tee_test_2001()
460 uint8_t buf[64] = { }; in xtest_tee_test_2002_thread() local
464 blen = sizeof(buf); in xtest_tee_test_2002_thread()
473 blen = sizeof(buf); in xtest_tee_test_2002_thread()
474 res = socket_recv(&session, &sh, buf, &blen, in xtest_tee_test_2002_thread()
479 if (memcmp(buf2, buf, blen)) in xtest_tee_test_2002_thread()
563 void *buf = NULL; in xtest_tee_test_2003() local
572 buf = calloc(1, blen0); in xtest_tee_test_2003()
573 if (!ADBG_EXPECT_NOT_NULL(c, buf)) in xtest_tee_test_2003()
606 memset(buf, 0, blen0); in xtest_tee_test_2003()
607 res = socket_send(&session, &sh, buf, &blen, 10, &ret_orig); in xtest_tee_test_2003()
619 socket_recv(&session, &sh, buf, &blen, in xtest_tee_test_2003()
634 free(buf); in xtest_tee_test_2003()
646 uint8_t buf[100] = { }; in test_200x_udp_accept_cb() local
653 r = recvfrom(fd, buf, sizeof(buf), 0, sa, &slen); in test_200x_udp_accept_cb()
659 if (memcmp(buf, buf2, l)) in test_200x_udp_accept_cb()
662 rand_stream_read(iostate->write_rs, buf, l); in test_200x_udp_accept_cb()
663 return sendto(fd, buf, l, 0, sa, slen) != -1; in test_200x_udp_accept_cb()
674 uint8_t *buf = calloc(1, send_sz); in test_2004_send_recv() local
680 if (!ADBG_EXPECT_NOT_NULL(c, buf) || !ADBG_EXPECT_NOT_NULL(c, buf2) || in test_2004_send_recv()
687 rand_stream_read(local_ios->write_rs, buf, blen); in test_2004_send_recv()
689 buf, &blen, TEE_TIMEOUT_INFINITE, &ret_orig))) in test_2004_send_recv()
699 buf, &blen, TEE_TIMEOUT_INFINITE, &ret_orig))) in test_2004_send_recv()
711 buf, &blen, TEE_TIMEOUT_INFINITE, &ret_orig))) in test_2004_send_recv()
721 if (!ADBG_EXPECT_BUFFER(c, buf2, recv_sz, buf, recv_sz)) in test_2004_send_recv()
729 free(buf); in test_2004_send_recv()
747 uint8_t buf[64] = { }; in xtest_tee_test_2004() local
819 blen = sizeof(buf); in xtest_tee_test_2004()
821 buf, &blen, &ret_orig))) in xtest_tee_test_2004()
834 blen = sizeof(buf); in xtest_tee_test_2004()
838 buf, &blen, &ret_orig)); in xtest_tee_test_2004()
850 blen = sizeof(buf); in xtest_tee_test_2004()
853 buf, &blen, &ret_orig)); in xtest_tee_test_2004()