Lines Matching +full:rx +full:- +full:tx +full:- +full:swap
1 /* SPDX-License-Identifier: GPL-2.0 */
9 #define DRIVER_NAME "stm32-usart"
182 #define RX_BUF_L 4096 /* dma rx buffer length */
183 #define RX_BUF_P (RX_BUF_L / 2) /* dma rx buffer period */
184 #define TX_BUF_L RX_BUF_L /* dma tx buffer length */
192 struct dma_chan *rx_ch; /* dma rx channel */
193 dma_addr_t rx_dma_buf; /* dma rx buffer bus address */
194 unsigned char *rx_buf; /* dma rx buffer cpu address */
195 struct dma_chan *tx_ch; /* dma tx channel */
196 dma_addr_t tx_dma_buf; /* dma tx buffer bus address */
197 unsigned char *tx_buf; /* dma tx buffer cpu address */
201 bool tx_dma_busy; /* dma tx transaction in progress */
204 bool swap; /* swap RX & TX pins */ member
207 int rxftcfg; /* RX FIFO threshold CFG */
208 int txftcfg; /* TX FIFO threshold CFG */