Searched defs:p_msg (Results 1 - 25 of 58) sorted by relevance

123

/system/bt/bta/gatt/
H A Dbta_gatts_main.c63 BOOLEAN bta_gatts_hdl_event(BT_HDR *p_msg) argument
68 switch (p_msg->event)
75 bta_gatts_register(p_cb, (tBTA_GATTS_DATA *) p_msg);
79 bta_gatts_start_if(p_cb, (tBTA_GATTS_DATA *) p_msg);
83 bta_gatts_deregister(p_cb, (tBTA_GATTS_DATA *) p_msg);
87 bta_gatts_create_srvc(p_cb, (tBTA_GATTS_DATA *) p_msg);
91 bta_gatts_indicate_handle(p_cb,(tBTA_GATTS_DATA *) p_msg);
95 bta_gatts_open(p_cb,(tBTA_GATTS_DATA *) p_msg);
99 bta_gatts_cancel_open(p_cb,(tBTA_GATTS_DATA *) p_msg);
103 bta_gatts_close(p_cb,(tBTA_GATTS_DATA *) p_msg);
[all...]
H A Dbta_gattc_main.c360 BOOLEAN bta_gattc_hdl_event(BT_HDR *p_msg) argument
367 APPL_TRACE_DEBUG("bta_gattc_hdl_event: Event [%s]", gattc_evt_code(p_msg->event));
369 switch (p_msg->event)
376 bta_gattc_register(p_cb, (tBTA_GATTC_DATA *) p_msg);
380 bta_gattc_start_if(p_cb, (tBTA_GATTC_DATA *) p_msg);
384 p_clreg = bta_gattc_cl_get_regcb(((tBTA_GATTC_DATA *)p_msg)->api_dereg.client_if);
389 bta_gattc_process_api_open(p_cb, (tBTA_GATTC_DATA *) p_msg);
393 bta_gattc_process_api_open_cancel(p_cb, (tBTA_GATTC_DATA *) p_msg);
397 bta_gattc_process_api_refresh(p_cb, (tBTA_GATTC_DATA *) p_msg);
402 bta_gattc_listen(p_cb, (tBTA_GATTC_DATA *) p_msg);
[all...]
H A Dbta_gatts_act.c183 void bta_gatts_register(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg) argument
199 if (bta_gatts_uuid_compare(p_cb->rcb[i].app_uuid, p_msg->api_reg.app_uuid))
221 memcpy(&cb_data.reg_oper.uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID));
228 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback;
229 memcpy(&p_cb->rcb[first_unuse].app_uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID));
232 GATT_Register(&p_msg->api_reg.app_uuid, &bta_gatts_cback);
261 if (p_msg->api_reg.p_cback)
262 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data);
275 void bta_gatts_start_if(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg) argument
279 if (bta_gatts_find_app_rcb_by_app_if(p_msg
298 bta_gatts_deregister(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA *p_msg) argument
343 bta_gatts_create_srvc(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg) argument
410 bta_gatts_add_include_srvc(tBTA_GATTS_SRVC_CB *p_srvc_cb,tBTA_GATTS_DATA * p_msg) argument
444 bta_gatts_add_char(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg) argument
482 bta_gatts_add_char_descr(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg) argument
521 bta_gatts_delete_service(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg) argument
554 bta_gatts_start_service(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg) argument
587 bta_gatts_stop_service(tBTA_GATTS_SRVC_CB *p_srvc_cb, tBTA_GATTS_DATA * p_msg) argument
612 bta_gatts_send_rsp(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg) argument
634 bta_gatts_indicate_handle(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg) argument
704 bta_gatts_open(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg) argument
744 bta_gatts_cancel_open(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg) argument
779 bta_gatts_close(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg) argument
825 bta_gatts_listen(tBTA_GATTS_CB *p_cb, tBTA_GATTS_DATA * p_msg) argument
[all...]
H A Dbta_gatts_api.c421 ** p_msg - response data.
427 tBTA_GATT_STATUS status, tBTA_GATTS_RSP *p_msg)
441 if (p_msg != NULL)
444 memcpy(p_buf->p_rsp, p_msg, sizeof(tBTA_GATTS_RSP));
426 BTA_GATTS_SendRsp(UINT16 conn_id, UINT32 trans_id, tBTA_GATT_STATUS status, tBTA_GATTS_RSP *p_msg) argument
/system/bt/bta/mce/
H A Dbta_mce_main.c63 BOOLEAN bta_mce_sm_execute(BT_HDR *p_msg) argument
65 if(p_msg == NULL) return FALSE;
68 UINT16 action = (p_msg->event & 0x00ff);
73 (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg);
H A Dbta_mce_api.c100 tBTA_MCE_API_GET_REMOTE_MAS_INSTANCES *p_msg; local
103 if ((p_msg = (tBTA_MCE_API_GET_REMOTE_MAS_INSTANCES *)GKI_getbuf(sizeof(tBTA_MCE_API_GET_REMOTE_MAS_INSTANCES))) != NULL)
105 p_msg->hdr.event = BTA_MCE_API_GET_REMOTE_MAS_INSTANCES_EVT;
106 bdcpy(p_msg->bd_addr, bd_addr);
107 bta_sys_sendmsg(p_msg);
/system/bt/bta/sdp/
H A Dbta_sdp.c62 BOOLEAN bta_sdp_sm_execute(BT_HDR *p_msg) argument
64 if(p_msg == NULL) return FALSE;
67 UINT16 action = (p_msg->event & 0x00ff);
72 (*bta_sdp_action[action])((tBTA_SDP_MSG*)p_msg);
H A Dbta_sdp_api.c99 tBTA_SDP_API_SEARCH *p_msg; local
102 if ((p_msg = (tBTA_SDP_API_SEARCH *)GKI_getbuf(sizeof(tBTA_SDP_API_SEARCH))) != NULL)
104 p_msg->hdr.event = BTA_SDP_API_SEARCH_EVT;
105 bdcpy(p_msg->bd_addr, bd_addr);
106 //p_msg->uuid = uuid;
107 memcpy(&(p_msg->uuid), uuid, sizeof(tSDP_UUID));
108 bta_sys_sendmsg(p_msg);
130 tBTA_SDP_API_RECORD_USER *p_msg; local
133 if ((p_msg = (tBTA_SDP_API_RECORD_USER *)GKI_getbuf(sizeof(tBTA_SDP_API_RECORD_USER))) != NULL)
135 p_msg
159 tBTA_SDP_API_RECORD_USER *p_msg; local
[all...]
/system/bt/bta/jv/
H A Dbta_jv_main.c85 BOOLEAN bta_jv_sm_execute(BT_HDR *p_msg) argument
88 UINT16 action = (p_msg->event & 0x00ff);
93 (*bta_jv_action[action])((tBTA_JV_MSG*)p_msg);
/system/bt/bta/dm/
H A Dbta_dm_ci.c49 tBTA_DM_CI_IO_REQ *p_msg; local
51 if ((p_msg = (tBTA_DM_CI_IO_REQ *) GKI_getbuf(sizeof(tBTA_DM_CI_IO_REQ))) != NULL)
53 p_msg->hdr.event = BTA_DM_CI_IO_REQ_EVT;
54 bdcpy(p_msg->bd_addr, bd_addr);
55 p_msg->io_cap = io_cap;
56 p_msg->oob_data = oob_data;
57 p_msg->auth_req = auth_req;
58 bta_sys_sendmsg(p_msg);
75 tBTA_DM_CI_RMT_OOB *p_msg; local
77 if ((p_msg
[all...]
H A Dbta_dm_main.c302 BOOLEAN bta_dm_sm_execute(BT_HDR *p_msg) argument
304 UINT16 event = p_msg->event & 0x00ff;
311 (*bta_dm_action[event])( (tBTA_DM_MSG*) p_msg);
344 BOOLEAN bta_dm_search_sm_execute(BT_HDR *p_msg) argument
351 bta_dm_search_cb.state, p_msg->event);
356 bta_dm_search_cb.state = state_table[p_msg->event & 0x00ff][BTA_DM_SEARCH_NEXT_STATE];
362 if ((action = state_table[p_msg->event & 0x00ff][i]) != BTA_DM_SEARCH_IGNORE)
364 (*bta_dm_search_action[action])( (tBTA_DM_MSG*) p_msg);
/system/bt/stack/avrc/
H A Davrc_opt.c35 ** Description Compose a VENDOR DEPENDENT command according to p_msg
38 ** p_msg: Pointer to VENDOR DEPENDENT message structure.
44 ** NULL if p_msg is NULL.
47 static BT_HDR * avrc_vendor_msg(tAVRC_MSG_VENDOR *p_msg) argument
52 assert(p_msg != NULL);
55 assert(AVRC_META_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
58 assert(AVRC_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len));
64 *p_data++ = (p_msg->hdr.ctype & AVRC_CTYPE_MASK);
65 *p_data++ = (p_msg->hdr.subunit_type << AVRC_SUBTYPE_SHIFT) | p_msg
188 AVRC_VendorCmd(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg) argument
223 AVRC_VendorRsp(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg) argument
[all...]
H A Davrc_pars_ct.c43 static tAVRC_STS avrc_pars_vendor_rsp(tAVRC_MSG_VENDOR *p_msg, tAVRC_RESPONSE *p_result) argument
51 if (p_msg->vendor_len == 0)
53 if (p_msg->p_vendor_data == NULL)
56 p = p_msg->p_vendor_data;
60 AVRC_TRACE_DEBUG("avrc_pars_vendor_rsp() ctype:0x%x pdu:0x%x, len:%d/0x%x", p_msg->hdr.ctype, p_result->pdu, len, len);
61 if (p_msg->hdr.ctype == AVRC_RSP_REJ)
87 && (AVRC_RSP_CHANGED==p_msg->hdr.ctype || AVRC_RSP_INTERIM==p_msg->hdr.ctype
88 || AVRC_RSP_REJ==p_msg->hdr.ctype || AVRC_RSP_NOT_IMPL==p_msg
116 AVRC_ParsResponse(tAVRC_MSG *p_msg, tAVRC_RESPONSE *p_result, UINT8 *p_buf, UINT16 buf_len) argument
[all...]
H A Davrc_pars_tg.c41 static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_result, argument
55 if (p_msg->vendor_len == 0)
57 if (p_msg->p_vendor_data == NULL)
60 p = p_msg->p_vendor_data;
63 if (!AVRC_IsValidAvcType (p_result->pdu, p_msg->hdr.ctype))
71 if ((len+4) != (p_msg->vendor_len))
289 tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len) argument
294 if (p_msg && p_result)
296 switch (p_msg->hdr.opcode)
299 status = avrc_pars_vendor_cmd(&p_msg
[all...]
H A Davrc_utils.c163 tAVRC_STS avrc_pars_pass_thru(tAVRC_MSG_PASS *p_msg, UINT16 *p_vendor_unique_id) argument
170 if (p_msg->op_id == AVRC_ID_VENDOR && p_msg->pass_len == AVRC_PASS_THRU_GROUP_LEN)
172 p_data = p_msg->p_pass_data;
/system/bt/main/
H A Dbte_main.c253 void bte_main_hci_send (BT_HDR *p_msg, UINT16 event) argument
257 p_msg->event = event;
260 counter_add("main.tx.bytes", p_msg->len);
265 hci->transmit_downward(event, p_msg);
270 GKI_freebuf(p_msg);
/system/bt/stack/avct/
H A Davct_api.c406 ** p_msg->layer_specific must be set to
413 UINT16 AVCT_MsgReq(UINT8 handle, UINT8 label, UINT8 cr, BT_HDR *p_msg) argument
421 /* verify p_msg parameter */
422 if (p_msg == NULL)
426 AVCT_TRACE_API("len: %d", p_msg->len);
432 GKI_freebuf(p_msg);
438 GKI_freebuf(p_msg);
443 ul_msg.p_buf = p_msg;
450 if (p_msg->layer_specific == AVCT_DATA_BROWSE)
456 GKI_freebuf(p_msg);
[all...]
/system/bt/stack/btu/
H A Dbtu_init.c266 void btu_uipc_rx_cback(BT_HDR *p_msg) { argument
267 assert(p_msg != NULL);
269 " len %d, offset %d", p_msg->event, p_msg->len, p_msg->offset);
270 fixed_queue_enqueue(btu_hci_msg_queue, p_msg);
H A Dbtu_task.c126 static void btu_hci_msg_process(BT_HDR *p_msg);
129 BT_HDR *p_msg = (BT_HDR *)fixed_queue_dequeue(queue); local
130 btu_hci_msg_process(p_msg);
170 BT_HDR *p_msg = (BT_HDR *)fixed_queue_dequeue(queue); local
171 bta_sys_event(p_msg);
179 static void btu_hci_msg_process(BT_HDR *p_msg) { argument
181 switch (p_msg->event & BT_EVT_MASK)
184 ((post_to_task_hack_t *)(&p_msg->data[0]))->callback(p_msg);
188 l2c_rcv_acl_data (p_msg);
250 BT_HDR *p_msg; local
[all...]
/system/bt/stack/sdp/
H A Dsdp_main.c61 static void sdp_data_ind (UINT16 l2cap_cid, BT_HDR *p_msg);
503 static void sdp_data_ind (UINT16 l2cap_cid, BT_HDR *p_msg) argument
513 sdp_disc_server_rsp (p_ccb, p_msg);
515 sdp_server_handle_client_req (p_ccb, p_msg);
528 GKI_freebuf (p_msg);
/system/bt/bta/pan/
H A Dbta_pan_main.c367 BOOLEAN bta_pan_hdl_event(BT_HDR *p_msg) argument
372 switch (p_msg->event)
376 bta_pan_api_enable((tBTA_PAN_DATA *) p_msg);
381 bta_pan_api_disable((tBTA_PAN_DATA *) p_msg);
386 bta_pan_set_role((tBTA_PAN_DATA *) p_msg);
391 bta_pan_api_open((tBTA_PAN_DATA *) p_msg);
398 if ((p_scb = bta_pan_scb_by_handle(p_msg->layer_specific)) != NULL)
400 bta_pan_sm_execute(p_scb, p_msg->event, (tBTA_PAN_DATA *) p_msg);
406 if ((p_scb = bta_pan_scb_by_handle(p_msg
[all...]
/system/bt/stack/mcap/
H A Dmca_cact.c98 tMCA_CCB_MSG *p_msg = (tMCA_CCB_MSG *)p_data; local
104 MCA_TRACE_DEBUG ("mca_ccb_snd_req cong=%d req=%d", p_ccb->cong, p_msg->op_code);
106 if ((p_ccb->status == MCA_CCB_STAT_PENDING) && (p_msg->op_code == MCA_OP_MDL_ABORT_REQ))
111 p_msg->mdl_id = p_dcb->mdl_id;
121 p_ccb->p_tx_req = p_msg;
129 *p++ = p_msg->op_code;
130 UINT16_TO_BE_STREAM (p, p_msg->mdl_id);
131 if (p_msg->op_code == MCA_OP_MDL_CREATE_REQ)
133 *p++ = p_msg->mdep_id;
134 *p++ = p_msg
164 tMCA_CCB_MSG *p_msg = (tMCA_CCB_MSG *)p_data; local
[all...]
/system/bt/bta/hh/
H A Dbta_hh_main.c423 BOOLEAN bta_hh_hdl_event(BT_HDR *p_msg) argument
428 switch (p_msg->event)
431 bta_hh_api_enable((tBTA_HH_DATA *) p_msg);
445 if (p_msg->event == BTA_HH_API_OPEN_EVT)
447 index = bta_hh_find_cb(((tBTA_HH_API_CONN *)p_msg)->bd_addr);
449 else if (p_msg->event == BTA_HH_API_MAINT_DEV_EVT)
452 if (((tBTA_HH_MAINT_DEV *)p_msg)->sub_event == BTA_HH_ADD_DEV_EVT)
454 index = bta_hh_find_cb(((tBTA_HH_MAINT_DEV *)p_msg)->bda);
458 index = bta_hh_dev_handle_to_cb_idx((UINT8)p_msg->layer_specific);
473 else if (p_msg
[all...]
/system/bt/stack/avdt/
H A Davdt_ccb_act.c804 BT_HDR *p_msg; local
822 if ((p_msg = (BT_HDR *) GKI_getpoolbuf(AVDT_CMD_POOL_ID)) != NULL)
824 memcpy(p_msg, p_ccb->p_curr_cmd,
826 avdt_msg_send(p_ccb, p_msg);
848 BT_HDR *p_msg; local
856 if ((p_msg = (BT_HDR *) GKI_dequeue(&p_ccb->cmd_q)) != NULL)
861 memcpy(p_ccb->p_curr_cmd, p_msg, (sizeof(BT_HDR) + p_msg->offset + p_msg->len));
863 avdt_msg_send(p_ccb, p_msg);
881 BT_HDR *p_msg; local
[all...]
/system/bt/stack/gatt/
H A Datt_protocol.c386 BT_HDR *attp_build_sr_msg(tGATT_TCB *p_tcb, UINT8 op_code, tGATT_SR_MSG *p_msg) argument
396 p_msg->attr_value.len, p_msg->attr_value.offset);
397 offset = p_msg->attr_value.offset;
407 p_msg->attr_value.handle,
409 p_msg->attr_value.len,
410 p_msg->attr_value.value);
418 p_cmd = attp_build_err_cmd(p_msg->error.cmd_code, p_msg->error.handle, p_msg
454 attp_send_sr_msg(tGATT_TCB *p_tcb, BT_HDR *p_msg) argument
533 attp_send_cl_msg(tGATT_TCB *p_tcb, UINT16 clcb_idx, UINT8 op_code, tGATT_CL_MSG *p_msg) argument
[all...]

Completed in 163 milliseconds

123