Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/linux/
Dcirc_buf.h21 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head)+1),(size)) macro
Dserial_core.h437 (CIRC_SPACE((circ)->head, (circ)->tail, UART_XMIT_SIZE))
/Linux-v4.19/drivers/staging/ks7010/
Dks_wlan.h530 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-v4.19/kernel/events/
Dring_buffer.c112 return CIRC_SPACE(head, tail, data_size) >= size; in ring_buffer_has_space()
114 return CIRC_SPACE(tail, head, data_size) >= size; in ring_buffer_has_space()
388 handle->size = CIRC_SPACE(aux_head, aux_tail, perf_aux_size(rb)); in perf_aux_output_begin()
/Linux-v4.19/arch/ia64/hp/sim/
Dsimserial.c119 if (CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE) == 0) { in rs_put_char()
231 return CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_write_room()
/Linux-v4.19/Documentation/core-api/
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-v4.19/drivers/net/ethernet/netronome/nfp/flower/
Dmetadata.c58 if (!CIRC_SPACE(ring->head, ring->tail, NFP_FL_STATS_ENTRY_RS * in nfp_release_stats_entry()
164 if (CIRC_SPACE(ring->head, ring->tail, NFP_FLOWER_MASK_ENTRY_RS) == 0) in nfp_release_mask_id()
/Linux-v4.19/drivers/misc/mic/scif/
Dscif_rb.c26 #define scif_rb_ring_space(head, tail, size) CIRC_SPACE(head, tail, size)
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/pearl/
Dpcie.c661 if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index, in qtnf_tx_queue_ready()
665 if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index, in qtnf_tx_queue_ready()
905 while (CIRC_SPACE(priv->rx_bd_w_index, priv->rx_bd_r_index, in qtnf_rx_poll()
1034 CIRC_SPACE(priv->rx_bd_w_index, priv->rx_bd_r_index, in qtnf_dbg_hdp_stats()
/Linux-v4.19/drivers/input/joystick/iforce/
Diforce-packets.c59 if (CIRC_SPACE(head, tail, XMIT_SIZE) < n+2) { in iforce_send_packet()
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_rd.c84 (CIRC_SPACE((circ)->head, (circ)->tail, BUF_SZ))
/Linux-v4.19/drivers/gpu/drm/
Ddrm_debugfs_crc.c394 if (CIRC_SPACE(head, tail, DRM_CRC_ENTRIES_NR) < 1) { in drm_crtc_add_crc_entry()
/Linux-v4.19/tools/power/acpi/tools/acpidbg/
Dacpidbg.c49 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
/Linux-v4.19/drivers/gpu/drm/msm/adreno/
Da6xx_hfi.c62 space = CIRC_SPACE(header->write_index, header->read_index, in a6xx_hfi_queue_write()
/Linux-v4.19/drivers/tty/
Dehv_bytechan.c531 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
Damiserial.c793 if (CIRC_SPACE(info->xmit.head, in rs_put_char()
883 return CIRC_SPACE(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE); in rs_write_room()
/Linux-v4.19/drivers/platform/chrome/
Dcros_ec_debugfs.c97 buf_space = CIRC_SPACE(cb->head, cb->tail, LOG_SIZE); in cros_ec_console_log_work()
/Linux-v4.19/drivers/net/ethernet/hisilicon/
Dhisi_femac.c232 if (!CIRC_SPACE(pos, rxq->tail, rxq->num)) in hisi_femac_rx_refill()
529 if (unlikely(!CIRC_SPACE(txq->head, txq->tail, in hisi_femac_net_xmit()
/Linux-v4.19/drivers/crypto/caam/
Djr.c348 CIRC_SPACE(head, tail, JOBR_DEPTH) <= 0) { in caam_jr_enqueue()
/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_ptp.c315 if (CIRC_SPACE(head, tail, PTP_TS_BUFFER_SIZE) == 0) in gem_ptp_txstamp()
/Linux-v4.19/drivers/dma/qcom/
Dbam_dma.c353 #define IS_BUSY(chan) (CIRC_SPACE(bchan->tail, bchan->head,\
1000 avail = CIRC_SPACE(bchan->tail, bchan->head, in bam_start_dma()
/Linux-v4.19/drivers/acpi/
Dacpi_dbg.c35 (CIRC_SPACE((circ)->head, (circ)->tail, ACPI_AML_BUF_SIZE))
/Linux-v4.19/drivers/net/ethernet/moxa/
Dmoxart_ether.c285 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); in moxart_tx_queue_space()
/Linux-v4.19/drivers/lightnvm/
Dpblk-rb.c157 (CIRC_SPACE(head, tail, size))
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_guc_submission.c462 GEM_BUG_ON(CIRC_SPACE(wq_off, READ_ONCE(desc->head), in guc_wq_item_append()

12