• Home
  • Raw
  • Download

Lines Matching refs:p_rcb

56     tL2C_RCB    *p_rcb = &l2cb.rcb_pool[0];  in l2c_ucd_discover_cback()  local
61 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2c_ucd_discover_cback()
63 if (p_rcb->in_use) in l2c_ucd_discover_cback()
67 && ( p_rcb->ucd.state & L2C_UCD_STATE_W4_RECEPTION )) in l2c_ucd_discover_cback()
69 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (rem_bda, info_type, data); in l2c_ucd_discover_cback()
70 p_rcb->ucd.state &= ~(L2C_UCD_STATE_W4_RECEPTION); in l2c_ucd_discover_cback()
75 && ( p_rcb->ucd.state & L2C_UCD_STATE_W4_MTU )) in l2c_ucd_discover_cback()
77 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb (rem_bda, info_type, data); in l2c_ucd_discover_cback()
78 p_rcb->ucd.state &= ~(L2C_UCD_STATE_W4_MTU); in l2c_ucd_discover_cback()
97 tL2C_RCB *p_rcb; in l2c_ucd_data_ind_cback() local
107 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) in l2c_ucd_data_ind_cback()
114 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb(rem_bda, p_buf); in l2c_ucd_data_ind_cback()
129 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; in l2c_ucd_congestion_status_cback() local
134 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2c_ucd_congestion_status_cback()
136 if (( p_rcb->in_use ) in l2c_ucd_congestion_status_cback()
137 &&( p_rcb->ucd.state != L2C_UCD_STATE_UNUSED )) in l2c_ucd_congestion_status_cback()
139 if ( p_rcb->ucd.cb_info.pL2CA_UCD_Congestion_Status_Cb ) in l2c_ucd_congestion_status_cback()
142 is_congested, p_rcb->psm, in l2c_ucd_congestion_status_cback()
146 p_rcb->ucd.cb_info.pL2CA_UCD_Congestion_Status_Cb ( rem_bda, is_congested ); in l2c_ucd_congestion_status_cback()
207 tL2C_RCB *p_rcb; in L2CA_UcdRegister() local
218 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) in L2CA_UcdRegister()
224 p_rcb->ucd.state = L2C_UCD_STATE_W4_DATA; in L2CA_UcdRegister()
225 p_rcb->ucd.cb_info = *p_cb_info; in L2CA_UcdRegister()
228 if ((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) == NULL) in L2CA_UcdRegister()
230 if ((p_rcb = l2cu_allocate_rcb (L2C_UCD_RCB_ID)) == NULL) in L2CA_UcdRegister()
238 p_rcb->ucd.cb_info.pL2CA_UCD_Discover_Cb = l2c_ucd_discover_cback; in L2CA_UcdRegister()
239 p_rcb->ucd.cb_info.pL2CA_UCD_Data_Cb = l2c_ucd_data_ind_cback; in L2CA_UcdRegister()
240 p_rcb->ucd.cb_info.pL2CA_UCD_Congestion_Status_Cb = l2c_ucd_congestion_status_cback; in L2CA_UcdRegister()
242 memset (&p_rcb->api, 0, sizeof(tL2CAP_APPL_INFO)); in L2CA_UcdRegister()
243 p_rcb->api.pL2CA_DisconnectInd_Cb = l2c_ucd_disconnect_ind_cback; in L2CA_UcdRegister()
246 p_rcb->api.pL2CA_CongestionStatus_Cb = NULL; in L2CA_UcdRegister()
249 p_rcb->api.pL2CA_ConfigInd_Cb = l2c_ucd_config_ind_cback; in L2CA_UcdRegister()
250 p_rcb->api.pL2CA_ConfigCfm_Cb = l2c_ucd_config_cfm_cback; in L2CA_UcdRegister()
271 tL2C_RCB *p_rcb; in L2CA_UcdDeregister() local
276 if ((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) in L2CA_UcdDeregister()
282 p_rcb->ucd.state = L2C_UCD_STATE_UNUSED; in L2CA_UcdDeregister()
285 p_rcb = &l2cb.rcb_pool[0]; in L2CA_UcdDeregister()
287 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in L2CA_UcdDeregister()
289 if ((p_rcb->in_use) && (p_rcb->ucd.state != L2C_UCD_STATE_UNUSED)) in L2CA_UcdDeregister()
294 if ((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) != NULL) in L2CA_UcdDeregister()
296 l2cu_release_rcb (p_rcb); in L2CA_UcdDeregister()
333 tL2C_RCB *p_rcb; in L2CA_UcdDiscover() local
340 if (((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) in L2CA_UcdDiscover()
341 ||( p_rcb->ucd.state == L2C_UCD_STATE_UNUSED )) in L2CA_UcdDiscover()
361 p_rcb->ucd.state |= L2C_UCD_STATE_W4_RECEPTION; in L2CA_UcdDiscover()
364 p_rcb->ucd.state |= L2C_UCD_STATE_W4_MTU; in L2CA_UcdDiscover()
399 tL2C_RCB *p_rcb; in L2CA_UcdDataWrite() local
407 if (((p_rcb = l2cu_find_rcb_by_psm (psm)) == NULL) in L2CA_UcdDataWrite()
408 ||( p_rcb->ucd.state == L2C_UCD_STATE_UNUSED )) in L2CA_UcdDataWrite()
562 tL2C_RCB *p_rcb; in l2c_ucd_connect() local
616 if ((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) == NULL) in l2c_ucd_connect()
622 p_ccb->p_rcb = p_rcb; in l2c_ucd_connect()
669 tL2C_RCB *p_rcb = &l2cb.rcb_pool[0]; in l2c_ucd_check_pending_info_req() local
679 for (xx = 0; xx < MAX_L2CAP_CLIENTS; xx++, p_rcb++) in l2c_ucd_check_pending_info_req()
681 if (p_rcb->in_use) in l2c_ucd_check_pending_info_req()
684 if (p_rcb->ucd.state & L2C_UCD_STATE_W4_RECEPTION) in l2c_ucd_check_pending_info_req()
697 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()
712 if (p_rcb->ucd.state & L2C_UCD_STATE_W4_MTU) in l2c_ucd_check_pending_info_req()
717 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()
863 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()
896 tL2C_RCB *p_rcb; in l2c_ucd_check_rx_pkts() local
899 ||((p_rcb = l2cu_find_rcb_by_psm (L2C_UCD_RCB_ID)) != NULL)) in l2c_ucd_check_rx_pkts()
923 p_ccb->p_rcb = p_rcb; in l2c_ucd_check_rx_pkts()