• Home
  • Raw
  • Download

Lines Matching refs:p_rcb

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