Home | History | Annotate | Download | only in rfcomm

Lines Matching defs:p_mcb

57     tRFC_MCB *p_mcb;
62 if ((p_mcb = rfc_alloc_multiplexer_channel (p_port->bd_addr, TRUE)) == NULL)
69 p_port->rfc.p_mcb = p_mcb;
71 p_mcb->port_inx[p_port->dlci] = p_port->inx;
76 if (p_mcb->state == RFC_MX_STATE_CONNECTED)
78 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
80 else if ((p_mcb->state == RFC_MX_STATE_IDLE)
81 ||(p_mcb->state == RFC_MX_STATE_DISC_WAIT_UA))
86 RFCOMM_StartReq (p_mcb);
92 RFCOMM_TRACE_DEBUG ("port_open_continue: mx state(%d) mx channel is openning", p_mcb->state);
110 tRFC_MCB *p_mcb = p_port->rfc.p_mcb;
112 if (p_mcb == NULL)
115 RFCOMM_ControlReq (p_mcb, p_port->dlci, &p_port->local_ctrl);
131 tRFC_MCB *p_mcb = p_port->rfc.p_mcb;
133 if (p_mcb == NULL)
136 RFCOMM_PortNegReq (p_mcb, p_port->dlci, &p_port->user_port_pars);
152 tRFC_MCB *p_mcb = p_port->rfc.p_mcb;
175 if ((p_mcb == NULL) || (p_port->rfc.state == RFC_STATE_CLOSED))
185 RFCOMM_DlcReleaseReq (p_mcb, p_port->dlci);
200 void PORT_StartCnf (tRFC_MCB *p_mcb, UINT16 result)
211 if (p_port->rfc.p_mcb == p_mcb)
216 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
228 rfc_release_multiplexer_channel (p_mcb);
229 p_port->rfc.p_mcb = NULL;
247 rfc_check_mcb_active (p_mcb);
262 void PORT_StartInd (tRFC_MCB *p_mcb)
272 if ((p_port->rfc.p_mcb == NULL)
273 || (p_port->rfc.p_mcb == p_mcb))
275 RFCOMM_TRACE_DEBUG("PORT_StartInd, RFCOMM_StartRsp RFCOMM_SUCCESS: p_mcb:%p", p_mcb);
276 RFCOMM_StartRsp (p_mcb, RFCOMM_SUCCESS);
280 RFCOMM_StartRsp (p_mcb, RFCOMM_ERROR);
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);
309 rfc_send_dm(p_mcb, dlci, FALSE);
312 rfc_check_mcb_active( p_mcb );
316 p_mcb->port_inx[dlci] = p_port->inx;
319 memcpy (p_port->bd_addr, p_mcb->bd_addr, BD_ADDR_LEN);
324 p_port->rfc.p_mcb = p_mcb;
332 if (p_mcb->flow == PORT_FC_UNDEFINED)
336 p_mcb->flow = PORT_FC_TS710;
340 p_mcb->flow = PORT_FC_CREDIT;
354 else if (p_mcb->flow == PORT_FC_CREDIT)
370 RFCOMM_ParNegRsp (p_mcb, dlci, p_port->mtu, our_cl, our_k);
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);
395 if (p_mcb->flow == PORT_FC_UNDEFINED)
401 rfc_send_disc (p_mcb, p_port->dlci);
408 p_mcb->flow = PORT_FC_CREDIT;
413 p_mcb->flow = PORT_FC_TS710;
423 if (p_mcb->flow == PORT_FC_CREDIT)
429 RFCOMM_DlcEstablishReq (p_mcb, p_port->dlci, p_port->mtu);
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);
451 RFCOMM_TRACE_DEBUG ("PORT_DlcEstablishInd p_mcb addr:%02x:%02x:%02x:%02x:%02x:%02x",
452 p_mcb->bd_addr[0], p_mcb->bd_addr[1], p_mcb->bd_addr[2],
453 p_mcb->bd_addr[3], p_mcb->bd_addr[4], p_mcb->bd_addr[5]);
461 RFCOMM_DlcEstablishRsp (p_mcb, dlci, 0, RFCOMM_ERROR);
464 p_mcb->port_inx[dlci] = p_port->inx;
472 rfc_timer_stop (p_mcb);
474 p_mcb, 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);
519 rfc_timer_stop (p_mcb);
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);
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);
776 void PORT_CloseInd (tRFC_MCB *p_mcb)
786 if (p_port->rfc.p_mcb == p_mcb)
791 rfc_release_multiplexer_channel (p_mcb);
802 void Port_TimeOutCloseMux (tRFC_MCB *p_mcb)
812 if (p_port->rfc.p_mcb == p_mcb)
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)
939 p_mcb->peer_ready = enable_data;
943 if ((p_port = port_find_mcb_dlci_port (p_mcb, dlci)) == NULL)
956 || (p_port->rfc.p_mcb != p_mcb)
998 p_mcb && p_port->rfc.p_mcb->peer_ready)
1011 RFCOMM_DataReq (p_port->rfc.p_mcb, p_port->dlci, p_buf);
1048 tRFC_MCB *p_mcb = p_port->rfc.p_mcb;
1058 if (p_mcb)
1060 p_mcb->port_inx[p_port->dlci] = 0;
1063 rfc_check_mcb_active (p_mcb);
1064 p_port->rfc.p_mcb = NULL;