Lines Matching refs:mtu
144 if (p_port->mtu == 0) { in port_select_mtu()
150 p_port->mtu = RFCOMM_DEFAULT_MTU; in port_select_mtu()
166 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * in port_select_mtu()
170 __func__, p_port->mtu); in port_select_mtu()
172 p_port->mtu = L2CAP_MTU_SIZE - RFCOMM_DATA_OVERHEAD; in port_select_mtu()
174 p_port->mtu); in port_select_mtu()
178 RFCOMM_TRACE_DEBUG("%s: application selected %d", __func__, p_port->mtu); in port_select_mtu()
180 p_port->credit_rx_max = (PORT_RX_HIGH_WM / p_port->mtu); in port_select_mtu()
183 p_port->credit_rx_low = (PORT_RX_LOW_WM / p_port->mtu); in port_select_mtu()
186 p_port->rx_buf_critical = (PORT_RX_CRITICAL_WM / p_port->mtu); in port_select_mtu()
258 p_port->mtu = p_port->keep_mtu; in port_release_port()