Home
last modified time | relevance | path

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

12345678910>>...30

/Zephyr-Core-3.5.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 z_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 Z_OOPS(Z_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.5.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.5.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 …]
Dnonblocking.c46 short event; in ZTEST_F() local
51 event = POLLOUT; in ZTEST_F()
52 ret = is_blocked(fixture->fd, &event); in ZTEST_F()
62 event = POLLOUT; in ZTEST_F()
63 ret = is_blocked(fixture->fd, &event); in ZTEST_F()
/Zephyr-Core-3.5.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.5.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.5.0/boards/posix/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.5.0/subsys/usb/device_next/
Dusbd_core.c34 const struct udc_event *const event) in usbd_event_carrier() argument
36 return k_msgq_put(&usbd_msgq, event, K_NO_WAIT); in usbd_event_carrier()
40 const struct udc_event *const event) in event_handler_ep_request() argument
45 bi = udc_get_buf_info(event->buf); in event_handler_ep_request()
48 ret = usbd_handle_ctrl_xfer(uds_ctx, event->buf, bi->err); in event_handler_ep_request()
50 ret = usbd_class_handle_xfer(uds_ctx, event->buf, bi->err); in event_handler_ep_request()
55 ret, bi->ep, event->buf); in event_handler_ep_request()
64 struct udc_event *const event) in usbd_class_bcast_event() argument
80 switch (event->type) { in usbd_class_bcast_event()
125 struct udc_event *const event) in usbd_event_handler() argument
[all …]
/Zephyr-Core-3.5.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.5.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.5.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.5.0/subsys/mgmt/mcumgr/mgmt/src/
Dmgmt.c136 enum mgmt_cb_return mgmt_callback_notify(uint32_t event, void *data, size_t data_size, in mgmt_callback_notify() argument
142 uint16_t group = MGMT_EVT_GET_GROUP(event); in mgmt_callback_notify()
163 (MGMT_EVT_GET_ID(event) & MGMT_EVT_GET_ID(loop_group->event_id)) == in mgmt_callback_notify()
164 MGMT_EVT_GET_ID(event))) { in mgmt_callback_notify()
169 status = loop_group->callback(event, return_status, &cached_rc, in mgmt_callback_notify()
195 uint8_t mgmt_evt_get_index(uint32_t event) in mgmt_evt_get_index() argument
199 event &= MGMT_EVT_OP_ID_ALL; in mgmt_evt_get_index()
200 __ASSERT((event != 0), "Event cannot be 0."); in mgmt_evt_get_index()
203 if (event & 0x1) { in mgmt_evt_get_index()
208 event = event >> 1; in mgmt_evt_get_index()
[all …]
/Zephyr-Core-3.5.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.5.0/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll.c59 } event; variable
173 event.curr.abort_cb = NULL; in lll_init()
273 if (!param || (param == event.curr.param)) { in lll_disable()
274 if (event.curr.abort_cb && event.curr.param) { in lll_disable()
275 event.curr.abort_cb(NULL, event.curr.param); in lll_disable()
340 LL_ASSERT(event.curr.abort_cb); in lll_done()
341 event.curr.abort_cb = NULL; in lll_done()
343 param = event.curr.param; in lll_done()
344 event.curr.param = NULL; in lll_done()
398 LL_ASSERT(event.done.ull_count != event.done.lll_count); in lll_done_ull_inc()
[all …]
/Zephyr-Core-3.5.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.5.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.5.0/include/zephyr/mgmt/mcumgr/mgmt/
Dcallbacks.h53 #define MGMT_EVT_GET_GROUP(event) ((event >> 16) & MGMT_EVT_OP_ID_ALL) argument
56 #define MGMT_EVT_GET_ID(event) (event & MGMT_EVT_OP_ID_ALL) argument
107 typedef enum mgmt_cb_return (*mgmt_cb)(uint32_t event, enum mgmt_cb_return prev_status,
263 uint8_t mgmt_evt_get_index(uint32_t event);
281 enum mgmt_cb_return mgmt_callback_notify(uint32_t event, void *data, size_t data_size,
/Zephyr-Core-3.5.0/subsys/mgmt/osdp/src/
Dosdp_pd.c119 struct osdp_event *event = NULL; in pd_event_alloc() local
121 if (k_mem_slab_alloc(&pd->event.slab, (void **)&event, K_MSEC(100))) { in pd_event_alloc()
125 return event; in pd_event_alloc()
128 static void pd_event_free(struct osdp_pd *pd, struct osdp_event *event) in pd_event_free() argument
130 k_mem_slab_free(&pd->event.slab, (void *)event); in pd_event_free()
133 static void pd_event_enqueue(struct osdp_pd *pd, struct osdp_event *event) in pd_event_enqueue() argument
135 sys_slist_append(&pd->event.queue, &event->node); in pd_event_enqueue()
138 static int pd_event_dequeue(struct osdp_pd *pd, struct osdp_event **event) in pd_event_dequeue() argument
142 node = sys_slist_peek_head(&pd->event.queue); in pd_event_dequeue()
146 sys_slist_remove(&pd->event.queue, NULL, node); in pd_event_dequeue()
[all …]
/Zephyr-Core-3.5.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 int "Stack size for the inner thread handling event callbacks"
33 int "Size of event queue"
39 3rd event comes in, the first will be removed without generating any
44 int "Timeout for event queue"
48 Timeout in milliseconds for the event queue. This timeout is used to
52 bool "Passing information along with an event"
54 Event notifier will be able to provide information to an event,
56 on the type of event.
[all …]
Dnet_mgmt.c26 uint32_t event; member
79 new_event.event = mgmt_event; in mgmt_push_event()
134 NET_MGMT_GET_LAYER(mgmt_event->event), in mgmt_run_callbacks()
135 NET_MGMT_GET_LAYER_CODE(mgmt_event->event), in mgmt_run_callbacks()
136 NET_MGMT_GET_COMMAND(mgmt_event->event)); in mgmt_run_callbacks()
139 if (!(NET_MGMT_GET_LAYER(mgmt_event->event) == in mgmt_run_callbacks()
141 !(NET_MGMT_GET_LAYER_CODE(mgmt_event->event) == in mgmt_run_callbacks()
143 (NET_MGMT_GET_COMMAND(mgmt_event->event) && in mgmt_run_callbacks()
145 !(NET_MGMT_GET_COMMAND(mgmt_event->event) & in mgmt_run_callbacks()
172 cb->raised_event = mgmt_event->event; in mgmt_run_callbacks()
[all …]
/Zephyr-Core-3.5.0/doc/kernel/services/synchronization/
Devents.rst6 An :dfn:`event object` is a kernel object that implements traditional events.
15 Any number of event objects can be defined (limited only by available RAM). Each
16 event object is referenced by its memory address. One or more threads may wait
17 on an event object until the desired set of events has been delivered to the
18 event object. When new events are delivered to the event object, all threads
21 An event object has the following key properties:
25 An event object must be initialized before it can be used.
32 conditions of multiple threads waiting on the event object. All threads whose
38 event object prior to waiting. Care must be taken with this option when
39 multiple threads wait on the same event object.
[all …]
/Zephyr-Core-3.5.0/modules/hal_infineon/abstraction-rtos/source/COMPONENT_ZEPHYR/
Dcyabs_rtos_zephyr.c513 cy_rslt_t cy_rtos_init_event(cy_event_t *event) in cy_rtos_init_event() argument
517 if (event == NULL) { in cy_rtos_init_event()
521 k_event_init(event); in cy_rtos_init_event()
527 cy_rslt_t cy_rtos_setbits_event(cy_event_t *event, uint32_t bits, bool in_isr) in cy_rtos_setbits_event() argument
533 if (event == NULL) { in cy_rtos_setbits_event()
537 k_event_post(event, bits); in cy_rtos_setbits_event()
543 cy_rslt_t cy_rtos_clearbits_event(cy_event_t *event, uint32_t bits, bool in_isr) in cy_rtos_clearbits_event() argument
549 if (event == NULL) { in cy_rtos_clearbits_event()
555 status = cy_rtos_getbits_event(event, &current_bits); in cy_rtos_clearbits_event()
558 k_event_set(event, (~bits & current_bits)); in cy_rtos_clearbits_event()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/handler_demo/src/
Dmain.c27 enum mgmt_cb_return test_function(uint32_t event, enum mgmt_cb_return prev_status, int32_t *rc, in test_function() argument
30 if (event == MGMT_EVT_OP_EXAMPLE_OTHER) { in test_function()
44 LOG_ERR("Received unknown event: %d", event); in test_function()
/Zephyr-Core-3.5.0/boards/arm/stm32f7508_dk/support/
Dopenocd.cfg3 $_TARGETNAME configure -event gdb-attach {
9 $_TARGETNAME configure -event gdb-detach {
17 $_TARGETNAME configure -event reset-start {

12345678910>>...30