Lines Matching refs:remaining_len
67 int remaining_len, ret; in get_sf_net() local
69 remaining_len = isotp_recv_net(recv_ctx, &buf, K_MSEC(1000)); in get_sf_net()
70 zassert_true(remaining_len >= 0, "recv returned %d", remaining_len); in get_sf_net()
71 zassert_equal(remaining_len, 0, "SF should fit in one frame"); in get_sf_net()
133 int remaining_len; in receive_test_data_net() local
139 remaining_len = isotp_recv_net(recv_ctx, &buf, K_MSEC(1000)); in receive_test_data_net()
140 zassert_true(remaining_len >= 0, "recv error: %d", in receive_test_data_net()
141 remaining_len); in receive_test_data_net()
143 zassert_equal(received_len + remaining_len, len, in receive_test_data_net()
153 } while (remaining_len); in receive_test_data_net()
155 remaining_len = isotp_recv_net(recv_ctx, &buf, K_MSEC(50)); in receive_test_data_net()
156 zassert_equal(remaining_len, ISOTP_RECV_TIMEOUT, in receive_test_data_net()
157 "Expected timeout but got %d", remaining_len); in receive_test_data_net()
178 size_t remaining_len = len; in receive_test_data() local
188 zassert_true(remaining_len >= ret, "More data then expected"); in receive_test_data()
191 remaining_len -= ret; in receive_test_data()
196 } while (remaining_len); in receive_test_data()