Home
last modified time | relevance | path

Searched refs:UART_XMIT_SIZE (Results 1 – 25 of 77) sorted by relevance

1234

/linux-6.1.9/drivers/tty/serial/8250/
D8250_dma.c23 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()
D8250_bcm7271.c424 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()
D8250_omap.c986 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/
Dmxs-auart.c582 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()
Dsunhv.c50 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()
Dmen_z135_uart.c348 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()
Dsprd_serial.c110 #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()
Datmel_serial.c841 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()
Dmsm_serial.c151 #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()
Dpch_uart.c753 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()
Dsamsung_tty.c319 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()
Dtegra-tcu.c99 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx()
Dserial-tegra.c499 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()
Dliteuart.c139 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in liteuart_start_tx()
Dmux.c201 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mux_write()
D21285.c173 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in serial21285_tx_chars()
Dsh-sci.c834 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()
Daltera_jtaguart.c170 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_jtaguart_tx_chars()
Dtimbuart.c104 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in timbuart_tx_chars()
Darc_uart.c169 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in arc_serial_tx_chars()
Dip22zilog.c412 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/
Dserial_core.h622 #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/
Damiserial.c287 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/
Djsm_neo.c510 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()
Djsm_cls.c473 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()

1234