Lines Matching refs:rx
123 memset(&p_port->rx, 0, sizeof(p_port->rx)); in port_set_defaults()
127 p_port->rx.queue = fixed_queue_new(SIZE_MAX); in port_set_defaults()
211 while ((p_buf = (BT_HDR*)fixed_queue_try_dequeue(p_port->rx.queue)) != in port_release_port()
215 p_port->rx.queue_size = 0; in port_release_port()
241 fixed_queue_free(p_port->rx.queue, nullptr); in port_release_port()
242 p_port->rx.queue = nullptr; in port_release_port()
472 if ((p_port->credit_rx <= p_port->credit_rx_low) && !p_port->rx.user_fc && in port_flow_control_peer()
479 p_port->rx.peer_fc = false; in port_flow_control_peer()
486 p_port->rx.peer_fc = true; in port_flow_control_peer()
489 else if (fixed_queue_length(p_port->rx.queue) >= p_port->credit_rx_max) { in port_flow_control_peer()
490 p_port->rx.peer_fc = true; in port_flow_control_peer()
500 if (p_port->rx.peer_fc && (p_port->rx.queue_size < PORT_RX_LOW_WM) && in port_flow_control_peer()
501 (fixed_queue_length(p_port->rx.queue) < PORT_RX_BUF_LOW_WM)) { in port_flow_control_peer()
502 p_port->rx.peer_fc = false; in port_flow_control_peer()
505 if (!p_port->rx.user_fc) in port_flow_control_peer()
513 p_port->rx.peer_fc = true; in port_flow_control_peer()
518 else if (((p_port->rx.queue_size > PORT_RX_HIGH_WM) || in port_flow_control_peer()
519 (fixed_queue_length(p_port->rx.queue) > PORT_RX_BUF_HIGH_WM)) && in port_flow_control_peer()
520 !p_port->rx.peer_fc) { in port_flow_control_peer()
523 p_port->rx.peer_fc = true; in port_flow_control_peer()