/Zephyr-latest/kernel/ |
D | events.c | 52 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 …]
|
D | poll.c | 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() 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-latest/samples/subsys/smf/hsm_psicc2/src/ |
D | hsm_psicc2_console_cmds.c | 21 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-latest/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-latest/scripts/tracing/ |
D | parse_ctf.py | 62 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-latest/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-latest/samples/subsys/smf/smf_calculator/src/ |
D | smf_console_cmds.c | 14 struct calculator_event event; in cmd_smf_key() local 17 event.operand = c; in cmd_smf_key() 20 event.event_id = DIGIT_1_9; in cmd_smf_key() 22 event.event_id = DIGIT_0; in cmd_smf_key() 24 event.event_id = DECIMAL_POINT; in cmd_smf_key() 26 event.event_id = OPERATOR; in cmd_smf_key() 28 event.event_id = EQUALS; in cmd_smf_key() 30 event.event_id = CANCEL_BUTTON; in cmd_smf_key() 32 event.event_id = CANCEL_ENTRY; in cmd_smf_key() 38 int rc = post_calculator_event(&event, K_FOREVER); in cmd_smf_key()
|
D | main.c | 25 struct calculator_event event; member 55 .event = {.event_id = CANCEL_ENTRY, .operand = 'E'}}, 56 [BUTTON_CANCEL] = {.label = "C", .event = {.event_id = CANCEL_BUTTON, .operand = 'C'}}, 57 [BUTTON_ADD] = {.label = "+", .event = {.event_id = OPERATOR, .operand = '+'}}, 58 [BUTTON_SUBTRACT] = {.label = "-", .event = {.event_id = OPERATOR, .operand = '-'}}, 59 [BUTTON_MULTIPLY] = {.label = "*", .event = {.event_id = OPERATOR, .operand = '*'}}, 60 [BUTTON_DIVIDE] = {.label = "/", .event = {.event_id = OPERATOR, .operand = '/'}}, 62 .event = {.event_id = DECIMAL_POINT, .operand = '.'}}, 63 [BUTTON_EQUALS] = {.label = "=", .event = {.event_id = EQUALS, .operand = '='}}, 64 [BUTTON_0] = {.label = "0", .event = {.event_id = DIGIT_0, .operand = '0'}}, [all …]
|
D | smf_calculator_thread.c | 42 struct calculator_event event; member 200 switch (s->event.event_id) { in on_run() 216 switch (s->event.event_id) { in ready_run() 218 insert(&s->operand_1, s->event.operand); in ready_run() 222 insert(&s->operand_1, s->event.operand); in ready_run() 230 s->operator_btn = s->event.operand; in ready_run() 262 switch (s->event.event_id) { in begin_run() 265 if (s->event.operand == '-') { in begin_run() 290 switch (s->event.event_id) { in negated_1_run() 292 insert(&s->operand_1, s->event.operand); in negated_1_run() [all …]
|
/Zephyr-latest/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-latest/boards/native/common/sdl/ |
D | sdl_events_bottom.c | 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-latest/subsys/usb/device_next/ |
D | usbd_core.c | 35 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() 137 struct udc_event *const event) in usbd_event_handler() argument [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | state_machine.c | 12 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 …]
|
D | ptp.c | 43 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-latest/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-latest/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() 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-latest/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() 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-latest/include/zephyr/mgmt/hawkbit/ |
D | event.h | 76 enum hawkbit_event_type event); 98 enum hawkbit_event_type event; member 116 .event = _event, \ 128 enum hawkbit_event_type event) in hawkbit_event_init_callback() argument 134 callback->event = event; in hawkbit_event_init_callback()
|
/Zephyr-latest/subsys/mgmt/mcumgr/mgmt/src/ |
D | mgmt.c | 147 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-latest/tests/kernel/poll/src/ |
D | test_poll_fail.c | 61 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-latest/subsys/net/lib/sockets/ |
D | sockets_service.c | 48 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() 133 ctx.events[get_idx(svc) + i] = svc->pev[i].event; in net_socket_service_callback() 137 static int call_work(struct zsock_pollfd *pev, struct net_socket_service_event *event) in call_work() argument 147 net_socket_service_callback(event); in call_work() 155 struct net_socket_service_event *event; in trigger_work() local [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_emul_sdl_bottom.c | 11 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-latest/modules/hostap/src/ |
D | supp_events.c | 27 enum supplicant_event_num event; member 118 event_data->event = event_info.event; in supplicant_process_status() 120 switch (event_data->event) { in supplicant_process_status() 206 enum net_event_wifi_cmd event; in supplicant_send_wifi_mgmt_conn_event() local 213 event = NET_EVENT_WIFI_CMD_AP_ENABLE_RESULT; in supplicant_send_wifi_mgmt_conn_event() 215 event = NET_EVENT_WIFI_CMD_CONNECT_RESULT; in supplicant_send_wifi_mgmt_conn_event() 219 event, in supplicant_send_wifi_mgmt_conn_event() 228 enum net_event_wifi_cmd event; in supplicant_send_wifi_mgmt_disc_event() local 236 event = NET_EVENT_WIFI_CMD_AP_DISABLE_RESULT; in supplicant_send_wifi_mgmt_disc_event() 238 event = NET_EVENT_WIFI_CMD_DISCONNECT_RESULT; in supplicant_send_wifi_mgmt_disc_event() [all …]
|
/Zephyr-latest/drivers/input/ |
D | input_sdl_touch_bottom.c | 11 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-latest/drivers/interrupt_controller/ |
D | intc_renesas_ra_icu.c | 29 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()
|