Home
last modified time | relevance | path

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

/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()
438 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()
/linux/drivers/greybus/
H A Dgb-beagleplay.c258 if (WARN_ON_ONCE(CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) < 1)) in hdlc_append()
371 if (CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) >= needed) in hdlc_tx_frames()
394 if (unlikely(CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) < needed)) { in hdlc_tx_frames()
/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_pagefault.c461 return CIRC_SPACE(pf_queue->head, pf_queue->tail, pf_queue->size) <= in xe_pagefault_queue_full()
/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/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/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/msm/adreno/
H A Da6xx_hfi.c80 space = CIRC_SPACE(header->write_index, READ_ONCE(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()