Home
last modified time | relevance | path

Searched full:user_data (Results 1 – 25 of 1045) sorted by relevance

12345678910>>...42

/Zephyr-latest/tests/boards/nrf/dmm/src/
Dmain.c155 uint8_t user_data[16]; in ZTEST_USER_F() local
158 user_data, sizeof(user_data), false, true); in ZTEST_USER_F()
163 static uint8_t user_data[16] DMM_MEMORY_SECTION(DUT_CACHE); in ZTEST_USER_F() local
166 user_data, sizeof(user_data), true, true); in ZTEST_USER_F()
171 uint8_t user_data[16]; in ZTEST_USER_F() local
174 user_data, sizeof(user_data), false, true); in ZTEST_USER_F()
179 static uint8_t user_data[16] DMM_MEMORY_SECTION(DUT_CACHE); in ZTEST_USER_F() local
182 user_data, sizeof(user_data), true, true); in ZTEST_USER_F()
187 uint8_t user_data[16]; in ZTEST_USER_F() local
190 user_data, sizeof(user_data), false, false); in ZTEST_USER_F()
[all …]
/Zephyr-latest/samples/net/mdns_responder/src/
Dvlan.c22 struct ud *user_data = user_data_param; in iface_cb() local
28 if (!user_data->first) { in iface_cb()
29 user_data->first = iface; in iface_cb()
33 if (!user_data->second) { in iface_cb()
34 user_data->second = iface; in iface_cb()
105 struct ud user_data; in init_vlan() local
114 memset(&user_data, 0, sizeof(user_data)); in init_vlan()
116 net_if_foreach(iface_cb, &user_data); in init_vlan()
122 ret = setup_iface(iface, user_data.first, in init_vlan()
131 ret = setup_iface(iface, user_data.second, in init_vlan()
[all …]
/Zephyr-latest/include/zephyr/usb/class/
Dusbd_uac2.h52 * @param user_data Opaque user data pointer
54 void (*sof_cb)(const struct device *dev, void *user_data);
64 * @param user_data Opaque user data pointer
68 void *user_data);
80 * @param user_data Opaque user data pointer
83 uint16_t size, void *user_data);
94 * @param user_data Opaque user data pointer
97 void *buf, uint16_t size, void *user_data);
107 * @param user_data Opaque user data pointer
110 void *buf, void *user_data);
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dwebsocket.c23 void *user_data) in websocket_context_cb() argument
25 struct net_shell_user_data *data = user_data; in websocket_context_cb()
28 int *count = data->user_data; in websocket_context_cb()
59 struct net_shell_user_data user_data; in cmd_net_websocket() local
65 user_data.sh = sh; in cmd_net_websocket()
66 user_data.user_data = &count; in cmd_net_websocket()
68 websocket_context_foreach(websocket_context_cb, &user_data); in cmd_net_websocket()
Dvlan.c22 static void iface_vlan_del_cb(struct net_if *iface, void *user_data) in iface_vlan_del_cb() argument
24 struct net_shell_user_data *data = user_data; in iface_vlan_del_cb()
26 uint16_t vlan_tag = POINTER_TO_UINT(data->user_data); in iface_vlan_del_cb()
46 static void iface_vlan_cb(struct net_if *iface, void *user_data) in iface_vlan_cb() argument
48 struct net_shell_user_data *data = user_data; in iface_vlan_cb()
50 int *count = data->user_data; in iface_vlan_cb()
78 struct net_shell_user_data user_data; in cmd_net_vlan() local
81 user_data.sh = sh; in cmd_net_vlan()
82 user_data.user_data = &count; in cmd_net_vlan()
84 net_if_foreach(iface_vlan_cb, &user_data); in cmd_net_vlan()
[all …]
Darp.c18 static void arp_cb(struct arp_entry *entry, void *user_data) in arp_cb() argument
20 struct net_shell_user_data *data = user_data; in arp_cb()
22 int *count = data->user_data; in arp_cb()
49 struct net_shell_user_data user_data; in cmd_net_arp() local
60 user_data.sh = sh; in cmd_net_arp()
61 user_data.user_data = &count; in cmd_net_arp()
63 if (net_arp_foreach(arp_cb, &user_data) == 0) { in cmd_net_arp()
Dconn.c19 static void context_cb(struct net_context *context, void *user_data) in context_cb() argument
28 struct net_shell_user_data *data = user_data; in context_cb()
30 int *count = data->user_data; in context_cb()
55 static void conn_handler_cb(struct net_conn *conn, void *user_data) in conn_handler_cb() argument
64 struct net_shell_user_data *data = user_data; in conn_handler_cb()
66 int *count = data->user_data; in conn_handler_cb()
117 static void tcp_cb(struct tcp *conn, void *user_data) in tcp_cb() argument
119 struct net_shell_user_data *data = user_data; in tcp_cb()
121 int *count = data->user_data; in tcp_cb()
135 static void tcp_sent_list_cb(struct tcp *conn, void *user_data) in tcp_sent_list_cb() argument
[all …]
Dpmtu.c23 static void pmtu_cb(struct net_pmtu_entry *entry, void *user_data) in pmtu_cb() argument
25 struct net_shell_user_data *data = user_data; in pmtu_cb()
27 int *count = data->user_data; in pmtu_cb()
61 struct net_shell_user_data user_data; in cmd_net_pmtu() local
72 user_data.sh = sh; in cmd_net_pmtu()
73 user_data.user_data = &count; in cmd_net_pmtu()
75 (void)net_pmtu_foreach(pmtu_cb, &user_data); in cmd_net_pmtu()
Dvirtual.c20 static void virtual_iface_cb(struct net_if *iface, void *user_data) in virtual_iface_cb() argument
22 struct net_shell_user_data *data = user_data; in virtual_iface_cb()
24 int *count = data->user_data; in virtual_iface_cb()
49 static void attached_iface_cb(struct net_if *iface, void *user_data) in attached_iface_cb() argument
51 struct net_shell_user_data *data = user_data; in attached_iface_cb()
53 int *count = data->user_data; in attached_iface_cb()
95 struct net_shell_user_data user_data; in cmd_virtual_show() local
98 user_data.sh = sh; in cmd_virtual_show()
99 user_data.user_data = &count; in cmd_virtual_show()
101 net_if_foreach(virtual_iface_cb, &user_data); in cmd_virtual_show()
[all …]
Dsockets.c20 int walk_sockets(struct k_obj_core *obj_core, void *user_data) in walk_sockets() argument
28 struct net_shell_user_data *data = user_data; in walk_sockets()
30 struct socket_info *count = data->user_data; in walk_sockets()
93 void *user_data) in walk_socket_services() argument
95 struct net_shell_user_data *data = user_data; in walk_socket_services()
97 int *count = data->user_data; in walk_socket_services()
135 struct net_shell_user_data user_data; in cmd_net_sockets() local
139 user_data.sh = sh; in cmd_net_sockets()
140 user_data.user_data = &count; in cmd_net_sockets()
149 k_obj_type_walk_unlocked(obj_type, walk_sockets, (void *)&user_data); in cmd_net_sockets()
[all …]
Dnbr.c49 static void nbr_cb(struct net_nbr *nbr, void *user_data) in nbr_cb() argument
51 struct net_shell_user_data *data = user_data; in nbr_cb()
53 int *count = data->user_data; in nbr_cb()
115 struct net_shell_user_data user_data; in cmd_net_nbr() local
117 user_data.sh = sh; in cmd_net_nbr()
118 user_data.user_data = &count; in cmd_net_nbr()
120 net_ipv6_nbr_foreach(nbr_cb, &user_data); in cmd_net_nbr()
139 static void nbr_address_cb(struct net_nbr *nbr, void *user_data) in nbr_address_cb() argument
141 int *count = user_data; in nbr_address_cb()
/Zephyr-latest/subsys/zbus/
Dzbus_iterable_sections.c21 bool (*iterator_func)(const struct zbus_channel *chan, void *user_data), void *user_data) in zbus_iterate_over_channels_with_user_data() argument
24 if (!(*iterator_func)(chan, user_data)) { in zbus_iterate_over_channels_with_user_data()
42 bool (*iterator_func)(const struct zbus_observer *obs, void *user_data), void *user_data) in zbus_iterate_over_observers_with_user_data() argument
45 if (!(*iterator_func)(obs, user_data)) { in zbus_iterate_over_observers_with_user_data()
/Zephyr-latest/subsys/bluetooth/mesh/
Dmsg.c43 ack->user_data = NULL; in bt_mesh_msg_ack_ctx_clear()
48 uint32_t op, uint16_t dst, void *user_data) in bt_mesh_msg_ack_ctx_prepare() argument
56 ack->user_data = user_data; in bt_mesh_msg_ack_ctx_prepare()
77 uint32_t op, uint16_t addr, void **user_data) in bt_mesh_msg_ack_ctx_match() argument
83 if (user_data != NULL) { in bt_mesh_msg_ack_ctx_match()
84 *user_data = ack->user_data; in bt_mesh_msg_ack_ctx_match()
115 rsp->user_data); in bt_mesh_msg_ackd_send()
/Zephyr-latest/subsys/modem/
Dmodem_pipelink.c15 link->callback(link, event, link->user_data); in try_callback()
20 void *user_data) in modem_pipelink_attach() argument
24 link->user_data = user_data; in modem_pipelink_attach()
48 link->user_data = NULL; in modem_pipelink_release()
56 link->user_data = NULL; in modem_pipelink_init()
/Zephyr-latest/samples/net/sockets/http_server/src/
Dws.h11 * @param user_data User data pointer
15 int ws_echo_setup(int ws_socket, void *user_data);
21 * @param user_data User data pointer
25 int ws_netstats_setup(int ws_socket, void *user_data);
/Zephyr-latest/subsys/bluetooth/audio/
Daudio.c32 bool (*func)(struct bt_data *data, void *user_data), void *user_data) in bt_audio_data_parse() argument
67 if (!func(&data, user_data)) { in bt_audio_data_parse()
87 static bool parse_cb(struct bt_data *data, void *user_data) in parse_cb() argument
89 struct search_type_param *param = (struct search_type_param *)user_data; in parse_cb()
162 static bool valid_ltv_cb(struct bt_data *data, void *user_data) in valid_ltv_cb() argument
206 const struct bt_audio_attr_user_data *user_data = attr->user_data; in bt_audio_read_chrc() local
208 if (user_data->read == NULL) { in bt_audio_read_chrc()
221 return user_data->read(conn, attr, buf, len, offset); in bt_audio_read_chrc()
227 const struct bt_audio_attr_user_data *user_data = attr->user_data; in bt_audio_write_chrc() local
229 if (user_data->write == NULL) { in bt_audio_write_chrc()
[all …]
/Zephyr-latest/drivers/ipm/
Dipm_mbox.c20 void *user_data; member
29 void *user_data, struct mbox_msg *data) in ipm_mbox_callback() argument
31 const struct device *ipmdev = user_data; in ipm_mbox_callback()
34 ipm_mbox_data->callback(ipmdev, ipm_mbox_data->user_data, channel_id, (void *)data->data); in ipm_mbox_callback()
52 void *user_data) in ipm_mbox_register_callback() argument
57 data->user_data = user_data; in ipm_mbox_register_callback()
Dipm_nrfx_ipc.c21 void *user_data; member
37 nrfx_ipm_data.user_data, in nrfx_ipc_handler()
74 void *user_data) in ipm_nrf_register_callback() argument
77 nrfx_ipm_data.user_data = user_data; in ipm_nrf_register_callback()
115 void *user_data[NRFX_IPC_ID_MAX_VALUE]; member
129 nrfx_vipm_data.user_data[event_idx], in vipm_dispatcher()
185 void *user_data) \
189 nrfx_vipm_data.user_data[_idx] = user_data; \
/Zephyr-latest/subsys/net/ip/
Dtcp_internal.h83 * @param user_data User specified data.
86 void net_tcp_foreach(net_tcp_cb_t cb, void *user_data);
88 static inline void net_tcp_foreach(net_tcp_cb_t cb, void *user_data) in net_tcp_foreach() argument
91 ARG_UNUSED(user_data); in net_tcp_foreach()
123 * @param user_data Connect callback user data
135 void *user_data);
142 net_context_connect_cb_t cb, void *user_data) in net_tcp_connect() argument
150 ARG_UNUSED(user_data); in net_tcp_connect()
180 * @param user_data Accept callback user data
186 void *user_data);
[all …]
Dconnection.h45 void *user_data);
72 void *user_data; member
100 * @param user_data User data supplied by caller.
113 void *user_data,
123 void *user_data, in net_conn_register() argument
134 ARG_UNUSED(user_data); in net_conn_register()
165 * @param user_data User data supplied by caller.
173 void *user_data,
209 * @param user_data A valid pointer on some user data or NULL
211 typedef void (*net_conn_foreach_cb_t)(struct net_conn *conn, void *user_data);
[all …]
/Zephyr-latest/tests/subsys/zbus/user_data/src/
Dmain.c35 ZTEST(user_data, test_channel_user_data) in ZTEST() argument
39 zassert_equal_ptr(version_chan.user_data, NULL, NULL); in ZTEST()
41 zassert_equal_ptr(regular_chan.user_data, &my_user_data, NULL); in ZTEST()
43 int *counter = regular_chan.user_data; in ZTEST()
49 memset(regular_chan.user_data, 0, sizeof(my_user_data)); in ZTEST()
86 ZTEST(user_data, test_user_data_regression) in ZTEST() argument
112 ZTEST_SUITE(user_data, NULL, NULL, NULL, NULL, NULL);
/Zephyr-latest/kernel/
Dthread_monitor.c38 void k_thread_foreach(k_thread_user_cb_t user_cb, void *user_data) in k_thread_foreach() argument
56 user_cb(thread, user_data); in k_thread_foreach()
64 void k_thread_foreach_unlocked(k_thread_user_cb_t user_cb, void *user_data) in k_thread_foreach_unlocked() argument
77 user_cb(thread, user_data); in k_thread_foreach_unlocked()
89 void *user_data) in k_thread_foreach_filter_by_cpu() argument
109 user_cb(thread, user_data); in k_thread_foreach_filter_by_cpu()
119 void *user_data) in k_thread_foreach_unlocked_filter_by_cpu() argument
134 user_cb(thread, user_data); in k_thread_foreach_unlocked_filter_by_cpu()
/Zephyr-latest/include/zephyr/net/
Dzperf.h79 * @param user_data A pointer to the user provided data.
83 void *user_data);
116 * @param user_data A pointer to the user data to be provided with the callback.
122 zperf_callback callback, void *user_data);
131 * @param user_data A pointer to the user data to be provided with the callback.
137 zperf_callback callback, void *user_data);
146 * @param user_data A pointer to the user data to be provided with the callback.
151 zperf_callback callback, void *user_data);
160 * @param user_data A pointer to the user data to be provided with the callback.
165 zperf_callback callback, void *user_data);
Ddhcpv4_server.h92 * @param user_data A valid pointer to user data or NULL
96 void *user_data);
106 * @param user_data User specified data
110 void *user_data);
125 * @param user_data A valid pointer to user data or NULL
130 void *user_data);
135 * @param user_data A valid pointer to user data or NULL
138 void *user_data);
/Zephyr-latest/subsys/net/l2/ppp/
Doptions.c24 uint8_t len, void *user_data), in ppp_parse_options() argument
25 void *user_data) in ppp_parse_options()
62 ret = parse(pkt, opt_type, opt_val_len, user_data); in ppp_parse_options()
102 void *user_data; member
110 void *user_data) in ppp_parse_option_conf_req_unsupported() argument
112 struct ppp_parse_option_conf_req_data *parse_data = user_data; in ppp_parse_option_conf_req_unsupported()
143 void *user_data) in ppp_parse_option_conf_req_supported() argument
145 struct ppp_parse_option_conf_req_data *parse_data = user_data; in ppp_parse_option_conf_req_supported()
153 ret = option_info->parse(fsm, pkt, parse_data->user_data); in ppp_parse_option_conf_req_supported()
157 parse_data->user_data); in ppp_parse_option_conf_req_supported()
[all …]

12345678910>>...42