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