Home
last modified time | relevance | path

Searched refs:CIRC_CNT_TO_END (Results 1 – 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/include/linux/
Dcirc_buf.h26 #define CIRC_CNT_TO_END(head,tail,size) \ macro
/kernel/linux/linux-5.10/drivers/staging/ks7010/
Dks_wlan.h552 return CIRC_CNT_TO_END(priv->tx_dev.qhead, priv->tx_dev.qtail, in txq_count()
558 return CIRC_CNT_TO_END(priv->rx_dev.qhead, priv->rx_dev.qtail, in rxq_count()
/kernel/linux/linux-5.10/drivers/input/serio/
Duserio.c140 nonwrap_len = CIRC_CNT_TO_END(userio->head, in userio_char_read()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dtegra-tcu.c99 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx()
Dsunhv.c61 len = CIRC_CNT_TO_END(xmit->head, xmit->tail, in transmit_chars_write()
Dsirfsoc_uart.c185 tran_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sirfsoc_uart_tx_with_dma()
1196 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, in sirfsoc_uart_rx_dma_hrtimer_callback()
1206 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, in sirfsoc_uart_rx_dma_hrtimer_callback()
Dmsm_serial.c910 pio_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx()
911 dma_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx()
Dpch_uart.c803 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx()
960 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
Dsamsung_tty.c445 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_start_next_tx()
836 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in s3c24xx_serial_tx_chars()
Datmel_serial.c953 tx_len = CIRC_CNT_TO_END(xmit->head, in atmel_tx_dma()
1495 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc()
Dsprd_serial.c235 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sprd_tx_buf_remap()
Dmax310x.c765 until_end = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in max310x_handle_tx()
Dmxs-auart.c593 CIRC_CNT_TO_END(xmit->head, in mxs_auart_tx_chars()
/kernel/linux/linux-5.10/drivers/input/joystick/iforce/
Diforce-usb.c47 c = CIRC_CNT_TO_END(iforce->xmit.head, iforce->xmit.tail, XMIT_SIZE); in __iforce_usb_xmit()
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
D8250_dma.c78 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma()
D8250_omap.c1057 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in omap_8250_tx_dma()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/
Dmsm_rd.c73 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ))
/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidbg/
Dacpidbg.c44 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
/kernel/linux/linux-5.10/drivers/scsi/arcmsr/
Darcmsr_attr.c85 unsigned int cnt_to_end = CIRC_CNT_TO_END(head, tail, ARCMSR_MAX_QBUFFER); in arcmsr_sysfs_iop_message_read()
/kernel/linux/linux-5.10/drivers/tty/
Dehv_bytechan.c416 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue()
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_debugfs.c155 ret = min_t(size_t, CIRC_CNT_TO_END(cb->head, cb->tail, LOG_SIZE), in cros_ec_console_log_read()
/kernel/linux/linux-5.10/drivers/char/hw_random/
Dcctrng.c229 cnt_w = CIRC_CNT_TO_END(drvdata->circ.head, in cctrng_read()
/kernel/linux/linux-5.10/drivers/acpi/
Dacpi_dbg.c30 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
/kernel/linux/linux-5.10/Documentation/core-api/
Dcircular-buffers.rst104 CIRC_CNT_TO_END(head_index, tail_index, buffer_size);
/kernel/linux/linux-5.10/drivers/platform/mellanox/
Dmlxbf-tmfifo.c536 seg = CIRC_CNT_TO_END(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_tx()

12