Lines Matching full:dlci
70 p_mcb->port_inx[p_port->dlci] = p_port->inx;
77 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
114 RFCOMM_ControlReq (p_mcb, p_port->dlci, &p_port->local_ctrl);
135 RFCOMM_PortNegReq (p_mcb, p_port->dlci, &p_port->user_port_pars);
184 RFCOMM_DlcReleaseReq (p_mcb, p_port->dlci);
215 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
288 ** DLCI parameters (currently only MTU is negotiated).
293 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k)
295 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
299 RFCOMM_TRACE_EVENT2 ("PORT_ParNegInd dlci:%d mtu:%d", dlci, mtu);
304 p_port = port_find_dlci_port (dlci);
308 rfc_send_dm(p_mcb, dlci, FALSE);
315 p_mcb->port_inx[dlci] = p_port->inx;
346 /* after the DLCI is already established-- the PN in that case must have cl = 0. */
369 RFCOMM_ParNegRsp (p_mcb, dlci, p_port->mtu, our_cl, our_k);
378 ** DLCI parameters (currently only MTU is negotiated).
384 void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k)
386 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
388 RFCOMM_TRACE_EVENT4 ("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, cl, k);
400 rfc_send_disc (p_mcb, p_port->dlci);
428 RFCOMM_DlcEstablishReq (p_mcb, p_port->dlci, p_port->mtu);
441 ** dlci. The block should be allocated allocated before
445 void PORT_DlcEstablishInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu)
447 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
449 RFCOMM_TRACE_DEBUG4 ("PORT_DlcEstablishInd p_mcb:%p, dlci:%d mtu:%di, p_port:%p", p_mcb, dlci, mtu, p_port);
457 p_port = port_find_dlci_port (dlci);
460 RFCOMM_DlcEstablishRsp (p_mcb, dlci, 0, RFCOMM_ERROR);
463 p_mcb->port_inx[dlci] = p_port->inx;
473 dlci, p_port->mtu, RFCOMM_SUCCESS);
497 void PORT_DlcEstablishCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result)
499 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
501 RFCOMM_TRACE_EVENT3 ("PORT_DlcEstablishCnf dlci:%d mtu:%d result:%d", dlci, mtu, result);
531 RFCOMM_PortNegReq (p_port->rfc.p_mcb, p_port->dlci, NULL);
533 RFCOMM_ControlReq (p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl);
548 void PORT_PortNegInd (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_STATE *p_pars,
551 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
558 p_port = port_find_dlci_port (dlci);
561 RFCOMM_PortNegRsp (p_mcb, dlci, p_pars, 0);
564 p_mcb->port_inx[dlci] = p_port->inx;
569 RFCOMM_PortNegRsp (p_mcb, dlci, p_pars, param_mask);
581 void PORT_PortNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_STATE *p_pars, UINT16 result)
583 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
597 RFCOMM_DlcReleaseReq (p_mcb, p_port->dlci);
605 RFCOMM_ControlReq (p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl);
622 void PORT_ControlInd (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_CTRL *p_pars)
624 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
640 RFCOMM_ControlReq (p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl);
681 void PORT_ControlCnf (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_CTRL *p_pars)
683 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
718 void PORT_LineStatusInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT8 line_status)
720 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
752 void PORT_DlcReleaseInd (tRFC_MCB *p_mcb, UINT8 dlci)
754 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
825 void PORT_DataInd (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf)
827 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
833 RFCOMM_TRACE_EVENT4("PORT_DataInd with data length %d, p_mcb:%p,p_port:%p,dlci:%d",
834 p_buf->len, p_mcb, p_port, dlci);
870 RFCOMM_LineStatusReq (p_mcb, dlci, LINE_STATUS_OVERRUN);
926 void PORT_FlowInd (tRFC_MCB *p_mcb, UINT8 dlci, BOOLEAN enable_data)
934 if (dlci == 0)
940 if ((p_port = port_find_mcb_dlci_port (p_mcb, dlci)) == NULL)
948 /* If DLCI is 0 event applies to all ports */
949 if (dlci == 0)
972 /* If DLCI is not 0 event applies to one port only */
973 if (dlci != 0)
1008 RFCOMM_DataReq (p_port->rfc.p_mcb, p_port->dlci, p_buf);
1057 p_mcb->port_inx[p_port->dlci] = 0;
1064 /* Need to restore DLCI to listening state
1067 p_port->dlci &= 0xfe;