/system/bt/bta/gatt/ |
D | bta_gatts_act.cc | 304 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_delete_service() local 307 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service() 310 if (GATTS_DeleteService(p_rcb->gatt_if, &p_srvc_cb->service_uuid, in bta_gatts_delete_service() 318 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_DELELTE_EVT, &cb_data); in bta_gatts_delete_service() 332 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_stop_service() local 336 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_stop_service() 341 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_STOP_EVT, &cb_data); in bta_gatts_stop_service() 371 tBTA_GATTS_RCB* p_rcb = NULL; in bta_gatts_indicate_handle() local 384 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_indicate_handle() 408 p_rcb && p_cb->rcb[p_srvc_cb->rcb_idx].p_cback) { in bta_gatts_indicate_handle() [all …]
|
D | bta_gattc_act.cc | 233 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister() 325 if (p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback) in bta_gattc_cancel_open_error() 326 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error() 333 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_SUCCESS, p_clcb->bda, in bta_gattc_open_error() 343 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_ERROR, p_clcb->bda, in bta_gattc_open_fail() 354 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, true, in bta_gattc_open() 365 p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open() 436 if (p_clcb->p_rcb->p_cback) { in bta_gattc_cancel_open_ok() 438 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_ok() 447 if (GATT_CancelConnect(p_clcb->p_rcb->client_if, in bta_gattc_cancel_open() [all …]
|
D | bta_gattc_utils.cc | 89 if (p_clcb->in_use && p_clcb->p_rcb->client_if == client_if && in bta_gattc_find_clcb_by_cif() 140 p_clcb->p_rcb = bta_gattc_cl_get_regcb(client_if); in bta_gattc_clcb_alloc() 146 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL) { in bta_gattc_clcb_alloc() 148 p_clcb->p_rcb->num_clcb++; in bta_gattc_clcb_alloc() 198 if (p_clcb->p_rcb->num_clcb) p_clcb->p_rcb->num_clcb--; in bta_gattc_clcb_dealloc()
|
D | bta_gattc_cache.cc | 410 if (!p_clcb->p_rcb->p_cback) continue; in bta_gattc_search_service() 418 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_SEARCH_RES_EVT, &cb_data); in bta_gattc_search_service()
|
D | bta_gattc_int.h | 248 tBTA_GATTC_RCB* p_rcb; /* pointer to the registration CB */ member
|
/system/bt/bta/av/ |
D | bta_av_act.cc | 79 tBTA_AV_RCB* p_rcb = NULL; in bta_av_get_rcb_by_shdl() local 85 p_rcb = &bta_av_cb.rcb[i]; in bta_av_get_rcb_by_shdl() 89 return p_rcb; in bta_av_get_rcb_by_shdl() 102 void bta_av_del_rc(tBTA_AV_RCB* p_rcb) { in bta_av_del_rc() argument 107 if (p_rcb->handle != BTA_AV_RC_HANDLE_NONE) { in bta_av_del_rc() 108 if (p_rcb->shdl) { in bta_av_del_rc() 110 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) { in bta_av_del_rc() 111 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc() 115 p_rcb->shdl, p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc() 116 if (p_scb->rc_handle == p_rcb->handle) in bta_av_del_rc() [all …]
|
D | bta_av_int.h | 728 extern void bta_av_del_rc(tBTA_AV_RCB* p_rcb);
|
D | bta_av_aact.cc | 1062 tBTA_AV_RCB* p_rcb; in bta_av_disconnect_req() local 1073 p_rcb = bta_av_get_rcb_by_shdl((uint8_t)(p_scb->hdi + 1)); in bta_av_disconnect_req() 1074 if (p_rcb) bta_av_del_rc(p_rcb); in bta_av_disconnect_req()
|
/system/bt/stack/l2cap/ |
D | l2c_csm.cc | 136 if (p_ccb->p_rcb == NULL) { in l2c_csm_closed() 142 disconnect_ind = p_ccb->p_rcb->api.pL2CA_DisconnectInd_Cb; in l2c_csm_closed() 143 connect_cfm = p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb; in l2c_csm_closed() 160 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed() 165 p_ccb->p_rcb->psm, p_ccb->p_lcb->handle, true, in l2c_csm_closed() 185 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed() 199 p_ccb->p_rcb->psm, p_ccb->p_lcb->handle, in l2c_csm_closed() 216 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(local_cid, in l2c_csm_closed() 243 p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, false, in l2c_csm_closed() 268 p_ccb->p_rcb->psm, p_ccb->p_lcb->handle, in l2c_csm_closed() [all …]
|
D | l2c_api.cc | 71 tL2C_RCB* p_rcb; in L2CA_Register() local 97 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register() 98 if (p_rcb == NULL) break; in L2CA_Register() 106 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register() 107 if (p_rcb == NULL) { in L2CA_Register() 108 p_rcb = l2cu_allocate_rcb(vpsm); in L2CA_Register() 109 if (p_rcb == NULL) { in L2CA_Register() 116 p_rcb->log_packets = enable_snoop; in L2CA_Register() 117 p_rcb->api = *p_cb_info; in L2CA_Register() 118 p_rcb->real_psm = psm; in L2CA_Register() [all …]
|
D | l2c_utils.cc | 446 UINT16_TO_STREAM(p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_connect_req() 1422 p_ccb->p_rcb = NULL; in l2cu_allocate_ccb() 1567 tL2C_RCB* p_rcb = p_ccb->p_rcb; in l2cu_release_ccb() local 1578 if (p_rcb && (p_rcb->psm != p_rcb->real_psm)) { in l2cu_release_ccb() 1579 btm_sec_clr_service_by_psm(p_rcb->psm); in l2cu_release_ccb() 1583 osi_free(p_rcb); in l2cu_release_ccb() 1584 p_ccb->p_rcb = NULL; in l2cu_release_ccb() 1686 tL2C_RCB* p_rcb = &l2cb.rcb_pool[0]; in l2cu_allocate_rcb() local 1689 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2cu_allocate_rcb() 1690 if (!p_rcb->in_use) { in l2cu_allocate_rcb() [all …]
|
D | l2c_main.cc | 376 tL2C_RCB* p_rcb = l2cu_find_rcb_by_psm(con_info.psm); in process_l2cap_cmd() local 377 if (!p_rcb) { in process_l2cap_cmd() 383 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in process_l2cap_cmd() 398 p_ccb->p_rcb = p_rcb; in process_l2cap_cmd() 401 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd() 404 } else if (p_rcb->log_packets) { in process_l2cap_cmd() 440 tL2C_RCB* p_rcb = p_ccb->p_rcb; in process_l2cap_cmd() local 441 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd() 444 } else if (p_rcb->log_packets) { in process_l2cap_cmd()
|
D | l2c_ble.cc | 480 tL2C_RCB* p_rcb; in l2cble_process_sig_cmd() local 590 p_rcb = l2cu_find_ble_rcb_by_psm(con_info.psm); in l2cble_process_sig_cmd() 591 if (p_rcb == NULL) { in l2cble_process_sig_cmd() 597 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in l2cble_process_sig_cmd() 623 p_ccb->p_rcb = p_rcb; in l2cble_process_sig_cmd()
|
D | l2c_int.h | 291 tL2C_RCB* p_rcb; /* Registration CB for this Channel */ member 676 extern void l2cu_release_rcb(tL2C_RCB* p_rcb); 677 extern void l2cu_release_ble_rcb(tL2C_RCB* p_rcb);
|
D | l2c_fcr.cc | 1039 if ((p_ccb->p_rcb) && (p_ccb->p_rcb->api.pL2CA_TxComplete_Cb) && in process_reqseq() 1047 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, in process_reqseq()
|
D | l2c_link.cc | 499 if (p_ccb->p_rcb->api.pL2CA_QoSViolationInd_Cb) in l2c_link_hci_qos_violation()
|
/system/bt/stack/avrc/ |
D | avrc_api.cc | 464 tAVRC_RASM_CB* p_rcb; in avrc_proc_far_msg() local 475 p_rcb = &avrc_cb.rcb[handle]; in avrc_proc_far_msg() 481 p_rcb->rasm_offset = 0; in avrc_proc_far_msg() 482 osi_free_and_reset((void**)&p_rcb->p_rmsg); in avrc_proc_far_msg() 489 p_rcb->rasm_pdu = *p_data; in avrc_proc_far_msg() 490 p_rcb->p_rmsg = (BT_HDR*)osi_malloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_far_msg() 492 memcpy(p_rcb->p_rmsg, p_pkt, sizeof(BT_HDR)); /* Copy bt hdr */ in avrc_proc_far_msg() 495 memcpy((uint8_t*)(p_rcb->p_rmsg + 1), in avrc_proc_far_msg() 499 p_rcb->p_rmsg->offset = p_rcb->rasm_offset = 0; in avrc_proc_far_msg() 506 *pp_pkt = p_rcb->p_rmsg; in avrc_proc_far_msg() [all …]
|