Lines Matching refs:total_read

108 	int total_read = 0;  in test_recv()  local
126 recv_buf + total_read, in test_recv()
127 sizeof(recv_buf) - total_read); in test_recv()
133 total_read += ret; in test_recv()
143 recv_buf + total_read, in test_recv()
144 sizeof(recv_buf) - total_read); in test_recv()
145 zassert_true(ret <= (sizeof(recv_buf) - total_read), in test_recv()
147 total_read += ret; in test_recv()
148 zassert_equal(total_read, sizeof(frame1) - FRAME1_HDR_SIZE, in test_recv()
151 } else if (total_read < (sizeof(frame1) - FRAME1_HDR_SIZE)) { in test_recv()
156 ret = test_recv_buf(&feed_buf[FRAME1_HDR_SIZE + total_read], in test_recv()
157 sizeof(frame1) - FRAME1_HDR_SIZE - total_read, in test_recv()
159 recv_buf + total_read, in test_recv()
160 sizeof(recv_buf) - total_read); in test_recv()
161 total_read += ret; in test_recv()
162 zassert_equal(total_read, sizeof(frame1) - FRAME1_HDR_SIZE, in test_recv()
227 int total_read = 0; in ZTEST() local
239 total_read = test_recv_buf(&feed_buf[0], sizeof(ping), &ctx, &msg_type, &remaining, in ZTEST()
242 zassert_equal(total_read, 0, "Msg not empty (ret %d)", total_read); in ZTEST()
251 int total_read = 0; in test_recv_2() local
264 total_read = test_recv_buf(&feed_buf[0], count, &ctx, &msg_type, in test_recv_2()
297 size_t split_len = 0, total_read = 0; in verify_sent_and_received_msg() local
326 total_read = ret; in verify_sent_and_received_msg()
332 total_read, in verify_sent_and_received_msg()
333 msg->msg_iov[1].iov_len - total_read, in verify_sent_and_received_msg()
338 if (memcmp(recv_buf, lorem_ipsum + total_read, ret) != 0) { in verify_sent_and_received_msg()
339 LOG_HEXDUMP_ERR(lorem_ipsum + total_read, ret, in verify_sent_and_received_msg()
343 "after %d bytes", total_read); in verify_sent_and_received_msg()
346 total_read += ret; in verify_sent_and_received_msg()
349 zassert_equal(total_read, test_msg_len, in verify_sent_and_received_msg()
351 total_read, test_msg_len); in verify_sent_and_received_msg()
354 msg->msg_iov[0].iov_len, total_read); in verify_sent_and_received_msg()
356 return msg->msg_iov[0].iov_len + total_read; in verify_sent_and_received_msg()
431 int total_read = 0; in ZTEST() local
448 total_read += ret; in ZTEST()
456 total_read += ret; in ZTEST()
459 zassert_equal(total_read, frame1_msg_size, "Received not whole message"); in ZTEST()