Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/tty/serial/8250/
D8250_dma.c27 UART_XMIT_SIZE, DMA_TO_DEVICE); in __dma_tx_complete()
34 xmit->tail &= UART_XMIT_SIZE - 1; in __dma_tx_complete()
82 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma()
100 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_tx_dma()
212 UART_XMIT_SIZE, in serial8250_request_dma()
248 UART_XMIT_SIZE, DMA_TO_DEVICE); in serial8250_release_dma()
D8250_omap.c833 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_dma_tx_complete()
840 xmit->tail &= UART_XMIT_SIZE - 1; in omap_8250_dma_tx_complete()
900 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in omap_8250_tx_dma()
948 UART_XMIT_SIZE, DMA_TO_DEVICE); in omap_8250_tx_dma()
D8250_core.c1572 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in serial8250_tx_chars()
/linux-4.1.27/drivers/tty/serial/
Dmxs-auart.c271 size = min_t(u32, UART_XMIT_SIZE - i, in mxs_auart_tx_chars()
274 UART_XMIT_SIZE)); in mxs_auart_tx_chars()
276 xmit->tail = (xmit->tail + size) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars()
279 if (i >= UART_XMIT_SIZE) in mxs_auart_tx_chars()
309 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mxs_auart_tx_chars()
561 | AUART_CTRL0_XFER_COUNT(UART_XMIT_SIZE); in mxs_auart_dma_prep_rx()
570 sg_init_one(sgl, s->rx_dma_buf, UART_XMIT_SIZE); in mxs_auart_dma_prep_rx()
625 s->rx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init()
633 s->tx_dma_buf = kzalloc(UART_XMIT_SIZE, GFP_KERNEL | GFP_DMA); in mxs_auart_dma_init()
642 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()
Dbfin_uart.c157 xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1); in bfin_serial_stop_tx()
343 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in bfin_serial_tx_chars()
393 uart->tx_count = CIRC_CNT(xmit->head, xmit->tail, UART_XMIT_SIZE); in bfin_serial_dma_tx_chars()
394 if (uart->tx_count > (UART_XMIT_SIZE - xmit->tail)) in bfin_serial_dma_tx_chars()
395 uart->tx_count = UART_XMIT_SIZE - xmit->tail; in bfin_serial_dma_tx_chars()
422 UART_XMIT_SIZE); in bfin_serial_dma_rx_chars()
449 if (i >= UART_XMIT_SIZE) in bfin_serial_dma_rx_chars()
522 xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1); in bfin_serial_dma_tx_int()
Dserial-tegra.c368 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in tegra_uart_fill_tx_fifo()
397 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in tegra_uart_tx_dma_complete()
412 UART_XMIT_SIZE, DMA_TO_DEVICE); in tegra_uart_start_tx_dma()
440 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_uart_start_next_tx()
492 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in tegra_uart_stop_tx()
938 tup->uport.state->xmit.buf, UART_XMIT_SIZE, in tegra_uart_dma_channel_allocate()
990 UART_XMIT_SIZE, DMA_TO_DEVICE); in tegra_uart_dma_channel_free()
Dmen_z135_uart.c352 head = xmit->head & (UART_XMIT_SIZE - 1); in men_z135_handle_tx()
353 tail = xmit->tail & (UART_XMIT_SIZE - 1); in men_z135_handle_tx()
355 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail; in men_z135_handle_tx()
359 xmit->tail = (xmit->tail + n) & (UART_XMIT_SIZE - 1); in men_z135_handle_tx()
Datmel_serial.c706 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in atmel_tx_chars()
733 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_complete_tx_dma()
799 sg->offset = xmit->tail & (UART_XMIT_SIZE - 1); in atmel_tx_dma()
801 ~(UART_XMIT_SIZE - 1)) in atmel_tx_dma()
805 UART_XMIT_SIZE); in atmel_tx_dma()
859 UART_XMIT_SIZE, in atmel_prepare_tx_dma()
1263 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_tx_pdc()
1279 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc()
1309 UART_XMIT_SIZE, in atmel_prepare_tx_pdc()
1311 pdc->dma_size = UART_XMIT_SIZE; in atmel_prepare_tx_pdc()
Dfsl_lpuart.c355 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in lpuart_pio_tx()
375 UART_XMIT_SIZE, DMA_TO_DEVICE); in lpuart_dma_tx()
400 xmit->tail, UART_XMIT_SIZE); in lpuart_prepare_tx()
425 xmit->tail = (xmit->tail + sport->dma_tx_bytes) & (UART_XMIT_SIZE - 1); in lpuart_dma_tx_complete()
537 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in lpuart_transmit_buffer()
558 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in lpuart32_transmit_buffer()
974 UART_XMIT_SIZE, DMA_TO_DEVICE); in lpuart_dma_tx_request()
1051 UART_XMIT_SIZE, DMA_TO_DEVICE); in lpuart_dma_tx_free()
Dpch_uart.c805 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete()
825 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx()
828 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx()
986 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
987 xmit->tail, UART_XMIT_SIZE)); in dma_handle_tx()
1037 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx()
1040 ~(UART_XMIT_SIZE - 1)) + sg->offset; in dma_handle_tx()
Dsn_console.c567 (UART_XMIT_SIZE - tail) : (head - tail); in sn_transmit_chars()
585 tail &= UART_XMIT_SIZE - 1; in sn_transmit_chars()
Dsamsung.c186 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_stop_tx()
221 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_tx_dma_complete()
329 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_start_next_tx()
736 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_tx_chars()
776 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in s3c24xx_serial_tx_chars()
936 UART_XMIT_SIZE, DMA_TO_DEVICE); in s3c24xx_serial_request_dma()
959 UART_XMIT_SIZE, DMA_TO_DEVICE); in s3c24xx_serial_release_dma()
Dtilegx.c159 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in handle_transmit()
285 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in tilegx_start_tx()
Dsh-sci.c625 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sci_transmit_chars()
1266 xmit->tail &= UART_XMIT_SIZE - 1; in sci_dma_tx_complete()
1488 sg->offset = xmit->tail & (UART_XMIT_SIZE - 1); in work_fn_tx()
1489 sg_dma_address(sg) = (sg_dma_address(sg) & ~(UART_XMIT_SIZE - 1)) + in work_fn_tx()
1491 sg_dma_len(sg) = min((int)CIRC_CNT(xmit->head, xmit->tail, UART_XMIT_SIZE), in work_fn_tx()
1492 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE)); in work_fn_tx()
1686 UART_XMIT_SIZE, in sci_request_dma()
Dmux.c209 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mux_write()
D21285.c137 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in serial21285_tx_chars()
Daltera_jtaguart.c169 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_jtaguart_tx_chars()
Dm32r_sio.c273 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in m32r_sio_start_tx()
405 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars()
Dnwpserial.c274 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE-1); in nwpserial_start_tx()
Dmsm_serial.c248 tx_count = min3(tx_count, (unsigned int)UART_XMIT_SIZE - xmit->tail, in handle_tx()
281 xmit->tail = (xmit->tail + num_chars) & (UART_XMIT_SIZE - 1); in handle_tx()
Darc_uart.c176 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in arc_serial_tx_chars()
Dtimbuart.c118 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in timbuart_tx_chars()
Dip22zilog.c415 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ip22zilog_transmit_chars()
615 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ip22zilog_start_tx()
Dapbuart.c149 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in apbuart_tx_chars()
Ddigicolor-usart.c209 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in digicolor_uart_tx()
Dxilinx_uartps.c299 (UART_XMIT_SIZE - 1); in cdns_uart_isr()
542 (UART_XMIT_SIZE - 1); in cdns_uart_start_tx()
Dsunsab.c272 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars()
459 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sunsab_start_tx()
Dsirfsoc_uart.c209 tran_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sirfsoc_uart_tx_with_dma()
451 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sirfsoc_uart_pio_tx_chars()
469 (UART_XMIT_SIZE - 1); in sirfsoc_uart_tx_dma_complete_callback()
Dserial_ks8695.c232 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ks8695uart_tx_chars()
Daltera_uart.c260 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in altera_uart_tx_chars()
Duartlite.c183 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE-1); in ulite_transmit()
Dclps711x.c177 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in uart_clps711x_int_tx()
Dimx.c462 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in imx_transmit_buffer()
490 xmit->tail = (xmit->tail + sport->tx_bytes) & (UART_XMIT_SIZE - 1); in dma_tx_callback()
536 UART_XMIT_SIZE - xmit->tail); in imx_dma_tx()
Dmcf.c350 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE -1); in mcf_tx_chars()
Dnetx-serial.c160 (UART_XMIT_SIZE - 1); in netx_transmit_buffer()
Dar933x_uart.c368 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in ar933x_uart_tx_chars()
Dvt8500_serial.c225 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in handle_tx()
Dlpc32xx_hs.c308 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in __serial_lpc32xx_tx()
Dsprd_serial.c273 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sprd_tx()
Dlantiq.c241 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in lqasc_tx_chars()
Damba-pl011.c498 size_t first = UART_XMIT_SIZE - xmit->tail; in pl011_dma_tx_refill()
549 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in pl011_dma_tx_refill()
1313 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in pl011_tx_chars()
Dpnx8xxx_uart.c278 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in pnx8xxx_tx_chars()
Dst-asc.c274 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in asc_transmit_chars()
Dbcm63xx_uart.c343 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in bcm_uart_do_tx()
Defm32-uart.c152 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in efm32_uart_tx_chars()
Dsunzilog.c514 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sunzilog_transmit_chars()
715 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sunzilog_start_tx()
Dioc3_serial.c923 xmit_count = (head < tail) ? (UART_XMIT_SIZE - tail) : (head - tail); in transmit_chars()
932 tail &= UART_XMIT_SIZE - 1; in transmit_chars()
Dicom.c654 temp_tail &= (UART_XMIT_SIZE - 1); in icom_write()
731 (UART_XMIT_SIZE - 1); in xmit_interrupt()
Dserial_core.c489 circ->head = (circ->head + 1) & (UART_XMIT_SIZE - 1); in __uart_put_char()
534 c = CIRC_SPACE_TO_END(circ->head, circ->tail, UART_XMIT_SIZE); in uart_write()
540 circ->head = (circ->head + c) & (UART_XMIT_SIZE - 1); in uart_write()
Damba-pl010.c203 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in pl010_tx_chars()
Dbfin_sport_uart.c357 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE -1); in sport_uart_tx_chars()
Dpmac_zilog.c438 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in pmz_transmit_chars()
660 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in pmz_start_tx()
Dsb1250-duart.c411 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sbd_transmit_chars()
Drp2.c457 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in rp2_tx_chars()
Dpxa.c202 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars()
Dsa1100.c273 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sa1100_tx_chars()
Dvr41xx_siu.c411 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars()
Dmax3100.c302 (UART_XMIT_SIZE - 1); in max3100_work()
Detraxfs-uart.c513 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE-1); in transmit_chars_no_dma()
Dmpsc.c1142 UART_XMIT_SIZE)); in mpsc_copy_tx_data()
1145 xmit->tail = (xmit->tail + i) & (UART_XMIT_SIZE - 1); in mpsc_copy_tx_data()
Dioc4_serial.c1652 xmit_count = (head < tail) ? (UART_XMIT_SIZE - tail) : (head - tail); in transmit_chars()
1661 tail &= UART_XMIT_SIZE - 1; in transmit_chars()
Dsc16is7xx.c578 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sc16is7xx_handle_tx()
Dsccnxp.c440 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sccnxp_handle_tx()
Dserial_txx9.c366 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars()
Ducc_uart.c375 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in qe_uart_tx_pump()
Dmax310x.c678 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in max310x_handle_tx()
Dzs.c629 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in zs_raw_transmit_chars()
Dsunsu.c422 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars()
Dmpc52xx_uart.c1456 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in mpc52xx_uart_int_tx_chars()
Domap-serial.c404 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in transmit_chars()
/linux-4.1.27/include/linux/
Dserial_core.h286 #define UART_XMIT_SIZE PAGE_SIZE macro
392 (CIRC_CNT((circ)->head, (circ)->tail, UART_XMIT_SIZE))
395 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
/linux-4.1.27/drivers/tty/serial/jsm/
Djsm_neo.c521 circ->tail = (circ->tail + 1) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
536 head = circ->head & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
537 tail = circ->tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
545 s = ((head >= tail) ? head : UART_XMIT_SIZE) - tail; in neo_copy_data_from_queue_to_uart()
553 tail = (tail + s) & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
560 circ->tail = tail & (UART_XMIT_SIZE - 1); in neo_copy_data_from_queue_to_uart()
Djsm_cls.c486 tail = circ->tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
494 tail = (tail + 1) & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
501 circ->tail = tail & (UART_XMIT_SIZE - 1); in cls_copy_data_from_queue_to_uart()
/linux-4.1.27/arch/mn10300/kernel/
Dasm-offsets.c103 DEFINE(__UART_XMIT_SIZE, UART_XMIT_SIZE); in foo()
Dmn10300-serial.c842 UART_XMIT_SIZE)); in mn10300_serial_start_tx()
/linux-4.1.27/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c730 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in cpm_uart_tx_pump()