/Zephyr-Core-3.5.0/kernel/ |
D | events.c | 8 * @file event objects library 10 * Event objects are used to signal one or more threads that a custom set of 11 * events has occurred. Threads wait on event objects until another thread or 12 * ISR posts the desired set of events to the event object. Each time events 13 * are posted to an event object, all threads waiting on that event object are 15 * conditions match the current set of events now belonging to the event object 18 * Threads waiting on an event object have the option of either waking once 19 * any or all of the events it desires have been posted to the event object. 21 * @brief Kernel event object 52 void z_impl_k_event_init(struct k_event *event) in z_impl_k_event_init() argument [all …]
|
D | poll.c | 11 * @brief Kernel asynchronous event polling interface. 29 /* Single subsystem lock. Locking per-event would be better on highly 40 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() 52 /* event->tag is left uninitialized: the user will set it if needed */ 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() [all …]
|
/Zephyr-Core-3.5.0/subsys/tracing/ctf/tsdl/ |
D | metadata | 22 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/scripts/tracing/ |
D | parse_ctf.py | 62 event = msg.event 63 # Compute the time difference since the last event message. 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: 93 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_name} {cpu_string}") 95 print(f"{dt} (+{diff_s:.6f} s): {event.name}: {thread_id} {cpu_string}") 97 print(f"{dt} (+{diff_s:.6f} s): {event.name}") [all …]
|
/Zephyr-Core-3.5.0/subsys/usb/host/ |
D | usbh_core.c | 27 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/subsys/net/ip/ |
D | Kconfig.mgmt | 12 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 …]
|
/Zephyr-Core-3.5.0/subsys/usb/device_next/ |
D | usbd_core.c | 34 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() 97 LOG_WRN("Bus reset event"); in event_handler_bus_reset() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/mgmt/ |
D | callbacks.h | 42 /** Event which signfies that all event IDs for a particular group should be enabled. */ 45 /** Get event for a particular group and event ID. */ 48 /** Get event used for enabling all event IDs of a particular group. */ 52 /** Get group from event. */ 53 #define MGMT_EVT_GET_GROUP(event) ((event >> 16) & MGMT_EVT_OP_ID_ALL) argument 55 /** Get event ID from event. */ 56 #define MGMT_EVT_GET_ID(event) (event & MGMT_EVT_OP_ID_ALL) argument 59 * MGMT event callback return value. 80 * @brief Function to be called on MGMT notification/event. 82 * This callback function is used to notify an application or system about a MCUmgr mgmt event. [all …]
|
/Zephyr-Core-3.5.0/tests/posix/eventfd/src/ |
D | _main.c | 17 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 …]
|
/Zephyr-Core-3.5.0/samples/drivers/misc/timeaware_gpio/ |
D | README.rst | 41 [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/include/zephyr/input/ |
D | input.h | 19 #include <zephyr/dt-bindings/input/input-event-codes.h> 28 * @brief Input event structure. 30 * This structure represents a single input event, for example a key or button 35 /** Device generating the event or NULL. */ 39 /** Event type (see @ref INPUT_EV_CODES). */ 42 * Event code (see @ref INPUT_KEY_CODES, @ref INPUT_BTN_CODES, 46 /** Event value. */ 51 * @brief Report a new input event. 56 * @param dev Device generating the event or NULL. 57 * @param type Event type (see @ref INPUT_EV_CODES). [all …]
|
/Zephyr-Core-3.5.0/doc/kernel/services/synchronization/ |
D | events.rst | 6 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/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio_nrf5_dppi_resources.h | 9 * Enable Radio on Event Timer tick: 10 * wire the EVENT_TIMER EVENTS_COMPARE[0] event to RADIO TASKS_TXEN/RXEN task. 16 * Capture event timer on Address reception: 17 * wire the RADIO EVENTS_ADDRESS event to the 24 * wire the EVENT_TIMER EVENTS_COMPARE[<HCTO timer>] event 30 * Capture event timer on Radio end: 31 * wire the RADIO EVENTS_END event to the 37 * Start event timer on RTC tick: 38 * wire the RTC0 EVENTS_COMPARE[2] event to EVENT_TIMER TASKS_START task. 43 * Capture event timer on Radio ready: [all …]
|
D | radio_nrf5_ppi_resources.h | 48 /* Start event timer on RTC tick wire the RTC0 EVENTS_COMPARE[2] event to 53 /* Capture event timer on Radio ready, wire the RADIO EVENTS_READY event to the 59 * wire the RADIO EVENTS_ADDRESS event to the CCM TASKS_CRYPT task. 68 * wire the RADIO EVENTS_BCMATCH event to the AAR TASKS_START task. 76 /* Trigger Radio Rate override upon Rateboost event. */ 95 * wire the RADIO EVENTS_END event to SW_SWITCH_TIMER TASKS_CLEAR task. 103 /* Clear event timer (sw-switch timer) on Radio end: 104 * wire the RADIO EVENTS_END event to the 114 /* Wire a SW SWITCH TIMER EVENTS_COMPARE[<cc_offset>] event 125 /* Wire the RADIO EVENTS_END event to one of the PPI GROUP TASK ENABLE task. [all …]
|
D | radio_nrf5_resources.h | 14 /* Wrapper for EVENTS_END event generated by Radio peripheral at the very end of the transmission 38 /* Wrapper for EVENTS_END event generated by Radio peripheral at the very end of the transmission 54 /* Wrapper for EVENTS_END event generated by Radio peripheral at the very end of the transmission 83 * PHY CODED S2. The CTEINLINE may not be enabled for PHY CODED so PHYEND event is generated 84 * at the same instant as END event. Hence the channels are uesed interchangeably. 90 /* Wrapper for EVENTS_END event generated by Radio peripheral at the very end of the transmission 95 * including CTE EVENTS_PHYEND event is generated at very end of a PDU. In case there is no CTE in 96 * a PDU the EVENTS_PHYEND event is generated in the same instant as EVENTS_END event. 102 * It enables shortcut for EVENTS_PHYEND event generated at very end to Radio EVENTS_DISABLE event. 103 * In case there is a CTE in a PDU then EVENTS_PHYEND event is generated after the CTE. [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | heap_listener.h | 28 * Dummy event so an un-initialized but zero-ed listener node 45 * @note Minimal C library does not emit this event. 60 * Zephyr main code repository may not emit this event. 79 * Zephyr main code repository may not emit this event. 106 * The heap event to be notified. 108 enum heap_event_types event; member 118 * @brief Register heap event listener 128 * @brief Unregister heap event listener 139 * @brief Notify listeners of heap allocation event 141 * Notify registered heap event listeners with matching heap identifier that an [all …]
|
/Zephyr-Core-3.5.0/.github/workflows/ |
D | bsim-tests-publish.yaml | 12 if: github.event.workflow_run.conclusion != 'skipped' 18 run_id: ${{ github.event.workflow_run.id }} 25 commit: ${{ github.event.workflow_run.head_sha }} 26 event_file: event/event.json 27 event_name: ${{ github.event.workflow_run.event }}
|
/Zephyr-Core-3.5.0/include/zephyr/xen/ |
D | events.h | 32 * Allocate event-channel between caller and remote domain 35 * @return - local event channel port on success, negative on error 41 * Allocate event-channel between remote domains. Can be used only from Dom0. 45 * @return - local event channel port on success, negative on error 51 * Allocate local event channel, binded to remote port and attach specified callback 55 * @param remote_port - remote domain event channel port number 58 * @return - local event channel port on success, negative on error 64 * Bind user-defined handler to specified event-channel 66 * @param port - event channel number 67 * @param cb - pointer to event channel handler [all …]
|
/Zephyr-Core-3.5.0/boards/posix/common/sdl/ |
D | sdl_events_bottom.c | 7 * "Bottom" of the SDL event handler for the POSIX architecture. 16 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/include/zephyr/xen/public/ |
D | event_channel.h | 6 * Event channels between domains. 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 35 * `incontents 150 evtchn Event Channels 37 * Event channels are the basic primitive provided by Xen for event 38 * notifications. An event is the Xen equivalent of a hardware 39 * interrupt. They essentially store one bit of information, the event 43 * indicating when an event arrives (setting the bit). Further 45 * guests must check the value of the bit after re-enabling event 48 * Event notifications can be masked by setting a flag; this is 52 * Event channels are represented by the evtchn_* fields in [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/input/ |
D | zephyr,input-longpress.yaml | 13 #include <zephyr/dt-bindings/input/input-event-codes.h> 26 input event: dev=buttons SYN type= 1 code= 11 value=1 # INPUT_KEY_0 press 28 input event: dev=buttons SYN type= 1 code= 11 value=0 # INPUT_KEY_0 release 29 input event: dev=longpress SYN type= 1 code= 30 value=1 # INPUT_KEY_A press 30 input event: dev=longpress SYN type= 1 code= 30 value=0 # INPUT_KEY_A release 32 input event: dev=buttons SYN type= 1 code= 11 value=1 # INPUT_KEY_0 press 34 input event: dev=longpress SYN type= 1 code= 45 value=1 # INPUT_KEY_X press 36 input event: dev=buttons SYN type= 1 code= 11 value=0 # INPUT_KEY_0 release 37 input event: dev=longpress SYN type= 1 code= 45 value=0 # INPUT_KEY_X release 51 Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*).
|
/Zephyr-Core-3.5.0/samples/subsys/usb/hid-mouse/ |
D | README.rst | 83 Event type 0 (EV_SYN) 84 Event type 1 (EV_KEY) 85 Event code 272 (BTN_LEFT) 86 Event code 273 (BTN_RIGHT) 87 Event code 274 (BTN_MIDDLE) 88 Event type 2 (EV_REL) 89 Event code 0 (REL_X) 90 Event code 1 (REL_Y) 91 Event code 8 (REL_WHEEL) 92 Event type 4 (EV_MSC) [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/events/event_api/src/ |
D | test_event_apis.c | 59 static struct k_event event; in ZTEST() local 62 k_event_init(&event); in ZTEST() 65 * The type of wait queue used by the event may vary depending upon in ZTEST() 71 thread = z_waitq_head(&event.wait_q); in ZTEST() 74 zassert_true(event.events == 0); in ZTEST() 89 * Sync point 1-2 : test_event still contains event 0x1234. in receive_existing_events() 98 * Sync point 1-3: test_event still contains event 0x1234. in receive_existing_events() 107 * Sync point 1-4: test_event still contains event 0x1234. in receive_existing_events() 116 * Sync point 1-5: test_event still contains event 0x1234. in receive_existing_events() 125 * Sync point 1-6: test_event still contains event 0x1234. in receive_existing_events() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | net_mgmt.h | 34 * @brief NET MGMT event mask basics, normalizing parts of bit fields 109 * @param mgmt_event The network event being notified. 110 * @param iface A pointer on a struct net_if to which the the event belongs to, 111 * if it's an event on an iface. NULL otherwise. 118 * @brief Network Management event callback structure 119 * Used to register a callback into the network management event part, in order 120 * to let the owner of this struct to get network event notification based on 121 * given event mask. 159 /** Internal place holder when a synchronous event wait is 160 * successfully unlocked on a event. [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll.c | 50 } event; variable 65 static uint32_t preempt_ticker_start(struct lll_event *event, 130 event.curr.abort_cb = NULL; in lll_init() 215 /* LLL disable of current event, done is generated */ in lll_disable() 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() 280 /* check if current LLL event is done */ in lll_done() 283 /* Reset current event instance */ in lll_done() 284 LL_ASSERT(event.curr.abort_cb); in lll_done() [all …]
|