Home | History | Annotate | Download | only in rfcomm

Lines Matching refs:p_port

253 void rfc_port_timer_start(tPORT* p_port, uint16_t timeout) {
257 alarm_set_on_mloop(p_port->rfc.port_timer, interval_ms,
258 rfcomm_port_timer_timeout, p_port);
268 void rfc_port_timer_stop(tPORT* p_port) {
271 alarm_cancel(p_port->rfc.port_timer);
303 tPORT* p_port = (tPORT*)data;
305 rfc_port_sm_execute(p_port, RFC_EVENT_TIMEOUT, NULL);
327 tPORT* p_port = (tPORT*)p_ref_data;
330 if (!p_port->in_use ||
331 ((p_port->rfc.state != RFC_STATE_ORIG_WAIT_SEC_CHECK) &&
332 (p_port->rfc.state != RFC_STATE_TERM_WAIT_SEC_CHECK)))
349 void rfc_port_closed(tPORT* p_port) {
350 tRFC_MCB* p_mcb = p_port->rfc.p_mcb;
351 rfc_port_timer_stop(p_port);
352 p_port->rfc.state = RFC_STATE_CLOSED;
356 p_mcb->port_inx[p_port->dlci] = 0;
363 port_rfc_closed(p_port, PORT_CLOSED);
377 void rfc_inc_credit(tPORT* p_port, uint8_t credit) {
378 if (p_port->rfc.p_mcb->flow == PORT_FC_CREDIT) {
379 p_port->credit_tx += credit;
381 RFCOMM_TRACE_EVENT("rfc_inc_credit:%d", p_port->credit_tx);
383 if (p_port->tx.peer_fc) PORT_FlowInd(p_port->rfc.p_mcb, p_port->dlci, true);
398 void rfc_dec_credit(tPORT* p_port) {
399 if (p_port->rfc.p_mcb->flow == PORT_FC_CREDIT) {
400 if (p_port->credit_tx > 0) p_port->credit_tx--;
402 if (p_port->credit_tx == 0) p_port->tx.peer_fc = true;