Home | History | Annotate | Download | only in llcp

Lines Matching refs:p_dlcb

344     tLLCP_DLCB *p_dlcb = NULL;
354 p_dlcb = &(llcp_cb.dlcb[idx]);
356 memset (p_dlcb, 0, sizeof (tLLCP_DLCB));
361 if (!p_dlcb)
367 p_dlcb->p_app_cb = llcp_util_get_app_cb (reg_sap);
368 p_dlcb->local_sap = reg_sap;
369 p_dlcb->remote_sap = remote_sap;
370 p_dlcb->timer.param = (TIMER_PARAM_TYPE) p_dlcb;
376 p_dlcb->local_sap, p_dlcb->remote_sap, llcp_cb.num_data_link_connection);
378 return p_dlcb;
390 void llcp_util_deallocate_data_link (tLLCP_DLCB *p_dlcb)
392 if (p_dlcb)
394 LLCP_TRACE_DEBUG1 ("llcp_util_deallocate_data_link (): local_sap = 0x%x", p_dlcb->local_sap);
396 if (p_dlcb->state != LLCP_DLC_STATE_IDLE)
398 nfc_stop_quick_timer (&p_dlcb->timer);
399 llcp_dlc_flush_q (p_dlcb);
401 p_dlcb->state = LLCP_DLC_STATE_IDLE;
422 tLLCP_STATUS llcp_util_send_connect (tLLCP_DLCB *p_dlcb, tLLCP_CONNECTION_PARAMS *p_params)
437 if ((strlen (p_params->sn)) && (p_dlcb->remote_sap == LLCP_SAP_SDP))
451 UINT16_TO_BE_STREAM (p, LLCP_GET_PDU_HEADER (p_dlcb->remote_sap, LLCP_PDU_CONNECT_TYPE, p_dlcb->local_sap));
578 tLLCP_STATUS llcp_util_send_cc (tLLCP_DLCB *p_dlcb, tLLCP_CONNECTION_PARAMS *p_params)
603 UINT16_TO_BE_STREAM (p, LLCP_GET_PDU_HEADER (p_dlcb->remote_sap, LLCP_PDU_CC_TYPE, p_dlcb->local_sap));
726 void llcp_util_build_info_pdu (tLLCP_DLCB *p_dlcb, BT_HDR *p_msg)
735 UINT16_TO_BE_STREAM (p, LLCP_GET_PDU_HEADER (p_dlcb->remote_sap, LLCP_PDU_I_TYPE, p_dlcb->local_sap));
738 if ( (p_dlcb->local_busy)
739 ||(p_dlcb->is_rx_congested)
742 rcv_seq = p_dlcb->sent_ack_seq;
746 p_dlcb->sent_ack_seq = p_dlcb->next_rx_seq;
747 rcv_seq = p_dlcb->sent_ack_seq;
749 UINT8_TO_BE_STREAM (p, LLCP_GET_SEQUENCE (p_dlcb->next_tx_seq, rcv_seq));
761 tLLCP_STATUS llcp_util_send_frmr (tLLCP_DLCB *p_dlcb, UINT8 flags, UINT8 ptype, UINT8 sequence)
775 UINT16_TO_BE_STREAM (p, LLCP_GET_PDU_HEADER (p_dlcb->remote_sap, LLCP_PDU_FRMR_TYPE, p_dlcb->local_sap));
778 UINT8_TO_BE_STREAM (p, (p_dlcb->next_tx_seq << 4) | p_dlcb->next_rx_seq);
779 UINT8_TO_BE_STREAM (p, (p_dlcb->rcvd_ack_seq << 4) | p_dlcb->sent_ack_seq);
802 void llcp_util_send_rr_rnr (tLLCP_DLCB *p_dlcb)
811 if ((p_dlcb->flags & LLCP_DATA_LINK_FLAG_PENDING_RR_RNR) == 0)
814 if (p_dlcb->sent_ack_seq == p_dlcb->next_rx_seq)
822 if ( (p_dlcb->local_busy)
823 ||(p_dlcb->is_rx_congested)
832 if ( (p_dlcb->local_busy)
833 ||(p_dlcb->is_rx_congested)
837 p_dlcb->local_busy, p_dlcb->is_rx_congested, llcp_cb.overall_rx_congested);
842 rcv_seq = p_dlcb->sent_ack_seq;
849 p_dlcb->sent_ack_seq = p_dlcb->next_rx_seq;
850 rcv_seq = p_dlcb->sent_ack_seq;
857 p_dlcb->flags &= ~LLCP_DATA_LINK_FLAG_PENDING_RR_RNR;
864 UINT16_TO_BE_STREAM (p, LLCP_GET_PDU_HEADER (p_dlcb->remote_sap, pdu_type, p_dlcb->local_sap));
870 p_dlcb->next_rx_seq,
871 p_dlcb->next_tx_seq, p_dlcb->rcvd_ack_seq,
872 p_dlcb->next_rx_seq, p_dlcb->sent_ack_seq);