Home
last modified time | relevance | path

Searched refs:CIRC_SPACE (Results 1 – 25 of 29) sorted by relevance

12

/linux/Documentation/translations/zh_CN/core-api/
H A Dcircular-buffers.rst82 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 Dcirc_buf.h21 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) macro
/linux/Documentation/core-api/
H A Dcircular-buffers.rst80 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 Dring_buffer.c147 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 Dpearl_pcie.c520 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 Dtopaz_pcie.c486 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 Dmetadata.c47 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 Ddrm_debugfs_crc.c413 if (CIRC_SPACE(head, tail, DRM_CRC_ENTRIES_NR) < 1) { in drm_crtc_add_crc_entry()
/linux/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c46 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
/linux/drivers/gpu/drm/msm/
H A Dmsm_rd.c77 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ))
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_ct.c416 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 Dehv_bytechan.c548 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
/linux/drivers/dma/qcom/
H A Dbam_dma.c345 #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 Dcros_ec_debugfs.c91 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work()
/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c886 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 Dacpi_dbg.c32 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
/linux/drivers/dma/
H A Dplx_dma.c263 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 Dintel_guc_ct.c168 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 Dgb-beagleplay.c258 if (CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) >= 1) { in hdlc_append()
/linux/drivers/gpu/drm/msm/adreno/
H A Da6xx_hfi.c77 space = CIRC_SPACE(header->write_index, header->read_index, in a6xx_hfi_queue_write()
/linux/drivers/platform/mellanox/
H A Dmlxbf-tmfifo.c497 avail = CIRC_SPACE(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_output()
/linux/drivers/net/ethernet/actions/
H A Dowl-emac.c142 return CIRC_SPACE(ring->head, ring->tail, ring->size); in owl_emac_ring_num_unused()
/linux/drivers/net/ethernet/calxeda/
H A Dxgmac.c397 #define dma_ring_space(h, t, s) CIRC_SPACE(h, t, s)
/linux/drivers/infiniband/hw/hfi1/
H A Dtid_rdma.c1479 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 Dmacb_main.c1350 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()

12