Home | History | Annotate | Download | only in rfcomm

Lines Matching full:p_port

254 void rfc_port_timer_start (tPORT *p_port, UINT16 timeout)
256 TIMER_LIST_ENT *p_tle = &p_port->rfc.tle;
260 p_tle->param = (UINT32)p_port;
273 void rfc_port_timer_stop (tPORT *p_port)
277 btu_stop_timer (&p_port->rfc.tle);
354 tPORT *p_port = (tPORT *)p_ref_data;
357 if (!p_port->in_use
358 || ((p_port->rfc.state != RFC_STATE_ORIG_WAIT_SEC_CHECK)
359 && (p_port->rfc.state != RFC_STATE_TERM_WAIT_SEC_CHECK)))
377 void rfc_port_closed (tPORT *p_port)
379 tRFC_MCB *p_mcb = p_port->rfc.p_mcb;
383 rfc_port_timer_stop (p_port);
385 p_port->rfc.state = RFC_STATE_CLOSED;
390 p_mcb->port_inx[p_port->dlci] = 0;
397 port_rfc_closed (p_port, PORT_CLOSED);
411 void rfc_inc_credit (tPORT *p_port, UINT8 credit)
413 if (p_port->rfc.p_mcb->flow == PORT_FC_CREDIT)
415 p_port->credit_tx += credit;
417 RFCOMM_TRACE_EVENT1 ("rfc_inc_credit:%d", p_port->credit_tx);
419 if (p_port->tx.peer_fc == TRUE)
420 PORT_FlowInd(p_port->rfc.p_mcb, p_port->dlci, TRUE);
435 void rfc_dec_credit (tPORT *p_port)
437 if (p_port->rfc.p_mcb->flow == PORT_FC_CREDIT)
439 if (p_port->credit_tx > 0)
440 p_port->credit_tx--;
442 if (p_port->credit_tx == 0)
443 p_port->tx.peer_fc = TRUE;