Searched refs:rxtx_gap (Results 1 – 2 of 2) sorted by relevance
109 u32 tx_left, tx_room, rxtx_gap; in pic32_tx_max() local114 rxtx_gap = (priv->rx_end - priv->rx) - (priv->tx_end - priv->tx); in pic32_tx_max()115 rxtx_gap /= n_bytes; in pic32_tx_max()116 return min3(tx_left, tx_room, (u32)(priv->fifo_n_word - rxtx_gap)); in pic32_tx_max()
261 u32 tx_left, tx_room, rxtx_gap; in tx_max() local274 rxtx_gap = ((priv->rx_end - priv->rx) - (priv->tx_end - priv->tx)) / in tx_max()277 return min3(tx_left, tx_room, (u32)(priv->fifo_len - rxtx_gap)); in tx_max()