Lines Matching refs:recv_ctx

46 struct isotp_recv_ctx recv_ctx;  variable
64 static void get_sf_net(struct isotp_recv_ctx *recv_ctx) in get_sf_net() argument
69 remaining_len = isotp_recv_net(recv_ctx, &buf, K_MSEC(1000)); in get_sf_net()
81 static void get_sf(struct isotp_recv_ctx *recv_ctx) in get_sf() argument
87 ret = isotp_recv(recv_ctx, data_buf_ptr++, 1, K_MSEC(1000)); in get_sf()
89 ret = isotp_recv(recv_ctx, data_buf_ptr++, sizeof(data_buf) - 1, in get_sf()
130 static void receive_test_data_net(struct isotp_recv_ctx *recv_ctx, in receive_test_data_net() argument
139 remaining_len = isotp_recv_net(recv_ctx, &buf, K_MSEC(1000)); in receive_test_data_net()
155 remaining_len = isotp_recv_net(recv_ctx, &buf, K_MSEC(50)); in receive_test_data_net()
175 static void receive_test_data(struct isotp_recv_ctx *recv_ctx, in receive_test_data() argument
184 ret = isotp_recv(recv_ctx, data_buf, sizeof(data_buf), in receive_test_data()
198 ret = isotp_recv(recv_ctx, data_buf, sizeof(data_buf), K_MSEC(50)); in receive_test_data()
207 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, &fc_opts, in ZTEST()
213 get_sf_net(&recv_ctx); in ZTEST()
216 isotp_unbind(&recv_ctx); in ZTEST()
223 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, &fc_opts, in ZTEST()
229 get_sf(&recv_ctx); in ZTEST()
232 isotp_unbind(&recv_ctx); in ZTEST()
239 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, &fc_opts, in ZTEST()
245 receive_test_data_net(&recv_ctx, random_data, sizeof(random_data), 0); in ZTEST()
248 isotp_unbind(&recv_ctx); in ZTEST()
256 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, &fc_opts, in ZTEST()
262 receive_test_data(&recv_ctx, random_data, data_size, 0); in ZTEST()
265 isotp_unbind(&recv_ctx); in ZTEST()
277 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
285 ret = isotp_recv_net(&recv_ctx, &buf, K_MSEC(1000)); in ZTEST()
299 isotp_unbind(&recv_ctx); in ZTEST()
308 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
316 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), in ZTEST()
324 isotp_unbind(&recv_ctx); in ZTEST()
332 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
335 isotp_unbind(&recv_ctx); in ZTEST()
339 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
344 get_sf_net(&recv_ctx); in ZTEST()
345 isotp_unbind(&recv_ctx); in ZTEST()
349 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
354 get_sf(&recv_ctx); in ZTEST()
355 isotp_unbind(&recv_ctx); in ZTEST()
359 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
364 receive_test_data_net(&recv_ctx, random_data, 60, 0); in ZTEST()
365 isotp_unbind(&recv_ctx); in ZTEST()
369 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
374 receive_test_data(&recv_ctx, random_data, 60, 0); in ZTEST()
375 isotp_unbind(&recv_ctx); in ZTEST()
385 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, &fc_opts, in ZTEST()
391 receive_test_data_net(&recv_ctx, random_data, send_data_length, 200); in ZTEST()
392 isotp_unbind(&recv_ctx); in ZTEST()
401 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, &fc_opts, in ZTEST()
407 receive_test_data_net(&recv_ctx, random_data, send_data_length, 2000); in ZTEST()
408 isotp_unbind(&recv_ctx); in ZTEST()