Lines Matching defs:p_port
255 void rfc_port_timer_start (tPORT *p_port, UINT16 timeout)
257 TIMER_LIST_ENT *p_tle = &p_port->rfc.tle;
261 p_tle->param = (UINT32)p_port;
274 void rfc_port_timer_stop (tPORT *p_port)
278 btu_stop_timer (&p_port->rfc.tle);
355 tPORT *p_port = (tPORT *)p_ref_data;
360 if (!p_port->in_use
361 || ((p_port->rfc.state != RFC_STATE_ORIG_WAIT_SEC_CHECK)
362 && (p_port->rfc.state != RFC_STATE_TERM_WAIT_SEC_CHECK)))
380 void rfc_port_closed (tPORT *p_port)
382 tRFC_MCB *p_mcb = p_port->rfc.p_mcb;
386 rfc_port_timer_stop (p_port);
388 p_port->rfc.state = RFC_STATE_CLOSED;
393 p_mcb->port_inx[p_port->dlci] = 0;
400 port_rfc_closed (p_port, PORT_CLOSED);
414 void rfc_inc_credit (tPORT *p_port, UINT8 credit)
416 if (p_port->rfc.p_mcb->flow == PORT_FC_CREDIT)
418 p_port->credit_tx += credit;
420 RFCOMM_TRACE_EVENT ("rfc_inc_credit:%d", p_port->credit_tx);
422 if (p_port->tx.peer_fc == TRUE)
423 PORT_FlowInd(p_port->rfc.p_mcb, p_port->dlci, TRUE);
438 void rfc_dec_credit (tPORT *p_port)
440 if (p_port->rfc.p_mcb->flow == PORT_FC_CREDIT)
442 if (p_port->credit_tx > 0)
443 p_port->credit_tx--;
445 if (p_port->credit_tx == 0)
446 p_port->tx.peer_fc = TRUE;