Home
last modified time | relevance | path

Searched refs:evt (Results 1 – 25 of 31) sorted by relevance

12

/AliOS-Things-master/components/ble_host/bt_host/host/
A Dhci_ecc.c100 hdr->evt = BT_HCI_EVT_CMD_STATUS; in send_cmd_status()
101 hdr->len = sizeof(*evt); in send_cmd_status()
103 evt = net_buf_add(buf, sizeof(*evt)); in send_cmd_status()
104 evt->ncmd = 1U; in send_cmd_status()
106 evt->status = status; in send_cmd_status()
154 evt = net_buf_add(buf, sizeof(*evt)); in emulate_le_p256_public_key_cmd()
155 evt->status = status; in emulate_le_p256_public_key_cmd()
158 (void)memset(evt->key, 0, sizeof(evt->key)); in emulate_le_p256_public_key_cmd()
205 evt = net_buf_add(buf, sizeof(*evt)); in emulate_le_generate_dhkey()
209 (void)memset(evt->dhkey, 0, sizeof(evt->dhkey)); in emulate_le_generate_dhkey()
[all …]
A Dhci_core.c2362 evt->status, handle, evt->role, bt_addr_le_str(&evt->peer_addr), in enh_conn_complete()
2681 evt->status, evt->tx_phy, evt->rx_phy); in le_phy_update_complete()
3507 bt_addr_str(&evt->bdaddr), evt->capability, evt->authentication); in io_capa_resp()
3836 evt = net_buf_pull_mem(buf, sizeof(*evt)); in inquiry_result_with_rssi()
4071 if (!evt->status && evt->page == 0x01) { in read_remote_ext_features_complete()
4601 evt = net_buf_pull_mem(buf, sizeof(*evt)); in bt_hci_evt_read_remote_version_complete()
4866 evt = net_buf_pull_mem(buf, sizeof(*evt)); in hci_cmd_complete()
4891 evt = net_buf_pull_mem(buf, sizeof(*evt)); in hci_cmd_status()
5465 adv_info.rssi = evt->data[evt->length]; in le_adv_report()
5512 evt->status, evt->adv_handle, evt->conn_handle, in le_adv_set_terminated()
[all …]
A Dhci_api.c142 for (i = 0; i < evt->num_handles; i++) { in hci_num_completed_packets()
206 struct bt_hci_evt_cmd_complete *evt; in hci_cmd_complete() local
210 evt = net_buf_pull_mem(buf, sizeof(*evt)); in hci_cmd_complete()
211 ncmd = evt->ncmd; in hci_cmd_complete()
212 opcode = sys_le16_to_cpu(evt->opcode); in hci_cmd_complete()
231 struct bt_hci_evt_cmd_status *evt; in hci_cmd_status() local
235 evt = net_buf_pull_mem(buf, sizeof(*evt)); in hci_cmd_status()
236 opcode = sys_le16_to_cpu(evt->opcode); in hci_cmd_status()
237 ncmd = evt->ncmd; in hci_cmd_status()
241 hci_cmd_done(opcode, evt->status, buf); in hci_cmd_status()
[all …]
A Dmonitor.c61 atomic_t evt; member
115 encode_drops(hdr, BT_MONITOR_EVENT_DROPS, &drops.evt); in encode_hdr()
134 atomic_inc(&drops.evt); in drop_add()
/AliOS-Things-master/components/SDL2/src/video/directfb/
A DSDL_DirectFB_events.c185 if (ClientXY(windata, &evt->x, &evt->y)) { in ProcessWindowEvent()
194 MotionAllMice(_this, evt->x, evt->y); in ProcessWindowEvent()
199 if (ClientXY(windata, &evt->x, &evt->y)) { in ProcessWindowEvent()
213 if (ClientXY(windata, &evt->x, &evt->y)) { in ProcessWindowEvent()
254 if (ClientXY(windata, &evt->x, &evt->y)) { in ProcessWindowEvent()
256 evt->x, evt->y); in ProcessWindowEvent()
260 if (ClientXY(windata, &evt->x, &evt->y)) { in ProcessWindowEvent()
262 evt->x, evt->y); in ProcessWindowEvent()
272 evt->w, evt->h); in ProcessWindowEvent()
291 if (ClientXY(windata, &evt->x, &evt->y)) in ProcessWindowEvent()
[all …]
A DSDL_DirectFB_WM.c301 switch (evt->type) { in DirectFB_WM_ProcessEvent()
303 if (evt->buttons & DIBM_LEFT) { in DirectFB_WM_ProcessEvent()
304 int pos = WMPos(windata, evt->x, evt->y); in DirectFB_WM_ProcessEvent()
333 windata->wm_lastx = evt->cx; in DirectFB_WM_ProcessEvent()
334 windata->wm_lasty = evt->cy; in DirectFB_WM_ProcessEvent()
341 if (!(evt->buttons & DIBM_LEFT)) { in DirectFB_WM_ProcessEvent()
372 if (evt->buttons & DIBM_LEFT) { in DirectFB_WM_ProcessEvent()
373 int dx = evt->cx - windata->wm_lastx; in DirectFB_WM_ProcessEvent()
374 int dy = evt->cy - windata->wm_lasty; in DirectFB_WM_ProcessEvent()
398 windata->wm_lastx = evt->cx; in DirectFB_WM_ProcessEvent()
[all …]
A DSDL_DirectFB_WM.h48 DFBWindowEvent * evt);
/AliOS-Things-master/components/epoll/example/
A Dtest_device.c77 dev_event_t *evt; in _event_write() local
81 dlist_del(&evt->node); in _event_write()
84 evt = (dev_event_t *)aos_malloc(sizeof(*evt) + len); in _event_write()
87 if (evt == NULL) { in _event_write()
94 evt->len = len; in _event_write()
95 memcpy(evt->buf, buf, len); in _event_write()
97 dlist_add(&evt->node, &pdev->bufs); in _event_write()
143 dlist_del(&evt->node); in event_read()
144 cnt = (len > evt->len) ? evt->len : len; in event_read()
145 memcpy(buf, evt->buf, cnt); in event_read()
[all …]
/AliOS-Things-master/components/select/example/
A Dtest_device.c77 dev_event_t *evt; in _event_write() local
81 dlist_del(&evt->node); in _event_write()
84 evt = (dev_event_t *)aos_malloc(sizeof(*evt) + len); in _event_write()
87 if (evt == NULL) { in _event_write()
94 evt->len = len; in _event_write()
95 memcpy(evt->buf, buf, len); in _event_write()
97 dlist_add(&evt->node, &pdev->bufs); in _event_write()
143 dlist_del(&evt->node); in event_read()
144 cnt = (len > evt->len) ? evt->len : len; in event_read()
145 memcpy(buf, evt->buf, cnt); in event_read()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/hci_driver/
A Dhci_driver.c72 struct bt_hci_evt_hdr evt; member
97 struct bt_hci_evt_hdr *hdr = &rx.evt; in get_evt_hdr()
102 if (rx.evt.evt == BT_HCI_EVT_LE_META_EVENT) { in get_evt_hdr()
107 if (rx.evt.evt == BT_HCI_EVT_LE_META_EVENT && in get_evt_hdr()
136 BT_DBG("type 0x%02x, evt 0x%02x", rx.type, rx.evt.evt); in get_rx()
138 if (rx.type == H4_EVT && (rx.evt.evt == BT_HCI_EVT_CMD_COMPLETE || in get_rx()
139 rx.evt.evt == BT_HCI_EVT_CMD_STATUS)) { in get_rx()
183 BT_WARN("Discarding event 0x%02x", rx.evt.evt); in h4_receive()
198 prio = (rx.type == H4_EVT && bt_hci_evt_is_prio(rx.evt.evt)); in h4_receive()
300 if (evt == HCI_IF_EVT_OPENED) { in hci_if_callback()
[all …]
/AliOS-Things-master/components/linkkit/include/linkkit/infra/
A Dinfra_compat.h127 #define IOT_RegisterCallback(evt, cb) iotx_register_for_##evt(cb) argument
128 #define DECLARE_EVENT_CALLBACK(evt, cb) int iotx_register_for_##evt(cb); argument
129 #define DEFINE_EVENT_CALLBACK(evt, cb) \ argument
130 int iotx_register_for_##evt(cb) \
132 if (evt < 0 || \
133 evt >= sizeof(g_impl_event_map) / sizeof(impl_event_map_t)) { \
136 g_impl_event_map[evt].callback = (void *)callback; \
178 void *iotx_event_callback(int evt);
/AliOS-Things-master/components/ble_host/bt_host/hci_driver/
A Dh4_driver.c66 struct bt_hci_evt_hdr evt; member
189 hdr.evt = *pdata++; in hci_event_recv()
196 if (hdr.evt == BT_HCI_EVT_LE_META_EVENT) { in hci_event_recv()
204 if (hdr.evt == BT_HCI_EVT_CMD_COMPLETE || in hci_event_recv()
205 hdr.evt == BT_HCI_EVT_CMD_STATUS) { in hci_event_recv()
233 if (bt_hci_evt_is_prio(hdr.evt)) { in hci_event_recv()
338 hci_h4.rx.remaining = sizeof(hci_h4.rx.evt); in h4_get_type()
368 struct bt_hci_evt_hdr *hdr = &hci_h4.rx.evt; in get_evt_hdr()
397 … if (hci_h4.rx.evt.evt == BT_HCI_EVT_CMD_COMPLETE || hci_h4.rx.evt.evt == BT_HCI_EVT_CMD_STATUS) { in read_payload()
406 BT_DBG("Discarding event 0x%02x", hci_h4.rx.evt.evt); in read_payload()
[all …]
A Dh5_driver.c104 hdr.evt = *pdata++; in hci_h5_event_recv()
111 if (hdr.evt == BT_HCI_EVT_LE_META_EVENT) { in hci_h5_event_recv()
119 if (hdr.evt == BT_HCI_EVT_CMD_COMPLETE || in hci_h5_event_recv()
120 hdr.evt == BT_HCI_EVT_CMD_STATUS) { in hci_h5_event_recv()
148 if (bt_hci_evt_is_prio(hdr.evt)) { in hci_h5_event_recv()
/AliOS-Things-master/hardware/chip/haas1000/drivers/apps/key/
A Dapp_key.h9 #define APP_KEY_SET_MESSAGE(appevt, code, evt) (appevt = (((uint32_t)code&0xffffff)<<8)|(evt&0xff)) argument
11 #define APP_KEY_GET_EVENT(appevt, evt) (evt = appevt&0xff) argument
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/common/src/
A Dbt_vendor_drv.c23 static bool bt_vendor_init_callback(T_HCI_IF_EVT evt, bool status, uint8_t *p_buf, uint32_t len) in bt_vendor_init_callback() argument
25 if (evt == HCI_IF_EVT_OPENED) { in bt_vendor_init_callback()
35 … printf("Other event enter bt_vendor_init_callback! evt = 0x%x, status = 0x%x\r\n", evt, status); in bt_vendor_init_callback()
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/
A Dhci_driver.h47 static inline bool bt_hci_evt_is_prio(u8_t evt) in bt_hci_evt_is_prio() argument
49 switch (evt) { in bt_hci_evt_is_prio()
A Dbuf.h104 struct net_buf *bt_buf_get_evt(u8_t evt, bool discardable, k_timeout_t timeout);
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11events.c453 XEvent evt; in InitiateWindowMove() local
459 evt.xclient.type = ClientMessage; in InitiateWindowMove()
462 evt.xclient.format = 32; in InitiateWindowMove()
466 evt.xclient.data.l[3] = Button1; in InitiateWindowMove()
467 evt.xclient.data.l[4] = 0; in InitiateWindowMove()
479 XEvent evt; in InitiateWindowResize() local
488 evt.xclient.type = ClientMessage; in InitiateWindowResize()
491 evt.xclient.format = 32; in InitiateWindowResize()
494 evt.xclient.data.l[2] = direction; in InitiateWindowResize()
495 evt.xclient.data.l[3] = Button1; in InitiateWindowResize()
[all …]
/AliOS-Things-master/components/linkkit/infra/
A Dinfra_compat.c323 void *iotx_event_callback(int evt) in iotx_event_callback() argument
325 if (evt < 0 || evt >= sizeof(g_impl_event_map) / sizeof(impl_event_map_t)) { in iotx_event_callback()
328 return g_impl_event_map[evt].callback; in iotx_event_callback()
/AliOS-Things-master/components/linkkit/include/linkkit/
A Ddev_reset_api.h17 typedef void (*iotx_devrst_evt_handle_t)(iotx_devrst_evt_type_t evt, void *msg);
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/common/inc/
A Dhci_if.h24 typedef bool (*P_HCI_IF_CALLBACK)(T_HCI_IF_EVT evt, bool status, uint8_t *p_buf, uint32_t len);
/AliOS-Things-master/components/amp/libjs/
A Dbuild.js29 watch('./lib', { recursive: true }, function(evt, name) { argument
/AliOS-Things-master/components/a2sa/src/framework/
A Dsound_pcm.c94 aos_event_new(&((*pcm)->evt), 0); in aos_pcm_open()
116 aos_event_new(&((*pcm)->evt), 0); in aos_pcm_open()
187 …aos_event_get(&pcm->evt, AOS_PCM_EVT_READ | AOS_PCM_EVT_XRUN, AOS_EVENT_OR_CLEAR, &actl_flags, tim… in aos_pcm_wait()
449 params.hdl = &pcm->evt; in aos_pcm_sw_params()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/bt_if_enhanced/inc/
A Dbt_if.h58 typedef void (*pairing_callback_t) (enum pair_event evt, const btif_event_t *event);
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_usbhost.h83 typedef void (*HAL_USBHOST_PORT_HANDLER)(enum HAL_USBHOST_PORT_EVENT_T evt);

Completed in 59 milliseconds

12