Home
last modified time | relevance | path

Searched refs:osi_malloc (Results 1 – 25 of 110) sorted by relevance

12345

/system/bt/bta/hd/
Dbta_hd_api.cc59 (tBTA_HD_API_ENABLE*)osi_malloc((uint16_t)sizeof(tBTA_HD_API_ENABLE)); in BTA_HdEnable()
83 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdDisable()
104 (tBTA_HD_REGISTER_APP*)osi_malloc(sizeof(tBTA_HD_REGISTER_APP)); in BTA_HdRegisterApp()
156 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdUnregisterApp()
183 (tBTA_HD_SEND_REPORT*)osi_malloc(sizeof(tBTA_HD_SEND_REPORT)); in BTA_HdSendReport()
207 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdVirtualCableUnplug()
227 (tBTA_HD_DEVICE_CTRL*)osi_malloc(sizeof(tBTA_HD_DEVICE_CTRL)); in BTA_HdConnect()
246 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdDisconnect()
264 (tBTA_HD_DEVICE_CTRL*)osi_malloc(sizeof(tBTA_HD_DEVICE_CTRL)); in BTA_HdAddDevice()
284 (tBTA_HD_DEVICE_CTRL*)osi_malloc(sizeof(tBTA_HD_DEVICE_CTRL)); in BTA_HdRemoveDevice()
[all …]
/system/bt/bta/av/
Dbta_av_api.cc65 (tBTA_AV_API_ENABLE*)osi_malloc(sizeof(tBTA_AV_API_ENABLE)); in BTA_AvEnable()
88 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_AvDisable()
113 (tBTA_AV_API_REG*)osi_malloc(sizeof(tBTA_AV_API_REG)); in BTA_AvRegister()
138 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_AvDeregister()
164 (tBTA_AV_API_OPEN*)osi_malloc(sizeof(tBTA_AV_API_OPEN)); in BTA_AvOpen()
189 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_AvClose()
210 (tBTA_AV_API_DISCNT*)osi_malloc(sizeof(tBTA_AV_API_DISCNT)); in BTA_AvDisconnect()
230 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_AvStart()
250 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_AvOffloadStart()
269 (tBTA_AV_API_STATUS_RSP*)osi_malloc(sizeof(tBTA_AV_API_STATUS_RSP)); in BTA_AvOffloadStartRsp()
[all …]
Dbta_av_ci.cc49 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_av_ci_src_data_ready()
80 (tBTA_AV_CI_SETCONFIG*)osi_malloc(sizeof(tBTA_AV_CI_SETCONFIG)); in bta_av_ci_setconfig()
/system/bt/stack/hcic/
Dhcicmds.cc39 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inquiry()
56 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inq_cancel()
70 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_per_inq_mode()
89 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_exit_per_inq()
103 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn()
131 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_disconnect()
146 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_add_SCO_conn()
162 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn_cancel()
177 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_accept_conn()
192 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_reject_conn()
[all …]
Dhciblecmds.cc37 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_local_used_feat()
50 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_random_addr()
70 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_write_adv_params()
91 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_read_adv_chnl_tx_power()
104 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_data()
126 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_rsp_data()
150 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_enable()
166 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_params()
185 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_enable()
206 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_create_ll_conn()
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_api.cc83 (tBTA_HF_CLIENT_API_OPEN*)osi_malloc(sizeof(tBTA_HF_CLIENT_API_OPEN)); in BTA_HfClientOpen()
110 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientClose()
130 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientAudioOpen()
150 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HfClientAudioClose()
171 (tBTA_HF_CLIENT_DATA_VAL*)osi_malloc(sizeof(tBTA_HF_CLIENT_DATA_VAL)); in BTA_HfClientSendAT()
Dbta_hf_client_rfc.cc58 (tBTA_HF_CLIENT_RFC*)osi_malloc(sizeof(tBTA_HF_CLIENT_RFC)); in bta_hf_client_port_cback()
90 (tBTA_HF_CLIENT_RFC*)osi_malloc(sizeof(tBTA_HF_CLIENT_RFC)); in bta_hf_client_mgmt_cback()
288 (tBTA_HF_CLIENT_RFC*)osi_malloc(sizeof(tBTA_HF_CLIENT_RFC)); in bta_hf_client_rfc_do_close()
/system/bt/bta/sdp/
Dbta_sdp_api.cc67 (tBTA_SDP_API_ENABLE*)osi_malloc(sizeof(tBTA_SDP_API_ENABLE)); in BTA_SdpEnable()
93 (tBTA_SDP_API_SEARCH*)osi_malloc(sizeof(tBTA_SDP_API_SEARCH)); in BTA_SdpSearch()
120 (tBTA_SDP_API_RECORD_USER*)osi_malloc(sizeof(tBTA_SDP_API_RECORD_USER)); in BTA_SdpCreateRecordByUser()
146 (tBTA_SDP_API_RECORD_USER*)osi_malloc(sizeof(tBTA_SDP_API_RECORD_USER)); in BTA_SdpRemoveRecordByUser()
/system/bt/bta/gatt/
Dbta_gatts_api.cc60 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Disable()
82 (tBTA_GATTS_API_REG*)osi_malloc(sizeof(tBTA_GATTS_API_REG)); in BTA_GATTS_AppRegister()
108 (tBTA_GATTS_API_DEREG*)osi_malloc(sizeof(tBTA_GATTS_API_DEREG)); in BTA_GATTS_AppDeregister()
190 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_DeleteService()
210 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_StopService()
302 (tBTA_GATTS_API_OPEN*)osi_malloc(sizeof(tBTA_GATTS_API_OPEN)); in BTA_GATTS_Open()
329 tBTA_GATTS_API_CANCEL_OPEN* p_buf = (tBTA_GATTS_API_CANCEL_OPEN*)osi_malloc( in BTA_GATTS_CancelOpen()
352 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Close()
Dbta_gattc_queue.cc110 (gatt_read_op_data*)osi_malloc(sizeof(gatt_read_op_data)); in gatt_execute_next_op()
118 (gatt_read_op_data*)osi_malloc(sizeof(gatt_read_op_data)); in gatt_execute_next_op()
126 (gatt_write_op_data*)osi_malloc(sizeof(gatt_write_op_data)); in gatt_execute_next_op()
135 (gatt_write_op_data*)osi_malloc(sizeof(gatt_write_op_data)); in gatt_execute_next_op()
/system/bt/bta/pan/
Dbta_pan_api.cc56 (tBTA_PAN_API_ENABLE*)osi_malloc(sizeof(tBTA_PAN_API_ENABLE)); in BTA_PanEnable()
78 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_PanDisable()
148 (tBTA_PAN_API_OPEN*)osi_malloc(sizeof(tBTA_PAN_API_OPEN)); in BTA_PanOpen()
169 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_PanClose()
Dbta_pan_ci.cc55 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready()
77 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_rx_ready()
102 (tBTA_PAN_CI_TX_FLOW*)osi_malloc(sizeof(tBTA_PAN_CI_TX_FLOW)); in bta_pan_ci_tx_flow()
126 BT_HDR* p_buf = (BT_HDR*)osi_malloc(PAN_BUF_SIZE); in bta_pan_ci_rx_write()
/system/bt/bta/mce/
Dbta_mce_api.cc70 (tBTA_MCE_API_ENABLE*)osi_malloc(sizeof(tBTA_MCE_API_ENABLE)); in BTA_MceEnable()
96 (tBTA_MCE_API_GET_REMOTE_MAS_INSTANCES*)osi_malloc( in BTA_MceGetRemoteMasInstances()
/system/bt/stack/gatt/
Datt_protocol.cc51 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd()
72 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd()
103 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd()
132 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd()
161 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_read_by_type_value_cmd()
194 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + num_handle * 2 + 1 + in attp_build_read_multi_cmd()
222 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 5 + L2CAP_MIN_OFFSET); in attp_build_handle_cmd()
252 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 1 + L2CAP_MIN_OFFSET); in attp_build_opcode_cmd()
277 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_value_cmd()
/system/bt/stack/avrc/
Davrc_opt.cc54 p_cmd = (BT_HDR*)osi_malloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg()
94 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd()
137 BT_HDR* p_cmd = (BT_HDR*)osi_malloc(AVRC_CMD_BUF_SIZE); in AVRC_SubCmd()
/system/bt/osi/src/
Dallocator.cc58 void* osi_malloc(size_t size) { in osi_malloc() function
84 const allocator_t allocator_malloc = {osi_malloc, osi_free};
/system/bt/stack/rfcomm/
Drfc_ts_frames.cc45 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_sabme()
73 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_ua()
100 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_dm()
127 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_disc()
211 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_pn()
253 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_fcon()
276 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_fcoff()
303 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_msc()
347 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_rls()
373 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_nsc()
[all …]
/system/bt/btif/src/
Dbtif_a2dp_sink.cc391 osi_malloc(sizeof(tBTIF_MEDIA_SINK_DECODER_UPDATE))); in btif_a2dp_sink_update_decoder()
406 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_idle()
418 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_stopped()
429 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_suspended()
441 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_on_start()
663 reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(*p_msg) + p_pkt->len)); in btif_a2dp_sink_enqueue_buf()
684 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_audio_rx_flush_req()
698 osi_malloc(sizeof(tBTIF_MEDIA_SINK_FOCUS_UPDATE))); in btif_a2dp_sink_set_focus_state_req()
731 BT_HDR* p_buf = reinterpret_cast<BT_HDR*>(osi_malloc(sizeof(BT_HDR))); in btif_a2dp_sink_clear_track_event_req()
Dbtif_gatt_util.cc100 p_dest->p_adv_pkt_data = (uint8_t*)osi_malloc(p_src->adv_pkt_len); in btif_gatt_move_track_adv_data()
106 p_dest->p_scan_rsp_data = (uint8_t*)osi_malloc(p_src->scan_rsp_len); in btif_gatt_move_track_adv_data()
/system/bt/hci/src/
Dbuffer_allocator.cc26 return osi_malloc(size); in buffer_alloc()
/system/bt/stack/smp/
Dsmp_utils.cc450 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIRING_REQ_SIZE + in smp_build_pairing_cmd()
481 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_CONFIRM_CMD_SIZE + in smp_build_confirm_cmd()
506 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_RAND_CMD_SIZE + in smp_build_rand_cmd()
531 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ENC_INFO_SIZE + in smp_build_encrypt_info_cmd()
556 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_MASTER_ID_SIZE + in smp_build_master_id_cmd()
583 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ID_INFO_SIZE + L2CAP_MIN_OFFSET); in smp_build_identity_info_cmd()
611 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_ID_ADDR_SIZE + L2CAP_MIN_OFFSET); in smp_build_id_addr_cmd()
636 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_SIGN_INFO_SIZE + in smp_build_signing_info_cmd()
661 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + SMP_PAIR_FAIL_SIZE + in smp_build_pairing_fail()
686 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + 2 + L2CAP_MIN_OFFSET); in smp_build_security_request()
[all …]
/system/bt/osi/include/
Dallocator.h40 void* osi_malloc(size_t size);
/system/bt/stack/test/common/
Dstack_test_packet_utils.cc60 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedIncomingL2capAclPacket()
81 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedOutgoingL2capAclPacket()
/system/bt/bta/sys/
Dbta_sys_main.cc250 (tBTA_SYS_HW_MSG*)osi_malloc(sizeof(tBTA_SYS_HW_MSG)); in bta_sys_hw_btm_cback()
319 (tBTA_SYS_HW_MSG*)osi_malloc(sizeof(tBTA_SYS_HW_MSG)); in bta_sys_hw_api_enable()
370 (tBTA_SYS_HW_MSG*)osi_malloc(sizeof(tBTA_SYS_HW_MSG)); in bta_sys_hw_api_disable()
555 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_sys_start_timer()
/system/bt/stack/sdp/
Dsdp_db.cc480 (uint8_t*)osi_malloc(sizeof(uint8_t) * SDP_MAX_ATTR_LEN * 2); in SDP_AddSequence()
554 (uint8_t*)osi_malloc(sizeof(uint8_t) * SDP_MAX_ATTR_LEN * 2); in SDP_AddUuidSequence()
597 (uint8_t*)osi_malloc(sizeof(uint8_t) * SDP_MAX_ATTR_LEN * 2); in SDP_AddProtocolList()
630 (uint8_t*)osi_malloc(sizeof(uint8_t) * SDP_MAX_ATTR_LEN * 2); in SDP_AddAdditionProtoLists()
673 uint8_t* p_buff = (uint8_t*)osi_malloc(sizeof(uint8_t) * SDP_MAX_ATTR_LEN); in SDP_AddProfileDescriptorList()
718 uint8_t* p_buff = (uint8_t*)osi_malloc(sizeof(uint8_t) * SDP_MAX_ATTR_LEN); in SDP_AddLanguageBaseAttrIDList()
762 (uint8_t*)osi_malloc(sizeof(uint8_t) * SDP_MAX_ATTR_LEN * 2); in SDP_AddServiceClassIdList()

12345