Home
last modified time | relevance | path

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

12

/external/bluetooth/bluedroid/stack/l2cap/
Dl2c_ucd.c53 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; in l2c_ucd_discover_cback() local
58 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2c_ucd_discover_cback()
60 if (p_rcb->in_use) in l2c_ucd_discover_cback()
64 && ( p_rcb->ucd.state & L2C_UCD_STATE_W4_RECEPTION )) in l2c_ucd_discover_cback()
66 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (rem_bda, info_type, data); in l2c_ucd_discover_cback()
67 p_rcb->ucd.state &= ~(L2C_UCD_STATE_W4_RECEPTION); in l2c_ucd_discover_cback()
72 && ( p_rcb->ucd.state & L2C_UCD_STATE_W4_MTU )) in l2c_ucd_discover_cback()
74 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (rem_bda, info_type, data); in l2c_ucd_discover_cback()
75 p_rcb->ucd.state &= ~(L2C_UCD_STATE_W4_MTU); in l2c_ucd_discover_cback()
94 tL2C_RCB *p_rcb; in l2c_ucd_data_ind_cback() local
[all …]
Dl2c_csm.c128 if (p_ccb->p_rcb == NULL) in l2c_csm_closed()
150 disconnect_ind = p_ccb->p_rcb->api.pL2CA_DisconnectInd_Cb; in l2c_csm_closed()
151 connect_cfm = p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb; in l2c_csm_closed()
169 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
207 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
222 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(local_cid, L2CAP_CONN_NO_LINK); in l2c_csm_closed()
264 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_closed()
302 tL2CA_DISCONNECT_IND_CB *disconnect_ind = p_ccb->p_rcb->api.pL2CA_DisconnectInd_Cb; in l2c_csm_orig_w4_sec_comp()
303 tL2CA_CONNECT_CFM_CB *connect_cfm = p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb; in l2c_csm_orig_w4_sec_comp()
334 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm, in l2c_csm_orig_w4_sec_comp()
[all …]
Dl2c_api.c54 tL2C_RCB *p_rcb; in L2CA_Register() local
86 if ((p_rcb = l2cu_find_rcb_by_psm (vpsm)) == NULL) in L2CA_Register()
94 if ((p_rcb = l2cu_find_rcb_by_psm (vpsm)) == NULL) in L2CA_Register()
96 if ((p_rcb = l2cu_allocate_rcb (vpsm)) == NULL) in L2CA_Register()
103 p_rcb->api = *p_cb_info; in L2CA_Register()
104 p_rcb->real_psm = psm; in L2CA_Register()
123 tL2C_RCB *p_rcb; in L2CA_Deregister() local
130 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) != NULL) in L2CA_Deregister()
146 if (p_ccb->p_rcb == p_rcb) in L2CA_Deregister()
150 l2cu_release_rcb (p_rcb); in L2CA_Deregister()
[all …]
Dl2c_utils.c426 UINT16_TO_STREAM (p, p_ccb->p_rcb->real_psm); in l2cu_send_peer_connect_req()
1409 p_ccb->p_rcb = NULL; in l2cu_allocate_ccb()
1563 tL2C_RCB *p_rcb = p_ccb->p_rcb; in l2cu_release_ccb() local
1571 if (p_rcb && (p_rcb->psm != p_rcb->real_psm)) in l2cu_release_ccb()
1573 btm_sec_clr_service_by_psm(p_rcb->psm); in l2cu_release_ccb()
1677 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; in l2cu_allocate_rcb() local
1680 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2cu_allocate_rcb()
1682 if (!p_rcb->in_use) in l2cu_allocate_rcb()
1684 p_rcb->in_use = TRUE; in l2cu_allocate_rcb()
1685 p_rcb->psm = psm; in l2cu_allocate_rcb()
[all …]
Dl2c_main.c323 tL2C_RCB *p_rcb; in process_l2cap_cmd() local
406 if ((p_rcb = l2cu_find_rcb_by_psm (con_info.psm)) == NULL) in process_l2cap_cmd()
414 if (!p_rcb->api.pL2CA_ConnectInd_Cb) in process_l2cap_cmd()
428 p_ccb->p_rcb = p_rcb; in process_l2cap_cmd()
Dl2c_int.h294 tL2C_RCB *p_rcb; /* Registration CB for this Channel */ member
668 extern void l2cu_release_rcb (tL2C_RCB *p_rcb);
Dl2c_fcr.c995 if ( (p_ccb->p_rcb) && (p_ccb->p_rcb->api.pL2CA_TxComplete_Cb) && (full_sdus_xmitted) ) in process_reqseq()
1001 (*p_ccb->p_rcb->api.pL2CA_TxComplete_Cb)(p_ccb->local_cid, full_sdus_xmitted); in process_reqseq()
2439 if (p_temp_ccb->in_use && p_temp_ccb->p_rcb && p_temp_ccb->p_rcb->psm == BT_PSM_RFCOMM) in L2CA_SetupErtmTest()
/external/bluetooth/bluedroid/bta/gatt/
Dbta_gatts_act.c401 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_add_include_srvc() local
408 cb_data.add_result.server_if = p_rcb->gatt_if; in bta_gatts_add_include_srvc()
421 if (p_rcb->p_cback) in bta_gatts_add_include_srvc()
422 (*p_rcb->p_cback)(BTA_GATTS_ADD_INCL_SRVC_EVT, &cb_data); in bta_gatts_add_include_srvc()
435 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_add_char() local
443 cb_data.add_result.server_if = p_rcb->gatt_if; in bta_gatts_add_char()
459 if (p_rcb->p_cback) in bta_gatts_add_char()
460 (*p_rcb->p_cback)(BTA_GATTS_ADD_CHAR_EVT, &cb_data); in bta_gatts_add_char()
473 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; in bta_gatts_add_char_descr() local
481 cb_data.add_result.server_if = p_rcb->gatt_if; in bta_gatts_add_char_descr()
[all …]
Dbta_gattc_act.c300 if (p_cb->clcb[i].in_use && (p_cb->clcb[i].p_rcb == p_clreg)) in bta_gattc_deregister()
447 if ( p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback ) in bta_gattc_cancel_open_error()
448 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error()
464 bta_gattc_send_open_cback(p_clcb->p_rcb, in bta_gattc_open_error()
480 bta_gattc_send_open_cback(p_clcb->p_rcb, in bta_gattc_open_fail()
503 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda, TRUE)) in bta_gattc_open()
512 if (GATT_GetConnIdIfConnected(p_clcb->p_rcb->client_if, in bta_gattc_open()
622 if ( p_clcb->p_rcb->p_cback ) in bta_gattc_cancel_open_ok()
625 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_ok()
643 if (GATT_CancelConnect(p_clcb->p_rcb->client_if, p_data->api_cancel_conn.remote_bda, TRUE)) in bta_gattc_cancel_open()
[all …]
Dbta_gattc_utils.c174 p_clcb->p_rcb->client_if == client_if && in bta_gattc_find_clcb_by_cif()
229 p_clcb->p_rcb = bta_gattc_cl_get_regcb(client_if); in bta_gattc_clcb_alloc()
234 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL) in bta_gattc_clcb_alloc()
237 p_clcb->p_rcb->num_clcb ++; in bta_gattc_clcb_alloc()
289 if (p_clcb->p_rcb->num_clcb) in bta_gattc_clcb_dealloc()
290 p_clcb->p_rcb->num_clcb --; in bta_gattc_clcb_dealloc()
Dbta_gatts_main.c35 typedef void (*tBTA_GATTS_SRVC_ACT)(tBTA_GATTS_SRVC_CB *p_rcb, tBTA_GATTS_DATA *p_data);
/external/bluetooth/bluedroid/bta/av/
Dbta_av_act.c67 tBTA_AV_RCB *p_rcb = NULL; in bta_av_get_rcb_by_shdl() local
74 p_rcb = &bta_av_cb.rcb[i]; in bta_av_get_rcb_by_shdl()
78 return p_rcb; in bta_av_get_rcb_by_shdl()
91 void bta_av_del_rc(tBTA_AV_RCB *p_rcb) in bta_av_del_rc() argument
96 if(p_rcb->handle != BTA_AV_RC_HANDLE_NONE) in bta_av_del_rc()
98 if(p_rcb->shdl) in bta_av_del_rc()
100 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1]; in bta_av_del_rc()
103 APPL_TRACE_DEBUG3("bta_av_del_rc shdl:%d, srch:%d rc_handle:%d", p_rcb->shdl, in bta_av_del_rc()
104 p_scb->rc_handle, p_rcb->handle); in bta_av_del_rc()
105 if(p_scb->rc_handle == p_rcb->handle) in bta_av_del_rc()
[all …]
Dbta_av_aact.c1078 tBTA_AV_RCB *p_rcb; in bta_av_disconnect_req() local
1085 p_rcb = bta_av_get_rcb_by_shdl((UINT8)(p_scb->hdi + 1)); in bta_av_disconnect_req()
1086 if (p_rcb) in bta_av_disconnect_req()
1087 bta_av_del_rc(p_rcb); in bta_av_disconnect_req()
/external/bluetooth/bluedroid/stack/mcap/
Dmca_main.c72 tMCA_RCB *p_rcb = &mca_cb.rcb[0]; in mca_handle_by_cpsm() local
74 for (i=0; i<MCA_NUM_REGS; i++, p_rcb++) in mca_handle_by_cpsm()
76 if (p_rcb->p_cback && p_rcb->reg.ctrl_psm == psm) in mca_handle_by_cpsm()
99 tMCA_RCB *p_rcb = &mca_cb.rcb[0]; in mca_handle_by_dpsm() local
101 for (i=0; i<MCA_NUM_REGS; i++, p_rcb++) in mca_handle_by_dpsm()
103 if (p_rcb->p_cback && p_rcb->reg.data_psm == psm) in mca_handle_by_dpsm()
516 tMCA_RCB *p_rcb = NULL; in mca_rcb_alloc() local
522 p_rcb = &mca_cb.rcb[i]; in mca_rcb_alloc()
523 memcpy (&p_rcb->reg, p_reg, sizeof(tMCA_REG)); in mca_rcb_alloc()
527 return p_rcb; in mca_rcb_alloc()
[all …]
Dmca_api.c123 tMCA_RCB *p_rcb; in MCA_Register() local
133 if ( (p_rcb = mca_rcb_alloc (p_reg)) != NULL) in MCA_Register()
169 p_rcb->reg.data_psm = 0; in MCA_Register()
170 handle = mca_rcb_to_handle (p_rcb); in MCA_Register()
171 p_rcb->p_cback = p_cback; in MCA_Register()
172 p_rcb->reg.rsp_tout = p_reg->rsp_tout; in MCA_Register()
191 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); in MCA_Deregister() local
194 if (p_rcb && p_rcb->reg.ctrl_psm) in MCA_Deregister()
196 L2CA_Deregister(p_rcb->reg.ctrl_psm); in MCA_Deregister()
197 L2CA_Deregister(p_rcb->reg.data_psm); in MCA_Deregister()
[all …]
Dmca_dsm.c176 tMCA_RCB *p_rcb = p_ccb->p_rcb; in mca_dcb_alloc() local
182 p_cs = &p_rcb->dep[dep]; in mca_dcb_alloc()
216 tMCA_RCB *p_rcb = p_ccb->p_rcb; in mca_dep_free_mdl() local
224 p_cs = &p_rcb->dep[dep]; in mca_dep_free_mdl()
Dmca_csm.c225 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); in mca_ccb_by_bd() local
229 if (p_rcb) in mca_ccb_by_bd()
259 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); in mca_ccb_alloc() local
264 if (p_rcb) in mca_ccb_alloc()
272 p_ccb_tmp->p_rcb = p_rcb; in mca_ccb_alloc()
Dmca_cact.c64 if (p_ccb && p_ccb->p_rcb && p_ccb->p_rcb->p_cback) in mca_ccb_report_event()
65 … (*p_ccb->p_rcb->p_cback)(mca_rcb_to_handle(p_ccb->p_rcb), mca_ccb_to_hdl(p_ccb), event, p_data); in mca_ccb_report_event()
135 … btu_start_timer(&p_ccb->timer_entry, BTU_TTYPE_MCA_CCB_RSP, p_ccb->p_rcb->reg.rsp_tout); in mca_ccb_snd_req()
187 p_ccb->p_rcb->reg.data_psm, BTM_SEC_PROTO_MCA, p_msg->dcb_idx); in mca_ccb_snd_rsp()
360 if (!mca_is_valid_dep_id(p_ccb->p_rcb, p_rx_msg->mdep_id)) in mca_ccb_hdl_req()
Dmca_int.h206 tMCA_RCB *p_rcb; /* the associated registration control block */ member
317 extern tMCA_HANDLE mca_rcb_to_handle(tMCA_RCB *p_rcb);
319 extern BOOLEAN mca_is_valid_dep_id(tMCA_RCB *p_rcb, tMCA_DEP dep);
/external/bluetooth/bluedroid/stack/avrc/
Davrc_api.c360 tAVRC_RASM_CB *p_rcb; in avrc_proc_far_msg() local
370 p_rcb = &avrc_cb.rcb[handle]; in avrc_proc_far_msg()
377 p_rcb->rasm_offset = 0; in avrc_proc_far_msg()
378 if (p_rcb->p_rmsg) in avrc_proc_far_msg()
380 GKI_freebuf(p_rcb->p_rmsg); in avrc_proc_far_msg()
381 p_rcb->p_rmsg = NULL; in avrc_proc_far_msg()
391 p_rcb->rasm_pdu = *p_data; in avrc_proc_far_msg()
392 if ((p_rcb->p_rmsg = (BT_HDR *)GKI_getbuf(GKI_MAX_BUF_SIZE)) != NULL) in avrc_proc_far_msg()
395 memcpy(p_rcb->p_rmsg, p_pkt, sizeof(BT_HDR)); /* Copy bt hdr */ in avrc_proc_far_msg()
398 memcpy((UINT8 *)(p_rcb->p_rmsg + 1), in avrc_proc_far_msg()
[all …]
/external/bluetooth/bluedroid/stack/gatt/
Dgatt_sr.c532 tGATT_SR_REG *p_rcb; in gatt_build_primary_service_rsp() local
543 p_rcb = GATT_GET_SR_REG_PTR(p_srv->i_sreg); in gatt_build_primary_service_rsp()
545 if (p_rcb->in_use && in gatt_build_primary_service_rsp()
546 p_rcb->s_hdl >= s_hdl && in gatt_build_primary_service_rsp()
547 p_rcb->s_hdl <= e_hdl && in gatt_build_primary_service_rsp()
548 p_rcb->type == GATT_UUID_PRI_SERVICE) in gatt_build_primary_service_rsp()
550 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL) in gatt_build_primary_service_rsp()
575 UINT16_TO_STREAM(p, p_rcb->s_hdl); in gatt_build_primary_service_rsp()
585 UINT16_TO_STREAM(p, p_rcb->e_hdl); in gatt_build_primary_service_rsp()
617 static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SR_REG *p_rcb, BT_HDR *p_msg, UINT16 *p_len, in gatt_build_find_info_rsp() argument
[all …]
Dgatt_utils.c420 tGATT_SR_REG *p_rcb = NULL; in gatt_is_last_attribute() local
427 p_rcb = GATT_GET_SR_REG_PTR(p_srv->i_sreg); in gatt_is_last_attribute()
429 p_svc_uuid = gatts_get_service_uuid (p_rcb->p_db); in gatt_is_last_attribute()
/external/bluetooth/bluedroid/stack/sdp/
Dsdp_discovery.c201 tSDP_DISC_RES_CB *p_rcb = (tSDP_DISC_RES_CB *) p_ccb->p_db; in sdp_disc_connected() local
205 if (p_rcb) in sdp_disc_connected()
209 (*p_rcb)(SDP_EVT_OPEN, (void *)&evt_data); in sdp_disc_connected()
257 tSDP_DISC_RES_CB *p_rcb = (tSDP_DISC_RES_CB *) p_ccb->p_db; in sdp_disc_server_rsp() local
259 if (p_rcb) in sdp_disc_server_rsp()
263 (*p_rcb)(SDP_EVT_DATA_IND, (void *)&data); in sdp_disc_server_rsp()
Dsdp_api.c1395 UINT32 SDP_ConnOpen (UINT8 *p_bd_addr, tSDP_DISC_RES_CB *p_rcb, in SDP_ConnOpen() argument
1402 if (!p_cb || !p_rcb) in SDP_ConnOpen()
1412 p_ccb->p_db = (tSDP_DISCOVERY_DB *)p_rcb; in SDP_ConnOpen()
/external/bluetooth/bluedroid/stack/include/
Dsdp_api.h711 SDP_API UINT32 SDP_ConnOpen (UINT8 *p_bd_addr, tSDP_DISC_RES_CB *p_rcb,

12