Lines Matching refs:p_rcb
53 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0];
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;
104 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL)
111 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(rem_bda, p_buf);
126 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0];
131 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++)
133 if (( p_rcb->in_use )
134 &&( p_rcb->ucd.state != L2C_UCD_STATE_UNUSED ))
136 if ( p_rcb->ucd.cb_info.pL2CA_UCD_Congestion_Status_Cb )
139 is_congested, p_rcb->psm,
143 p_rcb->ucd.cb_info.pL2CA_UCD_Congestion_Status_Cb ( rem_bda, is_congested );
204 tL2C_RCB *p_rcb;
215 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL)
221 p_rcb->ucd.state = L2C_UCD_STATE_W4_DATA;
222 p_rcb->ucd.cb_info = *p_cb_info;
225 if ((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) == NULL)
227 if ((p_rcb = l2cu_allocate_rcb (L2C_UCD_RCB_ID)) == NULL)
235 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb = l2c_ucd_discover_cback;
236 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb = l2c_ucd_data_ind_cback;
237 p_rcb->ucd.cb_info.pL2CA_UCD_Congestion_Status_Cb = l2c_ucd_congestion_status_cback;
239 memset (&p_rcb->api, 0, sizeof(tL2CAP_APPL_INFO));
240 p_rcb->api.pL2CA_DisconnectInd_Cb = l2c_ucd_disconnect_ind_cback;
243 p_rcb->api.pL2CA_CongestionStatus_Cb = NULL;
246 p_rcb->api.pL2CA_ConfigInd_Cb = l2c_ucd_config_ind_cback;
247 p_rcb->api.pL2CA_ConfigCfm_Cb = l2c_ucd_config_cfm_cback;
268 tL2C_RCB *p_rcb;
273 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL)
279 p_rcb->ucd.state = L2C_UCD_STATE_UNUSED;
282 p_rcb = &l2cb.rcb_pool[0];
284 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++)
286 if ((p_rcb->in_use) && (p_rcb->ucd.state != L2C_UCD_STATE_UNUSED))
291 if ((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) != NULL)
293 l2cu_release_rcb (p_rcb);
330 tL2C_RCB *p_rcb;
337 if (((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL)
338 ||( p_rcb->ucd.state == L2C_UCD_STATE_UNUSED ))
358 p_rcb->ucd.state |= L2C_UCD_STATE_W4_RECEPTION;
361 p_rcb->ucd.state |= L2C_UCD_STATE_W4_MTU;
396 tL2C_RCB *p_rcb;
404 if (((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL)
405 ||( p_rcb->ucd.state == L2C_UCD_STATE_UNUSED ))
558 tL2C_RCB *p_rcb;
612 if ((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) == NULL)
618 p_ccb->p_rcb = p_rcb;
661 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0];
671 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++)
673 if (p_rcb->in_use)
676 if (p_rcb->ucd.state & L2C_UCD_STATE_W4_RECEPTION)
689 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (p_ccb->p_lcb->remote_bd_addr,
704 if (p_rcb->ucd.state & L2C_UCD_STATE_W4_MTU)
709 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (p_ccb->p_lcb->remote_bd_addr,
868 p_ccb->p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(p_ccb->p_lcb->remote_bd_addr, (BT_HDR *)p_buf);
907 tL2C_RCB *p_rcb;
910 ||((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) != NULL))
934 p_ccb->p_rcb = p_rcb;