Searched refs:p_rcb (Results 1 - 25 of 27) sorted by relevance

12

/system/bt/stack/l2cap/
H A Dl2c_ucd.c53 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; local
58 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++)
60 if (p_rcb->in_use)
64 && ( p_rcb->ucd.state & L2C_UCD_STATE_W4_RECEPTION ))
66 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (rem_bda, info_type, data);
67 p_rcb->ucd.state &= ~(L2C_UCD_STATE_W4_RECEPTION);
72 && ( p_rcb->ucd.state & L2C_UCD_STATE_W4_MTU ))
74 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (rem_bda, info_type, data);
75 p_rcb->ucd.state &= ~(L2C_UCD_STATE_W4_MTU);
94 tL2C_RCB *p_rcb; local
126 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; local
204 tL2C_RCB *p_rcb; local
268 tL2C_RCB *p_rcb; local
330 tL2C_RCB *p_rcb; local
396 tL2C_RCB *p_rcb; local
558 tL2C_RCB *p_rcb; local
661 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; local
907 tL2C_RCB *p_rcb; local
[all...]
H A Dl2c_csm.c129 if (p_ccb->p_rcb == NULL)
132 L2CAP_TRACE_ERROR ("L2CAP - LCID: 0x%04x st: CLOSED evt: %s p_rcb == NULL", p_ccb->local_cid, l2c_csm_get_event_name (event));
134 L2CAP_TRACE_ERROR ("L2CAP - LCID: 0x%04x st: CLOSED evt: 0x%04x p_rcb == NULL", p_ccb->local_cid, event);
151 disconnect_ind = p_ccb->p_rcb->api.pL2CA_DisconnectInd_Cb;
152 connect_cfm = p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb;
170 btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm,
204 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm,
219 (*p_ccb->p_rcb->api.pL2CA_ConnectCfm_Cb)(local_cid, L2CAP_CONN_NO_LINK);
257 if (btm_sec_l2cap_access_req (p_ccb->p_lcb->remote_bd_addr, p_ccb->p_rcb->psm,
295 tL2CA_DISCONNECT_IND_CB *disconnect_ind = p_ccb->p_rcb
[all...]
H A Dl2c_api.c60 tL2C_RCB *p_rcb; local
92 if ((p_rcb = l2cu_find_rcb_by_psm (vpsm)) == NULL)
100 if ((p_rcb = l2cu_find_rcb_by_psm (vpsm)) == NULL)
102 if ((p_rcb = l2cu_allocate_rcb (vpsm)) == NULL)
109 p_rcb->api = *p_cb_info;
110 p_rcb->real_psm = psm;
129 tL2C_RCB *p_rcb; local
136 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) != NULL)
152 if (p_ccb->p_rcb == p_rcb)
243 tL2C_RCB *p_rcb; local
945 tL2C_RCB *p_rcb; local
[all...]
H A Dl2c_utils.c495 UINT16_TO_STREAM (p, p_ccb->p_rcb->real_psm);
1523 p_ccb->p_rcb = NULL;
1678 tL2C_RCB *p_rcb = p_ccb->p_rcb; local
1686 if (p_rcb && (p_rcb->psm != p_rcb->real_psm))
1688 btm_sec_clr_service_by_psm(p_rcb->psm);
1693 osi_free(p_rcb);
1694 p_ccb->p_rcb
1799 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; local
1829 l2cu_release_rcb(tL2C_RCB *p_rcb) argument
1880 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; local
[all...]
H A Dl2c_main.c329 tL2C_RCB *p_rcb; local
436 if ((p_rcb = l2cu_find_rcb_by_psm (con_info.psm)) == NULL)
444 if (!p_rcb->api.pL2CA_ConnectInd_Cb)
458 p_ccb->p_rcb = p_rcb;
H A Dl2c_int.h267 tL2C_RCB *p_rcb; /* Registration CB for this Channel */ member in struct:t_l2c_ccb
646 extern void l2cu_release_rcb (tL2C_RCB *p_rcb);
/system/bt/stack/mcap/
H A Dmca_main.c72 tMCA_RCB *p_rcb = &mca_cb.rcb[0]; local
74 for (i=0; i<MCA_NUM_REGS; i++, p_rcb++)
76 if (p_rcb->p_cback && p_rcb->reg.ctrl_psm == psm)
99 tMCA_RCB *p_rcb = &mca_cb.rcb[0]; local
101 for (i=0; i<MCA_NUM_REGS; i++, p_rcb++)
103 if (p_rcb->p_cback && p_rcb->reg.data_psm == psm)
521 tMCA_RCB *p_rcb = NULL; local
527 p_rcb
548 tMCA_RCB *p_rcb; local
587 mca_rcb_to_handle(tMCA_RCB *p_rcb) argument
605 tMCA_RCB *p_rcb = NULL; local
623 mca_is_valid_dep_id(tMCA_RCB *p_rcb, tMCA_DEP dep) argument
[all...]
H A Dmca_api.c123 tMCA_RCB *p_rcb; local
133 if ( (p_rcb = mca_rcb_alloc (p_reg)) != NULL)
169 p_rcb->reg.data_psm = 0;
170 handle = mca_rcb_to_handle (p_rcb);
171 p_rcb->p_cback = p_cback;
172 p_rcb->reg.rsp_tout = p_reg->rsp_tout;
191 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); local
194 if (p_rcb && p_rcb->reg.ctrl_psm)
196 L2CA_Deregister(p_rcb
221 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); local
290 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); local
[all...]
H A Dmca_csm.c225 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); local
229 if (p_rcb)
259 tMCA_RCB *p_rcb = mca_rcb_by_handle(handle); local
264 if (p_rcb)
272 p_ccb_tmp->p_rcb = p_rcb;
H A Dmca_dsm.c176 tMCA_RCB *p_rcb = p_ccb->p_rcb; local
182 p_cs = &p_rcb->dep[dep];
216 tMCA_RCB *p_rcb = p_ccb->p_rcb; local
224 p_cs = &p_rcb->dep[dep];
H A Dmca_cact.c67 if (p_ccb && p_ccb->p_rcb && p_ccb->p_rcb->p_cback)
68 (*p_ccb->p_rcb->p_cback)(mca_rcb_to_handle(p_ccb->p_rcb), mca_ccb_to_hdl(p_ccb), event, p_data);
140 btu_start_timer(&p_ccb->timer_entry, BTU_TTYPE_MCA_CCB_RSP, p_ccb->p_rcb->reg.rsp_tout);
191 p_ccb->p_rcb->reg.data_psm, BTM_SEC_PROTO_MCA, p_msg->dcb_idx);
366 if (!mca_is_valid_dep_id(p_ccb->p_rcb, p_rx_msg->mdep_id))
H A Dmca_int.h206 tMCA_RCB *p_rcb; /* the associated registration control block */ member in struct:__anon1239
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);
/system/bt/bta/gatt/
H A Dbta_gatts_act.c412 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; local
419 cb_data.add_result.server_if = p_rcb->gatt_if;
432 if (p_rcb->p_cback)
433 (*p_rcb->p_cback)(BTA_GATTS_ADD_INCL_SRVC_EVT, &cb_data);
446 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; local
454 cb_data.add_result.server_if = p_rcb->gatt_if;
470 if (p_rcb->p_cback)
471 (*p_rcb->p_cback)(BTA_GATTS_ADD_CHAR_EVT, &cb_data);
484 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; local
492 cb_data.add_result.server_if = p_rcb
523 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; local
556 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; local
589 tBTA_GATTS_RCB *p_rcb = &bta_gatts_cb.rcb[p_srvc_cb->rcb_idx]; local
637 tBTA_GATTS_RCB *p_rcb = NULL; local
706 tBTA_GATTS_RCB *p_rcb=NULL; local
746 tBTA_GATTS_RCB *p_rcb; local
781 tBTA_GATTS_RCB *p_rcb; local
827 tBTA_GATTS_RCB *p_rcb = bta_gatts_find_app_rcb_by_app_if(p_msg->api_listen.server_if); local
866 tBTA_GATTS_RCB *p_rcb; local
971 tBTA_GATTS_RCB *p_rcb; local
[all...]
H A Dbta_gattc_act.c309 if (p_cb->clcb[i].in_use && (p_cb->clcb[i].p_rcb == p_clreg))
464 if ( p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback )
465 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data);
483 bta_gattc_send_open_cback(p_clcb->p_rcb,
503 bta_gattc_send_open_cback(p_clcb->p_rcb,
527 if (!GATT_Connect(p_clcb->p_rcb->client_if, p_data->api_conn.remote_bda,
537 if (GATT_GetConnIdIfConnected(p_clcb->p_rcb->client_if,
655 if ( p_clcb->p_rcb->p_cback )
658 (*p_clcb->p_rcb
[all...]
H A Dbta_gatts_main.c35 typedef void (*tBTA_GATTS_SRVC_ACT)(tBTA_GATTS_SRVC_CB *p_rcb, tBTA_GATTS_DATA *p_data);
H A Dbta_gattc_utils.c178 p_clcb->p_rcb->client_if == client_if &&
236 p_clcb->p_rcb = bta_gattc_cl_get_regcb(client_if);
241 if (p_clcb->p_rcb != NULL && p_clcb->p_srcb != NULL)
244 p_clcb->p_rcb->num_clcb ++;
297 if (p_clcb->p_rcb->num_clcb)
298 p_clcb->p_rcb->num_clcb --;
H A Dbta_gattc_int.h372 tBTA_GATTC_RCB *p_rcb; /* pointer to the registration CB */ member in struct:__anon171
H A Dbta_gattc_cache.c1264 if (p_clcb->p_rcb->p_cback)
1272 (* p_clcb->p_rcb->p_cback)(BTA_GATTC_SEARCH_RES_EVT, &cb_data);
/system/bt/bta/av/
H A Dbta_av_act.c70 tBTA_AV_RCB *p_rcb = NULL; local
77 p_rcb = &bta_av_cb.rcb[i];
81 return p_rcb;
94 void bta_av_del_rc(tBTA_AV_RCB *p_rcb) argument
100 if(p_rcb->handle != BTA_AV_RC_HANDLE_NONE)
102 if(p_rcb->shdl)
105 if ((p_rcb->shdl - 1) < BTA_AV_NUM_STRS)
107 p_scb = bta_av_cb.p_scb[p_rcb->shdl - 1];
111 APPL_TRACE_DEBUG("bta_av_del_rc shdl:%d, srch:%d rc_handle:%d", p_rcb->shdl,
112 p_scb->rc_handle, p_rcb
310 tBTA_AV_RCB *p_rcb; local
494 tBTA_AV_RCB *p_rcb; local
592 tBTA_AV_RCB *p_rcb; local
618 tBTA_AV_RCB *p_rcb; local
641 tBTA_AV_RCB *p_rcb; local
664 tBTA_AV_RCB *p_rcb; local
1031 tBTA_AV_RCB *p_rcb; local
1177 tBTA_AV_RCB *p_rcb, *p_rcb2; local
1809 tBTA_AV_RCB *p_rcb; local
[all...]
H A Dbta_av_aact.c1214 tBTA_AV_RCB *p_rcb; local
1223 p_rcb = bta_av_get_rcb_by_shdl((UINT8)(p_scb->hdi + 1));
1224 if (p_rcb)
1225 bta_av_del_rc(p_rcb);
H A Dbta_av_int.h674 extern void bta_av_del_rc(tBTA_AV_RCB *p_rcb);
/system/bt/stack/avrc/
H A Davrc_api.c384 tAVRC_RASM_CB *p_rcb; local
394 p_rcb = &avrc_cb.rcb[handle];
401 p_rcb->rasm_offset = 0;
402 if (p_rcb->p_rmsg)
404 GKI_freebuf(p_rcb->p_rmsg);
405 p_rcb->p_rmsg = NULL;
415 p_rcb->rasm_pdu = *p_data;
416 if ((p_rcb->p_rmsg = (BT_HDR *)GKI_getbuf(GKI_MAX_BUF_SIZE)) != NULL)
419 memcpy(p_rcb->p_rmsg, p_pkt, sizeof(BT_HDR)); /* Copy bt hdr */
422 memcpy((UINT8 *)(p_rcb
[all...]
/system/bt/stack/gatt/
H A Dgatt_sr.c530 tGATT_SR_REG *p_rcb; local
543 p_rcb = GATT_GET_SR_REG_PTR(p_srv->i_sreg);
545 if (p_rcb->in_use &&
546 p_rcb->s_hdl >= s_hdl &&
547 p_rcb->s_hdl <= e_hdl &&
548 p_rcb->type == GATT_UUID_PRI_SERVICE)
550 if ((p_uuid = gatts_get_service_uuid (p_rcb->p_db)) != NULL)
575 UINT16_TO_STREAM(p, p_rcb->s_hdl);
585 UINT16_TO_STREAM(p, p_rcb->e_hdl);
617 static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SR_REG *p_rcb, BT_HD argument
838 tGATT_SR_REG *p_rcb; local
979 tGATT_SR_REG *p_rcb; local
1184 gatts_process_read_req(tGATT_TCB *p_tcb, tGATT_SR_REG *p_rcb, UINT8 op_code, UINT16 handle, UINT16 len, UINT8 *p_data) argument
1259 tGATT_SR_REG *p_rcb = gatt_cb.sr_reg; local
1420 tGATT_SR_REG *p_rcb = gatt_cb.sr_reg; local
[all...]
H A Dgatt_utils.c421 tGATT_SR_REG *p_rcb = NULL; local
428 p_rcb = GATT_GET_SR_REG_PTR(p_srv->i_sreg);
430 p_svc_uuid = gatts_get_service_uuid (p_rcb->p_db);
/system/bt/stack/include/
H A Dsdp_api.h691 UINT32 SDP_ConnOpen (UINT8 *p_bd_addr, tSDP_DISC_RES_CB *p_rcb,

Completed in 953 milliseconds

12