/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_ias.c | 24 struct btp_ias_alert_action_ev ev; in alert_stop() local 30 ev.alert_lvl = BT_IAS_ALERT_LVL_NO_ALERT; in alert_stop() 33 (uint8_t *)&ev, sizeof(ev)); in alert_stop() 38 struct btp_ias_alert_action_ev ev; in alert_start() local 44 ev.alert_lvl = BT_IAS_ALERT_LVL_MILD_ALERT; in alert_start() 46 tester_event(BTP_SERVICE_ID_IAS, BTP_IAS_EV_OUT_ALERT_ACTION, &ev, sizeof(ev)); in alert_start() 51 struct btp_ias_alert_action_ev ev; in alert_high_start() local 57 ev.alert_lvl = BT_IAS_ALERT_LVL_HIGH_ALERT; in alert_high_start() 59 tester_event(BTP_SERVICE_ID_IAS, BTP_IAS_EV_OUT_ALERT_ACTION, &ev, sizeof(ev)); in alert_high_start()
|
D | btp_l2cap.c | 55 struct btp_l2cap_data_received_ev *ev; in seg_recv_cb() local 60 ev = (void *)chan->recv_cb_buf; in seg_recv_cb() 61 memcpy(&ev->data[seg_offset], seg->data, seg->len); in seg_recv_cb() 65 ev->chan_id = chan->chan_id; in seg_recv_cb() 66 ev->data_length = sys_cpu_to_le16(sdu_len); in seg_recv_cb() 69 sizeof(*ev) + sdu_len); in seg_recv_cb() 88 struct btp_l2cap_data_received_ev *ev = (void *) recv_cb_buf; in recv_cb() local 93 ev->chan_id = chan->chan_id; in recv_cb() 94 ev->data_length = sys_cpu_to_le16(buf->len); in recv_cb() 95 memcpy(ev->data, buf->data, buf->len); in recv_cb() [all …]
|
D | btp_gap.c | 107 struct btp_gap_device_connected_ev ev; in le_connected() local 120 bt_addr_le_copy(&ev.address, info.le.dst); in le_connected() 121 ev.interval = sys_cpu_to_le16(info.le.interval); in le_connected() 122 ev.latency = sys_cpu_to_le16(info.le.latency); in le_connected() 123 ev.timeout = sys_cpu_to_le16(info.le.timeout); in le_connected() 125 tester_event(BTP_SERVICE_ID_GAP, BTP_GAP_EV_DEVICE_CONNECTED, &ev, sizeof(ev)); in le_connected() 138 struct btp_gap_device_disconnected_ev ev; in le_disconnected() local 145 bt_addr_le_copy(&ev.address, addr); in le_disconnected() 147 tester_event(BTP_SERVICE_ID_GAP, BTP_GAP_EV_DEVICE_DISCONNECTED, &ev, sizeof(ev)); in le_disconnected() 153 struct btp_gap_identity_resolved_ev ev; in le_identity_resolved() local [all …]
|
D | btp_mesh.c | 1193 struct btp_mesh_prov_link_open_ev ev; in link_open() local 1199 ev.bearer = BTP_MESH_PROV_BEARER_PB_ADV; in link_open() 1202 ev.bearer = BTP_MESH_PROV_BEARER_PB_GATT; in link_open() 1205 ev.bearer = BTP_MESH_PROV_BEARER_REMOTE; in link_open() 1213 tester_event(BTP_SERVICE_ID_MESH, BTP_MESH_EV_PROV_LINK_OPEN, &ev, sizeof(ev)); in link_open() 1218 struct btp_mesh_prov_link_closed_ev ev; in link_close() local 1224 ev.bearer = BTP_MESH_PROV_BEARER_PB_ADV; in link_close() 1227 ev.bearer = BTP_MESH_PROV_BEARER_PB_GATT; in link_close() 1230 ev.bearer = BTP_MESH_PROV_BEARER_REMOTE; in link_close() 1238 tester_event(BTP_SERVICE_ID_MESH, BTP_MESH_EV_PROV_LINK_CLOSED, &ev, sizeof(ev)); in link_close() [all …]
|
/Zephyr-latest/drivers/input/ |
D | linux_evdev_bottom.c | 18 struct input_event ev; in linux_evdev_read() local 21 ret = read(fd, &ev, sizeof(ev)); in linux_evdev_read() 28 } else if (ret < sizeof(ev)) { in linux_evdev_read() 30 ret, sizeof(ev)); in linux_evdev_read() 34 *type = ev.type; in linux_evdev_read() 35 *code = ev.code; in linux_evdev_read() 36 *value = ev.value; in linux_evdev_read()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_mcp.c | 92 struct btp_mcp_discovered_ev ev; in btp_send_mcp_found_ev() local 94 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_mcp_found_ev() 96 ev.status = status; in btp_send_mcp_found_ev() 97 ev.gmcs_handles.player_name = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.player_name); in btp_send_mcp_found_ev() 98 ev.gmcs_handles.icon_obj_id = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.icon_obj_id); in btp_send_mcp_found_ev() 99 ev.gmcs_handles.icon_url = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.icon_url); in btp_send_mcp_found_ev() 100 ev.gmcs_handles.track_changed = in btp_send_mcp_found_ev() 102 ev.gmcs_handles.track_title = sys_cpu_to_le16(svc_chrc_handles.gmcs_handles.track_title); in btp_send_mcp_found_ev() 103 ev.gmcs_handles.track_duration = in btp_send_mcp_found_ev() 105 ev.gmcs_handles.track_position = in btp_send_mcp_found_ev() [all …]
|
D | btp_aics.c | 71 struct btp_aics_state_ev ev; in btp_send_aics_state_ev() local 73 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_aics_state_ev() 75 ev.att_status = att_status; in btp_send_aics_state_ev() 76 ev.gain = gain; in btp_send_aics_state_ev() 77 ev.mute = mute; in btp_send_aics_state_ev() 78 ev.mode = mode; in btp_send_aics_state_ev() 80 tester_event(BTP_SERVICE_ID_AICS, BTP_AICS_STATE_EV, &ev, sizeof(ev)); in btp_send_aics_state_ev() 86 struct btp_gain_setting_properties_ev ev; in btp_send_gain_setting_properties_ev() local 88 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_gain_setting_properties_ev() 90 ev.att_status = att_status; in btp_send_gain_setting_properties_ev() [all …]
|
D | btp_vcp.c | 238 struct btp_vocs_offset_state_ev ev; in btp_send_vocs_state_ev() local 240 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_vocs_state_ev() 242 ev.att_status = att_status; in btp_send_vocs_state_ev() 243 ev.offset = sys_cpu_to_le16(offset); in btp_send_vocs_state_ev() 245 tester_event(BTP_SERVICE_ID_VOCS, BTP_VOCS_OFFSET_STATE_EV, &ev, sizeof(ev)); in btp_send_vocs_state_ev() 250 struct btp_vocs_audio_location_ev ev; in btp_send_vocs_location_ev() local 252 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_vocs_location_ev() 254 ev.att_status = att_status; in btp_send_vocs_location_ev() 255 ev.location = sys_cpu_to_le32(location); in btp_send_vocs_location_ev() 257 tester_event(BTP_SERVICE_ID_VOCS, BTP_VOCS_AUDIO_LOCATION_EV, &ev, sizeof(ev)); in btp_send_vocs_location_ev() [all …]
|
D | btp_csip.c | 42 struct btp_csip_discovered_ev ev; in btp_send_csip_discovered_ev() local 44 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_csip_discovered_ev() 46 ev.status = status; in btp_send_csip_discovered_ev() 47 ev.sirk_handle = sys_cpu_to_le16(sirk_handle); in btp_send_csip_discovered_ev() 48 ev.size_handle = sys_cpu_to_le16(size_handle); in btp_send_csip_discovered_ev() 49 ev.lock_handle = sys_cpu_to_le16(lock_handle); in btp_send_csip_discovered_ev() 50 ev.rank_handle = sys_cpu_to_le16(rank_handle); in btp_send_csip_discovered_ev() 52 tester_event(BTP_SERVICE_ID_CSIP, BTP_CSIP_DISCOVERED_EV, &ev, sizeof(ev)); in btp_send_csip_discovered_ev() 57 struct btp_csip_sirk_ev ev; in btp_send_csip_sirk_ev() local 59 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_csip_sirk_ev() [all …]
|
D | btp_hap.c | 91 struct btp_hap_hauc_discovery_complete_ev ev = { 0 }; in has_client_discover_cb() local 95 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in has_client_discover_cb() 96 ev.status = BTP_STATUS_VAL(err); in has_client_discover_cb() 103 ev.has_hearing_aid_features_handle = inst->features_subscription.value_handle; in has_client_discover_cb() 104 ev.has_control_point_handle = inst->control_point_subscription.value_handle; in has_client_discover_cb() 105 ev.has_active_preset_index_handle = inst->active_index_subscription.value_handle; in has_client_discover_cb() 108 tester_event(BTP_SERVICE_ID_HAP, BT_HAP_EV_HAUC_DISCOVERY_COMPLETE, &ev, sizeof(ev)); in has_client_discover_cb() 136 struct btp_hap_iac_discovery_complete_ev ev; in ias_client_discover_cb() local 141 bt_addr_le_copy(&ev.address, info.le.dst); in ias_client_discover_cb() 143 ev.status = BT_ATT_ERR_UNLIKELY; in ias_client_discover_cb() [all …]
|
D | btp_bap_broadcast.c | 108 struct btp_bap_bis_syned_ev ev; in btp_send_bis_syced_ev() local 110 bt_addr_le_copy(&ev.address, address); in btp_send_bis_syced_ev() 111 sys_put_le24(broadcast_id, ev.broadcast_id); in btp_send_bis_syced_ev() 112 ev.bis_id = bis_id; in btp_send_bis_syced_ev() 114 tester_event(BTP_SERVICE_ID_BAP, BTP_BAP_EV_BIS_SYNCED, &ev, sizeof(ev)); in btp_send_bis_syced_ev() 160 struct btp_bap_bis_stream_received_ev *ev; in send_bis_stream_received_ev() local 163 tester_rsp_buffer_allocate(sizeof(*ev) + data_len, (uint8_t **)&ev); in send_bis_stream_received_ev() 167 bt_addr_le_copy(&ev->address, address); in send_bis_stream_received_ev() 168 sys_put_le24(broadcast_id, ev->broadcast_id); in send_bis_stream_received_ev() 169 ev->bis_id = bis_id; in send_bis_stream_received_ev() [all …]
|
D | btp_micp.c | 57 struct btp_micp_discovered_ev ev; in btp_send_micp_found_ev() local 59 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_micp_found_ev() 61 ev.att_status = att_status; in btp_send_micp_found_ev() 62 ev.mute_handle = sys_cpu_to_le16(micp_handles->mute_handle); in btp_send_micp_found_ev() 63 ev.state_handle = sys_cpu_to_le16(micp_handles->state_handle); in btp_send_micp_found_ev() 64 ev.gain_handle = sys_cpu_to_le16(micp_handles->gain_handle); in btp_send_micp_found_ev() 65 ev.type_handle = sys_cpu_to_le16(micp_handles->type_handle); in btp_send_micp_found_ev() 66 ev.status_handle = sys_cpu_to_le16(micp_handles->status_handle); in btp_send_micp_found_ev() 67 ev.control_handle = sys_cpu_to_le16(micp_handles->control_handle); in btp_send_micp_found_ev() 68 ev.desc_handle = sys_cpu_to_le16(micp_handles->desc_handle); in btp_send_micp_found_ev() [all …]
|
D | btp_ccp.c | 69 struct btp_ccp_discovered_ev ev; in tbs_client_discovered_ev() local 71 ev.status = sys_cpu_to_le32(err); in tbs_client_discovered_ev() 72 ev.tbs_count = tbs_count; in tbs_client_discovered_ev() 73 ev.gtbs_found = gtbs_found; in tbs_client_discovered_ev() 75 tester_event(BTP_SERVICE_ID_CCP, BTP_CCP_EV_DISCOVERED, &ev, sizeof(ev)); in tbs_client_discovered_ev() 80 struct btp_ccp_chrc_handles_ev ev; in tbs_chrc_handles_ev() local 82 ev.provider_name = sys_cpu_to_le16(tbs_handles->provider_name); in tbs_chrc_handles_ev() 83 ev.bearer_uci = sys_cpu_to_le16(tbs_handles->bearer_uci); in tbs_chrc_handles_ev() 84 ev.bearer_technology = sys_cpu_to_le16(tbs_handles->bearer_technology); in tbs_chrc_handles_ev() 85 ev.uri_list = sys_cpu_to_le16(tbs_handles->uri_list); in tbs_chrc_handles_ev() [all …]
|
D | btp_tmap.c | 29 struct btp_tmap_discovery_complete_ev ev; in tmap_discover_cb() local 35 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in tmap_discover_cb() 36 ev.status = err; in tmap_discover_cb() 37 ev.role = role; in tmap_discover_cb() 39 tester_event(BTP_SERVICE_ID_TMAP, BT_TMAP_EV_DISCOVERY_COMPLETE, &ev, sizeof(ev)); in tmap_discover_cb()
|
D | btp_bap_unicast.c | 158 struct btp_ascs_ase_state_changed_ev ev; in btp_send_ascs_ase_state_changed_ev() local 160 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_ascs_ase_state_changed_ev() 161 ev.ase_id = ase_id; in btp_send_ascs_ase_state_changed_ev() 162 ev.state = state; in btp_send_ascs_ase_state_changed_ev() 164 tester_event(BTP_SERVICE_ID_ASCS, BTP_ASCS_EV_ASE_STATE_CHANGED, &ev, sizeof(ev)); in btp_send_ascs_ase_state_changed_ev() 170 struct btp_ascs_operation_completed_ev ev; in btp_send_ascs_operation_completed_ev() local 172 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_ascs_operation_completed_ev() 173 ev.ase_id = ase_id; in btp_send_ascs_operation_completed_ev() 174 ev.opcode = opcode; in btp_send_ascs_operation_completed_ev() 175 ev.status = status; in btp_send_ascs_operation_completed_ev() [all …]
|
D | btp_cap.c | 44 struct btp_cap_discovery_completed_ev ev; in btp_send_discovery_completed_ev() local 46 bt_addr_le_copy(&ev.address, bt_conn_get_dst(conn)); in btp_send_discovery_completed_ev() 47 ev.status = status; in btp_send_discovery_completed_ev() 49 tester_event(BTP_SERVICE_ID_CAP, BTP_CAP_EV_DISCOVERY_COMPLETED, &ev, sizeof(ev)); in btp_send_discovery_completed_ev() 83 struct btp_cap_unicast_start_completed_ev ev; in btp_send_cap_unicast_start_completed_ev() local 85 ev.cig_id = cig_id; in btp_send_cap_unicast_start_completed_ev() 86 ev.status = status; in btp_send_cap_unicast_start_completed_ev() 88 tester_event(BTP_SERVICE_ID_CAP, BTP_CAP_EV_UNICAST_START_COMPLETED, &ev, sizeof(ev)); in btp_send_cap_unicast_start_completed_ev() 93 struct btp_cap_unicast_stop_completed_ev ev; in btp_send_cap_unicast_stop_completed_ev() local 95 ev.cig_id = cig_id; in btp_send_cap_unicast_stop_completed_ev() [all …]
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_nrfx.c | 390 static inline void usbd_evt_free(struct usbd_event *ev) in usbd_evt_free() argument 392 k_mem_slab_free(&fifo_elem_slab, (void *)ev->block.data); in usbd_evt_free() 400 static inline void usbd_evt_put(struct usbd_event *ev) in usbd_evt_put() argument 402 k_fifo_put(&usbd_evt_fifo, ev); in usbd_evt_put() 418 struct usbd_event *ev; in usbd_evt_flush() local 421 ev = usbd_evt_get(); in usbd_evt_flush() 422 if (ev) { in usbd_evt_flush() 423 usbd_evt_free(ev); in usbd_evt_flush() 425 } while (ev != NULL); in usbd_evt_flush() 437 struct usbd_event *ev; in usbd_evt_alloc() local [all …]
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_kinetis.c | 445 struct usbfsotg_ep_event *ev; in usbfsotg_event_submit() local 448 ret = k_mem_slab_alloc(&usbfsotg_ee_slab, (void **)&ev, K_NO_WAIT); in usbfsotg_event_submit() 455 ev->dev = dev; in usbfsotg_event_submit() 456 ev->ep = ep; in usbfsotg_event_submit() 457 ev->event = event; in usbfsotg_event_submit() 458 k_fifo_put(&priv->fifo, ev); in usbfsotg_event_submit() 464 struct usbfsotg_ep_event *ev; in xfer_work_handler() local 468 while ((ev = k_fifo_get(&priv->fifo, K_NO_WAIT)) != NULL) { in xfer_work_handler() 473 ev->dev, ev->ep, ev->event); in xfer_work_handler() 474 ep_cfg = udc_get_ep_cfg(ev->dev, ev->ep); in xfer_work_handler() [all …]
|
D | udc_mcux_ehci.c | 414 struct udc_mcux_event *ev; in udc_mcux_event_submit() local 417 ret = k_mem_slab_alloc(&udc_event_slab, (void **)&ev, K_NO_WAIT); in udc_mcux_event_submit() 424 ev->dev = dev; in udc_mcux_event_submit() 425 ev->mcux_msg = *mcux_msg; in udc_mcux_event_submit() 426 k_fifo_put(&priv->fifo, ev); in udc_mcux_event_submit() 432 struct udc_mcux_event *ev; in udc_mcux_work_handler() local 439 while ((ev = k_fifo_get(&priv->fifo, K_NO_WAIT)) != NULL) { in udc_mcux_work_handler() 440 mcux_msg = &ev->mcux_msg; in udc_mcux_work_handler() 445 udc_mcux_control(ev->dev, kUSB_DeviceControlSetDefaultStatus, NULL); in udc_mcux_work_handler() 446 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler() [all …]
|
D | udc_mcux_ip3511.c | 414 struct udc_mcux_event *ev; in udc_mcux_event_submit() local 417 ret = k_mem_slab_alloc(&udc_event_slab, (void **)&ev, K_NO_WAIT); in udc_mcux_event_submit() 424 ev->dev = dev; in udc_mcux_event_submit() 425 ev->mcux_msg = *mcux_msg; in udc_mcux_event_submit() 426 k_fifo_put(&priv->fifo, ev); in udc_mcux_event_submit() 432 struct udc_mcux_event *ev; in udc_mcux_work_handler() local 439 while ((ev = k_fifo_get(&priv->fifo, K_NO_WAIT)) != NULL) { in udc_mcux_work_handler() 440 mcux_msg = &ev->mcux_msg; in udc_mcux_work_handler() 445 udc_mcux_control(ev->dev, kUSB_DeviceControlSetDefaultStatus, NULL); in udc_mcux_work_handler() 446 cfg = udc_get_ep_cfg(ev->dev, USB_CONTROL_EP_OUT); in udc_mcux_work_handler() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | adv.c | 177 static struct bt_mesh_adv *process_events(struct k_poll_event *ev, int count) in process_events() argument 179 for (; count; ev++, count--) { in process_events() 180 LOG_DBG("ev->state %u", ev->state); in process_events() 182 switch (ev->state) { in process_events() 184 return k_fifo_get(ev->fifo, K_NO_WAIT); in process_events() 189 LOG_WRN("Unexpected k_poll event state %u", ev->state); in process_events()
|
/Zephyr-latest/subsys/fs/fcb/ |
D | fcb_priv.h | 44 const uint8_t ev = fcbp->f_erase_value; in fcb_flash_magic() local 46 return (fcbp->f_magic ^ ~MK32(ev)); in fcb_flash_magic()
|
/Zephyr-latest/samples/bluetooth/hci_uart_3wire/src/ |
D | main.c | 580 static void process_events(struct k_poll_event *ev, int count) in process_events() argument 588 for (; count; ev++, count--) { in process_events() 589 LOG_DBG("ev->state %u", ev->state); in process_events() 591 switch (ev->state) { in process_events() 602 if (ev->tag == 0) { in process_events() 613 } else if (ev->tag == 2) { in process_events() 632 LOG_WRN("Unexpected k_poll event state %u", ev->state); in process_events()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_service.c | 125 struct net_socket_service_event ev = *pev; in net_socket_service_callback() local 127 ev.callback(&ev); in net_socket_service_callback()
|
/Zephyr-latest/drivers/usb/uhc/ |
D | uhc_virtual.c | 315 struct uhc_vrt_event *ev; in xfer_work_handler() local 317 while ((ev = k_fifo_get(&priv->fifo, K_NO_WAIT)) != NULL) { in xfer_work_handler() 321 switch (ev->type) { in xfer_work_handler() 323 err = vrt_handle_reply(dev, ev->pkt); in xfer_work_handler() 356 k_mem_slab_free(&uhc_vrt_slab, (void *)ev); in xfer_work_handler()
|