Home
last modified time | relevance | path

Searched refs:BT_HDR (Results 1 – 25 of 267) sorted by relevance

1234567891011

/packages/modules/Bluetooth/system/stack/hcic/
Dhcicmds.cc483 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_disconnect()
498 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_add_SCO_conn()
514 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn_cancel()
529 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_reject_conn()
546 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_link_key_req_reply()
562 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_link_key_neg_reply()
578 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_pin_code_req_reply()
599 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_pin_code_neg_reply()
614 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_change_conn_type()
630 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_auth_request()
[all …]
Dhciblecmds.cc121 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_write_adv_params()
142 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_read_adv_chnl_tx_power()
155 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_data()
178 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_enable()
194 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_params()
213 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_enable()
229 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_read_remote_feat()
259 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_start_enc()
277 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_ltk_req_reply()
293 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_ltk_req_neg_reply()
[all …]
/packages/modules/Bluetooth/system/stack/test/
Dstack_avdtp_test.cc200 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
207 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
214 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
221 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
239 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
246 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
253 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
260 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
279 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
286 data.p_pkt = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + packet_length); in TEST_F()
[all …]
/packages/modules/Bluetooth/system/stack/gatt/
Datt_protocol.cc56 static BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd()
58 BT_HDR* p_buf = in attp_build_mtu_cmd()
59 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd()
79 static BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd()
80 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd()
108 static BT_HDR* attp_build_err_cmd(uint8_t cmd_code, uint16_t err_handle, in attp_build_err_cmd()
111 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd()
135 static BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, in attp_build_browse_cmd()
140 BT_HDR* p_buf = in attp_build_browse_cmd()
141 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd()
[all …]
/packages/modules/Bluetooth/system/stack/smp/
Dsmp_utils.cc157 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
159 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
160 static BT_HDR* smp_build_confirm_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
161 static BT_HDR* smp_build_rand_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
162 static BT_HDR* smp_build_pairing_fail(uint8_t cmd_code, tSMP_CB* p_cb);
163 static BT_HDR* smp_build_identity_info_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
164 static BT_HDR* smp_build_encrypt_info_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
165 static BT_HDR* smp_build_security_request(uint8_t cmd_code, tSMP_CB* p_cb);
166 static BT_HDR* smp_build_signing_info_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
167 static BT_HDR* smp_build_central_id_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
[all …]
/packages/modules/Bluetooth/system/stack/avrc/
Davrc_bld_ct.cc49 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd()
81 BT_HDR* p_pkt) { in avrc_bld_set_abs_volume_cmd()
105 static tAVRC_STS avrc_bld_register_notifn(BT_HDR* p_pkt, uint8_t event_id, in avrc_bld_register_notifn()
132 static tAVRC_STS avrc_bld_get_capability_cmd(BT_HDR* p_pkt, uint8_t cap_id) { in avrc_bld_get_capability_cmd()
153 static tAVRC_STS avrc_bld_list_player_app_attr_cmd(BT_HDR* p_pkt) { in avrc_bld_list_player_app_attr_cmd()
173 static tAVRC_STS avrc_bld_list_player_app_values_cmd(BT_HDR* p_pkt, in avrc_bld_list_player_app_values_cmd()
197 BT_HDR* p_pkt, uint8_t num_attrib_id, uint8_t* attrib_ids) { in avrc_bld_get_current_player_app_values_cmd()
225 BT_HDR* p_pkt, uint8_t num_attrib_id, tAVRC_APP_SETTING* p_val) { in avrc_bld_set_current_player_app_values_cmd()
256 BT_HDR* p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_attr_text_cmd()
285 BT_HDR* p_pkt, tAVRC_GET_APP_VAL_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_value_text_cmd()
[all …]
Davrc_opt.cc51 static BT_HDR* avrc_vendor_msg(tAVRC_MSG_VENDOR* p_msg) { in avrc_vendor_msg()
52 BT_HDR* p_cmd; in avrc_vendor_msg()
62 #define AVRC_MIN_VENDOR_CMD_LEN (sizeof(BT_HDR) + AVCT_MSG_OFFSET + 3 + 3) in avrc_vendor_msg()
69 p_cmd = (BT_HDR*)osi_calloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg()
109 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd()
152 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in AVRC_SubCmd()
196 BT_HDR* p_buf = avrc_vendor_msg(p_msg); in AVRC_VendorCmd()
231 BT_HDR* p_buf = avrc_vendor_msg(p_msg); in AVRC_VendorRsp()
Davrc_api.cc186 BT_HDR* p_next_cmd; in avrc_send_next_vendor_cmd()
189 while ((p_next_cmd = (BT_HDR*)fixed_queue_try_dequeue( in avrc_send_next_vendor_cmd()
246 static uint8_t* avrc_get_data_ptr(BT_HDR* p_pkt) { in avrc_get_data_ptr()
260 static BT_HDR* avrc_copy_packet(BT_HDR* p_pkt, int rsp_pkt_len) { in avrc_copy_packet()
263 BT_HDR* p_pkt_copy = (BT_HDR*)osi_calloc(BT_HDR_SIZE + offset + pkt_len); in avrc_copy_packet()
286 BT_HDR* p_pkt_new; in avrc_prep_end_frag()
330 BT_HDR *p_pkt_old, *p_pkt; in avrc_send_continue_frag()
341 p_pkt = (BT_HDR*)osi_calloc(AVRC_PACKET_LEN + offset_len + BT_HDR_SIZE); in avrc_send_continue_frag()
376 static BT_HDR* avrc_proc_vendor_command(uint8_t handle, uint8_t label, in avrc_proc_vendor_command()
377 BT_HDR* p_pkt, in avrc_proc_vendor_command()
[all …]
Davrc_bld_tg.cc60 BT_HDR* p_pkt) { in avrc_bld_get_capability_rsp()
128 tAVRC_LIST_APP_ATTR_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_list_app_settings_attr_rsp()
174 tAVRC_LIST_APP_VALUES_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_list_app_settings_values_rsp()
218 tAVRC_GET_CUR_APP_VALUE_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_get_cur_app_setting_value_rsp()
270 BT_HDR* /* p_pkt */) { in avrc_bld_set_app_setting_value_rsp() argument
288 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_app_setting_text_rsp()
358 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_get_app_setting_attr_text_rsp()
375 tAVRC_GET_APP_ATTR_TXT_RSP* p_rsp, BT_HDR* p_pkt) { in avrc_bld_get_app_setting_value_text_rsp()
392 BT_HDR* /* p_pkt */) { in avrc_bld_inform_charset_rsp() argument
410 BT_HDR* /* p_pkt */) { in avrc_bld_inform_battery_status_rsp() argument
[all …]
/packages/modules/Bluetooth/system/stack/test/a2dp/
Da2dp_vendor_ldac_decoder_test.cc28 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data()
37 BT_HDR* AllocateL2capPacket(const std::vector<uint8_t> data) const { in AllocateL2capPacket()
44 BT_HDR* AllocatePacket(size_t packet_length) const { in AllocatePacket()
45 BT_HDR* packet = in AllocatePacket()
46 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
54 BT_HDR* p_buf = AllocateL2capPacket(data); in TEST_F()
Da2dp_sbc_unittest.cc57 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data()
63 static BT_HDR* packet = nullptr;
130 BT_HDR* AllocateL2capPacket(const std::vector<uint8_t> data) const { in AllocateL2capPacket()
136 BT_HDR* AllocatePacket(size_t packet_length) const { in AllocatePacket()
137 BT_HDR* packet = in AllocatePacket()
138 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
155 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
176 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
198 BT_HDR* packet = AllocateL2capPacket(data); in TEST_F()
214 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
[all …]
Da2dp_opus_unittest.cc50 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data()
60 static BT_HDR* packet = nullptr;
123 BT_HDR* AllocateL2capPacket(const std::vector<uint8_t> data) const { in AllocateL2capPacket()
129 BT_HDR* AllocatePacket(size_t packet_length) const { in AllocatePacket()
130 BT_HDR* packet = in AllocatePacket()
131 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
147 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
169 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
191 BT_HDR* packet = AllocateL2capPacket(data); in TEST_F()
207 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
[all …]
Da2dp_aac_unittest.cc57 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data()
63 static BT_HDR* packet = nullptr;
129 BT_HDR* AllocateL2capPacket(const std::vector<uint8_t> data) const { in AllocateL2capPacket()
135 BT_HDR* AllocatePacket(size_t packet_length) const { in AllocatePacket()
136 BT_HDR* packet = in AllocatePacket()
137 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
153 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
172 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
190 BT_HDR* packet = AllocateL2capPacket(data); in TEST_F()
210 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
[all …]
Da2dp_vendor_ldac_unittest.cc46 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data()
113 BT_HDR* AllocateL2capPacket(const std::vector<uint8_t> data) const { in AllocateL2capPacket()
119 BT_HDR* AllocatePacket(size_t packet_length) const { in AllocatePacket()
120 BT_HDR* packet = in AllocatePacket()
121 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
138 auto enqueue_cb = +[](BT_HDR* p_buf, size_t frames_n, uint32_t len) -> bool { in TEST_F()
/packages/modules/Bluetooth/system/hci/test/
Dpacket_fragmenter_test.cc75 static BT_HDR* manufacture_packet_for_fragmentation(uint16_t event, in manufacture_packet_for_fragmentation()
86 BT_HDR* packet = (BT_HDR*)osi_malloc(size + sizeof(BT_HDR)); in manufacture_packet_for_fragmentation()
112 BT_HDR* packet, const char* expected_data, in expect_packet_fragmented()
202 BT_HDR* packet; in manufacture_iso_packet_and_then_reassemble()
215 packet = (BT_HDR*)osi_malloc(length_to_send + 4 + sizeof(BT_HDR)); in manufacture_iso_packet_and_then_reassemble()
272 BT_HDR* packet = (BT_HDR*)osi_malloc(data_length + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble()
283 static void expect_packet_reassembled_iso(uint16_t event, BT_HDR* packet, in expect_packet_reassembled_iso()
332 STUB_FUNCTION(void, fragmented_callback, (BT_HDR * packet, bool send_complete))
348 STUB_FUNCTION(void, reassembled_callback, (BT_HDR * packet))
402 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_ISO,
[all …]
/packages/modules/Bluetooth/system/stack/test/rfcomm/
Dstack_rfcomm_test.cc51 std::string DumpBtHdrToString(BT_HDR* p_hdr) { in DumpBtHdrToString()
56 void PrintTo(BT_HDR* value, ::std::ostream* os) { in PrintTo()
101 auto arg_hdr = static_cast<BT_HDR*>(arg); in MATCHER_P()
103 auto expected_hdr = static_cast<BT_HDR*>(expected); in MATCHER_P()
177 BT_HDR* sabm_channel_0 = AllocateWrappedIncomingL2capAclPacket( in ConnectServerL2cap()
179 BT_HDR* ua_channel_0 = AllocateWrappedOutgoingL2capAclPacket( in ConnectServerL2cap()
193 BT_HDR* uih_pn_cmd_from_peer = AllocateWrappedIncomingL2capAclPacket( in ConnectServerPort()
197 BT_HDR* uih_pn_rsp_to_peer = AllocateWrappedOutgoingL2capAclPacket( in ConnectServerPort()
212 BT_HDR* sabm_channel_dlci = AllocateWrappedIncomingL2capAclPacket( in ConnectServerPort()
228 BT_HDR* ua_channel_dlci = AllocateWrappedOutgoingL2capAclPacket( in ConnectServerPort()
[all …]
/packages/modules/Bluetooth/system/stack/rfcomm/
Drfc_ts_frames.cc52 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_sabme()
80 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_ua()
107 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_dm()
134 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_disc()
158 void rfc_send_buf_uih(tRFC_MCB* p_mcb, uint8_t dlci, BT_HDR* p_buf) { in rfc_send_buf_uih()
221 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_pn()
263 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_fcon()
286 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_fcoff()
313 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_msc()
357 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_rls()
[all …]
/packages/modules/Bluetooth/system/bta/pan/
Dbta_pan_ci.cc49 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready()
120 BT_HDR* p_buf = (BT_HDR*)osi_malloc(PAN_BUF_SIZE); in bta_pan_ci_rx_write()
156 BT_HDR* p_buf, bool ext) { in bta_pan_ci_rx_writebuf()
178 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, in bta_pan_ci_readbuf()
181 BT_HDR* p_buf; in bta_pan_ci_readbuf()
185 p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_scb->data_queue); in bta_pan_ci_readbuf()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_fcr.cc89 static void process_s_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word);
90 static void process_i_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, uint16_t ctrl_word,
93 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf,
95 static bool do_sar_reassembly(tL2C_CCB* p_ccb, BT_HDR* p_buf,
129 static uint16_t l2c_fcr_tx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_tx_get_fcs()
144 static uint16_t l2c_fcr_rx_get_fcs(BT_HDR* p_buf) { in l2c_fcr_rx_get_fcs()
238 BT_HDR* l2c_fcr_clone_buf(BT_HDR* p_buf, uint16_t new_offset, in l2c_fcr_clone_buf()
245 uint16_t buf_size = no_of_bytes + sizeof(BT_HDR) + new_offset + L2CAP_FCS_LEN; in l2c_fcr_clone_buf()
246 BT_HDR* p_buf2 = (BT_HDR*)osi_malloc(buf_size); in l2c_fcr_clone_buf()
289 static void prepare_I_frame(tL2C_CCB* p_ccb, BT_HDR* p_buf, in prepare_I_frame()
[all …]
/packages/modules/Bluetooth/system/stack/fuzzers/
Davrc_fuzzer.cc61 BT_HDR* hdr) { in FakeBtStack()
144 BT_HDR* p_pkt = (BT_HDR*)nullptr; in msg_cb()
155 BT_HDR* p_pkt = (BT_HDR*)nullptr; in msg_cb()
166 BT_HDR* p_pkt = (BT_HDR*)nullptr; in msg_cb()
208 BT_HDR* hdr = (BT_HDR*)osi_calloc(sizeof(BT_HDR) + bytes.size()); in Fuzz()
/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_api.cc107 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose()
145 BT_HDR* p_data) { in bta_hh_snd_write_dev()
173 BT_HDR* p_data) { in BTA_HhSetReport()
275 BT_HDR* p_data) { in BTA_HhSendData()
296 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhGetDscpInfo()
/packages/modules/Bluetooth/system/main/shim/
Dhci_layer.cc54 constexpr size_t kBtHdrSize = sizeof(BT_HDR);
58 static base::Callback<void(const base::Location&, BT_HDR*)> send_data_upwards;
131 static BT_HDR* WrapPacketAndCopy( in WrapPacketAndCopy()
135 BT_HDR* packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in WrapPacketAndCopy()
166 BT_HDR* response = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_EVT, &view); in OnTransmitPacketCommandComplete()
177 status_callback(status, static_cast<BT_HDR*>(command->Release()), context); in OnTransmitPacketStatus()
180 static void transmit_command(const BT_HDR* command, in transmit_command()
314 base::Callback<void(const base::Location&, BT_HDR*)> send_data_cb) { in set_data_cb()
318 static void transmit_command(const BT_HDR* command, in transmit_command()
324 static void transmit_fragment(BT_HDR* packet, bool send_transmit_finished) { in transmit_fragment()
[all …]
/packages/modules/Bluetooth/system/stack/test/common/
Dstack_test_packet_utils.cc61 BT_HDR* AllocateWrappedIncomingL2capAclPacket(const uint8_t* acl_packet_bytes, in AllocateWrappedIncomingL2capAclPacket()
64 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedIncomingL2capAclPacket()
74 BT_HDR* AllocateWrappedIncomingL2capAclPacket( in AllocateWrappedIncomingL2capAclPacket()
79 BT_HDR* AllocateWrappedOutgoingL2capAclPacket(const uint8_t* acl_packet_bytes, in AllocateWrappedOutgoingL2capAclPacket()
86 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedOutgoingL2capAclPacket()
96 BT_HDR* AllocateWrappedOutgoingL2capAclPacket( in AllocateWrappedOutgoingL2capAclPacket()
/packages/modules/Bluetooth/system/stack/avct/
Davct_lcb_act.cc57 static BT_HDR* avct_lcb_msg_asmbl(tAVCT_LCB* p_lcb, BT_HDR* p_buf) { in avct_lcb_msg_asmbl()
60 BT_HDR* p_ret; in avct_lcb_msg_asmbl()
74 (sizeof(BT_HDR) + p_buf->offset + p_buf->len) > BT_DEFAULT_BUFFER_SIZE) { in avct_lcb_msg_asmbl()
100 if (sizeof(BT_HDR) + p_buf->offset + p_buf->len > BT_DEFAULT_BUFFER_SIZE) { in avct_lcb_msg_asmbl()
105 p_lcb->p_rx_msg = (BT_HDR*)osi_malloc(BT_DEFAULT_BUFFER_SIZE); in avct_lcb_msg_asmbl()
106 memcpy(p_lcb->p_rx_msg, p_buf, sizeof(BT_HDR) + p_buf->offset + p_buf->len); in avct_lcb_msg_asmbl()
138 uint16_t buf_len = BT_DEFAULT_BUFFER_SIZE - sizeof(BT_HDR); in avct_lcb_msg_asmbl()
502 BT_HDR* p_buf; in avct_lcb_cong_ind()
509 (p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_lcb->tx_q)) != NULL) { in avct_lcb_cong_ind()
574 BT_HDR* p_buf; in avct_lcb_send_msg()
[all …]
/packages/modules/Bluetooth/system/hci/include/
Dpacket_fragmenter.h24 typedef void (*packet_reassembled_cb)(BT_HDR* packet);
25 typedef void (*packet_fragmented_cb)(BT_HDR* packet,
45 void (*fragment_and_dispatch)(BT_HDR* packet, uint16_t iso_buffer_size);
49 void (*reassemble_and_dispatch)(BT_HDR* packet);

1234567891011