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