• Home
  • Raw
  • Download

Lines Matching refs:p_dlcb

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