| /linux/Documentation/translations/zh_CN/core-api/ |
| H A 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/include/linux/ |
| H A D | circ_buf.h | 21 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) macro
|
| /linux/Documentation/core-api/ |
| H A 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/kernel/events/ |
| H A D | ring_buffer.c | 147 return CIRC_SPACE(head, tail, data_size) >= size; in ring_buffer_has_space() 149 return CIRC_SPACE(tail, head, data_size) >= size; in ring_buffer_has_space() 436 handle->size = CIRC_SPACE(aux_head, aux_tail, perf_aux_size(rb)); in perf_aux_output_begin()
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/pcie/ |
| H A 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()
|
| H A 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/drivers/net/ethernet/netronome/nfp/flower/ |
| H A 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/drivers/gpu/drm/ |
| H A D | drm_debugfs_crc.c | 413 if (CIRC_SPACE(head, tail, DRM_CRC_ENTRIES_NR) < 1) { in drm_crtc_add_crc_entry()
|
| /linux/tools/power/acpi/tools/acpidbg/ |
| H A D | acpidbg.c | 46 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_rd.c | 77 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ))
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_ct.c | 416 h2g->info.space = CIRC_SPACE(h2g->info.tail, h2g->info.head, in guc_ct_ctb_h2g_init() 434 g2h->info.space = CIRC_SPACE(g2h->info.tail, g2h->info.head, in guc_ct_ctb_g2h_init() 740 u32 credits = CIRC_SPACE(0, 0, CTB_G2H_BUFFER_DWORDS) - G2H_ROOM_BUFFER_DWORDS; in xe_guc_ct_runtime_suspend() 785 h2g->info.space = CIRC_SPACE(h2g->info.tail, h2g->info.head, in h2g_has_room()
|
| /linux/drivers/tty/ |
| H A D | ehv_bytechan.c | 548 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
|
| /linux/drivers/dma/qcom/ |
| H A D | bam_dma.c | 345 #define IS_BUSY(chan) (CIRC_SPACE(bchan->tail, bchan->head,\ 1034 avail = CIRC_SPACE(bchan->tail, bchan->head, in bam_start_dma()
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_debugfs.c | 91 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work()
|
| /linux/drivers/net/ethernet/xilinx/ |
| H A D | xilinx_axienet_main.c | 886 CIRC_SPACE(lp->tx_ring_head, lp->tx_ring_tail, TX_BD_NUM_MAX), in axienet_dma_tx_cb() 921 if (CIRC_SPACE(lp->tx_ring_head, lp->tx_ring_tail, TX_BD_NUM_MAX) <= 1) { in axienet_start_xmit_dmaengine() 970 netif_txq_maybe_stop(txq, CIRC_SPACE(lp->tx_ring_head, lp->tx_ring_tail, TX_BD_NUM_MAX), in axienet_start_xmit_dmaengine() 1197 for (i = 0; i < CIRC_SPACE(lp->rx_ring_head, lp->rx_ring_tail, in axienet_dma_rx_cb()
|
| /linux/drivers/acpi/ |
| H A D | acpi_dbg.c | 32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
|
| /linux/drivers/dma/ |
| H A D | plx_dma.c | 263 if (!CIRC_SPACE(plxdev->head, plxdev->tail, PLX_DMA_RING_COUNT)) in plx_dma_prep_memcpy()
|
| /linux/drivers/gpu/drm/i915/gt/uc/ |
| H A D | intel_guc_ct.c | 168 space = CIRC_SPACE(ctb->tail, ctb->head, ctb->size) - ctb->resv_space; in guc_ct_buffer_reset() 641 space = CIRC_SPACE(ctb->tail, head, ctb->size); in h2g_has_room()
|
| /linux/drivers/greybus/ |
| H A D | gb-beagleplay.c | 258 if (CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) >= 1) { in hdlc_append()
|
| /linux/drivers/gpu/drm/msm/adreno/ |
| H A D | a6xx_hfi.c | 77 space = CIRC_SPACE(header->write_index, header->read_index, in a6xx_hfi_queue_write()
|
| /linux/drivers/platform/mellanox/ |
| H A D | mlxbf-tmfifo.c | 497 avail = CIRC_SPACE(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_output()
|
| /linux/drivers/net/ethernet/actions/ |
| H A D | owl-emac.c | 142 return CIRC_SPACE(ring->head, ring->tail, ring->size); in owl_emac_ring_num_unused()
|
| /linux/drivers/net/ethernet/calxeda/ |
| H A D | xgmac.c | 397 #define dma_ring_space(h, t, s) CIRC_SPACE(h, t, s)
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | tid_rdma.c | 1479 if (!CIRC_SPACE(req->setup_head, clear_tail, MAX_FLOWS) || in hfi1_kern_exp_rcv_setup() 3560 if (!CIRC_SPACE(req->setup_head, req->acked_tail, in hfi1_tid_write_alloc_resources() 4091 if (!CIRC_SPACE(req->setup_head, req->acked_tail, MAX_FLOWS)) in hfi1_rc_rcv_tid_rdma_write_resp()
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_main.c | 1350 while (CIRC_SPACE(queue->rx_prepared_head, queue->rx_tail, in gem_rx_refill() 2423 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, in macb_start_xmit() 2448 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, bp->tx_ring_size) < 1) in macb_start_xmit()
|