• Home
  • Raw
  • Download

Lines Matching refs:p_msg

65     tBTA_DM_API_ENABLE    *p_msg;  in BTA_EnableBluetooth()  local
79 if ((p_msg = (tBTA_DM_API_ENABLE *) GKI_getbuf(sizeof(tBTA_DM_API_ENABLE))) != NULL) in BTA_EnableBluetooth()
81 p_msg->hdr.event = BTA_DM_API_ENABLE_EVT; in BTA_EnableBluetooth()
82 p_msg->p_sec_cback = p_cback; in BTA_EnableBluetooth()
83 bta_sys_sendmsg(p_msg); in BTA_EnableBluetooth()
103 BT_HDR *p_msg; in BTA_DisableBluetooth() local
105 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) in BTA_DisableBluetooth()
107 p_msg->event = BTA_DM_API_DISABLE_EVT; in BTA_DisableBluetooth()
108 bta_sys_sendmsg(p_msg); in BTA_DisableBluetooth()
130 BT_HDR *p_msg; in BTA_EnableTestMode() local
134 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) in BTA_EnableTestMode()
136 p_msg->event = BTA_DM_API_ENABLE_TEST_MODE_EVT; in BTA_EnableTestMode()
137 bta_sys_sendmsg(p_msg); in BTA_EnableTestMode()
155 BT_HDR *p_msg; in BTA_DisableTestMode() local
159 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) in BTA_DisableTestMode()
161 p_msg->event = BTA_DM_API_DISABLE_TEST_MODE_EVT; in BTA_DisableTestMode()
162 bta_sys_sendmsg(p_msg); in BTA_DisableTestMode()
179 tBTA_DM_API_SET_NAME *p_msg; in BTA_DmSetDeviceName() local
181 if ((p_msg = (tBTA_DM_API_SET_NAME *) GKI_getbuf(sizeof(tBTA_DM_API_SET_NAME))) != NULL) in BTA_DmSetDeviceName()
183 p_msg->hdr.event = BTA_DM_API_SET_NAME_EVT; in BTA_DmSetDeviceName()
185 BCM_STRNCPY_S((char*)p_msg->name, sizeof(p_msg->name), p_name, BD_NAME_LEN-1); in BTA_DmSetDeviceName()
186 p_msg->name[BD_NAME_LEN-1]=0; in BTA_DmSetDeviceName()
188 bta_sys_sendmsg(p_msg); in BTA_DmSetDeviceName()
208 tBTA_DM_API_SET_VISIBILITY *p_msg; in BTA_DmSetVisibility() local
210 if ((p_msg = (tBTA_DM_API_SET_VISIBILITY *) GKI_getbuf(sizeof(tBTA_DM_MSG))) != NULL) in BTA_DmSetVisibility()
212 p_msg->hdr.event = BTA_DM_API_SET_VISIBILITY_EVT; in BTA_DmSetVisibility()
213 p_msg->disc_mode = disc_mode; in BTA_DmSetVisibility()
214 p_msg->conn_mode = conn_mode; in BTA_DmSetVisibility()
215 p_msg->pair_mode = pairable_mode; in BTA_DmSetVisibility()
216 p_msg->conn_paired_only = conn_filter; in BTA_DmSetVisibility()
219 bta_sys_sendmsg(p_msg); in BTA_DmSetVisibility()
240 tBTA_DM_API_SEARCH *p_msg; in BTA_DmSearch() local
242 if ((p_msg = (tBTA_DM_API_SEARCH *) GKI_getbuf(sizeof(tBTA_DM_API_SEARCH))) != NULL) in BTA_DmSearch()
244 memset(p_msg, 0, sizeof(tBTA_DM_API_SEARCH)); in BTA_DmSearch()
246 p_msg->hdr.event = BTA_DM_API_SEARCH_EVT; in BTA_DmSearch()
247 memcpy(&p_msg->inq_params, p_dm_inq, sizeof(tBTA_DM_INQ)); in BTA_DmSearch()
248 p_msg->services = services; in BTA_DmSearch()
249 p_msg->p_cback = p_cback; in BTA_DmSearch()
250 p_msg->rs_res = BTA_DM_RS_NONE; in BTA_DmSearch()
251 bta_sys_sendmsg(p_msg); in BTA_DmSearch()
269 BT_HDR *p_msg; in BTA_DmSearchCancel() local
271 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) in BTA_DmSearchCancel()
273 p_msg->event = BTA_DM_API_SEARCH_CANCEL_EVT; in BTA_DmSearchCancel()
274 bta_sys_sendmsg(p_msg); in BTA_DmSearchCancel()
293 tBTA_DM_API_DISCOVER *p_msg; in BTA_DmDiscover() local
295 if ((p_msg = (tBTA_DM_API_DISCOVER *) GKI_getbuf(sizeof(tBTA_DM_API_DISCOVER))) != NULL) in BTA_DmDiscover()
297 memset(p_msg, 0, sizeof(tBTA_DM_API_DISCOVER)); in BTA_DmDiscover()
299 p_msg->hdr.event = BTA_DM_API_DISCOVER_EVT; in BTA_DmDiscover()
300 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmDiscover()
301 p_msg->services = services; in BTA_DmDiscover()
302 p_msg->p_cback = p_cback; in BTA_DmDiscover()
303 p_msg->sdp_search = sdp_search; in BTA_DmDiscover()
304 bta_sys_sendmsg(p_msg); in BTA_DmDiscover()
323 tBTA_DM_API_DISCOVER *p_msg; in BTA_DmDiscoverUUID() local
325 if ((p_msg = (tBTA_DM_API_DISCOVER *) GKI_getbuf(sizeof(tBTA_DM_API_DISCOVER))) != NULL) in BTA_DmDiscoverUUID()
327 p_msg->hdr.event = BTA_DM_API_DISCOVER_EVT; in BTA_DmDiscoverUUID()
328 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmDiscoverUUID()
329 p_msg->services = BTA_USER_SERVICE_MASK; //Not exposed at API level in BTA_DmDiscoverUUID()
330 p_msg->p_cback = p_cback; in BTA_DmDiscoverUUID()
331 p_msg->sdp_search = sdp_search; in BTA_DmDiscoverUUID()
334 p_msg->num_uuid = 0; in BTA_DmDiscoverUUID()
335 p_msg->p_uuid = NULL; in BTA_DmDiscoverUUID()
337 memcpy( &p_msg->uuid, uuid, sizeof(tSDP_UUID) ); in BTA_DmDiscoverUUID()
338 bta_sys_sendmsg(p_msg); in BTA_DmDiscoverUUID()
356 tBTA_DM_API_BOND *p_msg; in BTA_DmBond() local
358 p_msg = (tBTA_DM_API_BOND *) GKI_getbuf(sizeof(tBTA_DM_API_BOND)); in BTA_DmBond()
359 if (p_msg != NULL) in BTA_DmBond()
361 p_msg->hdr.event = BTA_DM_API_BOND_EVT; in BTA_DmBond()
362 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBond()
363 p_msg->transport = BTA_TRANSPORT_UNKNOWN; in BTA_DmBond()
364 bta_sys_sendmsg(p_msg); in BTA_DmBond()
381 tBTA_DM_API_BOND *p_msg; in BTA_DmBondByTransport() local
383 if ((p_msg = (tBTA_DM_API_BOND *) GKI_getbuf(sizeof(tBTA_DM_API_BOND))) != NULL) in BTA_DmBondByTransport()
385 p_msg->hdr.event = BTA_DM_API_BOND_EVT; in BTA_DmBondByTransport()
386 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBondByTransport()
387 p_msg->transport = transport; in BTA_DmBondByTransport()
388 bta_sys_sendmsg(p_msg); in BTA_DmBondByTransport()
407 tBTA_DM_API_BOND_CANCEL *p_msg; in BTA_DmBondCancel() local
409 if ((p_msg = (tBTA_DM_API_BOND_CANCEL *) GKI_getbuf(sizeof(tBTA_DM_API_BOND_CANCEL))) != NULL) in BTA_DmBondCancel()
411 p_msg->hdr.event = BTA_DM_API_BOND_CANCEL_EVT; in BTA_DmBondCancel()
412 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBondCancel()
413 bta_sys_sendmsg(p_msg); in BTA_DmBondCancel()
433 tBTA_DM_API_PIN_REPLY *p_msg; in BTA_DmPinReply() local
435 if ((p_msg = (tBTA_DM_API_PIN_REPLY *) GKI_getbuf(sizeof(tBTA_DM_API_PIN_REPLY))) != NULL) in BTA_DmPinReply()
437 p_msg->hdr.event = BTA_DM_API_PIN_REPLY_EVT; in BTA_DmPinReply()
438 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmPinReply()
439 p_msg->accept = accept; in BTA_DmPinReply()
442 p_msg->pin_len = pin_len; in BTA_DmPinReply()
443 memcpy(p_msg->p_pin, p_pin, pin_len); in BTA_DmPinReply()
445 bta_sys_sendmsg(p_msg); in BTA_DmPinReply()
466 tBTA_DM_API_LOC_OOB *p_msg; in BTA_DmLocalOob() local
468 if ((p_msg = (tBTA_DM_API_LOC_OOB *) GKI_getbuf(sizeof(tBTA_DM_API_LOC_OOB))) != NULL) in BTA_DmLocalOob()
470 p_msg->hdr.event = BTA_DM_API_LOC_OOB_EVT; in BTA_DmLocalOob()
471 bta_sys_sendmsg(p_msg); in BTA_DmLocalOob()
487 tBTA_DM_API_CONFIRM *p_msg; in BTA_DmConfirm() local
489 if ((p_msg = (tBTA_DM_API_CONFIRM *) GKI_getbuf(sizeof(tBTA_DM_API_CONFIRM))) != NULL) in BTA_DmConfirm()
491 p_msg->hdr.event = BTA_DM_API_CONFIRM_EVT; in BTA_DmConfirm()
492 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmConfirm()
493 p_msg->accept = accept; in BTA_DmConfirm()
494 bta_sys_sendmsg(p_msg); in BTA_DmConfirm()
514 tBTA_DM_API_ADD_DEVICE *p_msg; in BTA_DmAddDevice() local
516 if ((p_msg = (tBTA_DM_API_ADD_DEVICE *) GKI_getbuf(sizeof(tBTA_DM_API_ADD_DEVICE))) != NULL) in BTA_DmAddDevice()
518 memset (p_msg, 0, sizeof(tBTA_DM_API_ADD_DEVICE)); in BTA_DmAddDevice()
520 p_msg->hdr.event = BTA_DM_API_ADD_DEVICE_EVT; in BTA_DmAddDevice()
521 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmAddDevice()
522 p_msg->tm = trusted_mask; in BTA_DmAddDevice()
523 p_msg->is_trusted = is_trusted; in BTA_DmAddDevice()
524 p_msg->io_cap = io_cap; in BTA_DmAddDevice()
528 p_msg->link_key_known = TRUE; in BTA_DmAddDevice()
529 p_msg->key_type = key_type; in BTA_DmAddDevice()
530 memcpy(p_msg->link_key, link_key, LINK_KEY_LEN); in BTA_DmAddDevice()
536 p_msg->dc_known = TRUE; in BTA_DmAddDevice()
537 memcpy (p_msg->dc, dev_class, DEV_CLASS_LEN); in BTA_DmAddDevice()
540 memset (p_msg->bd_name, 0, BD_NAME_LEN + 1); in BTA_DmAddDevice()
541 memset (p_msg->features, 0, sizeof (p_msg->features)); in BTA_DmAddDevice()
542 p_msg->pin_length = pin_length; in BTA_DmAddDevice()
544 bta_sys_sendmsg(p_msg); in BTA_DmAddDevice()
562 tBTA_DM_API_REMOVE_DEVICE *p_msg; in BTA_DmRemoveDevice() local
564 … if ((p_msg = (tBTA_DM_API_REMOVE_DEVICE *) GKI_getbuf(sizeof(tBTA_DM_API_REMOVE_DEVICE))) != NULL) in BTA_DmRemoveDevice()
566 memset (p_msg, 0, sizeof(tBTA_DM_API_REMOVE_DEVICE)); in BTA_DmRemoveDevice()
568 p_msg->hdr.event = BTA_DM_API_REMOVE_DEVICE_EVT; in BTA_DmRemoveDevice()
569 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmRemoveDevice()
570 bta_sys_sendmsg(p_msg); in BTA_DmRemoveDevice()
691 tBTA_DM_API_EXECUTE_CBACK *p_msg; in bta_dmexecutecallback() local
693 if ((p_msg = (tBTA_DM_API_EXECUTE_CBACK *) GKI_getbuf(sizeof(tBTA_DM_MSG))) != NULL) in bta_dmexecutecallback()
695 p_msg->hdr.event = BTA_DM_API_EXECUTE_CBACK_EVT; in bta_dmexecutecallback()
696 p_msg->p_param= p_param; in bta_dmexecutecallback()
697 p_msg->p_exec_cback= p_callback; in bta_dmexecutecallback()
698 bta_sys_sendmsg(p_msg); in bta_dmexecutecallback()
722 tBTA_DM_API_ADD_BLEKEY *p_msg; in BTA_DmAddBleKey() local
724 if ((p_msg = (tBTA_DM_API_ADD_BLEKEY *) GKI_getbuf(sizeof(tBTA_DM_API_ADD_BLEKEY))) != NULL) in BTA_DmAddBleKey()
726 memset (p_msg, 0, sizeof(tBTA_DM_API_ADD_BLEKEY)); in BTA_DmAddBleKey()
728 p_msg->hdr.event = BTA_DM_API_ADD_BLEKEY_EVT; in BTA_DmAddBleKey()
729 p_msg->key_type = key_type; in BTA_DmAddBleKey()
730 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmAddBleKey()
731 memcpy(&p_msg->blekey, p_le_key, sizeof(tBTA_LE_KEY_VALUE)); in BTA_DmAddBleKey()
733 bta_sys_sendmsg(p_msg); in BTA_DmAddBleKey()
757 tBTA_DM_API_ADD_BLE_DEVICE *p_msg; in BTA_DmAddBleDevice() local
759 …if ((p_msg = (tBTA_DM_API_ADD_BLE_DEVICE *) GKI_getbuf(sizeof(tBTA_DM_API_ADD_BLE_DEVICE))) != NUL… in BTA_DmAddBleDevice()
761 memset (p_msg, 0, sizeof(tBTA_DM_API_ADD_BLE_DEVICE)); in BTA_DmAddBleDevice()
763 p_msg->hdr.event = BTA_DM_API_ADD_BLEDEVICE_EVT; in BTA_DmAddBleDevice()
764 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmAddBleDevice()
765 p_msg->addr_type = addr_type; in BTA_DmAddBleDevice()
766 p_msg->dev_type = dev_type; in BTA_DmAddBleDevice()
768 bta_sys_sendmsg(p_msg); in BTA_DmAddBleDevice()
789 tBTA_DM_API_PASSKEY_REPLY *p_msg; in BTA_DmBlePasskeyReply() local
791 … if ((p_msg = (tBTA_DM_API_PASSKEY_REPLY *) GKI_getbuf(sizeof(tBTA_DM_API_PASSKEY_REPLY))) != NULL) in BTA_DmBlePasskeyReply()
793 memset(p_msg, 0, sizeof(tBTA_DM_API_PASSKEY_REPLY)); in BTA_DmBlePasskeyReply()
795 p_msg->hdr.event = BTA_DM_API_BLE_PASSKEY_REPLY_EVT; in BTA_DmBlePasskeyReply()
796 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBlePasskeyReply()
797 p_msg->accept = accept; in BTA_DmBlePasskeyReply()
801 p_msg->passkey = passkey; in BTA_DmBlePasskeyReply()
803 bta_sys_sendmsg(p_msg); in BTA_DmBlePasskeyReply()
822 tBTA_DM_API_CONFIRM *p_msg = (tBTA_DM_API_CONFIRM *)GKI_getbuf(sizeof(tBTA_DM_API_CONFIRM)); in BTA_DmBleConfirmReply() local
823 if (p_msg != NULL) in BTA_DmBleConfirmReply()
825 memset(p_msg, 0, sizeof(tBTA_DM_API_CONFIRM)); in BTA_DmBleConfirmReply()
826 p_msg->hdr.event = BTA_DM_API_BLE_CONFIRM_REPLY_EVT; in BTA_DmBleConfirmReply()
827 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBleConfirmReply()
828 p_msg->accept = accept; in BTA_DmBleConfirmReply()
829 bta_sys_sendmsg(p_msg); in BTA_DmBleConfirmReply()
849 tBTA_DM_API_BLE_SEC_GRANT *p_msg; in BTA_DmBleSecurityGrant() local
851 … if ((p_msg = (tBTA_DM_API_BLE_SEC_GRANT *) GKI_getbuf(sizeof(tBTA_DM_API_BLE_SEC_GRANT))) != NULL) in BTA_DmBleSecurityGrant()
853 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_SEC_GRANT)); in BTA_DmBleSecurityGrant()
855 p_msg->hdr.event = BTA_DM_API_BLE_SEC_GRANT_EVT; in BTA_DmBleSecurityGrant()
856 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBleSecurityGrant()
857 p_msg->res = res; in BTA_DmBleSecurityGrant()
859 bta_sys_sendmsg(p_msg); in BTA_DmBleSecurityGrant()
887 tBTA_DM_API_BLE_CONN_PARAMS *p_msg; in BTA_DmSetBlePrefConnParams() local
889 …if ((p_msg = (tBTA_DM_API_BLE_CONN_PARAMS *) GKI_getbuf(sizeof(tBTA_DM_API_BLE_CONN_PARAMS))) != N… in BTA_DmSetBlePrefConnParams()
891 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_CONN_PARAMS)); in BTA_DmSetBlePrefConnParams()
893 p_msg->hdr.event = BTA_DM_API_BLE_CONN_PARAM_EVT; in BTA_DmSetBlePrefConnParams()
895 memcpy(p_msg->peer_bda, bd_addr, BD_ADDR_LEN); in BTA_DmSetBlePrefConnParams()
897 p_msg->conn_int_max = max_conn_int; in BTA_DmSetBlePrefConnParams()
898 p_msg->conn_int_min = min_conn_int; in BTA_DmSetBlePrefConnParams()
899 p_msg->slave_latency = slave_latency; in BTA_DmSetBlePrefConnParams()
900 p_msg->supervision_tout = supervision_tout; in BTA_DmSetBlePrefConnParams()
902 bta_sys_sendmsg(p_msg); in BTA_DmSetBlePrefConnParams()
922 tBTA_DM_API_BLE_SCAN_PARAMS *p_msg; in BTA_DmSetBleConnScanParams() local
923 …if ((p_msg = (tBTA_DM_API_BLE_SCAN_PARAMS *)GKI_getbuf(sizeof(tBTA_DM_API_BLE_SCAN_PARAMS))) != NU… in BTA_DmSetBleConnScanParams()
925 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_SCAN_PARAMS)); in BTA_DmSetBleConnScanParams()
926 p_msg->hdr.event = BTA_DM_API_BLE_CONN_SCAN_PARAM_EVT; in BTA_DmSetBleConnScanParams()
927 p_msg->scan_int = scan_interval; in BTA_DmSetBleConnScanParams()
928 p_msg->scan_window = scan_window; in BTA_DmSetBleConnScanParams()
929 bta_sys_sendmsg(p_msg); in BTA_DmSetBleConnScanParams()
952 tBTA_DM_API_BLE_SCAN_PARAMS *p_msg; in BTA_DmSetBleScanParams() local
954 …if ((p_msg = (tBTA_DM_API_BLE_SCAN_PARAMS *)GKI_getbuf(sizeof(tBTA_DM_API_BLE_SCAN_PARAMS))) != NU… in BTA_DmSetBleScanParams()
956 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_SCAN_PARAMS)); in BTA_DmSetBleScanParams()
957 p_msg->hdr.event = BTA_DM_API_BLE_SCAN_PARAM_EVT; in BTA_DmSetBleScanParams()
958 p_msg->client_if = client_if; in BTA_DmSetBleScanParams()
959 p_msg->scan_int = scan_interval; in BTA_DmSetBleScanParams()
960 p_msg->scan_window = scan_window; in BTA_DmSetBleScanParams()
961 p_msg->scan_mode = scan_mode; in BTA_DmSetBleScanParams()
962 p_msg->scan_param_setup_cback = scan_param_setup_cback; in BTA_DmSetBleScanParams()
964 bta_sys_sendmsg(p_msg); in BTA_DmSetBleScanParams()
984 tBTA_DM_API_BLE_ADV_PARAMS *p_msg; in BTA_DmSetBleAdvParams() local
988 …if ((p_msg = (tBTA_DM_API_BLE_ADV_PARAMS *) GKI_getbuf(sizeof(tBTA_DM_API_BLE_ADV_PARAMS))) != NUL… in BTA_DmSetBleAdvParams()
990 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_ADV_PARAMS)); in BTA_DmSetBleAdvParams()
992 p_msg->hdr.event = BTA_DM_API_BLE_ADV_PARAM_EVT; in BTA_DmSetBleAdvParams()
994 p_msg->adv_int_min = adv_int_min; in BTA_DmSetBleAdvParams()
995 p_msg->adv_int_max = adv_int_max; in BTA_DmSetBleAdvParams()
999 p_msg->p_dir_bda = (tBLE_BD_ADDR *)(p_msg + 1); in BTA_DmSetBleAdvParams()
1000 memcpy(p_msg->p_dir_bda, p_dir_bda, sizeof(tBLE_BD_ADDR)); in BTA_DmSetBleAdvParams()
1003 bta_sys_sendmsg(p_msg); in BTA_DmSetBleAdvParams()
1030 tBTA_DM_API_SET_ADV_CONFIG *p_msg; in BTA_DmBleSetAdvConfig() local
1032 if ((p_msg = (tBTA_DM_API_SET_ADV_CONFIG *) in BTA_DmBleSetAdvConfig()
1035 p_msg->hdr.event = BTA_DM_API_BLE_SET_ADV_CONFIG_EVT; in BTA_DmBleSetAdvConfig()
1036 p_msg->data_mask = data_mask; in BTA_DmBleSetAdvConfig()
1037 p_msg->p_adv_data_cback = p_adv_data_cback; in BTA_DmBleSetAdvConfig()
1038 p_msg->p_adv_cfg = p_adv_cfg; in BTA_DmBleSetAdvConfig()
1040 bta_sys_sendmsg(p_msg); in BTA_DmBleSetAdvConfig()
1058 tBTA_DM_API_SET_ADV_CONFIG *p_msg; in BTA_DmBleSetScanRsp() local
1060 if ((p_msg = (tBTA_DM_API_SET_ADV_CONFIG *) in BTA_DmBleSetScanRsp()
1063 p_msg->hdr.event = BTA_DM_API_BLE_SET_SCAN_RSP_EVT; in BTA_DmBleSetScanRsp()
1064 p_msg->data_mask = data_mask; in BTA_DmBleSetScanRsp()
1065 p_msg->p_adv_data_cback = p_adv_data_cback; in BTA_DmBleSetScanRsp()
1066 p_msg->p_adv_cfg = p_adv_cfg; in BTA_DmBleSetScanRsp()
1068 bta_sys_sendmsg(p_msg); in BTA_DmBleSetScanRsp()
1097 tBTA_DM_API_SET_STORAGE_CONFIG *p_msg; in BTA_DmBleSetStorageParams() local
1099 if ((p_msg = (tBTA_DM_API_SET_STORAGE_CONFIG *) in BTA_DmBleSetStorageParams()
1102 p_msg->hdr.event = BTA_DM_API_BLE_SETUP_STORAGE_EVT; in BTA_DmBleSetStorageParams()
1103 p_msg->p_setup_cback=bta_ble_scan_setup_cb; in BTA_DmBleSetStorageParams()
1104 p_msg->p_thres_cback=p_thres_cback; in BTA_DmBleSetStorageParams()
1105 p_msg->p_read_rep_cback=p_rep_cback; in BTA_DmBleSetStorageParams()
1106 p_msg->ref_value = ref_value; in BTA_DmBleSetStorageParams()
1107 p_msg->batch_scan_full_max = batch_scan_full_max; in BTA_DmBleSetStorageParams()
1108 p_msg->batch_scan_trunc_max = batch_scan_trunc_max; in BTA_DmBleSetStorageParams()
1109 p_msg->batch_scan_notify_threshold = batch_scan_notify_threshold; in BTA_DmBleSetStorageParams()
1110 bta_sys_sendmsg(p_msg); in BTA_DmBleSetStorageParams()
1136 tBTA_DM_API_ENABLE_SCAN *p_msg; in BTA_DmBleEnableBatchScan() local
1138 if ((p_msg = (tBTA_DM_API_ENABLE_SCAN *) GKI_getbuf(sizeof(tBTA_DM_API_ENABLE_SCAN))) != NULL) in BTA_DmBleEnableBatchScan()
1140 p_msg->hdr.event = BTA_DM_API_BLE_ENABLE_BATCH_SCAN_EVT; in BTA_DmBleEnableBatchScan()
1141 p_msg->scan_mode = scan_mode; in BTA_DmBleEnableBatchScan()
1142 p_msg->scan_int = scan_interval; in BTA_DmBleEnableBatchScan()
1143 p_msg->scan_window = scan_window; in BTA_DmBleEnableBatchScan()
1144 p_msg->discard_rule = discard_rule; in BTA_DmBleEnableBatchScan()
1145 p_msg->addr_type = addr_type; in BTA_DmBleEnableBatchScan()
1146 p_msg->ref_value = ref_value; in BTA_DmBleEnableBatchScan()
1147 bta_sys_sendmsg(p_msg); in BTA_DmBleEnableBatchScan()
1164 tBTA_DM_API_DISABLE_SCAN *p_msg; in BTA_DmBleDisableBatchScan() local
1166 if ((p_msg = (tBTA_DM_API_DISABLE_SCAN *) in BTA_DmBleDisableBatchScan()
1169 p_msg->hdr.event = BTA_DM_API_BLE_DISABLE_BATCH_SCAN_EVT; in BTA_DmBleDisableBatchScan()
1170 p_msg->ref_value = ref_value; in BTA_DmBleDisableBatchScan()
1171 bta_sys_sendmsg(p_msg); in BTA_DmBleDisableBatchScan()
1190 tBTA_DM_API_READ_SCAN_REPORTS *p_msg; in BTA_DmBleReadScanReports() local
1192 if ((p_msg = (tBTA_DM_API_READ_SCAN_REPORTS *) in BTA_DmBleReadScanReports()
1195 p_msg->hdr.event = BTA_DM_API_BLE_READ_SCAN_REPORTS_EVT; in BTA_DmBleReadScanReports()
1196 p_msg->scan_type = scan_type; in BTA_DmBleReadScanReports()
1197 p_msg->ref_value = ref_value; in BTA_DmBleReadScanReports()
1198 bta_sys_sendmsg(p_msg); in BTA_DmBleReadScanReports()
1217 tBTA_DM_API_TRACK_ADVERTISER *p_msg; in BTA_DmBleTrackAdvertiser() local
1219 if ((p_msg = (tBTA_DM_API_TRACK_ADVERTISER *) in BTA_DmBleTrackAdvertiser()
1222 p_msg->hdr.event = BTA_DM_API_BLE_TRACK_ADVERTISER_EVT; in BTA_DmBleTrackAdvertiser()
1223 p_msg->p_track_adv_cback = p_track_adv_cback; in BTA_DmBleTrackAdvertiser()
1224 p_msg->ref_value = ref_value; in BTA_DmBleTrackAdvertiser()
1225 bta_sys_sendmsg(p_msg); in BTA_DmBleTrackAdvertiser()
1249 tBTA_DM_API_BLE_OBSERVE *p_msg; in BTA_DmBleBroadcast() local
1253 if ((p_msg = (tBTA_DM_API_BLE_OBSERVE *) GKI_getbuf(sizeof(tBTA_DM_API_BLE_OBSERVE))) != NULL) in BTA_DmBleBroadcast()
1255 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_OBSERVE)); in BTA_DmBleBroadcast()
1257 p_msg->hdr.event = BTA_DM_API_BLE_BROADCAST_EVT; in BTA_DmBleBroadcast()
1258 p_msg->start = start; in BTA_DmBleBroadcast()
1260 bta_sys_sendmsg(p_msg); in BTA_DmBleBroadcast()
1282 tBTA_DM_API_BLE_SET_BG_CONN_TYPE *p_msg; in BTA_DmBleSetBgConnType() local
1284 …if ((p_msg = (tBTA_DM_API_BLE_SET_BG_CONN_TYPE *) GKI_getbuf(sizeof(tBTA_DM_API_BLE_SET_BG_CONN_TY… in BTA_DmBleSetBgConnType()
1286 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_SET_BG_CONN_TYPE)); in BTA_DmBleSetBgConnType()
1288 p_msg->hdr.event = BTA_DM_API_BLE_SET_BG_CONN_TYPE; in BTA_DmBleSetBgConnType()
1289 p_msg->bg_conn_type = bg_conn_type; in BTA_DmBleSetBgConnType()
1290 p_msg->p_select_cback = p_select_cback; in BTA_DmBleSetBgConnType()
1292 bta_sys_sendmsg(p_msg); in BTA_DmBleSetBgConnType()
1311 tBTA_DM_API_DISCOVER *p_msg; in bta_dm_discover_send_msg() local
1316 if ((p_msg = (tBTA_DM_API_DISCOVER *) GKI_getbuf(len)) != NULL) in bta_dm_discover_send_msg()
1318 memset(p_msg, 0, len); in bta_dm_discover_send_msg()
1320 p_msg->hdr.event = BTA_DM_API_DISCOVER_EVT; in bta_dm_discover_send_msg()
1321 bdcpy(p_msg->bd_addr, bd_addr); in bta_dm_discover_send_msg()
1322 p_msg->p_cback = p_cback; in bta_dm_discover_send_msg()
1323 p_msg->sdp_search = sdp_search; in bta_dm_discover_send_msg()
1324 p_msg->transport = transport; in bta_dm_discover_send_msg()
1329 p_msg->services = p_services->srvc_mask; in bta_dm_discover_send_msg()
1330 p_msg->num_uuid = p_services->num_uuid; in bta_dm_discover_send_msg()
1333 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in bta_dm_discover_send_msg()
1334 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); in bta_dm_discover_send_msg()
1339 bta_sys_sendmsg(p_msg); in bta_dm_discover_send_msg()
1415 tBTA_DM_API_SEARCH *p_msg; in BTA_DmSearchExt() local
1419 if ((p_msg = (tBTA_DM_API_SEARCH *) GKI_getbuf(len)) != NULL) in BTA_DmSearchExt()
1421 memset(p_msg, 0, len); in BTA_DmSearchExt()
1423 p_msg->hdr.event = BTA_DM_API_SEARCH_EVT; in BTA_DmSearchExt()
1424 memcpy(&p_msg->inq_params, p_dm_inq, sizeof(tBTA_DM_INQ)); in BTA_DmSearchExt()
1425 p_msg->p_cback = p_cback; in BTA_DmSearchExt()
1426 p_msg->rs_res = BTA_DM_RS_NONE; in BTA_DmSearchExt()
1431 p_msg->services = p_services->srvc_mask; in BTA_DmSearchExt()
1432 p_msg->num_uuid = p_services->num_uuid; in BTA_DmSearchExt()
1436 p_msg->p_uuid = (tBT_UUID *)(p_msg + 1); in BTA_DmSearchExt()
1437 memcpy(p_msg->p_uuid, p_services->p_uuid, sizeof(tBT_UUID) * p_services->num_uuid); in BTA_DmSearchExt()
1440 p_msg->p_uuid = NULL; in BTA_DmSearchExt()
1443 bta_sys_sendmsg(p_msg); in BTA_DmSearchExt()
1471 tBTA_DM_API_UPDATE_CONN_PARAM *p_msg; in BTA_DmBleUpdateConnectionParam() local
1473 p_msg = (tBTA_DM_API_UPDATE_CONN_PARAM *) GKI_getbuf(sizeof(tBTA_DM_API_UPDATE_CONN_PARAM)); in BTA_DmBleUpdateConnectionParam()
1474 if (p_msg != NULL) in BTA_DmBleUpdateConnectionParam()
1476 memset(p_msg, 0, sizeof(tBTA_DM_API_UPDATE_CONN_PARAM)); in BTA_DmBleUpdateConnectionParam()
1478 p_msg->hdr.event = BTA_DM_API_UPDATE_CONN_PARAM_EVT; in BTA_DmBleUpdateConnectionParam()
1479 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBleUpdateConnectionParam()
1480 p_msg->min_int = min_int; in BTA_DmBleUpdateConnectionParam()
1481 p_msg->max_int = max_int; in BTA_DmBleUpdateConnectionParam()
1482 p_msg->latency = latency; in BTA_DmBleUpdateConnectionParam()
1483 p_msg->timeout = timeout; in BTA_DmBleUpdateConnectionParam()
1485 bta_sys_sendmsg(p_msg); in BTA_DmBleUpdateConnectionParam()
1503 tBTA_DM_API_LOCAL_PRIVACY *p_msg; in BTA_DmBleConfigLocalPrivacy() local
1505 …if ((p_msg = (tBTA_DM_API_LOCAL_PRIVACY *) GKI_getbuf(sizeof(tBTA_DM_API_ENABLE_PRIVACY))) != NULL) in BTA_DmBleConfigLocalPrivacy()
1507 memset (p_msg, 0, sizeof(tBTA_DM_API_LOCAL_PRIVACY)); in BTA_DmBleConfigLocalPrivacy()
1509 p_msg->hdr.event = BTA_DM_API_LOCAL_PRIVACY_EVT; in BTA_DmBleConfigLocalPrivacy()
1510 p_msg->privacy_enable = privacy_enable; in BTA_DmBleConfigLocalPrivacy()
1512 bta_sys_sendmsg(p_msg); in BTA_DmBleConfigLocalPrivacy()
1538 tBTA_DM_API_BLE_MULTI_ADV_ENB *p_msg; in BTA_BleEnableAdvInstance() local
1543 if ((p_msg = (tBTA_DM_API_BLE_MULTI_ADV_ENB *) GKI_getbuf(len)) != NULL) in BTA_BleEnableAdvInstance()
1545 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_MULTI_ADV_ENB)); in BTA_BleEnableAdvInstance()
1547 p_msg->hdr.event = BTA_DM_API_BLE_MULTI_ADV_ENB_EVT; in BTA_BleEnableAdvInstance()
1548 p_msg->p_cback = (void *)p_cback; in BTA_BleEnableAdvInstance()
1551 p_msg->p_params = (void *)(p_msg + 1); in BTA_BleEnableAdvInstance()
1552 memcpy(p_msg->p_params, p_params, sizeof(tBTA_BLE_ADV_PARAMS)); in BTA_BleEnableAdvInstance()
1554 p_msg->p_ref = p_ref; in BTA_BleEnableAdvInstance()
1556 bta_sys_sendmsg(p_msg); in BTA_BleEnableAdvInstance()
1575 tBTA_DM_API_BLE_MULTI_ADV_PARAM *p_msg; in BTA_BleUpdateAdvInstParam() local
1579 if ((p_msg = (tBTA_DM_API_BLE_MULTI_ADV_PARAM *) GKI_getbuf(len)) != NULL) in BTA_BleUpdateAdvInstParam()
1581 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_MULTI_ADV_PARAM)); in BTA_BleUpdateAdvInstParam()
1582 p_msg->hdr.event = BTA_DM_API_BLE_MULTI_ADV_PARAM_UPD_EVT; in BTA_BleUpdateAdvInstParam()
1583 p_msg->inst_id = inst_id; in BTA_BleUpdateAdvInstParam()
1584 p_msg->p_params = (void *)(p_msg + 1); in BTA_BleUpdateAdvInstParam()
1585 memcpy(p_msg->p_params, p_params, sizeof(tBTA_BLE_ADV_PARAMS)); in BTA_BleUpdateAdvInstParam()
1587 bta_sys_sendmsg(p_msg); in BTA_BleUpdateAdvInstParam()
1612 tBTA_DM_API_BLE_MULTI_ADV_DATA *p_msg; in BTA_BleCfgAdvInstData() local
1617 if ((p_msg = (tBTA_DM_API_BLE_MULTI_ADV_DATA *) GKI_getbuf(len)) != NULL) in BTA_BleCfgAdvInstData()
1619 memset(p_msg, 0, len); in BTA_BleCfgAdvInstData()
1620 p_msg->hdr.event = BTA_DM_API_BLE_MULTI_ADV_DATA_EVT; in BTA_BleCfgAdvInstData()
1621 p_msg->inst_id = inst_id; in BTA_BleCfgAdvInstData()
1622 p_msg->is_scan_rsp = is_scan_rsp; in BTA_BleCfgAdvInstData()
1623 p_msg->data_mask = data_mask; in BTA_BleCfgAdvInstData()
1624 p_msg->p_data = p_data; in BTA_BleCfgAdvInstData()
1626 bta_sys_sendmsg(p_msg); in BTA_BleCfgAdvInstData()
1643 tBTA_DM_API_BLE_MULTI_ADV_DISABLE *p_msg; in BTA_BleDisableAdvInstance() local
1646 if ((p_msg = (tBTA_DM_API_BLE_MULTI_ADV_DISABLE *) in BTA_BleDisableAdvInstance()
1649 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_MULTI_ADV_DISABLE)); in BTA_BleDisableAdvInstance()
1650 p_msg->hdr.event = BTA_DM_API_BLE_MULTI_ADV_DISABLE_EVT; in BTA_BleDisableAdvInstance()
1651 p_msg->inst_id = inst_id; in BTA_BleDisableAdvInstance()
1652 bta_sys_sendmsg(p_msg); in BTA_BleDisableAdvInstance()
1681 tBTA_DM_API_CFG_FILTER_COND *p_msg; in BTA_DmBleCfgFilterCondition() local
1714 if ((p_msg = (tBTA_DM_API_CFG_FILTER_COND *) GKI_getbuf(len)) != NULL) in BTA_DmBleCfgFilterCondition()
1716 memset (p_msg, 0, len); in BTA_DmBleCfgFilterCondition()
1718 p_msg->hdr.event = BTA_DM_API_CFG_FILTER_COND_EVT; in BTA_DmBleCfgFilterCondition()
1719 p_msg->action = action; in BTA_DmBleCfgFilterCondition()
1720 p_msg->cond_type = cond_type; in BTA_DmBleCfgFilterCondition()
1721 p_msg->filt_index = filt_index; in BTA_DmBleCfgFilterCondition()
1722 p_msg->p_filt_cfg_cback = p_cmpl_cback; in BTA_DmBleCfgFilterCondition()
1723 p_msg->ref_value = ref_value; in BTA_DmBleCfgFilterCondition()
1726 p_msg->p_cond_param = (tBTA_DM_BLE_PF_COND_PARAM *)(p_msg + 1); in BTA_DmBleCfgFilterCondition()
1727 memcpy(p_msg->p_cond_param, p_cond, sizeof(tBTA_DM_BLE_PF_COND_PARAM)); in BTA_DmBleCfgFilterCondition()
1729 p = (UINT8 *)(p_msg->p_cond_param + 1); in BTA_DmBleCfgFilterCondition()
1734 p_msg->p_cond_param->manu_data.p_pattern = p; in BTA_DmBleCfgFilterCondition()
1735 p_msg->p_cond_param->manu_data.data_len = p_cond->manu_data.data_len; in BTA_DmBleCfgFilterCondition()
1736 memcpy(p_msg->p_cond_param->manu_data.p_pattern, p_cond->manu_data.p_pattern, in BTA_DmBleCfgFilterCondition()
1742 p_msg->p_cond_param->manu_data.company_id_mask = in BTA_DmBleCfgFilterCondition()
1746 p_msg->p_cond_param->manu_data.p_pattern_mask = p; in BTA_DmBleCfgFilterCondition()
1747 memcpy(p_msg->p_cond_param->manu_data.p_pattern_mask, in BTA_DmBleCfgFilterCondition()
1754 p_msg->p_cond_param->local_name.p_data = p; in BTA_DmBleCfgFilterCondition()
1755 p_msg->p_cond_param->local_name.data_len = in BTA_DmBleCfgFilterCondition()
1757 memcpy(p_msg->p_cond_param->local_name.p_data, in BTA_DmBleCfgFilterCondition()
1765 p_msg->p_cond_param->srvc_uuid.p_target_addr = (tBLE_BD_ADDR *)(p); in BTA_DmBleCfgFilterCondition()
1766 p_msg->p_cond_param->srvc_uuid.p_target_addr->type = in BTA_DmBleCfgFilterCondition()
1768 memcpy(p_msg->p_cond_param->srvc_uuid.p_target_addr->bda, in BTA_DmBleCfgFilterCondition()
1770 p = (UINT8*)( p_msg->p_cond_param->srvc_uuid.p_target_addr + 1); in BTA_DmBleCfgFilterCondition()
1774 p_msg->p_cond_param->srvc_uuid.p_uuid_mask = (tBTA_DM_BLE_PF_COND_MASK *)p; in BTA_DmBleCfgFilterCondition()
1775 memcpy(p_msg->p_cond_param->srvc_uuid.p_uuid_mask, in BTA_DmBleCfgFilterCondition()
1781 bta_sys_sendmsg(p_msg); in BTA_DmBleCfgFilterCondition()
1816 tBTA_DM_API_SCAN_FILTER_PARAM_SETUP *p_msg; in BTA_DmBleScanFilterSetup() local
1821 if ((p_msg = (tBTA_DM_API_SCAN_FILTER_PARAM_SETUP *) GKI_getbuf(len)) != NULL) in BTA_DmBleScanFilterSetup()
1823 memset (p_msg, 0, len); in BTA_DmBleScanFilterSetup()
1825 p_msg->hdr.event = BTA_DM_API_SCAN_FILTER_SETUP_EVT; in BTA_DmBleScanFilterSetup()
1826 p_msg->action = action; in BTA_DmBleScanFilterSetup()
1827 p_msg->filt_index = filt_index; in BTA_DmBleScanFilterSetup()
1829 memcpy(&p_msg->filt_params, p_filt_params, sizeof(tBTA_DM_BLE_PF_FILT_PARAMS)); in BTA_DmBleScanFilterSetup()
1830 p_msg->p_filt_param_cback = p_cmpl_cback; in BTA_DmBleScanFilterSetup()
1831 p_msg->ref_value = ref_value; in BTA_DmBleScanFilterSetup()
1835 p_msg->p_target = (tBLE_BD_ADDR *)(p_msg + 1); in BTA_DmBleScanFilterSetup()
1836 memcpy(p_msg->p_target, p_target, sizeof(tBLE_BD_ADDR)); in BTA_DmBleScanFilterSetup()
1839 bta_sys_sendmsg(p_msg); in BTA_DmBleScanFilterSetup()
1864 tBTA_DM_API_ENERGY_INFO *p_msg; in BTA_DmBleGetEnergyInfo() local
1869 if ((p_msg = (tBTA_DM_API_ENERGY_INFO *) GKI_getbuf(len)) != NULL) in BTA_DmBleGetEnergyInfo()
1871 memset (p_msg, 0, len); in BTA_DmBleGetEnergyInfo()
1872 p_msg->hdr.event = BTA_DM_API_BLE_ENERGY_INFO_EVT; in BTA_DmBleGetEnergyInfo()
1873 p_msg->p_energy_info_cback = p_cmpl_cback; in BTA_DmBleGetEnergyInfo()
1874 bta_sys_sendmsg(p_msg); in BTA_DmBleGetEnergyInfo()
1895 tBTA_DM_API_ENABLE_SCAN_FILTER *p_msg; in BTA_DmEnableScanFilter() local
1900 if ((p_msg = (tBTA_DM_API_ENABLE_SCAN_FILTER *) GKI_getbuf(len)) != NULL) in BTA_DmEnableScanFilter()
1902 memset (p_msg, 0, len); in BTA_DmEnableScanFilter()
1904 p_msg->hdr.event = BTA_DM_API_SCAN_FILTER_ENABLE_EVT; in BTA_DmEnableScanFilter()
1905 p_msg->action = action; in BTA_DmEnableScanFilter()
1906 p_msg->ref_value = ref_value; in BTA_DmEnableScanFilter()
1907 p_msg->p_filt_status_cback = p_cmpl_cback; in BTA_DmEnableScanFilter()
1909 bta_sys_sendmsg(p_msg); in BTA_DmEnableScanFilter()
1936 tBTA_DM_API_UPDATE_CONN_PARAM *p_msg; in BTA_DmBleUpdateConnectionParams() local
1938 …if ((p_msg = (tBTA_DM_API_UPDATE_CONN_PARAM *) GKI_getbuf(sizeof(tBTA_DM_API_UPDATE_CONN_PARAM))) … in BTA_DmBleUpdateConnectionParams()
1940 memset (p_msg, 0, sizeof(tBTA_DM_API_UPDATE_CONN_PARAM)); in BTA_DmBleUpdateConnectionParams()
1942 p_msg->hdr.event = BTA_DM_API_UPDATE_CONN_PARAM_EVT; in BTA_DmBleUpdateConnectionParams()
1943 bdcpy(p_msg->bd_addr, bd_addr); in BTA_DmBleUpdateConnectionParams()
1944 p_msg->min_int = min_int; in BTA_DmBleUpdateConnectionParams()
1945 p_msg->max_int = max_int; in BTA_DmBleUpdateConnectionParams()
1946 p_msg->latency = latency; in BTA_DmBleUpdateConnectionParams()
1947 p_msg->timeout = timeout; in BTA_DmBleUpdateConnectionParams()
1949 bta_sys_sendmsg(p_msg); in BTA_DmBleUpdateConnectionParams()
1965 tBTA_DM_API_BLE_SET_DATA_LENGTH *p_msg; in BTA_DmBleSetDataLength() local
1967 …if ((p_msg = (tBTA_DM_API_BLE_SET_DATA_LENGTH *)GKI_getbuf(sizeof(tBTA_DM_API_BLE_SET_DATA_LENGTH)… in BTA_DmBleSetDataLength()
1970 bdcpy(p_msg->remote_bda, remote_device); in BTA_DmBleSetDataLength()
1971 p_msg->hdr.event = BTA_DM_API_SET_DATA_LENGTH_EVT; in BTA_DmBleSetDataLength()
1972 p_msg->tx_data_length = tx_data_length; in BTA_DmBleSetDataLength()
1974 bta_sys_sendmsg(p_msg); in BTA_DmBleSetDataLength()
2005 tBTA_DM_API_SET_ENCRYPTION *p_msg; in BTA_DmSetEncryption() local
2008 …if ((p_msg = (tBTA_DM_API_SET_ENCRYPTION *) GKI_getbuf(sizeof(tBTA_DM_API_SET_ENCRYPTION))) != NUL… in BTA_DmSetEncryption()
2010 memset(p_msg, 0, sizeof(tBTA_DM_API_SET_ENCRYPTION)); in BTA_DmSetEncryption()
2012 p_msg->hdr.event = BTA_DM_API_SET_ENCRYPTION_EVT; in BTA_DmSetEncryption()
2014 memcpy(p_msg->bd_addr, bd_addr, BD_ADDR_LEN); in BTA_DmSetEncryption()
2015 p_msg->transport = transport; in BTA_DmSetEncryption()
2016 p_msg->p_callback = p_callback; in BTA_DmSetEncryption()
2017 p_msg->sec_act = sec_act; in BTA_DmSetEncryption()
2019 bta_sys_sendmsg(p_msg); in BTA_DmSetEncryption()
2038 tBTA_DM_API_REMOVE_ACL *p_msg; in BTA_DmCloseACL() local
2042 if ((p_msg = (tBTA_DM_API_REMOVE_ACL *) GKI_getbuf(sizeof(tBTA_DM_API_REMOVE_ACL))) != NULL) in BTA_DmCloseACL()
2044 memset(p_msg, 0, sizeof(tBTA_DM_API_REMOVE_ACL)); in BTA_DmCloseACL()
2046 p_msg->hdr.event = BTA_DM_API_REMOVE_ACL_EVT; in BTA_DmCloseACL()
2048 memcpy(p_msg->bd_addr, bd_addr, BD_ADDR_LEN); in BTA_DmCloseACL()
2049 p_msg->remove_dev = remove_dev; in BTA_DmCloseACL()
2050 p_msg->transport = transport; in BTA_DmCloseACL()
2052 bta_sys_sendmsg(p_msg); in BTA_DmCloseACL()
2075 tBTA_DM_API_BLE_OBSERVE *p_msg; in BTA_DmBleObserve() local
2079 if ((p_msg = (tBTA_DM_API_BLE_OBSERVE *) GKI_getbuf(sizeof(tBTA_DM_API_BLE_OBSERVE))) != NULL) in BTA_DmBleObserve()
2081 memset(p_msg, 0, sizeof(tBTA_DM_API_BLE_OBSERVE)); in BTA_DmBleObserve()
2083 p_msg->hdr.event = BTA_DM_API_BLE_OBSERVE_EVT; in BTA_DmBleObserve()
2084 p_msg->start = start; in BTA_DmBleObserve()
2085 p_msg->duration = duration; in BTA_DmBleObserve()
2086 p_msg->p_cback = p_results_cb; in BTA_DmBleObserve()
2088 bta_sys_sendmsg(p_msg); in BTA_DmBleObserve()