/external/bluetooth/bluedroid/bta/sys/ |
H A D | bta_sys_ci.c | 43 tBTA_SYS_HW_MSG *p_msg; local 45 if ((p_msg = (tBTA_SYS_HW_MSG *) GKI_getbuf(sizeof(tBTA_SYS_HW_MSG))) != NULL) 47 p_msg->hdr.event = BTA_SYS_EVT_ENABLED_EVT; 48 p_msg->hw_module = module; 50 bta_sys_sendmsg(p_msg); 67 tBTA_SYS_HW_MSG *p_msg; local 69 if ((p_msg = (tBTA_SYS_HW_MSG *) GKI_getbuf(sizeof(tBTA_SYS_HW_MSG))) != NULL) 71 p_msg->hdr.event = BTA_SYS_EVT_DISABLED_EVT; 72 p_msg->hw_module = module; 74 bta_sys_sendmsg(p_msg); [all...] |
H A D | ptim.c | 62 BT_HDR *p_msg; local 101 if ((p_msg = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL) 103 p_msg->event = p_tle->event; 104 p_msg->layer_specific = 0; 105 bta_sys_sendmsg(p_msg);
|
/external/bluetooth/bluedroid/bta/gatt/ |
H A D | bta_gatts_main.c | 63 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...] |
/external/bluetooth/bluedroid/bta/mce/ |
H A D | bta_mce_main.c | 62 BOOLEAN bta_mce_sm_execute(BT_HDR *p_msg) argument 64 if(p_msg == NULL) return FALSE; 67 UINT16 action = (p_msg->event & 0x00ff); 72 (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg);
|
H A D | bta_mce_api.c | 100 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);
|
/external/libnfc-nci/halimpl/bcm2079x/hal/hal/ |
H A D | nfc_hal_hci_ci.c | 45 tNFC_HAL_HCI_EVENT_DATA *p_msg; local 48 if ((p_msg = (tNFC_HAL_HCI_EVENT_DATA *) GKI_getbuf (sizeof (tNFC_HAL_HCI_EVENT_DATA))) != NULL) 50 p_msg->nv_read.hdr.event = NFC_HAL_HCI_RSP_NV_READ_EVT; 51 p_msg->hdr.offset = 0; 52 p_msg->hdr.len = sizeof (tNFC_HAL_HCI_RSP_NV_READ_EVT); 53 p_msg->hdr.layer_specific = 0; 57 p_msg->nv_read.status = HAL_NFC_STATUS_OK; 59 p_msg->nv_read.status = HAL_NFC_STATUS_FAILED; 61 p_msg->nv_read.size = num_bytes_read; 62 p_msg 79 tNFC_HAL_HCI_EVENT_DATA *p_msg; local [all...] |
H A D | nfc_hal_api.c | 156 NFC_HDR *p_msg; local 165 if ((p_msg = (NFC_HDR *)GKI_getbuf ((UINT16)(size + NFC_HDR_SIZE))) != NULL) 167 p_msg->event = NFC_HAL_EVT_POST_CORE_RESET; 168 p_msg->offset = 0; 169 p_msg->len = size; 170 p_msg->layer_specific = 0; 171 memcpy ((UINT8 *)(p_msg + 1) + p_msg->offset, p_core_init_rsp_params, size); 173 GKI_send_msg (NFC_HAL_TASK, NFC_HAL_TASK_MBOX, p_msg); 191 NFC_HDR *p_msg; local 236 NFC_HDR *p_msg; local 277 NFC_HDR *p_msg; local [all...] |
/external/libnfc-nci/src/nfa/hci/ |
H A D | nfa_hci_ci.c | 43 tNFA_HCI_EVENT_DATA *p_msg; local 45 if ((p_msg = (tNFA_HCI_EVENT_DATA *) GKI_getbuf (sizeof (tNFA_HCI_EVENT_DATA))) != NULL) 47 p_msg->nv_read.hdr.event = NFA_HCI_RSP_NV_READ_EVT; 51 p_msg->nv_read.status = NFA_STATUS_OK; 53 p_msg->nv_read.status = NFA_STATUS_FAILED; 55 p_msg->nv_read.size = num_bytes_read; 56 p_msg->nv_read.block = block; 57 nfa_sys_sendmsg (p_msg); 72 tNFA_HCI_EVENT_DATA *p_msg; local 74 if ((p_msg [all...] |
/external/bluetooth/bluedroid/bta/jv/ |
H A D | bta_jv_main.c | 92 BOOLEAN bta_jv_sm_execute(BT_HDR *p_msg) argument 95 UINT16 action = (p_msg->event & 0x00ff); 100 (*bta_jv_action[action])((tBTA_JV_MSG*)p_msg);
|
/external/bluetooth/bluedroid/stack/btu/ |
H A D | btu_init.c | 150 void btu_uipc_rx_cback(BT_HDR *p_msg) argument 153 p_msg->event, p_msg->len, p_msg->offset); 154 GKI_send_msg(BTU_TASK, BTU_HCI_RCV_MBOX, p_msg);
|
H A D | btu_task.c | 166 BT_HDR *p_msg; local 237 while ((p_msg = (BT_HDR *) GKI_read_mbox (BTU_HCI_RCV_MBOX)) != NULL) 240 switch (p_msg->event & BT_EVT_MASK) 244 l2c_rcv_acl_data (p_msg); 249 l2c_link_segments_xmitted (p_msg); 254 btm_route_sco_data (p_msg); 259 btu_hcif_process_event ((UINT8)(p_msg->event & BT_SUB_EVT_MASK), p_msg); 260 GKI_freebuf(p_msg); 270 btu_hcif_send_cmd ((UINT8)(p_msg 650 BT_HDR *p_msg; local 707 BT_HDR *p_msg; local 748 BT_HDR *p_msg; local 876 BT_HDR *p_msg = (BT_HDR *)GKI_getbuf(BT_HDR_SIZE); local 894 BT_HDR *p_msg = (BT_HDR *)GKI_getbuf(BT_HDR_SIZE); local [all...] |
/external/bluetooth/bluedroid/bta/dm/ |
H A D | bta_dm_ci.c | 50 tBTA_DM_CI_IO_REQ *p_msg; local 52 if ((p_msg = (tBTA_DM_CI_IO_REQ *) GKI_getbuf(sizeof(tBTA_DM_CI_IO_REQ))) != NULL) 54 p_msg->hdr.event = BTA_DM_CI_IO_REQ_EVT; 55 bdcpy(p_msg->bd_addr, bd_addr); 56 p_msg->io_cap = io_cap; 57 p_msg->oob_data = oob_data; 58 p_msg->auth_req = auth_req; 59 bta_sys_sendmsg(p_msg); 76 tBTA_DM_CI_RMT_OOB *p_msg; local 78 if ((p_msg [all...] |
/external/bluetooth/bluedroid/stack/avrc/ |
H A D | avrc_opt.c | 37 ** Description Compose a VENDOR DEPENDENT command according to p_msg 40 ** p_msg: Pointer to VENDOR DEPENDENT message structure. 46 ** NULL if p_msg is NULL. 49 static BT_HDR * avrc_vendor_msg(tAVRC_MSG_VENDOR *p_msg) argument 54 WC_ASSERT(p_msg != NULL); 57 WC_ASSERT(AVRC_META_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len)); 60 WC_ASSERT(AVRC_CMD_POOL_SIZE > (AVRC_MIN_CMD_LEN+p_msg->vendor_len)); 66 *p_data++ = (p_msg->hdr.ctype & AVRC_CTYPE_MASK); 67 *p_data++ = (p_msg->hdr.subunit_type << AVRC_SUBTYPE_SHIFT) | p_msg 190 AVRC_VendorCmd(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg) argument 225 AVRC_VendorRsp(UINT8 handle, UINT8 label, tAVRC_MSG_VENDOR *p_msg) argument [all...] |
H A D | avrc_pars_ct.c | 43 static tAVRC_STS avrc_pars_vendor_rsp(tAVRC_MSG_VENDOR *p_msg, tAVRC_RESPONSE *p_result) argument 46 UINT8 *p = p_msg->p_vendor_data; 61 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); 62 if (p_msg->hdr.ctype == AVRC_RSP_REJ) 88 && (AVRC_RSP_CHANGED==p_msg->hdr.ctype || AVRC_RSP_INTERIM==p_msg->hdr.ctype 89 || AVRC_RSP_REJ==p_msg->hdr.ctype || AVRC_RSP_NOT_IMPL==p_msg->hdr.ctype)) 91 p_result->reg_notif.status=p_msg->hdr.ctype; 117 tAVRC_STS AVRC_ParsResponse (tAVRC_MSG *p_msg, tAVRC_RESPONS argument [all...] |
H A D | avrc_pars_tg.c | 41 static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_result, argument 45 UINT8 *p = p_msg->p_vendor_data; 56 if (!AVRC_IsValidAvcType (p_result->pdu, p_msg->hdr.ctype)) 64 if ((len+4) != (p_msg->vendor_len)) 282 tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len) argument 287 if (p_msg && p_result) 289 switch (p_msg->hdr.opcode) 292 status = avrc_pars_vendor_cmd(&p_msg->vendor, p_result, p_buf, buf_len); 296 status = avrc_pars_pass_thru(&p_msg->pass, &id); 304 AVRC_TRACE_ERROR("AVRC_ParsCommand() unknown opcode:0x%x", p_msg [all...] |
H A D | avrc_utils.c | 163 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;
|
/external/libnfc-nci/src/nfa/rw/ |
H A D | nfa_rw_main.c | 160 tNFA_RW_MSG *p_msg; local 162 if ((p_msg = (tNFA_RW_MSG *) GKI_getbuf ((UINT16) sizeof(tNFA_RW_MSG))) != NULL) 164 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; 165 p_msg->op_req.op = NFA_RW_OP_SEND_RAW_FRAME; 167 p_msg->op_req.params.send_raw_frame.p_data = p_data; 169 if (nfa_rw_handle_event ((BT_HDR *) p_msg)) 170 GKI_freebuf (p_msg); 183 ** Returns TRUE if caller should free p_msg buffer 186 BOOLEAN nfa_rw_handle_event(BT_HDR *p_msg) argument 191 NFA_TRACE_EVENT3 ("nfa_rw_handle_event event: %s (0x%02x), flags: %08x", nfa_rw_evt_2_str (p_msg [all...] |
/external/libnfc-nci/src/nfa/sys/ |
H A D | nfa_sys_ptim.c | 64 BT_HDR *p_msg; local 104 if ((p_msg = (BT_HDR *) GKI_getbuf (sizeof (BT_HDR))) != NULL) 106 p_msg->event = p_tle->event; 107 p_msg->layer_specific = 0; 108 nfa_sys_sendmsg (p_msg);
|
/external/libnfc-nci/src/nfa/ce/ |
H A D | nfa_ce_main.c | 176 BOOLEAN nfa_ce_hdl_event (BT_HDR *p_msg) argument 182 NFA_TRACE_EVENT3 ("nfa_ce_handle_event event: %s (0x%02x), flags: %08x", nfa_ce_evt_2_str (p_msg->event), p_msg->event, nfa_ce_cb.flags); 184 NFA_TRACE_EVENT2 ("nfa_ce_handle_event event: 0x%x, flags: %08x",p_msg->event, nfa_ce_cb.flags); 188 if ((act_idx = (p_msg->event & 0x00FF)) < NFA_CE_ACTION_TBL_SIZE) 190 freebuf = (*nfa_ce_action_tbl[act_idx]) ((tNFA_CE_MSG*) p_msg); 196 (*nfa_ce_cb.p_vs_evt_hdlr) (p_msg);
|
H A D | nfa_ce_api.c | 126 tNFA_CE_MSG *p_msg; local 151 if ((p_msg = (tNFA_CE_MSG *) GKI_getbuf ((UINT16) sizeof(tNFA_CE_MSG))) != NULL) 153 p_msg->local_tag.hdr.event = NFA_CE_API_CFG_LOCAL_TAG_EVT; 156 p_msg->local_tag.protocol_mask = protocol_mask; 157 p_msg->local_tag.p_ndef_data = p_ndef_data; 158 p_msg->local_tag.ndef_cur_size = ndef_cur_size; 159 p_msg->local_tag.ndef_max_size = ndef_max_size; 160 p_msg->local_tag.read_only = read_only; 161 p_msg->local_tag.uid_len = uid_len; 164 memcpy (p_msg 203 tNFA_CE_MSG *p_msg; local 253 tNFA_CE_MSG *p_msg; local 328 tNFA_CE_MSG *p_msg; local 403 tNFA_CE_MSG *p_msg; local [all...] |
/external/libnfc-nci/src/nfc/nfc/ |
H A D | nfc_task.c | 61 BT_HDR *p_msg; local 70 if ((p_msg = (BT_HDR *) GKI_getbuf (BT_HDR_SIZE)) != NULL) 72 p_msg->event = BT_EVT_TO_START_TIMER; 73 GKI_send_msg (NFC_TASK, NFC_MBOX_ID, p_msg); 183 BT_HDR *p_msg; local 192 if ((p_msg = (BT_HDR *) GKI_getbuf (BT_HDR_SIZE)) != NULL) 194 p_msg->event = BT_EVT_TO_START_QUICK_TIMER; 195 GKI_send_msg (NFC_TASK, NFC_MBOX_ID, p_msg); 310 BT_HDR *p_msg; local 313 while ((p_msg 359 BT_HDR *p_msg; local [all...] |
/external/bluetooth/bluedroid/stack/avct/ |
H A D | avct_api.c | 406 ** 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...] |
/external/bluetooth/bluedroid/stack/sdp/ |
H A D | sdp_main.c | 61 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);
|
/external/libnfc-nci/src/nfc/nci/ |
H A D | nci_hrcv.c | 43 ** Returns TRUE-caller of this function to free the GKI buffer p_msg 46 BOOLEAN nci_proc_core_rsp (BT_HDR *p_msg) argument 54 p = (UINT8 *) (p_msg + 1) + p_msg->offset; 68 nfc_ncif_proc_init_rsp (p_msg); 73 nfc_ncif_proc_get_config_rsp (p_msg); 81 nfc_ncif_proc_conn_create_rsp (p, p_msg->len, *p_old); 105 void nci_proc_core_ntf (BT_HDR *p_msg) argument 112 p = (UINT8 *) (p_msg + 1) + p_msg 157 nci_proc_rf_management_rsp(BT_HDR *p_msg) argument 223 nci_proc_rf_management_ntf(BT_HDR *p_msg) argument 291 nci_proc_ee_management_rsp(BT_HDR *p_msg) argument 351 nci_proc_ee_management_ntf(BT_HDR *p_msg) argument 433 nci_proc_prop_rsp(BT_HDR *p_msg) argument 460 nci_proc_prop_ntf(BT_HDR *p_msg) argument [all...] |
/external/bluetooth/bluedroid/bta/pan/ |
H A D | bta_pan_main.c | 368 BOOLEAN bta_pan_hdl_event(BT_HDR *p_msg) argument 373 switch (p_msg->event) 377 bta_pan_api_enable((tBTA_PAN_DATA *) p_msg); 382 bta_pan_api_disable((tBTA_PAN_DATA *) p_msg); 387 bta_pan_set_role((tBTA_PAN_DATA *) p_msg); 392 bta_pan_api_open((tBTA_PAN_DATA *) p_msg); 399 if ((p_scb = bta_pan_scb_by_handle(p_msg->layer_specific)) != NULL) 401 bta_pan_sm_execute(p_scb, p_msg->event, (tBTA_PAN_DATA *) p_msg); 407 if ((p_scb = bta_pan_scb_by_handle(p_msg [all...] |