Lines Matching refs:dlci

71   p_mcb->port_handles[p_port->dlci] = p_port->handle;  in port_open_continue()
77 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in port_open_continue()
109 RFCOMM_ControlReq(p_mcb, p_port->dlci, &p_port->local_ctrl); in port_start_control()
127 RFCOMM_PortParameterNegotiationRequest(p_mcb, p_port->dlci, in port_start_par_neg()
173 RFCOMM_DlcReleaseReq(p_mcb, p_port->dlci); in port_start_close()
198 RFCOMM_TRACE_EVENT("%s: dlci %d", __func__, p_port->dlci); in PORT_StartCnf()
199 RFCOMM_ParameterNegotiationRequest(p_mcb, p_port->dlci, p_port->mtu); in PORT_StartCnf()
272 void PORT_ParNegInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegInd() argument
275 p_mcb->bd_addr.ToString().c_str(), dlci, mtu); in PORT_ParNegInd()
276 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_ParNegInd()
279 p_port = port_find_dlci_port(dlci); in PORT_ParNegInd()
282 << std::to_string(dlci) << ", p_mcb=" << p_mcb in PORT_ParNegInd()
285 rfc_send_dm(p_mcb, dlci, false); in PORT_ParNegInd()
291 RFCOMM_TRACE_EVENT("%s: port_handles[dlci:%d]:%d->%d", __func__, dlci, in PORT_ParNegInd()
292 p_mcb->port_handles[dlci], p_port->handle); in PORT_ParNegInd()
293 p_mcb->port_handles[dlci] = p_port->handle; in PORT_ParNegInd()
347 RFCOMM_ParameterNegotiationResponse(p_mcb, dlci, p_port->mtu, our_cl, our_k); in PORT_ParNegInd()
361 void PORT_ParNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, uint8_t cl, in PORT_ParNegCnf() argument
363 RFCOMM_TRACE_EVENT("PORT_ParNegCnf dlci:%d mtu:%d cl: %d k: %d", dlci, mtu, in PORT_ParNegCnf()
365 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_ParNegCnf()
380 rfc_send_disc(p_mcb, p_port->dlci); in PORT_ParNegCnf()
405 RFCOMM_DlcEstablishReq(p_mcb, p_port->dlci, p_port->mtu); in PORT_ParNegCnf()
421 void PORT_DlcEstablishInd(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu) { in PORT_DlcEstablishInd() argument
422 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_DlcEstablishInd()
425 "PORT_DlcEstablishInd p_mcb:%p, dlci:%d mtu:%di, p_port:%p", p_mcb, dlci, in PORT_DlcEstablishInd()
431 p_port = port_find_dlci_port(dlci); in PORT_DlcEstablishInd()
433 RFCOMM_DlcEstablishRsp(p_mcb, dlci, 0, RFCOMM_ERROR); in PORT_DlcEstablishInd()
436 p_mcb->port_handles[dlci] = p_port->handle; in PORT_DlcEstablishInd()
445 RFCOMM_DlcEstablishRsp(p_mcb, dlci, p_port->mtu, RFCOMM_SUCCESS); in PORT_DlcEstablishInd()
468 void PORT_DlcEstablishCnf(tRFC_MCB* p_mcb, uint8_t dlci, uint16_t mtu, in PORT_DlcEstablishCnf() argument
470 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_DlcEstablishCnf()
472 RFCOMM_TRACE_EVENT("PORT_DlcEstablishCnf dlci:%d mtu:%d result:%d", dlci, mtu, in PORT_DlcEstablishCnf()
501 RFCOMM_PortParameterNegotiationRequest(p_port->rfc.p_mcb, p_port->dlci, in PORT_DlcEstablishCnf()
504 RFCOMM_ControlReq(p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl); in PORT_DlcEstablishCnf()
518 void PORT_PortNegInd(tRFC_MCB* p_mcb, uint8_t dlci, tPORT_STATE* p_pars, in PORT_PortNegInd() argument
520 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_PortNegInd()
526 p_port = port_find_dlci_port(dlci); in PORT_PortNegInd()
528 RFCOMM_PortParameterNegotiationResponse(p_mcb, dlci, p_pars, 0); in PORT_PortNegInd()
531 p_mcb->port_handles[dlci] = p_port->handle; in PORT_PortNegInd()
536 RFCOMM_PortParameterNegotiationResponse(p_mcb, dlci, p_pars, param_mask); in PORT_PortNegInd()
547 void PORT_PortNegCnf(tRFC_MCB* p_mcb, uint8_t dlci, in PORT_PortNegCnf() argument
549 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_PortNegCnf()
561 RFCOMM_DlcReleaseReq(p_mcb, p_port->dlci); in PORT_PortNegCnf()
568 RFCOMM_ControlReq(p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl); in PORT_PortNegCnf()
582 void PORT_ControlInd(tRFC_MCB* p_mcb, uint8_t dlci, tPORT_CTRL* p_pars) { in PORT_ControlInd() argument
583 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_ControlInd()
598 RFCOMM_ControlReq(p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl); in PORT_ControlInd()
634 void PORT_ControlCnf(tRFC_MCB* p_mcb, uint8_t dlci, in PORT_ControlCnf() argument
636 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_ControlCnf()
667 void PORT_LineStatusInd(tRFC_MCB* p_mcb, uint8_t dlci, uint8_t line_status) { in PORT_LineStatusInd() argument
668 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_LineStatusInd()
695 void PORT_DlcReleaseInd(tRFC_MCB* p_mcb, uint8_t dlci) { in PORT_DlcReleaseInd() argument
696 VLOG(1) << __func__ << ": dlci=" << std::to_string(dlci) in PORT_DlcReleaseInd()
698 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_DlcReleaseInd()
756 void PORT_DataInd(tRFC_MCB* p_mcb, uint8_t dlci, BT_HDR* p_buf) { in PORT_DataInd() argument
757 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_DataInd()
765 p_buf->len, p_mcb, p_port, dlci); in PORT_DataInd()
797 RFCOMM_LineStatusReq(p_mcb, dlci, LINE_STATUS_OVERRUN); in PORT_DataInd()
847 void PORT_FlowInd(tRFC_MCB* p_mcb, uint8_t dlci, bool enable_data) { in PORT_FlowInd() argument
854 if (dlci == 0) { in PORT_FlowInd()
857 p_port = port_find_mcb_dlci_port(p_mcb, dlci); in PORT_FlowInd()
865 if (dlci == 0) { in PORT_FlowInd()
887 if (dlci != 0) break; in PORT_FlowInd()
919 RFCOMM_DataReq(p_port->rfc.p_mcb, p_port->dlci, p_buf); in port_rfc_send_tx_data()
962 p_mcb->port_handles[p_port->dlci] = 0; in port_rfc_closed()
972 p_port->dlci &= 0xfe; in port_rfc_closed()