/packages/modules/Bluetooth/system/bta/gatt/ |
D | bta_gatts_act.cc | 299 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_delete_service() local 302 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service() 305 if (GATTS_DeleteService(p_rcb->gatt_if, &p_srvc_cb->service_uuid, in bta_gatts_delete_service() 313 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_DELELTE_EVT, &cb_data); in bta_gatts_delete_service() 327 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_stop_service() local 331 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_stop_service() 336 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_STOP_EVT, &cb_data); in bta_gatts_stop_service() 365 tBTA_GATTS_RCB* p_rcb = NULL; in bta_gatts_indicate_handle() local 378 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_indicate_handle() 401 p_rcb && p_cb->rcb[p_srvc_cb->rcb_idx].p_cback) { in bta_gatts_indicate_handle() [all …]
|
D | bta_gattc_act.cc | 256 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister() 352 if (p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback) in bta_gattc_cancel_open_error() 353 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error() 360 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_SUCCESS, p_clcb->bda, in bta_gattc_open_error() 372 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_CONNECTION_TIMEOUT, in bta_gattc_open_fail() 379 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_ERROR, p_clcb->bda, in bta_gattc_open_fail() 392 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open() 402 tBTA_GATTC_RCB* p_clreg = p_clcb->p_rcb; in bta_gattc_open() 414 p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open() 497 if (p_clcb->p_rcb->p_cback) { in bta_gattc_cancel_open_ok() [all …]
|
D | bta_gattc_utils.cc | 102 if (p_clcb->in_use && p_clcb->p_rcb->client_if == client_if && in bta_gattc_find_clcb_by_cif() 152 p_clcb->p_rcb = bta_gattc_cl_get_regcb(client_if); in bta_gattc_clcb_alloc() 158 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL) { in bta_gattc_clcb_alloc() 160 p_clcb->p_rcb->num_clcb++; in bta_gattc_clcb_alloc() 230 if (p_clcb->p_rcb->num_clcb) p_clcb->p_rcb->num_clcb--; in bta_gattc_clcb_dealloc() 257 p_clcb->p_rcb = NULL; in bta_gattc_clcb_dealloc() 378 if (p_clcb->p_rcb) { in bta_gattc_send_mtu_response() 379 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CFG_MTU_EVT, &cb_data); in bta_gattc_send_mtu_response()
|
D | bta_gattc_cache.cc | 602 if (!p_clcb->p_rcb->p_cback) continue; in bta_gattc_search_service() 610 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_SEARCH_RES_EVT, &cb_data); in bta_gattc_search_service()
|
D | bta_gattc_int.h | 288 tBTA_GATTC_RCB* p_rcb; /* pointer to the registration CB */ member
|
/packages/modules/Bluetooth/system/stack/l2cap/ |
D | l2c_csm.cc | 78 config.mtu = p_ccb->p_rcb->my_mtu; in l2c_csm_send_config_req() 80 if (p_ccb->p_rcb->ertm_info.preferred_mode != L2CAP_FCR_BASIC_MODE) { in l2c_csm_send_config_req() 104 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(p_ccb->local_cid, L2CAP_CONN_OK); in l2c_csm_indicate_connection_open() 106 if (*p_ccb->p_rcb->api.pL2CA_ConnectInd_Cb) { in l2c_csm_indicate_connection_open() 107 (*p_ccb->p_rcb->api.pL2CA_ConnectInd_Cb)( in l2c_csm_indicate_connection_open() 108 p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm, in l2c_csm_indicate_connection_open() 115 (*p_ccb->p_rcb->api.pL2CA_ConfigCfm_Cb)( in l2c_csm_indicate_connection_open() 119 p_ccb->p_rcb->psm, p_ccb->local_cid, p_ccb->remote_id, in l2c_csm_indicate_connection_open() 210 if (p_ccb->p_rcb == NULL) { in l2c_csm_closed() 216 disconnect_ind = p_ccb->p_rcb->api.pL2CA_DisconnectInd_Cb; in l2c_csm_closed() [all …]
|
D | l2c_api.cc | 125 tL2C_RCB* p_rcb; in L2CA_Register() local 151 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register() 152 if (p_rcb == NULL) break; in L2CA_Register() 159 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register() 160 if (p_rcb == NULL) { in L2CA_Register() 161 p_rcb = l2cu_allocate_rcb(vpsm); in L2CA_Register() 162 if (p_rcb == NULL) { in L2CA_Register() 170 p_rcb->log_packets = enable_snoop; in L2CA_Register() 171 p_rcb->api = p_cb_info; in L2CA_Register() 172 p_rcb->real_psm = psm; in L2CA_Register() [all …]
|
D | l2c_utils.cc | 421 UINT16_TO_STREAM(p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_connect_req() 1395 p_ccb->p_rcb = nullptr; in l2cu_allocate_ccb() 1549 tL2C_RCB* p_rcb = p_ccb->p_rcb; in l2cu_release_ccb() local 1557 if (p_rcb && p_lcb && p_ccb->chnl_state >= CST_OPEN) { in l2cu_release_ccb() 1567 if (p_rcb && (p_rcb->psm != p_rcb->real_psm)) { in l2cu_release_ccb() 1568 BTM_SecClrServiceByPsm(p_rcb->psm); in l2cu_release_ccb() 1670 tL2C_RCB* p_rcb = &l2cb.rcb_pool[0]; in l2cu_allocate_rcb() local 1673 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2cu_allocate_rcb() 1674 if (!p_rcb->in_use) { in l2cu_allocate_rcb() 1675 p_rcb->in_use = true; in l2cu_allocate_rcb() [all …]
|
D | l2c_main.cc | 227 tL2C_RCB* p_rcb; in process_l2cap_cmd() local 379 p_rcb = l2cu_find_rcb_by_psm(con_info.psm); in process_l2cap_cmd() 380 if (!p_rcb) { in process_l2cap_cmd() 385 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in process_l2cap_cmd() 399 p_ccb->p_rcb = p_rcb; in process_l2cap_cmd() 403 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd() 406 } else if (p_rcb->log_packets) { in process_l2cap_cmd() 444 p_rcb = p_ccb->p_rcb; in process_l2cap_cmd() 445 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd() 448 } else if (p_rcb->log_packets) { in process_l2cap_cmd()
|
D | l2c_ble.cc | 243 tL2C_RCB* p_rcb; in l2cble_process_sig_cmd() local 368 p_rcb = l2cu_find_ble_rcb_by_psm(con_info.psm); in l2cble_process_sig_cmd() 369 if (p_rcb == NULL) { in l2cble_process_sig_cmd() 379 if (p_rcb->api.pL2CA_CreditBasedCollisionInd_Cb && in l2cble_process_sig_cmd() 381 (*p_rcb->api.pL2CA_CreditBasedCollisionInd_Cb)(p_lcb->remote_bd_addr); in l2cble_process_sig_cmd() 390 if (!p_rcb->api.pL2CA_CreditBasedConnectInd_Cb) { in l2cble_process_sig_cmd() 430 temp_p_ccb->p_rcb = p_rcb; in l2cble_process_sig_cmd() 737 p_rcb = l2cu_find_ble_rcb_by_psm(con_info.psm); in l2cble_process_sig_cmd() 738 if (p_rcb == NULL) { in l2cble_process_sig_cmd() 744 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in l2cble_process_sig_cmd() [all …]
|
D | l2c_fcr.cc | 894 if ((p_ccb->p_rcb) && (p_ccb->p_rcb->api.pL2CA_TxComplete_Cb) && in process_reqseq() 902 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, in process_reqseq() 1603 p_ccb->p_rcb->ertm_info.preferred_mode == L2CAP_FCR_ERTM_MODE) { in l2c_fcr_chk_chan_modes() 1605 p_ccb->p_rcb->ertm_info.preferred_mode = 0; in l2c_fcr_chk_chan_modes() 1795 p_ccb->p_rcb->ertm_info.preferred_mode); in l2c_fcr_process_peer_cfg_req() 1798 if (p_cfg->fcr.mode != p_ccb->p_rcb->ertm_info.preferred_mode) { in l2c_fcr_process_peer_cfg_req() 1806 ((p_ccb->p_rcb->ertm_info.preferred_mode == L2CAP_FCR_ERTM_MODE) && in l2c_fcr_process_peer_cfg_req() 1815 else if (p_ccb->p_rcb->ertm_info.preferred_mode == L2CAP_FCR_BASIC_MODE) { in l2c_fcr_process_peer_cfg_req()
|
D | l2c_int.h | 300 tL2C_RCB* p_rcb; /* Registration CB for this Channel */ member 794 void l2cu_release_rcb(tL2C_RCB* p_rcb); 795 void l2cu_release_ble_rcb(tL2C_RCB* p_rcb);
|
D | l2c_link.cc | 1365 if (p_ccb->p_rcb && p_ccb->p_rcb->api.pL2CA_TxComplete_Cb && in l2cu_get_next_buffer_to_send() 1367 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, 1); in l2cu_get_next_buffer_to_send()
|
/packages/modules/Bluetooth/system/bta/av/ |
D | bta_av_act.cc | 90 tBTA_AV_RCB* p_rcb = NULL; in bta_av_get_rcb_by_shdl() local 96 p_rcb = &bta_av_cb.rcb[i]; in bta_av_get_rcb_by_shdl() 100 return p_rcb; in bta_av_get_rcb_by_shdl() 113 void bta_av_del_rc(tBTA_AV_RCB* p_rcb) { in bta_av_del_rc() argument 118 if (p_rcb->handle != BTA_AV_RC_HANDLE_NONE) { in bta_av_del_rc() 119 if (p_rcb->shdl) { in bta_av_del_rc() 121 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) { in bta_av_del_rc() 122 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc() 125 log::verbose("shdl:{}, srch:{} rc_handle:{}", p_rcb->shdl, in bta_av_del_rc() 126 p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc() [all …]
|
D | bta_av_aact.cc | 1019 tBTA_AV_RCB* p_rcb; in bta_av_disconnect_req() local 1031 p_rcb = bta_av_get_rcb_by_shdl((uint8_t)(p_scb->hdi + 1)); in bta_av_disconnect_req() 1032 if (p_rcb && p_scb->rc_handle != BTA_AV_RC_HANDLE_NONE) { in bta_av_disconnect_req() 1033 bta_av_del_rc(p_rcb); in bta_av_disconnect_req()
|
D | bta_av_int.h | 786 void bta_av_del_rc(tBTA_AV_RCB* p_rcb);
|
/packages/modules/Bluetooth/system/stack/avrc/ |
D | avrc_api.cc | 486 tAVRC_RASM_CB* p_rcb; in avrc_proc_far_msg() local 497 p_rcb = &avrc_cb.rcb[handle]; in avrc_proc_far_msg() 503 p_rcb->rasm_offset = 0; in avrc_proc_far_msg() 504 osi_free_and_reset((void**)&p_rcb->p_rmsg); in avrc_proc_far_msg() 511 p_rcb->rasm_pdu = *p_data; in avrc_proc_far_msg() 512 p_rcb->p_rmsg = (BT_HDR*)osi_calloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_far_msg() 514 memcpy(p_rcb->p_rmsg, p_pkt, sizeof(BT_HDR)); /* Copy bt hdr */ in avrc_proc_far_msg() 517 memcpy((uint8_t*)(p_rcb->p_rmsg + 1), in avrc_proc_far_msg() 521 p_rcb->p_rmsg->offset = p_rcb->rasm_offset = 0; in avrc_proc_far_msg() 528 *pp_pkt = p_rcb->p_rmsg; in avrc_proc_far_msg() [all …]
|
/packages/modules/Bluetooth/system/bta/test/ |
D | bta_gatt_test.cc | 137 .p_rcb = &app_control_block,
|
/packages/modules/Bluetooth/system/stack/test/ |
D | stack_l2cap_test.cc | 129 .p_rcb = nullptr, // tL2C_RCB* Registration CB for this Channel
|