/Linux-v4.19/drivers/tty/serial/8250/ |
D | 8250_dma.c | 23 UART_XMIT_SIZE, DMA_TO_DEVICE); in __dma_tx_complete() 30 xmit->tail &= UART_XMIT_SIZE - 1; in __dma_tx_complete() 80 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma() 98 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_tx_dma() 227 UART_XMIT_SIZE, in serial8250_request_dma() 264 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_release_dma()
|
D | 8250_omap.c | 897 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_dma_tx_complete() 904 xmit->tail &= UART_XMIT_SIZE - 1; in omap_8250_dma_tx_complete() 964 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in omap_8250_tx_dma() 1012 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_tx_dma()
|
/Linux-v4.19/drivers/tty/serial/ |
D | mxs-auart.c | 596 size = min_t(u32, UART_XMIT_SIZE - i, in mxs_auart_tx_chars() 599 UART_XMIT_SIZE)); in mxs_auart_tx_chars() 601 xmit->tail = (xmit->tail + size) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars() 604 if (i >= UART_XMIT_SIZE) in mxs_auart_tx_chars() 631 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars() 881 | AUART_CTRL0_XFER_COUNT(UART_XMIT_SIZE); in mxs_auart_dma_prep_rx() 890 sg_init_one(sgl, s->rx_dma_buf, UART_XMIT_SIZE); in mxs_auart_dma_prep_rx() 945 s->rx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init() 953 s->tx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init() 962 s->port.fifosize = UART_XMIT_SIZE; in mxs_auart_dma_init()
|
D | sunhv.c | 54 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars_putchar() 66 UART_XMIT_SIZE); in transmit_chars_write() 70 xmit->tail = (xmit->tail + sent) & (UART_XMIT_SIZE - 1); in transmit_chars_write()
|
D | serial-tegra.c | 372 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in tegra_uart_fill_tx_fifo() 401 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in tegra_uart_tx_dma_complete() 416 UART_XMIT_SIZE, DMA_TO_DEVICE); in tegra_uart_start_tx_dma() 444 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_uart_start_next_tx() 496 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in tegra_uart_stop_tx() 918 UART_XMIT_SIZE, DMA_TO_DEVICE); in tegra_uart_dma_channel_free() 961 tup->uport.state->xmit.buf, UART_XMIT_SIZE, in tegra_uart_dma_channel_allocate()
|
D | men_z135_uart.c | 348 head = xmit->head & (UART_XMIT_SIZE - 1); in men_z135_handle_tx() 349 tail = xmit->tail & (UART_XMIT_SIZE - 1); in men_z135_handle_tx() 351 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail; in men_z135_handle_tx() 355 xmit->tail = (xmit->tail + n) & (UART_XMIT_SIZE - 1); in men_z135_handle_tx()
|
D | pch_uart.c | 790 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete() 810 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx() 813 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx() 970 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx() 971 xmit->tail, UART_XMIT_SIZE)); in dma_handle_tx() 1021 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx() 1024 ~(UART_XMIT_SIZE - 1)) + sg->offset; in dma_handle_tx()
|
D | sn_console.c | 548 (UART_XMIT_SIZE - tail) : (head - tail); in sn_transmit_chars() 566 tail &= UART_XMIT_SIZE - 1; in sn_transmit_chars()
|
D | atmel_serial.c | 754 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in atmel_tx_chars() 782 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_complete_tx_dma() 857 UART_XMIT_SIZE); in atmel_tx_dma() 937 UART_XMIT_SIZE, in atmel_prepare_tx_dma() 1348 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_tx_pdc() 1364 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc() 1396 UART_XMIT_SIZE, in atmel_prepare_tx_pdc() 1398 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc()
|
D | samsung.c | 181 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_stop_tx() 216 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_tx_dma_complete() 323 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_start_next_tx() 714 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_tx_chars() 754 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_tx_chars() 928 UART_XMIT_SIZE, DMA_TO_DEVICE); in s3c24xx_serial_request_dma() 968 UART_XMIT_SIZE, DMA_TO_DEVICE); in s3c24xx_serial_release_dma()
|
D | msm_serial.c | 154 #define UARTDM_RX_SIZE (UART_XMIT_SIZE / 4) 458 xmit->tail &= UART_XMIT_SIZE - 1; in msm_complete_tx_dma() 845 xmit->tail = (xmit->tail + num_chars) & (UART_XMIT_SIZE - 1); in msm_handle_tx_pio() 886 pio_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx() 887 dma_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx()
|
D | sh-sci.c | 827 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sci_transmit_chars() 1198 xmit->tail &= UART_XMIT_SIZE - 1; in sci_dma_tx_complete() 1329 dma_unmap_single(chan->device->dev, s->tx_dma_addr, UART_XMIT_SIZE, in sci_tx_dma_release() 1395 buf = s->tx_dma_addr + (xmit->tail & (UART_XMIT_SIZE - 1)); in work_fn_tx() 1397 CIRC_CNT(xmit->head, xmit->tail, UART_XMIT_SIZE), in work_fn_tx() 1398 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE)); in work_fn_tx() 1570 UART_XMIT_SIZE, in sci_request_dma() 1577 __func__, UART_XMIT_SIZE, in sci_request_dma()
|
D | mux.c | 205 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mux_write()
|
D | 21285.c | 138 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in serial21285_tx_chars()
|
D | stm32-usart.c | 321 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in stm32_transmit_chars_pio() 347 size_t one = UART_XMIT_SIZE - xmit->tail; in stm32_transmit_chars_dma() 383 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in stm32_transmit_chars_dma()
|
D | mvebu-uart.c | 197 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mvebu_uart_start_tx() 316 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mvebu_uart_tx_chars()
|
D | altera_jtaguart.c | 165 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_jtaguart_tx_chars()
|
D | arc_uart.c | 173 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in arc_serial_tx_chars()
|
D | timbuart.c | 106 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in timbuart_tx_chars()
|
D | ip22zilog.c | 416 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ip22zilog_transmit_chars() 616 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ip22zilog_start_tx()
|
D | sirfsoc_uart.c | 185 tran_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sirfsoc_uart_tx_with_dma() 434 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sirfsoc_uart_pio_tx_chars() 452 (UART_XMIT_SIZE - 1); in sirfsoc_uart_tx_dma_complete_callback()
|
D | apbuart.c | 150 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in apbuart_tx_chars()
|
/Linux-v4.19/include/linux/ |
D | serial_core.h | 302 #define UART_XMIT_SIZE PAGE_SIZE macro 434 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE)) 437 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
|
/Linux-v4.19/drivers/tty/serial/jsm/ |
D | jsm_neo.c | 509 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 524 head = circ->head & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 525 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 533 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail; in neo_copy_data_from_queue_to_uart() 541 tail = (tail + s) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 548 circ->tail = tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
|
D | jsm_cls.c | 477 tail = circ->tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 485 tail = (tail + 1) & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 492 circ->tail = tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
|