• Home
  • Raw
  • Download

Lines Matching refs:p_dlcb

908     tLLCP_DLCB   *p_dlcb;  in LLCP_ConnectReq()  local
963 p_dlcb = llcp_dlc_find_dlcb_by_sap (reg_sap, LLCP_INVALID_SAP); in LLCP_ConnectReq()
964 if (p_dlcb) in LLCP_ConnectReq()
974 p_dlcb = llcp_util_allocate_data_link (reg_sap, dsap); in LLCP_ConnectReq()
976 if (p_dlcb) in LLCP_ConnectReq()
978 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_CONNECT_REQ, p_params); in LLCP_ConnectReq()
982 llcp_util_deallocate_data_link (p_dlcb); in LLCP_ConnectReq()
1010 tLLCP_DLCB *p_dlcb; in LLCP_ConnectCfm() local
1029 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_ConnectCfm()
1031 if (p_dlcb) in LLCP_ConnectCfm()
1033 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_CONNECT_CFM, p_params); in LLCP_ConnectCfm()
1065 tLLCP_DLCB *p_dlcb; in LLCP_ConnectReject() local
1070 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_ConnectReject()
1072 if (p_dlcb) in LLCP_ConnectReject()
1074 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_CONNECT_REJECT, &reason); in LLCP_ConnectReject()
1075 llcp_util_deallocate_data_link (p_dlcb); in LLCP_ConnectReject()
1102 tLLCP_DLCB *p_dlcb; in LLCP_IsDataLinkCongested() local
1107 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_IsDataLinkCongested()
1109 if (p_dlcb) in LLCP_IsDataLinkCongested()
1111 if ( (p_dlcb->is_tx_congested) in LLCP_IsDataLinkCongested()
1112 ||(p_dlcb->remote_busy) ) in LLCP_IsDataLinkCongested()
1116 else if ( (num_pending_i_pdu + p_dlcb->i_xmit_q.count >= p_dlcb->remote_rw) in LLCP_IsDataLinkCongested()
1120 p_dlcb->is_tx_congested = TRUE; in LLCP_IsDataLinkCongested()
1144 tLLCP_DLCB *p_dlcb; in LLCP_SendData() local
1149 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_SendData()
1151 if (p_dlcb) in LLCP_SendData()
1153 if (p_dlcb->remote_miu >= p_buf->len) in LLCP_SendData()
1157 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_DATA_REQ, p_buf); in LLCP_SendData()
1168 p_buf->len, p_dlcb->remote_miu); in LLCP_SendData()
1204 tLLCP_DLCB *p_dlcb; in LLCP_ReadDataLinkData() local
1212 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_ReadDataLinkData()
1215 if (p_dlcb) in LLCP_ReadDataLinkData()
1218 if (p_dlcb->i_rx_q.p_first) in LLCP_ReadDataLinkData()
1220 p_buf = (BT_HDR *) p_dlcb->i_rx_q.p_first; in LLCP_ReadDataLinkData()
1252 p_dlcb->num_rx_i_pdu--; in LLCP_ReadDataLinkData()
1258 GKI_dequeue (&p_dlcb->i_rx_q); in LLCP_ReadDataLinkData()
1268 if ( (!p_dlcb->local_busy) in LLCP_ReadDataLinkData()
1269 &&(p_dlcb->is_rx_congested) in LLCP_ReadDataLinkData()
1270 &&(p_dlcb->num_rx_i_pdu <= p_dlcb->rx_congest_threshold / 2) ) in LLCP_ReadDataLinkData()
1273 p_dlcb->is_rx_congested = FALSE; in LLCP_ReadDataLinkData()
1274 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_PENDING_RR_RNR; in LLCP_ReadDataLinkData()
1278 if (p_dlcb->i_rx_q.p_first) in LLCP_ReadDataLinkData()
1308 tLLCP_DLCB *p_dlcb; in LLCP_FlushDataLinkRxData() local
1317 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_FlushDataLinkRxData()
1319 if (p_dlcb) in LLCP_FlushDataLinkRxData()
1322 while (p_dlcb->i_rx_q.p_first) in LLCP_FlushDataLinkRxData()
1324 p_buf = (BT_HDR *) p_dlcb->i_rx_q.p_first; in LLCP_FlushDataLinkRxData()
1340 GKI_dequeue (&p_dlcb->i_rx_q); in LLCP_FlushDataLinkRxData()
1346 p_dlcb->num_rx_i_pdu = 0; in LLCP_FlushDataLinkRxData()
1349 if ( (!p_dlcb->local_busy) in LLCP_FlushDataLinkRxData()
1350 &&(p_dlcb->is_rx_congested) ) in LLCP_FlushDataLinkRxData()
1353 p_dlcb->is_rx_congested = FALSE; in LLCP_FlushDataLinkRxData()
1354 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_PENDING_RR_RNR; in LLCP_FlushDataLinkRxData()
1383 tLLCP_DLCB *p_dlcb; in LLCP_DisconnectReq() local
1388 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_DisconnectReq()
1390 if (p_dlcb) in LLCP_DisconnectReq()
1392 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_DISCONNECT_REQ, &flush); in LLCP_DisconnectReq()
1419 tLLCP_DLCB *p_dlcb; in LLCP_SetTxCompleteNtf() local
1424 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_SetTxCompleteNtf()
1426 if (p_dlcb) in LLCP_SetTxCompleteNtf()
1429 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_NOTIFY_TX_DONE; in LLCP_SetTxCompleteNtf()
1456 tLLCP_DLCB *p_dlcb; in LLCP_SetLocalBusyStatus() local
1461 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap); in LLCP_SetLocalBusyStatus()
1463 if (p_dlcb) in LLCP_SetLocalBusyStatus()
1465 if (p_dlcb->local_busy != is_busy) in LLCP_SetLocalBusyStatus()
1467 p_dlcb->local_busy = is_busy; in LLCP_SetLocalBusyStatus()
1470 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_PENDING_RR_RNR; in LLCP_SetLocalBusyStatus()
1474 if (p_dlcb->i_rx_q.count) in LLCP_SetLocalBusyStatus()
1476 llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_PEER_DATA_IND, NULL); in LLCP_SetLocalBusyStatus()