Lines Matching full:p_dlcb
908 tLLCP_DLCB *p_dlcb;
954 p_dlcb = llcp_dlc_find_dlcb_by_sap (reg_sap, LLCP_INVALID_SAP);
955 if (p_dlcb)
965 p_dlcb = llcp_util_allocate_data_link (reg_sap, dsap);
967 if (p_dlcb)
969 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_CONNECT_REQ, p_params);
973 llcp_util_deallocate_data_link (p_dlcb);
1001 tLLCP_DLCB *p_dlcb;
1017 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1019 if (p_dlcb)
1021 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_CONNECT_CFM, p_params);
1053 tLLCP_DLCB *p_dlcb;
1058 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1060 if (p_dlcb)
1062 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_CONNECT_REJECT, &reason);
1063 llcp_util_deallocate_data_link (p_dlcb);
1090 tLLCP_DLCB *p_dlcb;
1095 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1097 if (p_dlcb)
1099 if ( (p_dlcb->is_tx_congested)
1100 ||(p_dlcb->remote_busy) )
1104 else if ( (num_pending_i_pdu + p_dlcb->i_xmit_q.count >= p_dlcb->remote_rw)
1108 p_dlcb->is_tx_congested = TRUE;
1132 tLLCP_DLCB *p_dlcb;
1137 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1139 if (p_dlcb)
1141 if (p_dlcb->remote_miu >= p_buf->len)
1145 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_DATA_REQ, p_buf);
1156 p_buf->len, p_dlcb->remote_miu);
1192 tLLCP_DLCB *p_dlcb;
1200 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1203 if (p_dlcb)
1206 if (p_dlcb->i_rx_q.p_first)
1208 p_buf = (BT_HDR *) p_dlcb->i_rx_q.p_first;
1240 p_dlcb->num_rx_i_pdu--;
1246 GKI_dequeue (&p_dlcb->i_rx_q);
1256 if ( (!p_dlcb->local_busy)
1257 &&(p_dlcb->is_rx_congested)
1258 &&(p_dlcb->num_rx_i_pdu <= p_dlcb->rx_congest_threshold / 2) )
1261 p_dlcb->is_rx_congested = FALSE;
1262 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_PENDING_RR_RNR;
1266 if (p_dlcb->i_rx_q.p_first)
1296 tLLCP_DLCB *p_dlcb;
1305 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1307 if (p_dlcb)
1310 while (p_dlcb->i_rx_q.p_first)
1312 p_buf = (BT_HDR *) p_dlcb->i_rx_q.p_first;
1328 GKI_dequeue (&p_dlcb->i_rx_q);
1334 p_dlcb->num_rx_i_pdu = 0;
1337 if ( (!p_dlcb->local_busy)
1338 &&(p_dlcb->is_rx_congested) )
1341 p_dlcb->is_rx_congested = FALSE;
1342 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_PENDING_RR_RNR;
1371 tLLCP_DLCB *p_dlcb;
1376 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1378 if (p_dlcb)
1380 status = llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_API_DISCONNECT_REQ, &flush);
1407 tLLCP_DLCB *p_dlcb;
1412 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1414 if (p_dlcb)
1417 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_NOTIFY_TX_DONE;
1444 tLLCP_DLCB *p_dlcb;
1449 p_dlcb = llcp_dlc_find_dlcb_by_sap (local_sap, remote_sap);
1451 if (p_dlcb)
1453 if (p_dlcb->local_busy != is_busy)
1455 p_dlcb->local_busy = is_busy;
1458 p_dlcb->flags |= LLCP_DATA_LINK_FLAG_PENDING_RR_RNR;
1462 if (p_dlcb->i_rx_q.count)
1464 llcp_dlsm_execute (p_dlcb, LLCP_DLC_EVENT_PEER_DATA_IND, NULL);