Home
last modified time | relevance | path

Searched refs:p_msg (Results 1 – 25 of 88) sorted by relevance

1234

/system/bt/bta/dm/
Dbta_dm_api.c76 tBTA_DM_API_ENABLE *p_msg = in BTA_EnableBluetooth() local
78 p_msg->hdr.event = BTA_DM_API_ENABLE_EVT; in BTA_EnableBluetooth()
79 p_msg->p_sec_cback = p_cback; in BTA_EnableBluetooth()
81 bta_sys_sendmsg(p_msg); in BTA_EnableBluetooth()
98 BT_HDR *p_msg = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_DisableBluetooth() local
100 p_msg->event = BTA_DM_API_DISABLE_EVT; in BTA_DisableBluetooth()
102 bta_sys_sendmsg(p_msg); in BTA_DisableBluetooth()
119 BT_HDR *p_msg = (BT_HDR *)osi_malloc(sizeof(BT_HDR)); in BTA_EnableTestMode() local
123 p_msg->event = BTA_DM_API_ENABLE_TEST_MODE_EVT; in BTA_EnableTestMode()
124 bta_sys_sendmsg(p_msg); in BTA_EnableTestMode()
[all …]
Dbta_dm_ci.c48 tBTA_DM_CI_IO_REQ *p_msg = in bta_dm_ci_io_req() local
51 p_msg->hdr.event = BTA_DM_CI_IO_REQ_EVT; in bta_dm_ci_io_req()
52 bdcpy(p_msg->bd_addr, bd_addr); in bta_dm_ci_io_req()
53 p_msg->io_cap = io_cap; in bta_dm_ci_io_req()
54 p_msg->oob_data = oob_data; in bta_dm_ci_io_req()
55 p_msg->auth_req = auth_req; in bta_dm_ci_io_req()
57 bta_sys_sendmsg(p_msg); in bta_dm_ci_io_req()
73 tBTA_DM_CI_RMT_OOB *p_msg = in bta_dm_ci_rmt_oob() local
76 p_msg->hdr.event = BTA_DM_CI_RMT_OOB_EVT; in bta_dm_ci_rmt_oob()
77 bdcpy(p_msg->bd_addr, bd_addr); in bta_dm_ci_rmt_oob()
[all …]
/system/bt/bta/jv/
Dbta_jv_api.c163 tBTA_JV_API_ALLOC_CHANNEL *p_msg = in BTA_JvGetChannelId() local
168 p_msg->hdr.event = BTA_JV_API_GET_CHANNEL_EVT; in BTA_JvGetChannelId()
169 p_msg->type = conn_type; in BTA_JvGetChannelId()
170 p_msg->channel = channel; in BTA_JvGetChannelId()
171 p_msg->user_data = user_data; in BTA_JvGetChannelId()
173 bta_sys_sendmsg(p_msg); in BTA_JvGetChannelId()
195 tBTA_JV_API_FREE_CHANNEL *p_msg = in BTA_JvFreeChannel() local
200 p_msg->hdr.event = BTA_JV_API_FREE_SCN_EVT; in BTA_JvFreeChannel()
201 p_msg->scn = channel; in BTA_JvFreeChannel()
202 p_msg->type = conn_type; in BTA_JvFreeChannel()
[all …]
/system/bt/bta/gatt/
Dbta_gatts_act.c183 void bta_gatts_register(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg) in bta_gatts_register() argument
198 if (bta_gatts_uuid_compare(p_cb->rcb[i].app_uuid, p_msg->api_reg.app_uuid)) in bta_gatts_register()
219 memcpy(&cb_data.reg_oper.uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID)); in bta_gatts_register()
225 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback; in bta_gatts_register()
226 memcpy(&p_cb->rcb[first_unuse].app_uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID)); in bta_gatts_register()
229 GATT_Register(&p_msg->api_reg.app_uuid, &bta_gatts_cback); in bta_gatts_register()
246 if (p_msg->api_reg.p_cback) in bta_gatts_register()
247 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data); in bta_gatts_register()
260 void bta_gatts_start_if(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg) in bta_gatts_start_if() argument
264 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) in bta_gatts_start_if()
[all …]
Dbta_gatts_main.c63 BOOLEAN bta_gatts_hdl_event(BT_HDR *p_msg) in bta_gatts_hdl_event() argument
68 switch (p_msg->event) in bta_gatts_hdl_event()
75 bta_gatts_register(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
79 bta_gatts_start_if(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
83 bta_gatts_deregister(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
87 bta_gatts_create_srvc(p_cb, (tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
91 bta_gatts_indicate_handle(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
95 bta_gatts_open(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
99 bta_gatts_cancel_open(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
103 bta_gatts_close(p_cb,(tBTA_GATTS_DATA *) p_msg); in bta_gatts_hdl_event()
[all …]
Dbta_gatts_int.h227 extern BOOLEAN bta_gatts_hdl_event(BT_HDR *p_msg);
231 extern void bta_gatts_register(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg);
232 extern void bta_gatts_start_if(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg);
233 extern void bta_gatts_deregister(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg);
234 extern void bta_gatts_create_srvc(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg);
235 extern void bta_gatts_add_include_srvc(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg);
236 extern void bta_gatts_add_char(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg);
237 extern void bta_gatts_add_char_descr(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg);
238 extern void bta_gatts_delete_service(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg);
239 extern void bta_gatts_start_service(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg);
[all …]
Dbta_gattc_main.c331 BOOLEAN bta_gattc_hdl_event(BT_HDR *p_msg) in bta_gattc_hdl_event() argument
338 APPL_TRACE_DEBUG("bta_gattc_hdl_event: Event [%s]", gattc_evt_code(p_msg->event)); in bta_gattc_hdl_event()
340 switch (p_msg->event) in bta_gattc_hdl_event()
347 bta_gattc_register(p_cb, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
351 bta_gattc_start_if(p_cb, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
355 p_clreg = bta_gattc_cl_get_regcb(((tBTA_GATTC_DATA *)p_msg)->api_dereg.client_if); in bta_gattc_hdl_event()
360 bta_gattc_process_api_open(p_cb, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
364 bta_gattc_process_api_open_cancel(p_cb, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
368 bta_gattc_process_api_refresh(p_cb, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
373 bta_gattc_listen(p_cb, (tBTA_GATTC_DATA *) p_msg); in bta_gattc_hdl_event()
[all …]
/system/bt/stack/btu/
Dbtu_task.c105 static void btu_hci_msg_process(BT_HDR *p_msg);
108 BT_HDR *p_msg = (BT_HDR *)fixed_queue_dequeue(queue); in btu_hci_msg_ready() local
109 btu_hci_msg_process(p_msg); in btu_hci_msg_ready()
113 BT_HDR *p_msg = (BT_HDR *)fixed_queue_dequeue(queue); in btu_bta_msg_ready() local
114 bta_sys_event(p_msg); in btu_bta_msg_ready()
117 static void btu_hci_msg_process(BT_HDR *p_msg) { in btu_hci_msg_process() argument
119 switch (p_msg->event & BT_EVT_MASK) in btu_hci_msg_process()
122 ((post_to_task_hack_t *)(&p_msg->data[0]))->callback(p_msg); in btu_hci_msg_process()
131 l2c_rcv_acl_data (p_msg); in btu_hci_msg_process()
136 l2c_link_segments_xmitted (p_msg); in btu_hci_msg_process()
[all …]
/system/bt/stack/avdt/
Davdt_msg.c57 typedef void (*tAVDT_MSG_BLD)(UINT8 **p, tAVDT_MSG *p_msg);
60 typedef UINT8 (*tAVDT_MSG_PRS)(tAVDT_MSG *p_msg, UINT8 *p, UINT16 len);
67 static void avdt_msg_bld_none(UINT8 **p, tAVDT_MSG *p_msg);
68 static void avdt_msg_bld_single(UINT8 **p, tAVDT_MSG *p_msg);
69 static void avdt_msg_bld_setconfig_cmd(UINT8 **p, tAVDT_MSG *p_msg);
70 static void avdt_msg_bld_reconfig_cmd(UINT8 **p, tAVDT_MSG *p_msg);
71 static void avdt_msg_bld_multi(UINT8 **p, tAVDT_MSG *p_msg);
72 static void avdt_msg_bld_security_cmd(UINT8 **p, tAVDT_MSG *p_msg);
73 static void avdt_msg_bld_discover_rsp(UINT8 **p, tAVDT_MSG *p_msg);
74 static void avdt_msg_bld_svccap(UINT8 **p, tAVDT_MSG *p_msg);
[all …]
/system/bt/bta/sdp/
Dbta_sdp_api.c97 tBTA_SDP_API_SEARCH *p_msg = in BTA_SdpSearch() local
102 p_msg->hdr.event = BTA_SDP_API_SEARCH_EVT; in BTA_SdpSearch()
103 bdcpy(p_msg->bd_addr, bd_addr); in BTA_SdpSearch()
105 memcpy(&(p_msg->uuid), uuid, sizeof(tSDP_UUID)); in BTA_SdpSearch()
107 bta_sys_sendmsg(p_msg); in BTA_SdpSearch()
126 tBTA_SDP_API_RECORD_USER *p_msg = in BTA_SdpCreateRecordByUser() local
131 p_msg->hdr.event = BTA_SDP_API_CREATE_RECORD_USER_EVT; in BTA_SdpCreateRecordByUser()
132 p_msg->user_data = user_data; in BTA_SdpCreateRecordByUser()
134 bta_sys_sendmsg(p_msg); in BTA_SdpCreateRecordByUser()
153 tBTA_SDP_API_RECORD_USER *p_msg = in BTA_SdpRemoveRecordByUser() local
[all …]
Dbta_sdp.c62 BOOLEAN bta_sdp_sm_execute(BT_HDR *p_msg) in bta_sdp_sm_execute() argument
64 if(p_msg == NULL) return FALSE; in bta_sdp_sm_execute()
67 UINT16 action = (p_msg->event & 0x00ff); in bta_sdp_sm_execute()
72 (*bta_sdp_action[action])((tBTA_SDP_MSG*)p_msg); in bta_sdp_sm_execute()
/system/bt/stack/avrc/
Davrc_opt.c47 static BT_HDR * avrc_vendor_msg(tAVRC_MSG_VENDOR *p_msg) in avrc_vendor_msg() argument
52 assert(p_msg != NULL); in avrc_vendor_msg()
55 assert(AVRC_META_CMD_BUF_SIZE > (AVRC_MIN_CMD_LEN + p_msg->vendor_len)); in avrc_vendor_msg()
58 assert(AVRC_CMD_BUF_SIZE > (AVRC_MIN_CMD_LEN + p_msg->vendor_len)); in avrc_vendor_msg()
64 *p_data++ = (p_msg->hdr.ctype & AVRC_CTYPE_MASK); in avrc_vendor_msg()
65 *p_data++ = (p_msg->hdr.subunit_type << AVRC_SUBTYPE_SHIFT) | p_msg->hdr.subunit_id; in avrc_vendor_msg()
67 AVRC_CO_ID_TO_BE_STREAM(p_data, p_msg->company_id); in avrc_vendor_msg()
68 if (p_msg->vendor_len && p_msg->p_vendor_data) in avrc_vendor_msg()
69 memcpy(p_data, p_msg->p_vendor_data, p_msg->vendor_len); in avrc_vendor_msg()
70 p_cmd->len = (UINT16)(p_data + p_msg->vendor_len - (UINT8 *)(p_cmd + 1) - p_cmd->offset); in avrc_vendor_msg()
[all …]
Davrc_pars_tg.c42 static tAVRC_STS avrc_ctrl_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_result) in avrc_ctrl_pars_vendor_cmd() argument
46 UINT8 *p = p_msg->p_vendor_data; in avrc_ctrl_pars_vendor_cmd()
49 if (!AVRC_IsValidAvcType (p_result->pdu, p_msg->hdr.ctype)) in avrc_ctrl_pars_vendor_cmd()
58 if ((len+4) != (p_msg->vendor_len)) in avrc_ctrl_pars_vendor_cmd()
102 static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_result, in avrc_pars_vendor_cmd() argument
116 if (p_msg->vendor_len == 0) in avrc_pars_vendor_cmd()
118 if (p_msg->p_vendor_data == NULL) in avrc_pars_vendor_cmd()
121 p = p_msg->p_vendor_data; in avrc_pars_vendor_cmd()
124 if (!AVRC_IsValidAvcType (p_result->pdu, p_msg->hdr.ctype)) in avrc_pars_vendor_cmd()
132 if ((len+4) != (p_msg->vendor_len)) in avrc_pars_vendor_cmd()
[all …]
Davrc_pars_ct.c43 static tAVRC_STS avrc_pars_vendor_rsp(tAVRC_MSG_VENDOR *p_msg, tAVRC_RESPONSE *p_result) in avrc_pars_vendor_rsp() argument
53 if (p_msg->vendor_len == 0) in avrc_pars_vendor_rsp()
55 if (p_msg->p_vendor_data == NULL) in avrc_pars_vendor_rsp()
58 p = p_msg->p_vendor_data; in avrc_pars_vendor_rsp()
63 __func__, p_msg->hdr.ctype, p_result->pdu, len, len); in avrc_pars_vendor_rsp()
64 if (p_msg->hdr.ctype == AVRC_RSP_REJ) in avrc_pars_vendor_rsp()
90 && (AVRC_RSP_CHANGED==p_msg->hdr.ctype || AVRC_RSP_INTERIM==p_msg->hdr.ctype in avrc_pars_vendor_rsp()
91 || AVRC_RSP_REJ==p_msg->hdr.ctype || AVRC_RSP_NOT_IMPL==p_msg->hdr.ctype)) in avrc_pars_vendor_rsp()
93 p_result->reg_notif.status=p_msg->hdr.ctype; in avrc_pars_vendor_rsp()
166 tAVRC_MSG_VENDOR *p_msg, tAVRC_RESPONSE *p_result, UINT8* p_buf, UINT16* buf_len) in avrc_ctrl_pars_vendor_rsp() argument
[all …]
Davrc_api.c233 BT_HDR *p_pkt, tAVRC_MSG_VENDOR *p_msg) in avrc_proc_vendor_command() argument
258 if (p_msg->company_id == AVRC_CO_METADATA) in avrc_proc_vendor_command()
279 p_msg->hdr.opcode = AVRC_OP_DROP; /* used the p_pkt to send response */ in avrc_proc_vendor_command()
286 p_msg->hdr.opcode = AVRC_OP_DROP_N_FREE; in avrc_proc_vendor_command()
344 tAVRC_MSG_VENDOR *p_msg) in avrc_proc_far_msg() argument
366 if (p_msg->company_id == AVRC_CO_METADATA) in avrc_proc_far_msg()
446 p_msg->p_vendor_data = (UINT8 *)(p_pkt_new+1) + p_pkt_new->offset; in avrc_proc_far_msg()
447 p_msg->hdr.ctype = p_msg->p_vendor_data[0] & AVRC_CTYPE_MASK; in avrc_proc_far_msg()
449 p_msg->p_vendor_data += AVRC_VENDOR_HDR_SIZE; in avrc_proc_far_msg()
450 p_msg->vendor_len = p_pkt_new->len - AVRC_VENDOR_HDR_SIZE; in avrc_proc_far_msg()
[all …]
/system/bt/stack/gatt/
Datt_protocol.c358 BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg) in attp_build_sr_msg() argument
368 p_msg->attr_value.len, p_msg->attr_value.offset); in attp_build_sr_msg()
369 offset = p_msg->attr_value.offset; in attp_build_sr_msg()
379 p_msg->attr_value.handle, in attp_build_sr_msg()
381 p_msg->attr_value.len, in attp_build_sr_msg()
382 p_msg->attr_value.value); in attp_build_sr_msg()
390 p_cmd = attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, p_msg->error.reason); in attp_build_sr_msg()
398 p_cmd = attp_build_mtu_cmd(op_code, p_msg->mtu); in attp_build_sr_msg()
426 tGATT_STATUS attp_send_sr_msg (tGATT_TCB *p_tcb, BT_HDR *p_msg) in attp_send_sr_msg() argument
432 if (p_msg != NULL) in attp_send_sr_msg()
[all …]
Dgatt_sr.c122 tGATTS_RSP *p_msg, UINT16 mtu) in process_read_multi_rsp() argument
132 memcpy((void *)p_buf, (const void *)p_msg, sizeof(tGATTS_RSP)); in process_read_multi_rsp()
255 tGATT_STATUS status, tGATTS_RSP *p_msg) in gatt_sr_process_app_rsp() argument
267 if (!process_read_multi_rsp (&p_tcb->sr_cmd, status, p_msg, p_tcb->payload_size)) in gatt_sr_process_app_rsp()
285 … p_tcb->sr_cmd.p_rsp_msg = attp_build_sr_msg (p_tcb, (UINT8)(op_code + 1), (tGATT_SR_MSG *)p_msg); in gatt_sr_process_app_rsp()
460 tGATTS_RSP *p_msg = (tGATTS_RSP *)osi_calloc(sizeof(tGATTS_RSP)); in gatt_process_read_multi_req() local
464 p_msg->attr_value.handle = handle; in gatt_process_read_multi_req()
470 p_msg->attr_value.value, in gatt_process_read_multi_req()
471 &p_msg->attr_value.len, in gatt_process_read_multi_req()
478 …t_sr_process_app_rsp(p_tcb, gatt_cb.sr_reg[i_rcb].gatt_if ,trans_id, op_code, GATT_SUCCESS, p_msg); in gatt_process_read_multi_req()
[all …]
/system/bt/bta/sys/
Dbta_sys_main.c211 BOOLEAN bta_sys_sm_execute(BT_HDR *p_msg) in bta_sys_sm_execute() argument
218 APPL_TRACE_EVENT("bta_sys_sm_execute state:%d, event:0x%x", bta_sys_cb.state, p_msg->event); in bta_sys_sm_execute()
223 bta_sys_cb.state = state_table[p_msg->event & 0x00ff][BTA_SYS_NEXT_STATE]; in bta_sys_sm_execute()
228 if ((action = state_table[p_msg->event & 0x00ff][i]) != BTA_SYS_IGNORE) in bta_sys_sm_execute()
230 (*bta_sys_action[action])( (tBTA_SYS_HW_MSG*) p_msg); in bta_sys_sm_execute()
340 tBTA_SYS_HW_MSG *p_msg = in bta_sys_hw_api_enable() local
342 p_msg->hdr.event = BTA_SYS_EVT_ENABLED_EVT; in bta_sys_hw_api_enable()
343 p_msg->hw_module = p_sys_hw_msg->hw_module; in bta_sys_hw_api_enable()
345 bta_sys_sendmsg(p_msg); in bta_sys_hw_api_enable()
397 tBTA_SYS_HW_MSG *p_msg = in bta_sys_hw_api_disable() local
[all …]
/system/bt/bta/pan/
Dbta_pan_main.c368 BOOLEAN bta_pan_hdl_event(BT_HDR *p_msg) in bta_pan_hdl_event() argument
373 switch (p_msg->event) in bta_pan_hdl_event()
377 bta_pan_api_enable((tBTA_PAN_DATA *) p_msg); in bta_pan_hdl_event()
382 bta_pan_api_disable((tBTA_PAN_DATA *) p_msg); in bta_pan_hdl_event()
387 bta_pan_set_role((tBTA_PAN_DATA *) p_msg); in bta_pan_hdl_event()
392 bta_pan_api_open((tBTA_PAN_DATA *) p_msg); in bta_pan_hdl_event()
399 if ((p_scb = bta_pan_scb_by_handle(p_msg->layer_specific)) != NULL) in bta_pan_hdl_event()
401 bta_pan_sm_execute(p_scb, p_msg->event, (tBTA_PAN_DATA *) p_msg); in bta_pan_hdl_event()
407 if ((p_scb = bta_pan_scb_by_handle(p_msg->layer_specific)) != NULL) in bta_pan_hdl_event()
409 bta_pan_sm_execute(p_scb, p_msg->event, (tBTA_PAN_DATA *) p_msg); in bta_pan_hdl_event()
/system/bt/stack/mcap/
Dmca_cact.c100 tMCA_CCB_MSG *p_msg = (tMCA_CCB_MSG *)p_data; in mca_ccb_snd_req() local
105 MCA_TRACE_DEBUG ("mca_ccb_snd_req cong=%d req=%d", p_ccb->cong, p_msg->op_code); in mca_ccb_snd_req()
107 if ((p_ccb->status == MCA_CCB_STAT_PENDING) && (p_msg->op_code == MCA_OP_MDL_ABORT_REQ)) in mca_ccb_snd_req()
112 p_msg->mdl_id = p_dcb->mdl_id; in mca_ccb_snd_req()
122 p_ccb->p_tx_req = p_msg; in mca_ccb_snd_req()
129 *p++ = p_msg->op_code; in mca_ccb_snd_req()
130 UINT16_TO_BE_STREAM (p, p_msg->mdl_id); in mca_ccb_snd_req()
131 if (p_msg->op_code == MCA_OP_MDL_CREATE_REQ) { in mca_ccb_snd_req()
132 *p++ = p_msg->mdep_id; in mca_ccb_snd_req()
133 *p++ = p_msg->param; in mca_ccb_snd_req()
[all …]
/system/bt/stack/sdp/
Dsdpint.h257 extern void sdp_conn_rcv_l2e_conn_ind (BT_HDR *p_msg);
258 extern void sdp_conn_rcv_l2e_conn_cfm (BT_HDR *p_msg);
259 extern void sdp_conn_rcv_l2e_disc (BT_HDR *p_msg);
260 extern void sdp_conn_rcv_l2e_config_ind (BT_HDR *p_msg);
261 extern void sdp_conn_rcv_l2e_config_cfm (BT_HDR *p_msg);
262 extern void sdp_conn_rcv_l2e_conn_failed (BT_HDR *p_msg);
263 extern void sdp_conn_rcv_l2e_connected (BT_HDR *p_msg);
264 extern void sdp_conn_rcv_l2e_conn_failed (BT_HDR *p_msg);
265 extern void sdp_conn_rcv_l2e_data (BT_HDR *p_msg);
307 extern void sdp_server_handle_client_req (tCONN_CB *p_ccb, BT_HDR *p_msg);
[all …]
/system/bt/bta/mce/
Dbta_mce_main.c63 BOOLEAN bta_mce_sm_execute(BT_HDR *p_msg) in bta_mce_sm_execute() argument
65 if(p_msg == NULL) return FALSE; in bta_mce_sm_execute()
68 UINT16 action = (p_msg->event & 0x00ff); in bta_mce_sm_execute()
73 (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg); in bta_mce_sm_execute()
/system/bt/stack/include/
Davrc_api.h160 tAVRC_MSG *p_msg);
446 extern UINT16 AVRC_PassCmd(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg);
473 extern UINT16 AVRC_PassRsp(UINT8 handle, UINT8 label, tAVRC_MSG_PASS *p_msg);
499 extern UINT16 AVRC_VendorCmd(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg);
527 extern UINT16 AVRC_VendorRsp(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg);
577 extern tAVRC_STS AVRC_Ctrl_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result);
589 extern tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result,
602 extern tAVRC_STS AVRC_ParsResponse (tAVRC_MSG *p_msg, tAVRC_RESPONSE *p_result,
615 extern tAVRC_STS AVRC_Ctrl_ParsResponse (tAVRC_MSG *p_msg, tAVRC_RESPONSE *p_result,
/system/bt/stack/l2cap/
Dl2c_main.c67 void l2c_rcv_acl_data (BT_HDR *p_msg) in l2c_rcv_acl_data() argument
69 UINT8 *p = (UINT8 *)(p_msg + 1) + p_msg->offset; in l2c_rcv_acl_data()
99 if ((p_msg->layer_specific == 0) && (rcv_cid == L2CAP_SIGNALLING_CID) in l2c_rcv_acl_data()
102 " cid:%d opcode:%d cur count:%d", handle, p_msg->layer_specific, in l2c_rcv_acl_data()
104 p_msg->layer_specific = 2; in l2c_rcv_acl_data()
105 list_append(l2cb.rcv_pending_q, p_msg); in l2c_rcv_acl_data()
117 " opcode:%d cur count:%d", handle, p_msg->layer_specific, rcv_cid, in l2c_rcv_acl_data()
120 osi_free(p_msg); in l2c_rcv_acl_data()
127 osi_free(p_msg); in l2c_rcv_acl_data()
133 p_msg->offset += 4; in l2c_rcv_acl_data()
[all …]
/system/bt/btif/src/
Dbtif_rc.c907 if (pmeta_msg->p_msg->hdr.opcode != AVRC_OP_VENDOR) in handle_rc_metamsg_cmd()
909 BTIF_TRACE_WARNING("Invalid opcode: %x", pmeta_msg->p_msg->hdr.opcode); in handle_rc_metamsg_cmd()
914 BTIF_TRACE_WARNING("Invalid length.Opcode: 0x%x, len: 0x%x", pmeta_msg->p_msg->hdr.opcode, in handle_rc_metamsg_cmd()
945 status=AVRC_ParsCommand(pmeta_msg->p_msg, &avrc_command, scratch_buf, sizeof(scratch_buf)); in handle_rc_metamsg_cmd()
1202 BT_HDR *p_msg = NULL; in send_reject_response() local
1209 if (AVRC_STS_NO_ERROR == (status = AVRC_BldResponse(rc_handle, &avrc_rsp, &p_msg)) ) in send_reject_response()
1213 BTA_AvMetaRsp(rc_handle, label, ctype, p_msg); in send_reject_response()
1283 BT_HDR *p_msg = NULL; in send_metamsg_rsp() local
1287 pmetamsg_resp, &p_msg)) ) in send_metamsg_rsp()
1293 ctype, p_msg); in send_metamsg_rsp()
[all …]

1234