Home
last modified time | relevance | path

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

123456789

/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_white_list_size_response)(BT_HDR* response,
53 void (*parse_ble_read_buffer_size_response)(BT_HDR* response,
58 BT_HDR* response, uint8_t* supported_states,
62 BT_HDR* response, bt_device_features_t* supported_features);
[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.h66 typedef void (*command_complete_cb)(BT_HDR* response, void* context);
67 typedef void (*command_status_cb)(uint8_t status, BT_HDR* command,
73 base::Callback<void(const base::Location&, BT_HDR*)> send_data_cb);
76 void (*transmit_command)(BT_HDR* command,
80 future_t* (*transmit_command_futured)(BT_HDR* command);
93 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* white_list_size_ptr) { in parse_ble_read_white_list_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.cc51 extern void hci_event_received(const base::Location& from_here, BT_HDR* packet);
52 extern void acl_event_received(BT_HDR* packet);
53 extern void sco_data_received(BT_HDR* packet);
72 BT_HDR* WrapPacketAndCopy(uint16_t event, const hidl_vec<uint8_t>& data) { in WrapPacketAndCopy()
74 BT_HDR* packet = in WrapPacketAndCopy()
75 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size)); in WrapPacketAndCopy()
93 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_EVT, event); in hciEventReceived()
99 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_ACL, data); in aclDataReceived()
105 BT_HDR* packet = WrapPacketAndCopy(MSG_HC_TO_STACK_HCI_SCO, data); in scoDataReceived()
145 void hci_transmit(BT_HDR* packet) { in hci_transmit()
[all …]
/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/stack/gatt/
Datt_protocol.cc48 BT_HDR* attp_build_mtu_cmd(uint8_t op_code, uint16_t rx_mtu) { in attp_build_mtu_cmd()
50 BT_HDR* p_buf = in attp_build_mtu_cmd()
51 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + GATT_HDR_SIZE + L2CAP_MIN_OFFSET); in attp_build_mtu_cmd()
71 BT_HDR* attp_build_exec_write_cmd(uint8_t op_code, uint8_t flag) { in attp_build_exec_write_cmd()
72 BT_HDR* p_buf = (BT_HDR*)osi_malloc(GATT_DATA_BUF_SIZE); in attp_build_exec_write_cmd()
100 BT_HDR* attp_build_err_cmd(uint8_t cmd_code, uint16_t err_handle, in attp_build_err_cmd()
103 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR) + L2CAP_MIN_OFFSET + 5); in attp_build_err_cmd()
127 BT_HDR* attp_build_browse_cmd(uint8_t op_code, uint16_t s_hdl, uint16_t e_hdl, in attp_build_browse_cmd()
131 BT_HDR* p_buf = in attp_build_browse_cmd()
132 (BT_HDR*)osi_malloc(sizeof(BT_HDR) + payload_size + L2CAP_MIN_OFFSET); in attp_build_browse_cmd()
[all …]
/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.cc135 typedef BT_HDR* (*tSMP_CMD_ACT)(uint8_t cmd_code, tSMP_CB* p_cb);
137 static BT_HDR* smp_build_pairing_cmd(uint8_t cmd_code, tSMP_CB* p_cb);
138 static BT_HDR* smp_build_confirm_cmd(UNUSED_ATTR uint8_t cmd_code,
140 static BT_HDR* smp_build_rand_cmd(UNUSED_ATTR uint8_t cmd_code, tSMP_CB* p_cb);
141 static BT_HDR* smp_build_pairing_fail(UNUSED_ATTR uint8_t cmd_code,
143 static BT_HDR* smp_build_identity_info_cmd(UNUSED_ATTR uint8_t cmd_code,
145 static BT_HDR* smp_build_encrypt_info_cmd(UNUSED_ATTR uint8_t cmd_code,
147 static BT_HDR* smp_build_security_request(UNUSED_ATTR uint8_t cmd_code,
149 static BT_HDR* smp_build_signing_info_cmd(UNUSED_ATTR uint8_t cmd_code,
151 static BT_HDR* smp_build_master_id_cmd(UNUSED_ATTR uint8_t cmd_code,
[all …]
/system/bt/bta/pan/
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()
126 BT_HDR* p_buf = (BT_HDR*)osi_malloc(PAN_BUF_SIZE); in bta_pan_ci_rx_write()
162 BT_HDR* p_buf, bool ext) { in bta_pan_ci_rx_writebuf()
184 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, in bta_pan_ci_readbuf()
187 BT_HDR* p_buf; in bta_pan_ci_readbuf()
191 p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_scb->data_queue); in bta_pan_ci_readbuf()
245 UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext) {} in bta_pan_ci_rx_writebuf()
247 BT_HDR* bta_pan_ci_readbuf(UNUSED_ATTR uint16_t handle, in bta_pan_ci_readbuf()
Dbta_pan_int.h65 BT_HDR hdr; /* Event header */
71 BT_HDR hdr; /* Event header */
87 BT_HDR hdr; /* Event header */
95 BT_HDR hdr; /* Event header */
101 BT_HDR hdr; /* Event header */
108 BT_HDR hdr;
145 BT_HDR hdr;
168 extern bool bta_pan_hdl_event(BT_HDR* p_msg);
/system/bt/bta/hf_client/
Dbta_hf_client_api.cc110 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()
/system/bt/bta/hd/
Dbta_hd_api.cc83 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdDisable()
156 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdUnregisterApp()
207 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdVirtualCableUnplug()
246 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_HdDisconnect()
Dbta_hd_int.h62 BT_HDR hdr;
79 BT_HDR hdr;
94 BT_HDR hdr;
103 BT_HDR hdr;
108 BT_HDR hdr;
114 BT_HDR hdr;
123 BT_HDR hdr;
126 BT_HDR* p_data;
149 extern bool bta_hd_hdl_event(BT_HDR* p_msg);
/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_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()
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/sdp/
Dbta_sdp_int.h54 BT_HDR hdr;
60 BT_HDR hdr;
67 BT_HDR hdr;
74 BT_HDR hdr;
93 extern bool bta_sdp_sm_execute(BT_HDR* p_msg);
/system/bt/hci/test/
Dpacket_fragmenter_test.cc62 static BT_HDR* manufacture_packet_for_fragmentation(uint16_t event, in manufacture_packet_for_fragmentation()
70 BT_HDR* packet = (BT_HDR*)osi_malloc(size + sizeof(BT_HDR)); in manufacture_packet_for_fragmentation()
87 BT_HDR* packet, const char* expected_data, in expect_packet_fragmented()
146 BT_HDR* packet = (BT_HDR*)osi_malloc(length_to_send + 4 + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble()
168 BT_HDR* packet = (BT_HDR*)osi_malloc(data_length + sizeof(BT_HDR)); in manufacture_packet_and_then_reassemble()
179 static void expect_packet_reassembled(uint16_t event, BT_HDR* packet, in expect_packet_reassembled()
206 STUB_FUNCTION(void, fragmented_callback, (BT_HDR * packet, bool send_complete))
240 STUB_FUNCTION(void, reassembled_callback, (BT_HDR * packet))
260 (UNUSED_ATTR BT_HDR * packet,
323 BT_HDR* packet = manufacture_packet_for_fragmentation(MSG_STACK_TO_HC_HCI_ACL,
[all …]
/system/bt/bta/gatt/
Dbta_gatts_int.h62 BT_HDR hdr;
68 BT_HDR hdr;
75 BT_HDR hdr;
82 BT_HDR hdr;
90 BT_HDR hdr;
97 BT_HDR hdr;
102 BT_HDR hdr;
113 BT_HDR hdr;
159 extern bool bta_gatts_hdl_event(BT_HDR* p_msg);
Dbta_gatts_api.cc60 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Disable()
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()
352 BT_HDR* p_buf = (BT_HDR*)osi_malloc(sizeof(BT_HDR)); in BTA_GATTS_Close()
/system/bt/bta/mce/
Dbta_mce_int.h45 BT_HDR hdr;
51 BT_HDR hdr;
58 BT_HDR hdr;
81 extern bool bta_mce_sm_execute(BT_HDR* p_msg);
/system/bt/stack/sdp/
Dsdpint.h64 (sizeof(BT_HDR) + HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_WRITE_PARAM1)
235 extern void sdp_conn_rcv_l2e_conn_ind(BT_HDR* p_msg);
236 extern void sdp_conn_rcv_l2e_conn_cfm(BT_HDR* p_msg);
237 extern void sdp_conn_rcv_l2e_disc(BT_HDR* p_msg);
238 extern void sdp_conn_rcv_l2e_config_ind(BT_HDR* p_msg);
239 extern void sdp_conn_rcv_l2e_config_cfm(BT_HDR* p_msg);
240 extern void sdp_conn_rcv_l2e_conn_failed(BT_HDR* p_msg);
241 extern void sdp_conn_rcv_l2e_connected(BT_HDR* p_msg);
242 extern void sdp_conn_rcv_l2e_conn_failed(BT_HDR* p_msg);
243 extern void sdp_conn_rcv_l2e_data(BT_HDR* p_msg);
[all …]

123456789