/linux-6.1.9/Documentation/translations/zh_CN/core-api/ |
D | circular-buffers.rst | 82 CIRC_SPACE(head_index, tail_index, buffer_size); 110 (1) CIRC_SPACE*()是为了在生产者中使用。对生产者来说,它们将返回一个下限,因为生 148 if (CIRC_SPACE(head, tail, buffer->size) >= 1) {
|
/linux-6.1.9/include/linux/ |
D | circ_buf.h | 21 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) macro
|
D | serial_core.h | 787 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
|
/linux-6.1.9/drivers/staging/ks7010/ |
D | ks_wlan.h | 530 return (CIRC_SPACE(priv->tx_dev.qhead, priv->tx_dev.qtail, in txq_has_space() 546 return (CIRC_SPACE(priv->rx_dev.qhead, priv->rx_dev.qtail, in rxq_has_space()
|
/linux-6.1.9/kernel/events/ |
D | ring_buffer.c | 143 return CIRC_SPACE(head, tail, data_size) >= size; in ring_buffer_has_space() 145 return CIRC_SPACE(tail, head, data_size) >= size; in ring_buffer_has_space() 428 handle->size = CIRC_SPACE(aux_head, aux_tail, perf_aux_size(rb)); in perf_aux_output_begin()
|
/linux-6.1.9/Documentation/core-api/ |
D | circular-buffers.rst | 80 CIRC_SPACE(head_index, tail_index, buffer_size); 113 (1) CIRC_SPACE*() are intended to be used in the producer. To the producer 162 if (CIRC_SPACE(head, tail, buffer->size) >= 1) {
|
/linux-6.1.9/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
D | pearl_pcie.c | 520 if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index, in qtnf_tx_queue_ready() 524 if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index, in qtnf_tx_queue_ready() 782 while (CIRC_SPACE(priv->rx_bd_w_index, priv->rx_bd_r_index, in qtnf_pcie_pearl_rx_poll() 901 CIRC_SPACE(priv->rx_bd_w_index, priv->rx_bd_r_index, in qtnf_dbg_hdp_stats()
|
D | topaz_pcie.c | 486 if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index, in qtnf_tx_queue_ready() 490 if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index, in qtnf_tx_queue_ready() 693 while (CIRC_SPACE(priv->rx_bd_w_index, priv->rx_bd_r_index, in qtnf_topaz_rx_poll() 794 CIRC_SPACE(priv->rx_bd_w_index, priv->rx_bd_r_index, in qtnf_dbg_pkt_stats()
|
/linux-6.1.9/drivers/input/joystick/iforce/ |
D | iforce-packets.c | 45 if (CIRC_SPACE(head, tail, XMIT_SIZE) < n+2) { in iforce_send_packet()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/ |
D | metadata.c | 47 if (!CIRC_SPACE(ring->head, ring->tail, priv->stats_ring_size)) in nfp_release_stats_entry() 146 if (CIRC_SPACE(ring->head, ring->tail, NFP_FLOWER_MASK_ENTRY_RS) == 0) in nfp_release_mask_id()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_debugfs_crc.c | 412 if (CIRC_SPACE(head, tail, DRM_CRC_ENTRIES_NR) < 1) { in drm_crtc_add_crc_entry()
|
/linux-6.1.9/drivers/gpu/drm/msm/ |
D | msm_rd.c | 77 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ))
|
/linux-6.1.9/tools/power/acpi/tools/acpidbg/ |
D | acpidbg.c | 46 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/ |
D | hisi_femac.c | 220 if (!CIRC_SPACE(pos, rxq->tail, rxq->num)) in hisi_femac_rx_refill() 517 if (unlikely(!CIRC_SPACE(txq->head, txq->tail, in hisi_femac_net_xmit()
|
/linux-6.1.9/drivers/platform/chrome/ |
D | cros_ec_debugfs.c | 83 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work()
|
/linux-6.1.9/drivers/tty/ |
D | ehv_bytechan.c | 546 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
|
D | amiserial.c | 710 if (CIRC_SPACE(info->xmit.head, in rs_put_char() 791 return CIRC_SPACE(info->xmit.head, info->xmit.tail, UART_XMIT_SIZE); in rs_write_room()
|
/linux-6.1.9/drivers/crypto/caam/ |
D | jr.c | 389 CIRC_SPACE(head, tail, JOBR_DEPTH) <= 0) { in caam_jr_enqueue()
|
/linux-6.1.9/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 318 if (CIRC_SPACE(head, tail, PTP_TS_BUFFER_SIZE) == 0) in gem_ptp_txstamp()
|
/linux-6.1.9/drivers/char/hw_random/ |
D | cctrng.c | 205 return CIRC_SPACE(drvdata->circ.head, in circ_buf_space()
|
/linux-6.1.9/drivers/acpi/ |
D | acpi_dbg.c | 32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
/linux-6.1.9/drivers/dma/qcom/ |
D | bam_dma.c | 344 #define IS_BUSY(chan) (CIRC_SPACE(bchan->tail, bchan->head,\ 1050 avail = CIRC_SPACE(bchan->tail, bchan->head, in bam_start_dma()
|
/linux-6.1.9/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_ct.c | 128 space = CIRC_SPACE(ctb->tail, ctb->head, ctb->size) - ctb->resv_space; in guc_ct_buffer_reset() 573 space = CIRC_SPACE(ctb->tail, head, ctb->size); in h2g_has_room()
|
/linux-6.1.9/drivers/dma/ |
D | plx_dma.c | 263 if (!CIRC_SPACE(plxdev->head, plxdev->tail, PLX_DMA_RING_COUNT)) in plx_dma_prep_memcpy()
|
/linux-6.1.9/drivers/net/ethernet/moxa/ |
D | moxart_ether.c | 282 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); in moxart_tx_queue_space()
|