Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/tty/serial/8250/
D8250_dma.c23 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()
D8250_omap.c897 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/
Dmxs-auart.c596 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()
Dsunhv.c54 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()
Dserial-tegra.c372 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()
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()
Dpch_uart.c790 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()
Dsn_console.c548 (UART_XMIT_SIZE - tail) : (head - tail); in sn_transmit_chars()
566 tail &= UART_XMIT_SIZE - 1; in sn_transmit_chars()
Datmel_serial.c754 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()
Dsamsung.c181 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()
Dmsm_serial.c154 #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()
Dsh-sci.c827 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()
Dmux.c205 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mux_write()
D21285.c138 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in serial21285_tx_chars()
Dstm32-usart.c321 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()
Dmvebu-uart.c197 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()
Daltera_jtaguart.c165 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_jtaguart_tx_chars()
Darc_uart.c173 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in arc_serial_tx_chars()
Dtimbuart.c106 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in timbuart_tx_chars()
Dip22zilog.c416 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()
Dsirfsoc_uart.c185 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()
Dapbuart.c150 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in apbuart_tx_chars()
/Linux-v4.19/include/linux/
Dserial_core.h302 #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/
Djsm_neo.c509 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()
Djsm_cls.c477 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()

123