| /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() 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 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()
|
| /linux/drivers/greybus/ |
| H A D | gb-beagleplay.c | 258 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 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_pagefault.c | 461 return CIRC_SPACE(pf_queue->head, pf_queue->tail, pf_queue->size) <= in xe_pagefault_queue_full()
|
| /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/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/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/msm/adreno/ |
| H A D | a6xx_hfi.c | 80 space = CIRC_SPACE(header->write_index, READ_ONCE(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()
|