/Linux-v5.4/include/linux/ |
D | circ_buf.h | 26 #define CIRC_CNT_TO_END(head,tail,size) \ macro
|
/Linux-v5.4/drivers/staging/ks7010/ |
D | ks_wlan.h | 552 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()
|
/Linux-v5.4/drivers/input/serio/ |
D | userio.c | 140 nonwrap_len = CIRC_CNT_TO_END(userio->head, in userio_char_read()
|
/Linux-v5.4/drivers/tty/serial/ |
D | tegra-tcu.c | 99 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_tcu_uart_start_tx()
|
D | sunhv.c | 65 len = CIRC_CNT_TO_END(xmit->head, xmit->tail, in transmit_chars_write()
|
D | sirfsoc_uart.c | 185 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()
|
D | msm_serial.c | 893 pio_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx() 894 dma_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in msm_handle_tx()
|
D | pch_uart.c | 808 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx() 965 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
|
D | samsung.c | 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()
|
D | atmel_serial.c | 950 tx_len = CIRC_CNT_TO_END(xmit->head, in atmel_tx_dma() 1478 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc()
|
D | sprd_serial.c | 239 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sprd_tx_buf_remap()
|
D | max310x.c | 765 until_end = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in max310x_handle_tx()
|
D | mxs-auart.c | 597 CIRC_CNT_TO_END(xmit->head, in mxs_auart_tx_chars()
|
D | serial-tegra.c | 568 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in tegra_uart_start_next_tx()
|
/Linux-v5.4/drivers/input/joystick/iforce/ |
D | iforce-usb.c | 47 c = CIRC_CNT_TO_END(iforce->xmit.head, iforce->xmit.tail, XMIT_SIZE); in __iforce_usb_xmit()
|
/Linux-v5.4/drivers/tty/serial/8250/ |
D | 8250_dma.c | 78 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in serial8250_tx_dma()
|
D | 8250_omap.c | 968 dma->tx_size = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in omap_8250_tx_dma()
|
/Linux-v5.4/drivers/gpu/drm/msm/ |
D | msm_rd.c | 73 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, BUF_SZ))
|
/Linux-v5.4/drivers/scsi/arcmsr/ |
D | arcmsr_attr.c | 85 unsigned int cnt_to_end = CIRC_CNT_TO_END(head, tail, ARCMSR_MAX_QBUFFER); in arcmsr_sysfs_iop_message_read()
|
/Linux-v5.4/tools/power/acpi/tools/acpidbg/ |
D | acpidbg.c | 44 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
/Linux-v5.4/drivers/tty/ |
D | ehv_bytechan.c | 401 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue()
|
/Linux-v5.4/drivers/platform/chrome/ |
D | cros_ec_debugfs.c | 156 ret = min_t(size_t, CIRC_CNT_TO_END(cb->head, cb->tail, LOG_SIZE), in cros_ec_console_log_read()
|
/Linux-v5.4/drivers/acpi/ |
D | acpi_dbg.c | 30 (CIRC_CNT_TO_END((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
/Linux-v5.4/Documentation/core-api/ |
D | circular-buffers.rst | 104 CIRC_CNT_TO_END(head_index, tail_index, buffer_size);
|
/Linux-v5.4/drivers/platform/mellanox/ |
D | mlxbf-tmfifo.c | 533 seg = CIRC_CNT_TO_END(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_tx()
|