Home
last modified time | relevance | path

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

1234567891011

/system/bt/hci/include/
Dhci_packet_factory.h25 BT_HDR* (*make_reset)(void);
26 BT_HDR* (*make_read_buffer_size)(void);
27 BT_HDR* (*make_host_buffer_size)(uint16_t acl_size, uint8_t sco_size,
29 BT_HDR* (*make_read_local_version_info)(void);
30 BT_HDR* (*make_read_bd_addr)(void);
31 BT_HDR* (*make_read_local_supported_commands)(void);
32 BT_HDR* (*make_read_local_extended_features)(uint8_t page_number);
33 BT_HDR* (*make_write_simple_pairing_mode)(uint8_t mode);
34 BT_HDR* (*make_write_secure_connections_host_support)(uint8_t mode);
35 BT_HDR* (*make_set_event_mask)(const bt_event_mask_t* event_mask);
[all …]
Dhci_packet_parser.h30 void (*parse_generic_command_complete)(BT_HDR* response);
32 void (*parse_read_buffer_size_response)(BT_HDR* response,
36 void (*parse_read_local_version_info_response)(BT_HDR* response,
39 void (*parse_read_bd_addr_response)(BT_HDR* response,
43 BT_HDR* response, uint8_t* supported_commands_ptr,
47 BT_HDR* response, uint8_t* page_number_ptr, uint8_t* max_page_number_ptr,
50 void (*parse_ble_read_acceptlist_size_response)(BT_HDR* response,
53 void (*parse_ble_read_buffer_size_response)(BT_HDR* response,
56 void (*parse_ble_read_buffer_size_v2_response)(BT_HDR* response,
63 BT_HDR* response, uint8_t* supported_states,
[all …]
Dpacket_fragmenter.h25 typedef void (*transmit_finished_cb)(BT_HDR* packet, bool all_fragments_sent);
26 typedef void (*packet_reassembled_cb)(BT_HDR* packet);
27 typedef void (*packet_fragmented_cb)(BT_HDR* packet,
51 void (*fragment_and_dispatch)(BT_HDR* packet);
57 void (*reassemble_and_dispatch)(BT_HDR* packet);
Dhci_layer.h67 typedef void (*command_complete_cb)(BT_HDR* response, void* context);
68 typedef void (*command_status_cb)(uint8_t status, BT_HDR* command,
74 base::Callback<void(const base::Location&, BT_HDR*)> send_data_cb);
77 void (*transmit_command)(BT_HDR* command,
81 future_t* (*transmit_command_futured)(BT_HDR* command);
94 void post_to_main_message_loop(const base::Location& from_here, BT_HDR* p_msg);
/system/bt/hci/src/
Dhci_packet_factory.cc32 static BT_HDR* make_packet(size_t data_size);
33 static BT_HDR* make_command_no_params(uint16_t opcode);
34 static BT_HDR* make_command(uint16_t opcode, size_t parameter_size,
39 static BT_HDR* make_reset(void) { return make_command_no_params(HCI_RESET); } in make_reset()
41 static BT_HDR* make_read_buffer_size(void) { in make_read_buffer_size()
45 static BT_HDR* make_host_buffer_size(uint16_t acl_size, uint8_t sco_size, in make_host_buffer_size()
49 BT_HDR* packet = make_command(HCI_HOST_BUFFER_SIZE, parameter_size, &stream); in make_host_buffer_size()
58 static BT_HDR* make_read_local_version_info(void) { in make_read_local_version_info()
62 static BT_HDR* make_read_bd_addr(void) { in make_read_bd_addr()
66 static BT_HDR* make_read_local_supported_commands(void) { in make_read_local_supported_commands()
[all …]
Dhci_packet_parser.cc34 static uint8_t* read_command_complete_header(BT_HDR* response,
38 static void parse_generic_command_complete(BT_HDR* response) { in parse_generic_command_complete()
45 static void parse_read_buffer_size_response(BT_HDR* response, in parse_read_buffer_size_response()
58 static void parse_read_local_version_info_response(BT_HDR* response, in parse_read_local_version_info_response()
73 BT_HDR* response, uint8_t* number_of_local_supported_codecs, in parse_read_local_supported_codecs_response()
88 static void parse_read_bd_addr_response(BT_HDR* response, in parse_read_bd_addr_response()
99 BT_HDR* response, uint8_t* supported_commands_ptr, in parse_read_local_supported_commands_response()
112 BT_HDR* response, uint8_t* page_number_ptr, uint8_t* max_page_number_ptr, in parse_read_local_extended_features_response()
130 BT_HDR* response, uint8_t* acceptlist_size_ptr) { in parse_ble_read_acceptlist_size_response()
139 static void parse_ble_read_buffer_size_response(BT_HDR* response, in parse_ble_read_buffer_size_response()
[all …]
Dhci_layer_android.cc56 extern void hci_event_received(const base::Location& from_here, BT_HDR* packet);
57 extern void acl_event_received(BT_HDR* packet);
58 extern void sco_data_received(BT_HDR* packet);
59 extern void iso_data_received(BT_HDR* packet);
98 BT_HDR* WrapPacketAndCopy(uint16_t event, const hidl_vec<uint8_t>& data) { in WrapPacketAndCopy()
100 BT_HDR* packet = in WrapPacketAndCopy()
101 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in WrapPacketAndCopy()
129 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_EVT, event); in hciEventReceived()
136 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_ACL, data); in aclDataReceived()
143 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_SCO, data); in scoDataReceived()
[all …]
Dpacket_fragmenter.cc53 static std::unordered_map<uint16_t /* handle */, BT_HDR*> partial_packets;
54 static std::unordered_map<uint16_t /* handle */, BT_HDR*> partial_iso_packets;
69 static void fragment_and_dispatch_acl(BT_HDR* packet);
70 static void fragment_and_dispatch_iso(BT_HDR* packet);
72 static void fragment_and_dispatch(BT_HDR* packet) { in fragment_and_dispatch()
86 static void fragment_and_dispatch_acl(BT_HDR* packet) { in fragment_and_dispatch_acl()
135 static void fragment_and_dispatch_iso(BT_HDR* packet) { in fragment_and_dispatch_iso()
181 static void reassemble_and_dispatch_iso(UNUSED_ATTR BT_HDR* packet) { in reassemble_and_dispatch_iso()
186 BT_HDR* partial_packet; in reassemble_and_dispatch_iso()
213 BT_HDR* hdl = map_iter->second; in reassemble_and_dispatch_iso()
[all …]
/system/bt/stack/gatt/
Datt_protocol.cc49 static BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd()
51 BT_HDR* p_buf = in attp_build_mtu_cmd()
52 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd()
72 static BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd()
73 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd()
101 static BT_HDR* attp_build_err_cmd(uint8_t cmd_code, uint16_t err_handle, in attp_build_err_cmd()
104 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd()
128 static BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, in attp_build_browse_cmd()
133 BT_HDR* p_buf = in attp_build_browse_cmd()
134 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd()
[all …]
/system/bt/stack/hcic/
Dhcicmds.cc44 void bte_main_hci_send(BT_HDR* p_msg, uint16_t event);
487 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inquiry()
504 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_inq_cancel()
518 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_per_inq_mode()
537 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_exit_per_inq()
551 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn()
569 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_disconnect()
584 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_add_SCO_conn()
600 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_create_conn_cancel()
615 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_accept_conn()
[all …]
Dhciblecmds.cc110 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_local_used_feat()
123 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_random_addr()
143 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_write_adv_params()
164 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_read_adv_chnl_tx_power()
177 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_data()
199 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_rsp_data()
223 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_adv_enable()
239 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_params()
258 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_set_scan_enable()
279 BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE); in btsnd_hcic_ble_create_ll_conn()
[all …]
/system/bt/hci/test/
Dhci_layer_test.cc43 void hci_transmit(BT_HDR* packet) { LOG(INFO) << __func__ << " UNIMPLEMENTED"; } in hci_transmit()
46 void hci_log_firmware_debug_packet(int fd, BT_HDR* packet) {} in hci_log_firmware_debug_packet()
69 BT_HDR* AllocateHciEventPacket(size_t packet_length) const { in AllocateHciEventPacket()
73 uint8_t* GetPayloadPointer(BT_HDR* packet) const { in GetPayloadPointer()
78 BT_HDR* AllocatePacket(size_t packet_length, uint16_t event) const { in AllocatePacket()
79 BT_HDR* packet = in AllocatePacket()
80 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
91 BT_HDR* packet = AllocateHciEventPacket(3); in TEST_F()
101 BT_HDR* packet = AllocateHciEventPacket(3); in TEST_F()
112 BT_HDR* packet = AllocateHciEventPacket(6); in TEST_F()
Dpacket_fragmenter_test.cc77 static BT_HDR* manufacture_packet_for_fragmentation(uint16_t event, in manufacture_packet_for_fragmentation()
90 BT_HDR* packet = (BT_HDR*)osi_malloc(size + sizeof(BT_HDR)); in manufacture_packet_for_fragmentation()
119 BT_HDR* packet, const char* expected_data, in expect_packet_fragmented()
237 BT_HDR* packet = (BT_HDR*)osi_malloc(length_to_send + 4 + sizeof(BT_HDR)); in manufacture_acl_packet_and_then_reassemble()
267 BT_HDR* packet; in manufacture_iso_packet_and_then_reassemble()
280 packet = (BT_HDR*)osi_malloc(length_to_send + 4 + sizeof(BT_HDR)); in manufacture_iso_packet_and_then_reassemble()
339 BT_HDR* packet = (BT_HDR*)osi_malloc(data_length + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble()
350 static void expect_packet_reassembled(uint16_t event, BT_HDR* packet, in expect_packet_reassembled()
377 static void expect_packet_reassembled_iso(uint16_t event, BT_HDR* packet, in expect_packet_reassembled_iso()
426 STUB_FUNCTION(void, fragmented_callback, (BT_HDR * packet, bool send_complete))
[all …]
/system/bt/test/mock/
Dmock_hci_layer.h60 std::function<void(const base::Location& from_here, BT_HDR* packet)> body{
61 [](const base::Location& from_here, BT_HDR* packet) {}};
62 void operator()(const base::Location& from_here, BT_HDR* packet) { in operator()
71 std::function<void(BT_HDR* packet)> body{[](BT_HDR* packet) {}};
72 void operator()(BT_HDR* packet) { body(packet); }; in operator()
79 std::function<void(BT_HDR* packet)> body{[](BT_HDR* packet) {}};
80 void operator()(BT_HDR* packet) { body(packet); }; in operator()
87 std::function<void(BT_HDR* packet)> body{[](BT_HDR* packet) {}};
88 void operator()(BT_HDR* packet) { body(packet); }; in operator()
Dmock_main_bte.h67 std::function<void(const base::Location& from_here, BT_HDR* p_msg)> body{
68 [](const base::Location& from_here, BT_HDR* p_msg) {}};
69 void operator()(const base::Location& from_here, BT_HDR* p_msg) { in operator()
86 std::function<void(BT_HDR* p_msg, uint16_t event)> body{
87 [](BT_HDR* p_msg, uint16_t event) {}};
88 void operator()(BT_HDR* p_msg, uint16_t event) { body(p_msg, event); }; in operator()
/system/bt/stack/test/a2dp/
Da2dp_vendor_ldac_decoder_test.cc31 uint8_t* Data(BT_HDR* packet) { return packet->data + packet->offset; } in Data()
48 BT_HDR* AllocateL2capPacket(const std::vector<uint8_t> data) const { in AllocateL2capPacket()
55 BT_HDR* AllocatePacket(size_t packet_length) const { in AllocatePacket()
56 BT_HDR* packet = in AllocatePacket()
57 static_cast<BT_HDR*>(osi_calloc(sizeof(BT_HDR) + packet_length)); in AllocatePacket()
65 BT_HDR* p_buf = AllocateL2capPacket(data); in TEST_F()
/system/bt/stack/smp/
Dsmp_utils.cc136 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
138 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
139 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code,
141 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb);
142 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code,
144 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code,
146 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code,
148 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code,
150 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code,
152 static BT_HDR* smp_build_central_id_cmd(UNUSED_ATTR uint8_t cmd_code,
[all …]
/system/bt/stack/avrc/
Davrc_opt.cc47 static BT_HDR* avrc_vendor_msg(tAVRC_MSG_VENDOR* p_msg) { in avrc_vendor_msg()
48 BT_HDR* p_cmd; in avrc_vendor_msg()
54 p_cmd = (BT_HDR*)osi_calloc(AVRC_META_CMD_BUF_SIZE); in avrc_vendor_msg()
94 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in AVRC_UnitCmd()
137 BT_HDR* p_cmd = (BT_HDR*)osi_calloc(AVRC_CMD_BUF_SIZE); in AVRC_SubCmd()
181 BT_HDR* p_buf = avrc_vendor_msg(p_msg); in AVRC_VendorCmd()
216 BT_HDR* p_buf = avrc_vendor_msg(p_msg); in AVRC_VendorRsp()
Davrc_bld_ct.cc39 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd()
72 BT_HDR* p_pkt) { in avrc_bld_set_abs_volume_cmd()
96 static tAVRC_STS avrc_bld_register_notifn(BT_HDR* p_pkt, uint8_t event_id, in avrc_bld_register_notifn()
124 static tAVRC_STS avrc_bld_get_capability_cmd(BT_HDR* p_pkt, uint8_t cap_id) { in avrc_bld_get_capability_cmd()
145 static tAVRC_STS avrc_bld_list_player_app_attr_cmd(BT_HDR* p_pkt) { in avrc_bld_list_player_app_attr_cmd()
165 static tAVRC_STS avrc_bld_list_player_app_values_cmd(BT_HDR* p_pkt, in avrc_bld_list_player_app_values_cmd()
189 BT_HDR* p_pkt, uint8_t num_attrib_id, uint8_t* attrib_ids) { in avrc_bld_get_current_player_app_values_cmd()
217 BT_HDR* p_pkt, uint8_t num_attrib_id, tAVRC_APP_SETTING* p_val) { in avrc_bld_set_current_player_app_values_cmd()
248 BT_HDR* p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_attr_text_cmd()
277 BT_HDR* p_pkt, tAVRC_GET_APP_VAL_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_value_text_cmd()
[all …]
/system/bt/bta/pan/
Dbta_pan_ci.cc48 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in bta_pan_ci_tx_ready()
119 BT_HDR* p_buf = (BT_HDR*)osi_malloc(PAN_BUF_SIZE); in bta_pan_ci_rx_write()
155 BT_HDR* p_buf, bool ext) { in bta_pan_ci_rx_writebuf()
177 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, in bta_pan_ci_readbuf()
180 BT_HDR* p_buf; in bta_pan_ci_readbuf()
184 p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_scb->data_queue); in bta_pan_ci_readbuf()
239 UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext) {} in bta_pan_ci_rx_writebuf()
241 BT_HDR* bta_pan_ci_readbuf(UNUSED_ATTR uint16_t handle, in bta_pan_ci_readbuf()
/system/bt/bta/hh/
Dbta_hh_api.cc82 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HhDisable()
100 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhClose()
138 BT_HDR* p_data) { in bta_hh_snd_write_dev()
166 BT_HDR* p_data) { in BTA_HhSetReport()
268 BT_HDR* p_data) { in BTA_HhSendData()
289 BT_HDR* p_buf = (BT_HDR*)osi_calloc(sizeof(BT_HDR)); in BTA_HhGetDscpInfo()
/system/bt/stack/test/common/
Dstack_test_packet_utils.h57 BT_HDR* AllocateWrappedIncomingL2capAclPacket(const uint8_t* acl_packet_bytes,
59 BT_HDR* AllocateWrappedIncomingL2capAclPacket(
73 BT_HDR* AllocateWrappedOutgoingL2capAclPacket(const uint8_t* acl_packet_bytes,
75 BT_HDR* AllocateWrappedOutgoingL2capAclPacket(
Dstack_test_packet_utils.cc57 BT_HDR* AllocateWrappedIncomingL2capAclPacket(const uint8_t* acl_packet_bytes, in AllocateWrappedIncomingL2capAclPacket()
60 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedIncomingL2capAclPacket()
70 BT_HDR* AllocateWrappedIncomingL2capAclPacket( in AllocateWrappedIncomingL2capAclPacket()
75 BT_HDR* AllocateWrappedOutgoingL2capAclPacket(const uint8_t* acl_packet_bytes, in AllocateWrappedOutgoingL2capAclPacket()
81 auto packet = reinterpret_cast<BT_HDR*>(osi_malloc(packet_size)); in AllocateWrappedOutgoingL2capAclPacket()
91 BT_HDR* AllocateWrappedOutgoingL2capAclPacket( in AllocateWrappedOutgoingL2capAclPacket()
/system/bt/stack/include/
Dl2cap_acl_interface.h32 void acl_send_data_packet_br_edr(const RawAddress& bd_addr, BT_HDR* p_buf);
33 void acl_send_data_packet_ble(const RawAddress& bd_addr, BT_HDR* p_buf);
38 extern void l2c_rcv_acl_data(BT_HDR* p_msg);
41 extern void l2c_link_segments_xmitted(BT_HDR* p_msg);
/system/bt/stack/rfcomm/
Drfc_ts_frames.cc46 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_sabme()
74 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_ua()
101 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_dm()
128 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_disc()
152 void rfc_send_buf_uih(tRFC_MCB* p_mcb, uint8_t dlci, BT_HDR* p_buf) { in rfc_send_buf_uih()
212 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_pn()
254 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_fcon()
277 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_fcoff()
304 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_msc()
348 BT_HDR* p_buf = (BT_HDR*)osi_malloc(RFCOMM_CMD_BUF_SIZE); in rfc_send_rls()
[all …]

1234567891011