/linux-6.1.9/drivers/tty/serial/8250/ |
D | 8250_dma.c | 23 UART_XMIT_SIZE, DMA_TO_DEVICE); in __dma_tx_complete() 84 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma() 104 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_tx_dma() 231 UART_XMIT_SIZE, in serial8250_request_dma() 268 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_release_dma()
|
D | 8250_bcm7271.c | 424 tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in brcmuart_tx_dma() 429 xmit->tail &= UART_XMIT_SIZE - 1; in brcmuart_tx_dma() 1081 priv->tx_size = UART_XMIT_SIZE; in brcmuart_probe()
|
D | 8250_omap.c | 986 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_dma_tx_complete() 1046 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in omap_8250_tx_dma() 1094 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_tx_dma()
|
/linux-6.1.9/drivers/tty/serial/ |
D | mxs-auart.c | 582 size = min_t(u32, UART_XMIT_SIZE - i, in mxs_auart_tx_chars() 585 UART_XMIT_SIZE)); in mxs_auart_tx_chars() 587 xmit->tail = (xmit->tail + size) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars() 590 if (i >= UART_XMIT_SIZE) in mxs_auart_tx_chars() 617 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars() 867 | AUART_CTRL0_XFER_COUNT(UART_XMIT_SIZE); in mxs_auart_dma_prep_rx() 876 sg_init_one(sgl, s->rx_dma_buf, UART_XMIT_SIZE); in mxs_auart_dma_prep_rx() 931 s->rx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init() 939 s->tx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init() 948 s->port.fifosize = UART_XMIT_SIZE; in mxs_auart_dma_init()
|
D | sunhv.c | 50 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars_putchar() 62 UART_XMIT_SIZE); in transmit_chars_write() 66 xmit->tail = (xmit->tail + sent) & (UART_XMIT_SIZE - 1); in transmit_chars_write()
|
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 | sprd_serial.c | 110 #define SPRD_UART_RX_SIZE (UART_XMIT_SIZE / 4) 218 xmit->tail = (xmit->tail + trans_len) & (UART_XMIT_SIZE - 1); in sprd_stop_tx_dma() 235 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sprd_tx_buf_remap() 256 xmit->tail = (xmit->tail + sp->tx_dma.trans_len) & (UART_XMIT_SIZE - 1); in sprd_complete_tx_dma() 647 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sprd_tx()
|
D | atmel_serial.c | 841 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in atmel_tx_chars() 879 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_complete_tx_dma() 958 UART_XMIT_SIZE); in atmel_tx_dma() 1046 UART_XMIT_SIZE, in atmel_prepare_tx_dma() 1476 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_tx_pdc() 1492 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc() 1523 UART_XMIT_SIZE, in atmel_prepare_tx_pdc() 1525 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc()
|
D | msm_serial.c | 151 #define UARTDM_RX_SIZE (UART_XMIT_SIZE / 4) 471 xmit->tail &= UART_XMIT_SIZE - 1; in msm_complete_tx_dma() 875 xmit->tail = (xmit->tail + num_chars) & (UART_XMIT_SIZE - 1); in msm_handle_tx_pio() 919 pio_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx() 920 dma_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx()
|
D | pch_uart.c | 753 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete() 850 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in handle_tx() 905 bytes = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in dma_handle_tx() 956 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx() 959 ~(UART_XMIT_SIZE - 1)) + sg->offset; in dma_handle_tx()
|
D | samsung_tty.c | 319 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_stop_tx() 354 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_tx_dma_complete() 482 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_start_next_tx() 879 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_tx_chars() 919 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_tx_chars() 1128 p->port.state->xmit.buf, UART_XMIT_SIZE, in s3c24xx_serial_request_dma() 1169 UART_XMIT_SIZE, DMA_TO_DEVICE); in s3c24xx_serial_release_dma()
|
D | tegra-tcu.c | 99 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx()
|
D | serial-tegra.c | 499 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in tegra_uart_fill_tx_fifo() 575 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_uart_start_next_tx() 1125 UART_XMIT_SIZE, DMA_TO_DEVICE); in tegra_uart_dma_channel_free() 1170 tup->uport.state->xmit.buf, UART_XMIT_SIZE, in tegra_uart_dma_channel_allocate()
|
D | liteuart.c | 139 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in liteuart_start_tx()
|
D | mux.c | 201 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mux_write()
|
D | 21285.c | 173 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in serial21285_tx_chars()
|
D | sh-sci.c | 834 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sci_transmit_chars() 1185 xmit->tail &= UART_XMIT_SIZE - 1; in sci_dma_tx_complete() 1341 dma_unmap_single(chan->device->dev, s->tx_dma_addr, UART_XMIT_SIZE, in sci_dma_tx_release() 1411 s->tx_dma_len = CIRC_CNT_TO_END(head, tail, UART_XMIT_SIZE); in sci_dma_tx_work_fn() 1588 UART_XMIT_SIZE, in sci_request_dma() 1595 __func__, UART_XMIT_SIZE, in sci_request_dma()
|
D | altera_jtaguart.c | 170 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_jtaguart_tx_chars()
|
D | timbuart.c | 104 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in timbuart_tx_chars()
|
D | arc_uart.c | 169 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in arc_serial_tx_chars()
|
D | ip22zilog.c | 412 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ip22zilog_transmit_chars() 612 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ip22zilog_start_tx()
|
/linux-6.1.9/include/linux/ |
D | serial_core.h | 622 #define UART_XMIT_SIZE PAGE_SIZE macro 641 xmit->tail = (xmit->tail + chars) & (UART_XMIT_SIZE - 1); in uart_xmit_advance() 784 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE)) 787 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
|
/linux-6.1.9/drivers/tty/ |
D | amiserial.c | 287 info->xmit.tail = info->xmit.tail & (UART_XMIT_SIZE - 1); in transmit_chars() 292 UART_XMIT_SIZE) < WAKEUP_CHARS) in transmit_chars() 712 UART_XMIT_SIZE) == 0) { in rs_put_char() 718 info->xmit.head &= UART_XMIT_SIZE - 1; in rs_put_char() 757 UART_XMIT_SIZE); in rs_write() 764 info->xmit.head = (info->xmit.head + c) & (UART_XMIT_SIZE - 1); in rs_write() 791 return CIRC_SPACE(info->xmit.head, info->xmit.tail, UART_XMIT_SIZE); in rs_write_room() 798 return CIRC_CNT(info->xmit.head, info->xmit.tail, UART_XMIT_SIZE); in rs_chars_in_buffer()
|
/linux-6.1.9/drivers/tty/serial/jsm/ |
D | jsm_neo.c | 510 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 525 head = circ->head & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 526 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 534 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail; in neo_copy_data_from_queue_to_uart() 542 tail = (tail + s) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart() 549 circ->tail = tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
|
D | jsm_cls.c | 473 tail = circ->tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 481 tail = (tail + 1) & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart() 488 circ->tail = tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
|