/linux-6.6.21/drivers/tty/serial/8250/ |
D | 8250_dma.c | 23 UART_XMIT_SIZE, DMA_TO_DEVICE); in __dma_tx_complete() 110 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma() 130 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_tx_dma() 257 UART_XMIT_SIZE, in serial8250_request_dma() 294 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_release_dma()
|
D | 8250_omap.c | 1084 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_dma_tx_complete() 1144 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in omap_8250_tx_dma() 1192 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_tx_dma()
|
D | 8250_bcm7271.c | 424 tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in brcmuart_tx_dma() 1084 priv->tx_size = UART_XMIT_SIZE; in brcmuart_probe()
|
D | 8250_mtk.c | 167 dma->txconf.dst_port_window_size = UART_XMIT_SIZE; in mtk8250_dma_enable()
|
/linux-6.6.21/include/linux/ |
D | serial_core.h | 706 #define UART_XMIT_SIZE PAGE_SIZE macro 725 xmit->tail = (xmit->tail + chars) & (UART_XMIT_SIZE - 1); in uart_xmit_advance() 780 xmit->tail = (xmit->tail + 1) % UART_XMIT_SIZE; \ 975 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE)) 978 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
|
/linux-6.6.21/drivers/tty/serial/ |
D | mxs-auart.c | 584 size = min_t(u32, UART_XMIT_SIZE - i, in mxs_auart_tx_chars() 587 UART_XMIT_SIZE)); in mxs_auart_tx_chars() 589 xmit->tail = (xmit->tail + size) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars() 592 if (i >= UART_XMIT_SIZE) in mxs_auart_tx_chars() 853 | AUART_CTRL0_XFER_COUNT(UART_XMIT_SIZE); in mxs_auart_dma_prep_rx() 862 sg_init_one(sgl, s->rx_dma_buf, UART_XMIT_SIZE); in mxs_auart_dma_prep_rx() 917 s->rx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init() 925 s->tx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init() 934 s->port.fifosize = UART_XMIT_SIZE; in mxs_auart_dma_init()
|
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()
|
D | tegra-tcu.c | 98 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx()
|
D | atmel_serial.c | 945 UART_XMIT_SIZE); in atmel_tx_dma() 1033 UART_XMIT_SIZE, in atmel_prepare_tx_dma() 1475 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc() 1506 UART_XMIT_SIZE, in atmel_prepare_tx_pdc() 1508 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc()
|
D | serial-tegra.c | 573 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_uart_start_next_tx() 1128 UART_XMIT_SIZE, DMA_TO_DEVICE); in tegra_uart_dma_channel_free() 1173 tup->uport.state->xmit.buf, UART_XMIT_SIZE, in tegra_uart_dma_channel_allocate()
|
D | sunhv.c | 61 UART_XMIT_SIZE); in transmit_chars_write()
|
D | msm_serial.c | 151 #define UARTDM_RX_SIZE (UART_XMIT_SIZE / 4) 914 pio_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx() 915 dma_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx()
|
D | pch_uart.c | 901 bytes = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in dma_handle_tx() 952 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx() 955 ~(UART_XMIT_SIZE - 1)) + sg->offset; in dma_handle_tx()
|
D | sh-sci.c | 848 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sci_transmit_chars() 1374 dma_unmap_single(chan->device->dev, s->tx_dma_addr, UART_XMIT_SIZE, in sci_dma_tx_release() 1444 s->tx_dma_len = CIRC_CNT_TO_END(head, tail, UART_XMIT_SIZE); in sci_dma_tx_work_fn() 1619 UART_XMIT_SIZE, in sci_request_dma() 1626 __func__, UART_XMIT_SIZE, in sci_request_dma()
|
D | samsung_tty.c | 476 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_start_next_tx() 874 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_tx_chars() 1122 p->port.state->xmit.buf, UART_XMIT_SIZE, in s3c24xx_serial_request_dma() 1163 UART_XMIT_SIZE, DMA_TO_DEVICE); in s3c24xx_serial_release_dma()
|
D | sprd_serial.c | 110 #define SPRD_UART_RX_SIZE (UART_XMIT_SIZE / 4) 233 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sprd_tx_buf_remap()
|
D | icom.c | 901 temp_tail &= (UART_XMIT_SIZE - 1); in icom_write() 976 (UART_XMIT_SIZE - 1); in xmit_interrupt()
|
D | serial_core.c | 571 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in uart_put_char() 606 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write() 612 circ->head = (circ->head + c) & (UART_XMIT_SIZE - 1); in uart_write()
|
D | amba-pl011.c | 624 size_t first = UART_XMIT_SIZE - xmit->tail; in pl011_dma_tx_refill() 1492 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in pl011_tx_chars()
|
D | max310x.c | 797 until_end = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in max310x_handle_tx()
|
D | qcom_geni_serial.c | 634 xmit_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in qcom_geni_serial_start_tx_dma()
|
/linux-6.6.21/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()
|
D | mips_ejtag_fdc.c | 919 priv->xmit_size = min(tx_fifo * 4, (unsigned int)UART_XMIT_SIZE); in mips_ejtag_fdc_tty_probe()
|
/linux-6.6.21/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()
|