Lines Matching refs:rx
122 memset(&p_port->rx, 0, sizeof(p_port->rx)); in port_set_defaults()
126 p_port->rx.queue = fixed_queue_new(SIZE_MAX); in port_set_defaults()
209 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_port->rx.queue)) != in port_release_port()
213 p_port->rx.queue_size = 0; in port_release_port()
239 fixed_queue_free(p_port->rx.queue, nullptr); in port_release_port()
240 p_port->rx.queue = nullptr; in port_release_port()
470 if ((p_port->credit_rx <= p_port->credit_rx_low) && !p_port->rx.user_fc && in port_flow_control_peer()
477 p_port->rx.peer_fc = false; in port_flow_control_peer()
484 p_port->rx.peer_fc = true; in port_flow_control_peer()
487 else if (fixed_queue_length(p_port->rx.queue) >= p_port->credit_rx_max) { in port_flow_control_peer()
488 p_port->rx.peer_fc = true; in port_flow_control_peer()
498 if (p_port->rx.peer_fc && (p_port->rx.queue_size < PORT_RX_LOW_WM) && in port_flow_control_peer()
499 (fixed_queue_length(p_port->rx.queue) < PORT_RX_BUF_LOW_WM)) { in port_flow_control_peer()
500 p_port->rx.peer_fc = false; in port_flow_control_peer()
503 if (!p_port->rx.user_fc) in port_flow_control_peer()
511 p_port->rx.peer_fc = true; in port_flow_control_peer()
516 else if (((p_port->rx.queue_size > PORT_RX_HIGH_WM) || in port_flow_control_peer()
517 (fixed_queue_length(p_port->rx.queue) > PORT_RX_BUF_HIGH_WM)) && in port_flow_control_peer()
518 !p_port->rx.peer_fc) { in port_flow_control_peer()
521 p_port->rx.peer_fc = true; in port_flow_control_peer()