Home
last modified time | relevance | path

Searched refs:ud (Results 1 – 25 of 25) sorted by relevance

/Zephyr-Core-2.7.6/tests/net/udp/src/
Dmain.c146 struct ud { struct
155 static struct ud *returned_ud; argument
163 struct ud *ud = (struct ud *)user_data; in test_ok() local
167 if (!ud) { in test_ok()
170 DBG("Test %s failed.", ud->test); in test_ok()
236 struct ud *ud, in send_ipv6_udp_msg() argument
271 if (ud != returned_ud && !expect_failure) { in send_ipv6_udp_msg()
273 returned_ud, ud); in send_ipv6_udp_msg()
285 struct ud *ud, in send_ipv6_udp_long_msg() argument
339 if (ud != returned_ud && !expect_failure) { in send_ipv6_udp_long_msg()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/txtime/src/
Dvlan.c15 struct ud { struct
23 struct ud *ud = user_data; in iface_cb() argument
29 if (!ud->first) { in iface_cb()
30 ud->first = iface; in iface_cb()
34 if (!ud->second) { in iface_cb()
35 ud->second = iface; in iface_cb()
39 if (!ud->third) { in iface_cb()
40 ud->third = iface; in iface_cb()
101 struct ud ud; in init_vlan() local
104 memset(&ud, 0, sizeof(ud)); in init_vlan()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/echo_client/src/
Dvlan.c15 struct ud { struct
23 struct ud *ud = user_data; in iface_cb() argument
29 if (!ud->first) { in iface_cb()
30 ud->first = iface; in iface_cb()
34 if (!ud->second) { in iface_cb()
35 ud->second = iface; in iface_cb()
39 if (!ud->third) { in iface_cb()
40 ud->third = iface; in iface_cb()
87 struct ud ud; in init_vlan() local
90 memset(&ud, 0, sizeof(ud)); in init_vlan()
[all …]
/Zephyr-Core-2.7.6/samples/net/lldp/src/
Dmain.c38 struct ud { struct
46 struct ud *ud = user_data; in iface_cb() local
52 if (!ud->first) { in iface_cb()
53 ud->first = iface; in iface_cb()
57 if (!ud->second) { in iface_cb()
58 ud->second = iface; in iface_cb()
62 if (!ud->third) { in iface_cb()
63 ud->third = iface; in iface_cb()
108 static struct ud ud; variable
115 (void)memset(&ud, 0, sizeof(ud)); in init_vlan()
[all …]
/Zephyr-Core-2.7.6/samples/net/vlan/src/
Dmain.c22 struct ud { struct
30 struct ud *ud = user_data; in iface_cb() local
36 if (iface == ud->first) { in iface_cb()
40 ud->second = iface; in iface_cb()
53 struct ud ud; in init_app() local
69 ud.first = iface; in init_app()
70 ud.second = NULL; in init_app()
72 net_if_foreach(iface_cb, &ud); in init_app()
78 ret = net_eth_vlan_enable(ud.second, CONFIG_SAMPLE_VLAN_TAG_2); in init_app()
89 ifaddr = net_if_ipv6_addr_add(ud.second, &addr6, NET_ADDR_MANUAL, 0); in init_app()
[all …]
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/src/
Dvlan.c15 struct ud { struct
23 struct ud *ud = user_data; in iface_cb() argument
29 if (!ud->first) { in iface_cb()
30 ud->first = iface; in iface_cb()
34 if (!ud->second) { in iface_cb()
35 ud->second = iface; in iface_cb()
39 if (!ud->third) { in iface_cb()
40 ud->third = iface; in iface_cb()
105 struct ud ud; in init_vlan() local
108 memset(&ud, 0, sizeof(ud)); in init_vlan()
[all …]
Dtunnel.c16 struct ud { struct
32 struct ud *ud = user_data; in iface_cb() argument
34 if (!ud->tunnel && is_tunnel(iface)) { in iface_cb()
35 ud->tunnel = iface; in iface_cb()
79 struct ud ud; in init_tunnel() local
83 memset(&ud, 0, sizeof(ud)); in init_tunnel()
103 ud.peer = iface; in init_tunnel()
114 ud.peer = iface; in init_tunnel()
125 if (ud.peer == NULL) { in init_tunnel()
131 net_if_foreach(iface_cb, &ud); in init_tunnel()
[all …]
/Zephyr-Core-2.7.6/samples/net/virtual/src/
Dmain.c20 struct ud { struct
199 struct ud *ud = user_data; in iface_cb() local
206 if (!ud->ethernet && net_if_l2(iface) == &NET_L2_GET_NAME(ETHERNET)) { in iface_cb()
207 ud->ethernet = iface; in iface_cb()
211 if (!ud->ipip && net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL) && in iface_cb()
213 ud->ipip = iface; in iface_cb()
217 if (!ud->my_iface && net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL) && in iface_cb()
219 ud->my_iface = iface; in iface_cb()
223 if (!ud->ip_tunnel_1 && net_if_l2(iface) == &NET_L2_GET_NAME(VIRTUAL)) { in iface_cb()
224 ud->ip_tunnel_1 = iface; in iface_cb()
[all …]
/Zephyr-Core-2.7.6/samples/net/gptp/src/
Dmain.c25 struct ud { struct
33 struct ud *ud = user_data; in iface_cb() local
39 if (!ud->first) { in iface_cb()
40 ud->first = iface; in iface_cb()
44 if (!ud->second) { in iface_cb()
45 ud->second = iface; in iface_cb()
49 if (!ud->third) { in iface_cb()
50 ud->third = iface; in iface_cb()
97 struct ud ud; in init_vlan() local
100 (void)memset(&ud, 0, sizeof(ud)); in init_vlan()
[all …]
/Zephyr-Core-2.7.6/tests/net/socket/af_packet/src/
Dmain.c123 struct user_data *ud = user_data; in iface_cb() local
136 if (ud->first == NULL) { in iface_cb()
137 ud->first = iface; in iface_cb()
141 ud->second = iface; in iface_cb()
185 struct user_data ud = { 0 }; in __test_packet_sockets() local
188 net_if_foreach(iface_cb, &ud); in __test_packet_sockets()
190 zassert_not_null(ud.first, "1st Ethernet interface not found"); in __test_packet_sockets()
191 zassert_not_null(ud.second, "2nd Ethernet interface not found"); in __test_packet_sockets()
193 *sock1 = setup_socket(ud.first, SOCK_RAW, ETH_P_ALL); in __test_packet_sockets()
196 *sock2 = setup_socket(ud.second, SOCK_RAW, ETH_P_ALL); in __test_packet_sockets()
[all …]
/Zephyr-Core-2.7.6/subsys/mgmt/mcumgr/
Dsmp_bt.c118 struct smp_bt_user_data *ud; in smp_bt_chr_write() local
133 ud = net_buf_user_data(nb); in smp_bt_chr_write()
134 ud->conn = conn; in smp_bt_chr_write()
135 ud->id = cpd->id; in smp_bt_chr_write()
183 struct smp_bt_user_data *ud = net_buf_user_data(nb); in smp_bt_conn_from_pkt() local
185 if (!ud->conn) { in smp_bt_conn_from_pkt()
189 return ud->conn; in smp_bt_conn_from_pkt()
212 static void smp_bt_ud_free(void *ud) in smp_bt_ud_free() argument
214 struct smp_bt_user_data *user_data = ud; in smp_bt_ud_free()
241 struct smp_bt_user_data *ud = net_buf_user_data(nb); in smp_bt_tx_pkt() local
[all …]
Dsmp_udp.c119 struct sockaddr *ud; in smp_udp_receive_thread() local
130 ud = net_buf_user_data(nb); in smp_udp_receive_thread()
131 net_ipaddr_copy(ud, &addr); in smp_udp_receive_thread()
/Zephyr-Core-2.7.6/tests/net/ptp/clock/src/
Dmain.c288 struct user_data *ud = user_data; in iface_cb() local
309 if (ud->eth_if_count >= ARRAY_SIZE(eth_interfaces)) { in iface_cb()
316 non_ptp_interface = ud->eth_if_count; in iface_cb()
318 ptp_interface[ptp_iface_idx] = ud->eth_if_count; in iface_cb()
323 eth_interfaces[ud->eth_if_count++] = iface; in iface_cb()
329 ud->total_if_count++; in iface_cb()
334 struct user_data ud = { 0 }; in test_check_interfaces() local
337 net_if_foreach(iface_cb, &ud); in test_check_interfaces()
339 zassert_equal(ud.eth_if_count, MAX_NUM_INTERFACES, in test_check_interfaces()
341 ud.eth_if_count, MAX_NUM_INTERFACES); in test_check_interfaces()
[all …]
/Zephyr-Core-2.7.6/tests/net/virtual/src/
Dmain.c304 struct user_data *ud = user_data; in iface_cb() local
328 ud->eth_if_count++; in iface_cb()
331 if (ud->eth_if_count > ARRAY_SIZE(eth_interfaces)) { in iface_cb()
336 ud->eth_if_count++; in iface_cb()
341 dummy_interfaces[ud->dummy_if_count++] = iface; in iface_cb()
343 zassert_true(ud->dummy_if_count <= 2, in iface_cb()
348 virtual_interfaces[ud->virtual_if_count++] = iface; in iface_cb()
350 zassert_true(ud->virtual_if_count <= 3, in iface_cb()
359 ud->total_if_count++; in iface_cb()
364 struct user_data ud = { 0 }; in test_virtual_setup() local
[all …]
/Zephyr-Core-2.7.6/subsys/net/ip/
Dicmpv4.c351 struct net_icmpv4_hdr_opts_data *ud = in icmpv4_reply_to_options() local
356 ud->reply, ud->src); in icmpv4_reply_to_options()
359 ud->reply, ud->src); in icmpv4_reply_to_options()
369 struct net_icmpv4_hdr_opts_data ud; in icmpv4_handle_header_options() local
372 ud.reply = reply; in icmpv4_handle_header_options()
373 ud.src = src; in icmpv4_handle_header_options()
375 if (net_ipv4_parse_hdr_options(pkt, icmpv4_reply_to_options, &ud)) { in icmpv4_handle_header_options()
/Zephyr-Core-2.7.6/samples/drivers/counter/maxim_ds3231/src/
Dmain.c36 void *ud) in sec_counter_callback() argument
39 k_uptime_get_32(), id, ticks, ud); in sec_counter_callback()
45 void *ud) in sec_alarm_handler() argument
51 .user_data = ud, in sec_alarm_handler()
58 k_uptime_get_32(), ud, now - syncclock, rc); in sec_alarm_handler()
100 void *ud) in min_alarm_handler() argument
/Zephyr-Core-2.7.6/tests/net/tx_timestamp/src/
Dmain.c324 struct user_data *ud = user_data; in iface_cb() local
330 if (ud->eth_if_count >= ARRAY_SIZE(eth_interfaces)) { in iface_cb()
335 eth_interfaces[ud->eth_if_count++] = iface; in iface_cb()
341 ud->total_if_count++; in iface_cb()
349 struct user_data ud = { 0 }; in test_address_setup() local
351 net_if_foreach(iface_cb, &ud); in test_address_setup()
/Zephyr-Core-2.7.6/tests/net/vlan/src/
Dmain.c305 struct user_data *ud = user_data; in iface_cb() local
317 eth_interfaces[ud->eth_if_count++] = iface; in iface_cb()
322 dummy_interfaces[ud->dummy_if_count++] = iface; in iface_cb()
324 zassert_true(ud->dummy_if_count <= 2, in iface_cb()
331 ud->total_if_count++; in iface_cb()
336 struct user_data ud = { 0 }; in test_vlan_setup() local
339 net_if_foreach(iface_cb, &ud); in test_vlan_setup()
342 zassert_equal(ud.eth_if_count, NET_VLAN_MAX_COUNT, in test_vlan_setup()
344 ud.eth_if_count, NET_VLAN_MAX_COUNT); in test_vlan_setup()
346 zassert_equal(ud.total_if_count, NET_VLAN_MAX_COUNT + 1 + 2, in test_vlan_setup()
/Zephyr-Core-2.7.6/samples/net/dsa/src/
Dmain.c16 struct ud *ifaces = user_data; in iface_cb()
93 struct ud ifaces;
Dmain.h30 extern struct ud ifaces;
43 struct ud { struct
/Zephyr-Core-2.7.6/include/mgmt/mcumgr/
Dsmp.h72 typedef void zephyr_smp_transport_ud_free_fn(void *ud);
/Zephyr-Core-2.7.6/tests/net/checksum_offload/src/
Dmain.c335 struct user_data *ud = user_data; in iface_cb() local
354 ud->eth_if_count++; in iface_cb()
360 ud->total_if_count++; in iface_cb()
365 struct user_data ud = { 0 }; in test_eth_setup() local
368 net_if_foreach(iface_cb, &ud); in test_eth_setup()
370 zassert_equal(ud.eth_if_count, sizeof(eth_interfaces) / sizeof(void *), in test_eth_setup()
372 ud.eth_if_count, in test_eth_setup()
/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/gptp/
Dgptp.c838 struct port_user_data *ud = user_data; in gptp_get_port() local
850 ud->cb(port, iface, ud->user_data); in gptp_get_port()
856 struct port_user_data ud = { in gptp_foreach_port() local
861 net_if_foreach(gptp_get_port, &ud); in gptp_foreach_port()
/Zephyr-Core-2.7.6/drivers/counter/
Dmaxim_ds3231.c665 void *ud) in counter_alarm_forwarder() argument
692 void *ud = data->alarm_user_data[id]; in alarm_worker() local
711 cb(ds3231, id, ticks, ud); in alarm_worker()
719 handler(ds3231, id, data->isw_syncclock, ud); in alarm_worker()
/Zephyr-Core-2.7.6/samples/drivers/counter/maxim_ds3231/
DREADME.rst94 Counter callback at 17001 ms, id 0, ticks 1563516017, ud 0x20000048