Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/tty/serial/8250/
D8250_dma.c23 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()
D8250_omap.c1084 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()
D8250_bcm7271.c424 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()
D8250_mtk.c167 dma->txconf.dst_port_window_size = UART_XMIT_SIZE; in mtk8250_dma_enable()
/linux-6.6.21/include/linux/
Dserial_core.h706 #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/
Dmxs-auart.c584 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()
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()
Dtegra-tcu.c98 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx()
Datmel_serial.c945 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()
Dserial-tegra.c573 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()
Dsunhv.c61 UART_XMIT_SIZE); in transmit_chars_write()
Dmsm_serial.c151 #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()
Dpch_uart.c901 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()
Dsh-sci.c848 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()
Dsamsung_tty.c476 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()
Dsprd_serial.c110 #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()
Dicom.c901 temp_tail &= (UART_XMIT_SIZE - 1); in icom_write()
976 (UART_XMIT_SIZE - 1); in xmit_interrupt()
Dserial_core.c571 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()
Damba-pl011.c624 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()
Dmax310x.c797 until_end = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in max310x_handle_tx()
Dqcom_geni_serial.c634 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/
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()
Dmips_ejtag_fdc.c919 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/
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()

12