Home | History | Annotate | Download | only in rfcomm

Lines Matching full:dlci

71     p_mcb->port_inx[p_port->dlci] = p_port->inx;
78 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
115 RFCOMM_ControlReq (p_mcb, p_port->dlci, &p_port->local_ctrl);
136 RFCOMM_PortNegReq (p_mcb, p_port->dlci, &p_port->user_port_pars);
185 RFCOMM_DlcReleaseReq (p_mcb, p_port->dlci);
216 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
289 ** DLCI parameters (currently only MTU is negotiated).
294 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k)
296 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
300 RFCOMM_TRACE_EVENT ("PORT_ParNegInd dlci:%d mtu:%d", dlci, mtu);
305 p_port = port_find_dlci_port (dlci);
309 rfc_send_dm(p_mcb, dlci, FALSE);
316 p_mcb->port_inx[dlci] = p_port->inx;
347 /* after the DLCI is already established-- the PN in that case must have cl = 0. */
370 RFCOMM_ParNegRsp (p_mcb, dlci, p_port->mtu, our_cl, our_k);
379 ** DLCI parameters (currently only MTU is negotiated).
385 void PORT_ParNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k)
387 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
389 RFCOMM_TRACE_EVENT ("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, cl, k);
401 rfc_send_disc (p_mcb, p_port->dlci);
429 RFCOMM_DlcEstablishReq (p_mcb, p_port->dlci, p_port->mtu);
442 ** dlci. The block should be allocated allocated before
446 void PORT_DlcEstablishInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu)
448 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
450 RFCOMM_TRACE_DEBUG ("PORT_DlcEstablishInd p_mcb:%p, dlci:%d mtu:%di, p_port:%p", p_mcb, dlci, mtu, p_port);
458 p_port = port_find_dlci_port (dlci);
461 RFCOMM_DlcEstablishRsp (p_mcb, dlci, 0, RFCOMM_ERROR);
464 p_mcb->port_inx[dlci] = p_port->inx;
474 dlci, p_port->mtu, RFCOMM_SUCCESS);
498 void PORT_DlcEstablishCnf (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result)
500 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
502 RFCOMM_TRACE_EVENT ("PORT_DlcEstablishCnf dlci:%d mtu:%d result:%d", dlci, mtu, result);
532 RFCOMM_PortNegReq (p_port->rfc.p_mcb, p_port->dlci, NULL);
534 RFCOMM_ControlReq (p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl);
549 void PORT_PortNegInd (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_STATE *p_pars,
552 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
559 p_port = port_find_dlci_port (dlci);
562 RFCOMM_PortNegRsp (p_mcb, dlci, p_pars, 0);
565 p_mcb->port_inx[dlci] = p_port->inx;
570 RFCOMM_PortNegRsp (p_mcb, dlci, p_pars, param_mask);
582 void PORT_PortNegCnf (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_STATE *p_pars, UINT16 result)
584 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
599 RFCOMM_DlcReleaseReq (p_mcb, p_port->dlci);
607 RFCOMM_ControlReq (p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl);
624 void PORT_ControlInd (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_CTRL *p_pars)
626 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
642 RFCOMM_ControlReq (p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl);
683 void PORT_ControlCnf (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_CTRL *p_pars)
685 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
721 void PORT_LineStatusInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT8 line_status)
723 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
755 void PORT_DlcReleaseInd (tRFC_MCB *p_mcb, UINT8 dlci)
757 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
828 void PORT_DataInd (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf)
830 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci);
836 RFCOMM_TRACE_EVENT("PORT_DataInd with data length %d, p_mcb:%p,p_port:%p,dlci:%d",
837 p_buf->len, p_mcb, p_port, dlci);
873 RFCOMM_LineStatusReq (p_mcb, dlci, LINE_STATUS_OVERRUN);
929 void PORT_FlowInd (tRFC_MCB *p_mcb, UINT8 dlci, BOOLEAN enable_data)
937 if (dlci == 0)
943 if ((p_port = port_find_mcb_dlci_port (p_mcb, dlci)) == NULL)
951 /* If DLCI is 0 event applies to all ports */
952 if (dlci == 0)
975 /* If DLCI is not 0 event applies to one port only */
976 if (dlci != 0)
1011 RFCOMM_DataReq (p_port->rfc.p_mcb, p_port->dlci, p_buf);
1060 p_mcb->port_inx[p_port->dlci] = 0;
1067 /* Need to restore DLCI to listening state
1070 p_port->dlci &= 0xfe;