Home
last modified time | relevance | path

Searched refs:p_rcb (Results 1 – 19 of 19) sorted by relevance

/system/bt/bta/gatt/
Dbta_gatts_act.cc303 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_delete_service() local
306 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service()
309 if (GATTS_DeleteService(p_rcb->gatt_if, &p_srvc_cb->service_uuid, in bta_gatts_delete_service()
317 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_DELELTE_EVT, &cb_data); in bta_gatts_delete_service()
331 tBTA_GATTS_RCB* p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_stop_service() local
335 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_stop_service()
340 if (p_rcb->p_cback) (*p_rcb->p_cback)(BTA_GATTS_STOP_EVT, &cb_data); in bta_gatts_stop_service()
370 tBTA_GATTS_RCB* p_rcb = NULL; in bta_gatts_indicate_handle() local
383 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if); in bta_gatts_indicate_handle()
407 p_rcb && p_cb->rcb[p_srvc_cb->rcb_idx].p_cback) { in bta_gatts_indicate_handle()
[all …]
Dbta_gattc_act.cc235 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister()
331 if (p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback) in bta_gattc_cancel_open_error()
332 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error()
339 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_SUCCESS, p_clcb->bda, in bta_gattc_open_error()
349 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_ERROR, p_clcb->bda, in bta_gattc_open_fail()
360 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, true, in bta_gattc_open()
371 p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open()
443 if (p_clcb->p_rcb->p_cback) { in bta_gattc_cancel_open_ok()
445 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_ok()
455 if (GATT_CancelConnect(p_clcb->p_rcb->client_if, in bta_gattc_cancel_open()
[all …]
Dbta_gattc_utils.cc97 if (p_clcb->in_use && p_clcb->p_rcb->client_if == client_if && in bta_gattc_find_clcb_by_cif()
148 p_clcb->p_rcb = bta_gattc_cl_get_regcb(client_if); in bta_gattc_clcb_alloc()
154 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL) { in bta_gattc_clcb_alloc()
156 p_clcb->p_rcb->num_clcb++; in bta_gattc_clcb_alloc()
206 if (p_clcb->p_rcb->num_clcb) p_clcb->p_rcb->num_clcb--; in bta_gattc_clcb_dealloc()
Dbta_gattc_int.h251 tBTA_GATTC_RCB* p_rcb; /* pointer to the registration CB */ member
Dbta_gattc_cache.cc508 if (!p_clcb->p_rcb->p_cback) continue; in bta_gattc_search_service()
516 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_SEARCH_RES_EVT, &cb_data); in bta_gattc_search_service()
/system/bt/bta/av/
Dbta_av_act.cc74 tBTA_AV_RCB* p_rcb = NULL; in bta_av_get_rcb_by_shdl() local
80 p_rcb = &bta_av_cb.rcb[i]; in bta_av_get_rcb_by_shdl()
84 return p_rcb; in bta_av_get_rcb_by_shdl()
97 void bta_av_del_rc(tBTA_AV_RCB* p_rcb) { in bta_av_del_rc() argument
102 if (p_rcb->handle != BTA_AV_RC_HANDLE_NONE) { in bta_av_del_rc()
103 if (p_rcb->shdl) { in bta_av_del_rc()
105 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS) { in bta_av_del_rc()
106 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc()
110 p_rcb->shdl, p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc()
111 if (p_scb->rc_handle == p_rcb->handle) in bta_av_del_rc()
[all …]
Dbta_av_int.h748 extern void bta_av_del_rc(tBTA_AV_RCB* p_rcb);
Dbta_av_aact.cc999 tBTA_AV_RCB* p_rcb; in bta_av_disconnect_req() local
1011 p_rcb = bta_av_get_rcb_by_shdl((uint8_t)(p_scb->hdi + 1)); in bta_av_disconnect_req()
1012 if (p_rcb) bta_av_del_rc(p_rcb); in bta_av_disconnect_req()
/system/bt/stack/l2cap/
Dl2c_api.cc90 tL2C_RCB* p_rcb; in L2CA_Register() local
116 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register()
117 if (p_rcb == NULL) break; in L2CA_Register()
124 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register()
125 if (p_rcb == NULL) { in L2CA_Register()
126 p_rcb = l2cu_allocate_rcb(vpsm); in L2CA_Register()
127 if (p_rcb == NULL) { in L2CA_Register()
135 p_rcb->log_packets = enable_snoop; in L2CA_Register()
136 p_rcb->api = p_cb_info; in L2CA_Register()
137 p_rcb->real_psm = psm; in L2CA_Register()
[all …]
Dl2c_csm.cc68 config.mtu = p_ccb->p_rcb->my_mtu; in l2c_csm_send_config_req()
70 if (p_ccb->p_rcb->ertm_info.preferred_mode != L2CAP_FCR_BASIC_MODE) { in l2c_csm_send_config_req()
91 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(p_ccb->local_cid, L2CAP_CONN_OK); in l2c_csm_indicate_connection_open()
93 (*p_ccb->p_rcb->api.pL2CA_ConnectInd_Cb)( in l2c_csm_indicate_connection_open()
94 p_ccb->p_lcb->remote_bd_addr, p_ccb->local_cid, p_ccb->p_rcb->psm, in l2c_csm_indicate_connection_open()
98 (*p_ccb->p_rcb->api.pL2CA_ConfigCfm_Cb)( in l2c_csm_indicate_connection_open()
181 if (p_ccb->p_rcb == NULL) { in l2c_csm_closed()
187 disconnect_ind = p_ccb->p_rcb->api.pL2CA_DisconnectInd_Cb; in l2c_csm_closed()
203 l2ble_sec_access_req(p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
208 p_ccb->p_rcb->psm, true, &l2c_link_sec_comp, in l2c_csm_closed()
[all …]
Dl2c_utils.cc420 UINT16_TO_STREAM(p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_connect_req()
1397 p_ccb->p_rcb = nullptr; in l2cu_allocate_ccb()
1531 tL2C_RCB* p_rcb = p_ccb->p_rcb; in l2cu_release_ccb() local
1542 if (p_rcb && (p_rcb->psm != p_rcb->real_psm)) { in l2cu_release_ccb()
1543 BTM_SecClrServiceByPsm(p_rcb->psm); in l2cu_release_ccb()
1642 tL2C_RCB* p_rcb = &l2cb.rcb_pool[0]; in l2cu_allocate_rcb() local
1645 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2cu_allocate_rcb()
1646 if (!p_rcb->in_use) { in l2cu_allocate_rcb()
1647 p_rcb->in_use = true; in l2cu_allocate_rcb()
1648 p_rcb->psm = psm; in l2cu_allocate_rcb()
[all …]
Dl2c_main.cc391 tL2C_RCB* p_rcb = l2cu_find_rcb_by_psm(con_info.psm); in process_l2cap_cmd() local
392 if (!p_rcb) { in process_l2cap_cmd()
397 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in process_l2cap_cmd()
411 p_ccb->p_rcb = p_rcb; in process_l2cap_cmd()
415 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd()
418 } else if (p_rcb->log_packets) { in process_l2cap_cmd()
456 tL2C_RCB* p_rcb = p_ccb->p_rcb; in process_l2cap_cmd() local
457 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd()
460 } else if (p_rcb->log_packets) { in process_l2cap_cmd()
Dl2c_ble.cc422 tL2C_RCB* p_rcb; in l2cble_process_sig_cmd() local
537 p_rcb = l2cu_find_ble_rcb_by_psm(con_info.psm); in l2cble_process_sig_cmd()
538 if (p_rcb == NULL) { in l2cble_process_sig_cmd()
545 if (!p_rcb->api.pL2CA_CreditBasedConnectInd_Cb) { in l2cble_process_sig_cmd()
584 temp_p_ccb->p_rcb = p_rcb; in l2cble_process_sig_cmd()
871 p_rcb = l2cu_find_ble_rcb_by_psm(con_info.psm); in l2cble_process_sig_cmd()
872 if (p_rcb == NULL) { in l2cble_process_sig_cmd()
878 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in l2cble_process_sig_cmd()
904 p_ccb->p_rcb = p_rcb; in l2cble_process_sig_cmd()
Dl2c_fcr.cc888 if ((p_ccb->p_rcb) && (p_ccb->p_rcb->api.pL2CA_TxComplete_Cb) && in process_reqseq()
896 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, in process_reqseq()
1600 p_ccb->p_rcb->ertm_info.preferred_mode == L2CAP_FCR_ERTM_MODE) { in l2c_fcr_chk_chan_modes()
1603 p_ccb->p_rcb->ertm_info.preferred_mode = 0; in l2c_fcr_chk_chan_modes()
1725 if (p_ccb->p_rcb->ertm_info.preferred_mode & L2CAP_FCR_BASIC_MODE) { in l2c_fcr_renegotiate_chan()
1795 p_ccb->p_rcb->ertm_info.preferred_mode); in l2c_fcr_process_peer_cfg_req()
1800 if (p_ccb->p_rcb->ertm_info.preferred_mode != L2CAP_FCR_BASIC_MODE) in l2c_fcr_process_peer_cfg_req()
1805 else if (p_cfg->fcr.mode != p_ccb->p_rcb->ertm_info.preferred_mode) { in l2c_fcr_process_peer_cfg_req()
1813 (p_ccb->p_rcb->ertm_info.preferred_mode == L2CAP_FCR_ERTM_MODE)) { in l2c_fcr_process_peer_cfg_req()
1821 else if (p_ccb->p_rcb->ertm_info.preferred_mode == L2CAP_FCR_BASIC_MODE) { in l2c_fcr_process_peer_cfg_req()
Dl2c_int.h307 tL2C_RCB* p_rcb; /* Registration CB for this Channel */ member
757 extern void l2cu_release_rcb(tL2C_RCB* p_rcb);
758 extern void l2cu_release_ble_rcb(tL2C_RCB* p_rcb);
Dl2c_link.cc1563 if (p_ccb->p_rcb && p_ccb->p_rcb->api.pL2CA_TxComplete_Cb && in l2cu_get_next_buffer_to_send()
1565 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, 1); in l2cu_get_next_buffer_to_send()
/system/bt/stack/avrc/
Davrc_api.cc463 tAVRC_RASM_CB* p_rcb; in avrc_proc_far_msg() local
474 p_rcb = &avrc_cb.rcb[handle]; in avrc_proc_far_msg()
480 p_rcb->rasm_offset = 0; in avrc_proc_far_msg()
481 osi_free_and_reset((void**)&p_rcb->p_rmsg); in avrc_proc_far_msg()
488 p_rcb->rasm_pdu = *p_data; in avrc_proc_far_msg()
489 p_rcb->p_rmsg = (BT_HDR*)osi_calloc(BT_DEFAULT_BUFFER_SIZE); in avrc_proc_far_msg()
491 memcpy(p_rcb->p_rmsg, p_pkt, sizeof(BT_HDR)); /* Copy bt hdr */ in avrc_proc_far_msg()
494 memcpy((uint8_t*)(p_rcb->p_rmsg + 1), in avrc_proc_far_msg()
498 p_rcb->p_rmsg->offset = p_rcb->rasm_offset = 0; in avrc_proc_far_msg()
505 *pp_pkt = p_rcb->p_rmsg; in avrc_proc_far_msg()
[all …]
/system/bt/test/mock/
Dmock_stack_l2cap_utils.cc185 void l2cu_release_ble_rcb(tL2C_RCB* p_rcb) { in l2cu_release_ble_rcb() argument
190 void l2cu_release_rcb(tL2C_RCB* p_rcb) { mock_function_count_map[__func__]++; } in l2cu_release_rcb() argument
/system/bt/bta/test/
Dbta_gatt_test.cc133 .p_rcb = &app_control_block,