Home
last modified time | relevance | path

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

12345678910>>...37

/Zephyr-Core-3.7.0/kernel/
Devents.c52 void z_impl_k_event_init(struct k_event *event) in z_impl_k_event_init() argument
54 event->events = 0; in z_impl_k_event_init()
55 event->lock = (struct k_spinlock) {}; in z_impl_k_event_init()
57 SYS_PORT_TRACING_OBJ_INIT(k_event, event); in z_impl_k_event_init()
59 z_waitq_init(&event->wait_q); in z_impl_k_event_init()
61 k_object_init(event); in z_impl_k_event_init()
64 k_obj_core_init_and_link(K_OBJ_CORE(event), &obj_type_event); in z_impl_k_event_init()
69 void z_vrfy_k_event_init(struct k_event *event) in z_vrfy_k_event_init() argument
71 K_OOPS(K_SYSCALL_OBJ_NEVER_INIT(event, K_OBJ_EVENT)); in z_vrfy_k_event_init()
72 z_impl_k_event_init(event); in z_vrfy_k_event_init()
[all …]
Dpoll.c40 static int signal_poller(struct k_poll_event *event, uint32_t state);
41 static int signal_triggered_work(struct k_poll_event *event, uint32_t status);
43 void k_poll_event_init(struct k_poll_event *event, uint32_t type, in k_poll_event_init() argument
51 event->poller = NULL; in k_poll_event_init()
53 event->type = type; in k_poll_event_init()
54 event->state = K_POLL_STATE_NOT_READY; in k_poll_event_init()
55 event->mode = mode; in k_poll_event_init()
56 event->unused = 0U; in k_poll_event_init()
57 event->obj = obj; in k_poll_event_init()
59 SYS_PORT_TRACING_FUNC(k_poll_api, event_init, event); in k_poll_event_init()
[all …]
/Zephyr-Core-3.7.0/samples/subsys/smf/hsm_psicc2/src/
Dhsm_psicc2_console_cmds.c21 struct hsm_psicc2_event event; in cmd_hsm_psicc2_event() local
26 event.event_id = EVENT_A; in cmd_hsm_psicc2_event()
29 event.event_id = EVENT_B; in cmd_hsm_psicc2_event()
32 event.event_id = EVENT_C; in cmd_hsm_psicc2_event()
35 event.event_id = EVENT_D; in cmd_hsm_psicc2_event()
38 event.event_id = EVENT_E; in cmd_hsm_psicc2_event()
41 event.event_id = EVENT_F; in cmd_hsm_psicc2_event()
44 event.event_id = EVENT_G; in cmd_hsm_psicc2_event()
47 event.event_id = EVENT_H; in cmd_hsm_psicc2_event()
50 event.event_id = EVENT_I; in cmd_hsm_psicc2_event()
[all …]
/Zephyr-Core-3.7.0/subsys/tracing/ctf/tsdl/
Dmetadata22 event.header := struct event_header;
25 event {
34 event {
43 event {
54 event {
63 event {
72 event {
81 event {
89 event {
98 event {
[all …]
/Zephyr-Core-3.7.0/tests/posix/eventfd/src/
D_main.c17 int is_blocked(int fd, short *event) in is_blocked() argument
23 pfd.events = *event; in is_blocked()
28 *event = pfd.revents; in is_blocked()
36 short event; in eventfd_poll_unset_common() local
39 event = POLLIN; in eventfd_poll_unset_common()
40 ret = is_blocked(fd, &event); in eventfd_poll_unset_common()
46 event = POLLIN; in eventfd_poll_unset_common()
47 ret = is_blocked(fd, &event); in eventfd_poll_unset_common()
49 zassert_equal(event, POLLIN, "POLLIN not set"); in eventfd_poll_unset_common()
60 event = POLLIN; in eventfd_poll_unset_common()
[all …]
Dioctl.c19 short event; in ZTEST_F() local
25 event = POLLIN; in ZTEST_F()
26 ret = is_blocked(fixture->fd, &event); in ZTEST_F()
45 event = POLLOUT; in ZTEST_F()
46 ret = is_blocked(fixture->fd, &event); in ZTEST_F()
66 event = POLLIN; in ZTEST_F()
67 ret = is_blocked(fixture->fd, &event); in ZTEST_F()
/Zephyr-Core-3.7.0/scripts/tracing/
Dparse_ctf.py62 event = msg.event
71 if event.name in [
82 cpu = event.payload_field.get("cpu", None)
83 thread_id = event.payload_field.get("thread_id", None)
84 thread_name = event.payload_field.get("name", None)
87 if event.name in ['thread_switched_out', 'thread_switched_in'] and cpu is not None:
99 if event.name in ['thread_switched_out', 'thread_switched_in']:
109 if event.name in ['thread_switched_out']:
116 elif event.name in ['thread_switched_in']:
121 elif event.name in ['thread_info']:
[all …]
/Zephyr-Core-3.7.0/subsys/usb/host/
Dusbh_core.c27 const struct uhc_event *const event) in usbh_event_carrier() argument
29 return k_msgq_put(&usbh_msgq, event, K_NO_WAIT); in usbh_event_carrier()
46 struct uhc_event *const event) in usbh_event_handler() argument
50 if (event->type == UHC_EVT_EP_REQUEST) { in usbh_event_handler()
51 struct usb_device *const udev = event->xfer->udev; in usbh_event_handler()
52 usbh_udev_cb_t cb = event->xfer->cb; in usbh_event_handler()
54 if (event->xfer->cb) { in usbh_event_handler()
55 ret = cb(udev, event->xfer); in usbh_event_handler()
57 ret = discard_ep_request(ctx, event->xfer); in usbh_event_handler()
62 switch (event->type) { in usbh_event_handler()
[all …]
/Zephyr-Core-3.7.0/boards/native/common/sdl/
Dsdl_events_bottom.c16 static void sdl_handle_window_event(const SDL_Event *event) in sdl_handle_window_event() argument
21 switch (event->window.event) { in sdl_handle_window_event()
24 window = SDL_GetWindowFromID(event->window.windowID); in sdl_handle_window_event()
46 SDL_Event event; in sdl_handle_pending_events() local
48 while (SDL_PollEvent(&event)) { in sdl_handle_pending_events()
49 switch (event.type) { in sdl_handle_pending_events()
51 sdl_handle_window_event(&event); in sdl_handle_pending_events()
/Zephyr-Core-3.7.0/subsys/usb/device_next/
Dusbd_core.c35 const struct udc_event *const event) in usbd_event_carrier() argument
37 return k_msgq_put(&usbd_msgq, event, K_NO_WAIT); in usbd_event_carrier()
41 const struct udc_event *const event) in event_handler_ep_request() argument
46 bi = udc_get_buf_info(event->buf); in event_handler_ep_request()
49 ret = usbd_handle_ctrl_xfer(uds_ctx, event->buf, bi->err); in event_handler_ep_request()
51 ret = usbd_class_handle_xfer(uds_ctx, event->buf, bi->err); in event_handler_ep_request()
56 ret, bi->ep, event->buf); in event_handler_ep_request()
63 struct udc_event *const event) in usbd_class_bcast_event() argument
79 switch (event->type) { in usbd_class_bcast_event()
135 struct udc_event *const event) in usbd_event_handler() argument
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/ptp/
Dstate_machine.c12 enum ptp_port_event event, in ptp_state_machine() argument
17 if (event == PTP_EVT_INITIALIZE || event == PTP_EVT_POWERUP) { in ptp_state_machine()
24 switch (event) { in ptp_state_machine()
39 switch (event) { in ptp_state_machine()
54 if (event == PTP_EVT_DESIGNATED_ENABLED) { in ptp_state_machine()
61 switch (event) { in ptp_state_machine()
94 switch (event) { in ptp_state_machine()
119 switch (event) { in ptp_state_machine()
140 switch (event) { in ptp_state_machine()
166 switch (event) { in ptp_state_machine()
[all …]
Dptp.c43 enum ptp_port_event event; in ptp_thread() local
62 event = ptp_port_timer_event_gen(port, timer); in ptp_thread()
64 if (event == PTP_EVT_STATE_DECISION || in ptp_thread()
65 event == PTP_EVT_ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES) { in ptp_thread()
69 ptp_port_event_handle(port, event, false); in ptp_thread()
77 event = ptp_port_event_gen(port, i); in ptp_thread()
79 if (event == PTP_EVT_STATE_DECISION || in ptp_thread()
80 event == PTP_EVT_ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES) { in ptp_thread()
84 ptp_port_event_handle(port, event, false); in ptp_thread()
/Zephyr-Core-3.7.0/samples/drivers/misc/timeaware_gpio/
DREADME.rst41 [TGPIO] timestamp: 0000000000000000, event count: 0000000000000000
42 [TGPIO] timestamp: 0000000148a3cf31, event count: 0000000000000001
43 [TGPIO] timestamp: 0000000149c8c731, event count: 0000000000000002
44 [TGPIO] timestamp: 000000014aedbf31, event count: 0000000000000003
45 [TGPIO] timestamp: 000000014c12b731, event count: 0000000000000004
46 [TGPIO] timestamp: 000000014d37af31, event count: 0000000000000005
47 [TGPIO] timestamp: 000000014e5ca731, event count: 0000000000000006
48 [TGPIO] timestamp: 000000014f819f31, event count: 0000000000000007
49 [TGPIO] timestamp: 0000000150a69731, event count: 0000000000000008
50 [TGPIO] timestamp: 0000000151cb8f31, event count: 0000000000000009
[all …]
/Zephyr-Core-3.7.0/tests/kernel/events/event_api/src/
Dtest_event_apis.c59 static struct k_event event; in ZTEST() local
62 k_event_init(&event); in ZTEST()
71 thread = z_waitq_head(&event.wait_q); in ZTEST()
74 zassert_true(event.events == 0); in ZTEST()
341 static struct k_event event; in ZTEST() local
346 k_event_init(&event); in ZTEST()
348 zassert_equal(k_event_test(&event, ~0), 0); in ZTEST()
356 previous = k_event_post(&event, events); in ZTEST()
358 zassert_equal(k_event_test(&event, ~0), events); in ZTEST()
361 previous = k_event_post(&event, events); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/openisa/lll/
Dlll.c50 } event; variable
65 static uint32_t preempt_ticker_start(struct lll_event *event,
130 event.curr.abort_cb = NULL; in lll_init()
216 if (!param || (param == event.curr.param)) { in lll_disable()
217 if (event.curr.abort_cb && event.curr.param) { in lll_disable()
218 event.curr.abort_cb(NULL, event.curr.param); in lll_disable()
284 LL_ASSERT(event.curr.abort_cb); in lll_done()
285 event.curr.abort_cb = NULL; in lll_done()
287 param = event.curr.param; in lll_done()
288 event.curr.param = NULL; in lll_done()
[all …]
/Zephyr-Core-3.7.0/modules/hostap/src/
Dsupp_events.c27 enum supplicant_event_num event; member
117 event_data->event = event_info.event; in supplicant_process_status()
119 switch (event_data->event) { in supplicant_process_status()
205 enum net_event_wifi_cmd event; in supplicant_send_wifi_mgmt_conn_event() local
212 event = NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT; in supplicant_send_wifi_mgmt_conn_event()
214 event = NET_EVENT_WIFI_CMD_CONNECT_RESULT; in supplicant_send_wifi_mgmt_conn_event()
218 event, in supplicant_send_wifi_mgmt_conn_event()
227 enum net_event_wifi_cmd event; in supplicant_send_wifi_mgmt_disc_event() local
235 event = NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT; in supplicant_send_wifi_mgmt_disc_event()
237 event = NET_EVENT_WIFI_CMD_DISCONNECT_RESULT; in supplicant_send_wifi_mgmt_disc_event()
[all …]
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/mgmt/src/
Dmgmt.c147 enum mgmt_cb_return mgmt_callback_notify(uint32_t event, void *data, size_t data_size, in mgmt_callback_notify() argument
153 uint16_t group = MGMT_EVT_GET_GROUP(event); in mgmt_callback_notify()
174 (MGMT_EVT_GET_ID(event) & MGMT_EVT_GET_ID(loop_group->event_id)) == in mgmt_callback_notify()
175 MGMT_EVT_GET_ID(event))) { in mgmt_callback_notify()
180 status = loop_group->callback(event, return_status, &cached_rc, in mgmt_callback_notify()
206 uint8_t mgmt_evt_get_index(uint32_t event) in mgmt_evt_get_index() argument
210 event &= MGMT_EVT_OP_ID_ALL; in mgmt_evt_get_index()
211 __ASSERT((event != 0), "Event cannot be 0."); in mgmt_evt_get_index()
214 if (event & 0x1) { in mgmt_evt_get_index()
219 event = event >> 1; in mgmt_evt_get_index()
[all …]
/Zephyr-Core-3.7.0/tests/kernel/poll/src/
Dtest_poll_fail.c61 struct k_poll_event event[] = { in ZTEST_USER() local
68 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER()
83 struct k_poll_event event[] = { in ZTEST_USER() local
90 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER()
105 struct k_poll_event event[] = { in ZTEST_USER() local
112 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER()
127 struct k_poll_event event[] = { in ZTEST_USER() local
134 k_poll(event, 1, K_NO_WAIT); in ZTEST_USER()
/Zephyr-Core-3.7.0/subsys/net/ip/
DKconfig.mgmt12 bool "Add support for runtime network event notifications"
17 (or else) needs to be notified on a specific network event
23 prompt "Network event scheduling"
29 Create a dedicated thread for network event callback handlers.
37 event callback handlers.
42 bool "Trigger callback on event emit"
44 Call network event handlers when the event is emitted.
55 Hidden option to enable the network event's queue if asynchronous
59 int "Stack size for the inner thread handling event callbacks"
71 int "Size of event queue"
[all …]
Dnet_mgmt.c30 uint32_t event; member
97 new_event.event = mgmt_event; in mgmt_push_event()
131 static inline void mgmt_push_event(uint32_t event, struct net_if *iface, in mgmt_push_event() argument
143 .event = event, in mgmt_push_event()
192 NET_MGMT_GET_LAYER(mgmt_event->event) + 1, in mgmt_run_slist_callbacks()
193 NET_MGMT_GET_LAYER_CODE(mgmt_event->event), in mgmt_run_slist_callbacks()
194 NET_MGMT_GET_COMMAND(mgmt_event->event)); in mgmt_run_slist_callbacks()
197 if (!(NET_MGMT_GET_LAYER(mgmt_event->event) == in mgmt_run_slist_callbacks()
199 !(NET_MGMT_GET_LAYER_CODE(mgmt_event->event) == in mgmt_run_slist_callbacks()
201 (NET_MGMT_GET_COMMAND(mgmt_event->event) && in mgmt_run_slist_callbacks()
[all …]
/Zephyr-Core-3.7.0/drivers/gpio/
Dgpio_emul_sdl_bottom.c11 static int sdl_filter_bottom(void *arg, SDL_Event *event) in sdl_filter_bottom() argument
16 switch (event->type) { in sdl_filter_bottom()
24 data->event_scan_code = event->key.keysym.scancode; in sdl_filter_bottom()
25 data->key_down = event->type == SDL_KEYDOWN; in sdl_filter_bottom()
/Zephyr-Core-3.7.0/drivers/input/
Dinput_sdl_touch_bottom.c11 static int sdl_filter(void *arg, SDL_Event *event) in sdl_filter() argument
15 switch (event->type) { in sdl_filter()
24 data->x = event->button.x; in sdl_filter()
25 data->y = event->button.y; in sdl_filter()
/Zephyr-Core-3.7.0/drivers/interrupt_controller/
Dintc_renesas_ra_icu.c29 int ra_icu_query_exists_irq(uint32_t event) in ra_icu_query_exists_irq() argument
34 if (event == els) { in ra_icu_query_exists_irq()
42 int ra_icu_query_available_irq(uint32_t event) in ra_icu_query_available_irq() argument
46 if (ra_icu_query_exists_irq(event) > 0) { in ra_icu_query_available_irq()
86 uint32_t event = ((flags & RA_ICU_FLAG_EVENT_MASK) >> RA_ICU_FLAG_EVENT_OFFSET); in ra_icu_irq_connect_dynamic() local
91 irqn = ra_icu_query_available_irq(event); in ra_icu_irq_connect_dynamic()
98 sys_write32(event, IELSRn_REG(irqn)); in ra_icu_irq_connect_dynamic()
101 ra_icu_irq_configure(event, intcfg); in ra_icu_irq_connect_dynamic()
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll.c59 } event; variable
186 event.curr.abort_cb = NULL; in lll_init()
391 if (!param || (param == event.curr.param)) { in lll_disable()
392 if (event.curr.abort_cb && event.curr.param) { in lll_disable()
393 event.curr.abort_cb(NULL, event.curr.param); in lll_disable()
458 LL_ASSERT(event.curr.abort_cb); in lll_done()
459 event.curr.abort_cb = NULL; in lll_done()
461 param = event.curr.param; in lll_done()
462 event.curr.param = NULL; in lll_done()
516 LL_ASSERT(event.done.ull_count != event.done.lll_count); in lll_done_ull_inc()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsockets_service.c48 svc->pev[i].event.fd = -1; in cleanup_svc_events()
49 svc->pev[i].event.events = 0; in cleanup_svc_events()
86 svc->pev[i].event = fds[i]; in z_impl_net_socket_service_register()
103 struct net_socket_service_event **event) in find_svc_and_event() argument
107 if (svc->pev[i].event.fd == pev->fd) { in find_svc_and_event()
108 *event = &svc->pev[i]; in find_svc_and_event()
135 ctx.events[get_idx(svc) + i] = svc->pev[i].event; in net_socket_service_callback()
158 struct net_socket_service_event *event; in trigger_work() local
161 svc = find_svc_and_event(pev, &event); in trigger_work()
166 event->svc = svc; in trigger_work()
[all …]

12345678910>>...37