Home
last modified time | relevance | path

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

/system/bt/bta/gatt/
Dbta_gatts_act.cc304 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 …]
Dbta_gattc_act.cc234 if (!bta_gattc_cb.clcb[i].in_use || (bta_gattc_cb.clcb[i].p_rcb != p_clreg)) in bta_gattc_deregister()
326 if (p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback) in bta_gattc_cancel_open_error()
327 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error()
334 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_SUCCESS, p_clcb->bda, in bta_gattc_open_error()
344 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_ERROR, p_clcb->bda, in bta_gattc_open_fail()
355 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, true, in bta_gattc_open()
366 p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, in bta_gattc_open()
437 if (p_clcb->p_rcb->p_cback) { in bta_gattc_cancel_open_ok()
439 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_ok()
448 if (GATT_CancelConnect(p_clcb->p_rcb->client_if, in bta_gattc_cancel_open()
[all …]
Dbta_gattc_utils.cc89 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()
Dbta_gattc_cache.cc410 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()
Dbta_gattc_int.h248 tBTA_GATTC_RCB* p_rcb; /* pointer to the registration CB */ member
/system/bt/bta/av/
Dbta_av_act.cc79 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 …]
Dbta_av_int.h721 extern void bta_av_del_rc(tBTA_AV_RCB* p_rcb);
Dbta_av_aact.cc1051 tBTA_AV_RCB* p_rcb; in bta_av_disconnect_req() local
1061 p_rcb = bta_av_get_rcb_by_shdl((uint8_t)(p_scb->hdi + 1)); in bta_av_disconnect_req()
1062 if (p_rcb) bta_av_del_rc(p_rcb); in bta_av_disconnect_req()
/system/bt/stack/l2cap/
Dl2c_csm.cc136 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 …]
Dl2c_api.cc63 tL2C_RCB* p_rcb; in L2CA_Register() local
89 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register()
90 if (p_rcb == NULL) break; in L2CA_Register()
98 p_rcb = l2cu_find_rcb_by_psm(vpsm); in L2CA_Register()
99 if (p_rcb == NULL) { in L2CA_Register()
100 p_rcb = l2cu_allocate_rcb(vpsm); in L2CA_Register()
101 if (p_rcb == NULL) { in L2CA_Register()
108 p_rcb->log_packets = enable_snoop; in L2CA_Register()
109 p_rcb->api = *p_cb_info; in L2CA_Register()
110 p_rcb->real_psm = psm; in L2CA_Register()
[all …]
Dl2c_utils.cc446 UINT16_TO_STREAM(p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_connect_req()
1420 p_ccb->p_rcb = NULL; in l2cu_allocate_ccb()
1565 tL2C_RCB* p_rcb = p_ccb->p_rcb; in l2cu_release_ccb() local
1576 if (p_rcb && (p_rcb->psm != p_rcb->real_psm)) { in l2cu_release_ccb()
1577 btm_sec_clr_service_by_psm(p_rcb->psm); in l2cu_release_ccb()
1581 osi_free(p_rcb); in l2cu_release_ccb()
1582 p_ccb->p_rcb = NULL; in l2cu_release_ccb()
1684 tL2C_RCB* p_rcb = &l2cb.rcb_pool[0]; in l2cu_allocate_rcb() local
1687 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) { in l2cu_allocate_rcb()
1688 if (!p_rcb->in_use) { in l2cu_allocate_rcb()
[all …]
Dl2c_main.cc375 tL2C_RCB* p_rcb = l2cu_find_rcb_by_psm(con_info.psm); in process_l2cap_cmd() local
376 if (!p_rcb) { in process_l2cap_cmd()
382 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in process_l2cap_cmd()
397 p_ccb->p_rcb = p_rcb; in process_l2cap_cmd()
400 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd()
403 } else if (p_rcb->log_packets) { in process_l2cap_cmd()
439 tL2C_RCB* p_rcb = p_ccb->p_rcb; in process_l2cap_cmd() local
440 if (p_rcb->psm == BT_PSM_RFCOMM) { in process_l2cap_cmd()
443 } else if (p_rcb->log_packets) { in process_l2cap_cmd()
Dl2c_ble.cc477 tL2C_RCB* p_rcb; in l2cble_process_sig_cmd() local
587 p_rcb = l2cu_find_ble_rcb_by_psm(con_info.psm); in l2cble_process_sig_cmd()
588 if (p_rcb == NULL) { in l2cble_process_sig_cmd()
594 if (!p_rcb->api.pL2CA_ConnectInd_Cb) { in l2cble_process_sig_cmd()
620 p_ccb->p_rcb = p_rcb; in l2cble_process_sig_cmd()
Dl2c_int.h292 tL2C_RCB* p_rcb; /* Registration CB for this Channel */ member
678 extern void l2cu_release_rcb(tL2C_RCB* p_rcb);
679 extern void l2cu_release_ble_rcb(tL2C_RCB* p_rcb);
Dl2c_fcr.cc1051 if ((p_ccb->p_rcb) && (p_ccb->p_rcb->api.pL2CA_TxComplete_Cb) && in process_reqseq()
1059 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, in process_reqseq()
Dl2c_link.cc493 if (p_ccb->p_rcb->api.pL2CA_QoSViolationInd_Cb) in l2c_link_hci_qos_violation()
/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_malloc(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/stack/mcap/
Dmca_cact.cc66 if (p_ccb && p_ccb->p_rcb && p_ccb->p_rcb->p_cback) in mca_ccb_report_event()
67 (*p_ccb->p_rcb->p_cback)(mca_rcb_to_handle(p_ccb->p_rcb), in mca_ccb_report_event()
132 uint64_t interval_ms = p_ccb->p_rcb->reg.rsp_tout * 1000; in mca_ccb_snd_req()
177 p_ccb->sec_mask, p_ccb->p_rcb->reg.data_psm, in mca_ccb_snd_rsp()
333 if (!mca_is_valid_dep_id(p_ccb->p_rcb, p_rx_msg->mdep_id)) { in mca_ccb_hdl_req()