Home
last modified time | relevance | path

Searched refs:recv_ctx (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/subsys/canbus/isotp/implementation/src/
Dmain.c46 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
[all …]
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmode_check.c16 static struct isotp_recv_ctx recv_ctx; variable
45 err = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, &fc_opts, K_NO_WAIT); in ZTEST()
52 isotp_unbind(&recv_ctx); in ZTEST()
Dmain.c151 static struct isotp_recv_ctx recv_ctx; variable
206 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), K_MSEC(1000)); in get_sf()
217 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), K_MSEC(200)); in get_sf_ignore()
238 recv_len = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), in receive_test_data()
254 ret = isotp_recv(&recv_ctx, data_buf, sizeof(data_buf), K_MSEC(50)); in receive_test_data()
421 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr, &tx_addr, in ZTEST()
446 isotp_unbind(&recv_ctx); in ZTEST()
477 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr_ext, &tx_addr, in ZTEST()
502 isotp_unbind(&recv_ctx); in ZTEST()
534 ret = isotp_bind(&recv_ctx, can_dev, &rx_addr_fixed, &tx_addr_fixed, in ZTEST()
[all …]
/Zephyr-latest/tests/net/icmp/src/
Dmain.c69 } send_ctx, recv_ctx; variable
108 net_pkt_set_iface(send_pkt, recv_ctx.iface); in test_sender()
110 (void)net_recv_data(recv_ctx.iface, send_pkt); in test_sender()
146 NET_DEVICE_INIT(test_receiver_icmp, "test_receiver_icmp", NULL, NULL, &recv_ctx, NULL,
634 (void)net_if_ipv6_addr_add(recv_ctx.iface, &recv_addr_6, NET_ADDR_MANUAL, 0); in setup()
642 (void)net_if_ipv4_addr_add(recv_ctx.iface, &recv_addr_4, NET_ADDR_MANUAL, 0); in setup()
649 memcpy(recv_ctx.test_data, &(TEST_DATA), sizeof(TEST_DATA)); in setup()
652 k_sem_init(&recv_ctx.tx_sem, 0, 1); in setup()
659 zassert_equal(receiver, recv_ctx.iface, "Invalid interface (%p vs %p)", in setup()
660 receiver, recv_ctx.iface); in setup()