Searched refs:ring (Results 1 - 25 of 213) sorted by relevance

123456789

/freebsd-11-stable/crypto/heimdal/appl/telnet/telnet/
H A Dring.c39 * This defines a structure for a ring buffer.
64 * There is some trickiness here. Since the ring buffers are initialized
83 ring_init(Ring *ring, unsigned char *buffer, int count) argument
85 memset(ring, 0, sizeof *ring);
87 ring->size = count;
89 ring->supply = ring->consume = ring->bottom = buffer;
91 ring
107 ring_mark(Ring *ring) argument
117 ring_at_mark(Ring *ring) argument
131 ring_clear_mark(Ring *ring) argument
140 ring_supplied(Ring *ring, int count) argument
150 ring_consumed(Ring *ring, int count) argument
185 ring_empty_count(Ring *ring) argument
196 ring_empty_consecutive(Ring *ring) argument
217 ring_full_count(Ring *ring) argument
235 ring_full_consecutive(Ring *ring) argument
256 ring_supply_data(Ring *ring, unsigned char *buffer, int count) argument
275 ring_consume_data(Ring *ring, unsigned char *buffer, int count) argument
291 ring_encrypt(Ring *ring, void (*encryptor)(unsigned char *, int)) argument
313 ring_clearto(Ring *ring) argument
[all...]
H A Dring.h33 * @(#)ring.h 8.1 (Berkeley) 6/6/93
39 * This defines a structure for a ring buffer.
63 /* Here are some functions and macros to deal with the ring buffer */
67 ring_init (Ring *ring, unsigned char *buffer, int count);
71 ring_supply_data (Ring *ring, unsigned char *buffer, int count);
74 ring_consume_data (Ring *ring, unsigned char *buffer, int count);
79 ring_supplied (Ring *ring, int count),
80 ring_consumed (Ring *ring, int count);
84 ring_empty_count (Ring *ring),
85 ring_empty_consecutive (Ring *ring),
[all...]
/freebsd-11-stable/contrib/telnet/telnet/
H A Dring.c32 static const char sccsid[] = "@(#)ring.c 8.2 (Berkeley) 5/30/95";
36 __FBSDID("$FreeBSD: stable/11/contrib/telnet/telnet/ring.c 351432 2019-08-23 17:40:47Z emaste $");
39 * This defines a structure for a ring buffer.
63 #include "ring.h"
85 * There is some trickiness here. Since the ring buffers are initialized
100 ring_init(Ring *ring, unsigned char *buffer, int count) argument
102 memset((char *)ring, 0, sizeof *ring);
104 ring->size = count;
106 ring
124 ring_mark(Ring *ring) argument
134 ring_at_mark(Ring *ring) argument
148 ring_clear_mark(Ring *ring) argument
157 ring_supplied(Ring *ring, int count) argument
167 ring_consumed(Ring *ring, int count) argument
202 ring_empty_count(Ring *ring) argument
213 ring_empty_consecutive(Ring *ring) argument
234 ring_full_count(Ring *ring) argument
252 ring_full_consecutive(Ring *ring) argument
273 ring_supply_data(Ring *ring, unsigned char *buffer, int count) argument
288 ring_encrypt(Ring *ring, void (*encryptor)(unsigned char *, int)) argument
[all...]
H A Dring.h29 * @(#)ring.h 8.1 (Berkeley) 6/6/93
30 * $FreeBSD: stable/11/contrib/telnet/telnet/ring.h 351432 2019-08-23 17:40:47Z emaste $
44 * This defines a structure for a ring buffer.
68 /* Here are some functions and macros to deal with the ring buffer */
72 ring_init(Ring *ring, unsigned char *buffer, int count);
76 ring_supply_data(Ring *ring, unsigned char *buffer, int count);
79 ring_consume_data(Ring *ring, unsigned char *buffer, int count);
84 ring_supplied(Ring *ring, int count),
85 ring_consumed(Ring *ring, int count);
90 ring_empty_count(Ring *ring),
[all...]
/freebsd-11-stable/sys/dev/drm2/i915/
H A Dintel_ringbuffer.c50 static inline int ring_space(struct intel_ring_buffer *ring) argument
52 int space = (ring->head & HEAD_ADDR) - (ring->tail + I915_RING_FREE_SPACE);
54 space += ring->size;
59 gen2_render_ring_flush(struct intel_ring_buffer *ring, argument
73 ret = intel_ring_begin(ring, 2);
77 intel_ring_emit(ring, cmd);
78 intel_ring_emit(ring, MI_NOOP);
79 intel_ring_advance(ring);
85 gen4_render_ring_flush(struct intel_ring_buffer *ring, argument
180 intel_emit_post_sync_nonzero_flush(struct intel_ring_buffer *ring) argument
216 gen6_render_ring_flush(struct intel_ring_buffer *ring, u32 invalidate_domains, u32 flush_domains) argument
269 gen7_render_ring_cs_stall_wa(struct intel_ring_buffer *ring) argument
288 gen7_render_ring_flush(struct intel_ring_buffer *ring, u32 invalidate_domains, u32 flush_domains) argument
345 ring_write_tail(struct intel_ring_buffer *ring, u32 value) argument
352 intel_ring_get_active_head(struct intel_ring_buffer *ring) argument
361 init_ring_common(struct intel_ring_buffer *ring) argument
443 init_pipe_control(struct intel_ring_buffer *ring) argument
491 cleanup_pipe_control(struct intel_ring_buffer *ring) argument
510 init_render_ring(struct intel_ring_buffer *ring) argument
568 render_ring_cleanup(struct intel_ring_buffer *ring) argument
582 update_mboxes(struct intel_ring_buffer *ring, u32 mmio_offset) argument
600 gen6_add_request(struct intel_ring_buffer *ring) argument
674 pc_render_add_request(struct intel_ring_buffer *ring) argument
723 gen6_ring_get_seqno(struct intel_ring_buffer *ring, bool lazy_coherency) argument
734 ring_get_seqno(struct intel_ring_buffer *ring, bool lazy_coherency) argument
740 pc_render_get_seqno(struct intel_ring_buffer *ring, bool lazy_coherency) argument
747 gen5_ring_get_irq(struct intel_ring_buffer *ring) argument
767 gen5_ring_put_irq(struct intel_ring_buffer *ring) argument
782 i9xx_ring_get_irq(struct intel_ring_buffer *ring) argument
802 i9xx_ring_put_irq(struct intel_ring_buffer *ring) argument
817 i8xx_ring_get_irq(struct intel_ring_buffer *ring) argument
837 i8xx_ring_put_irq(struct intel_ring_buffer *ring) argument
851 intel_ring_setup_status_page(struct intel_ring_buffer *ring) argument
883 bsd_ring_flush(struct intel_ring_buffer *ring, u32 invalidate_domains, u32 flush_domains) argument
900 i9xx_add_request(struct intel_ring_buffer *ring) argument
918 gen6_ring_get_irq(struct intel_ring_buffer *ring) argument
948 gen6_ring_put_irq(struct intel_ring_buffer *ring) argument
969 i965_dispatch_execbuffer(struct intel_ring_buffer *ring, u32 offset, u32 length, unsigned flags) argument
992 i830_dispatch_execbuffer(struct intel_ring_buffer *ring, u32 offset, u32 len, unsigned flags) argument
1044 i915_dispatch_execbuffer(struct intel_ring_buffer *ring, u32 offset, u32 len, unsigned flags) argument
1061 cleanup_status_page(struct intel_ring_buffer *ring) argument
1077 init_status_page(struct intel_ring_buffer *ring) argument
1124 init_phys_hws_pga(struct intel_ring_buffer *ring) argument
1147 intel_init_ring_buffer(struct drm_device *dev, struct intel_ring_buffer *ring) argument
1228 intel_cleanup_ring_buffer(struct intel_ring_buffer *ring) argument
1257 intel_ring_wait_seqno(struct intel_ring_buffer *ring, u32 seqno) argument
1268 intel_ring_wait_request(struct intel_ring_buffer *ring, int n) argument
1325 ring_wait_for_space(struct intel_ring_buffer *ring, int n) argument
1370 intel_wrap_ring_buffer(struct intel_ring_buffer *ring) argument
1392 intel_ring_idle(struct intel_ring_buffer *ring) argument
1416 intel_ring_alloc_seqno(struct intel_ring_buffer *ring) argument
1424 intel_ring_begin(struct intel_ring_buffer *ring, int num_dwords) argument
1456 intel_ring_advance(struct intel_ring_buffer *ring) argument
1467 gen6_bsd_ring_write_tail(struct intel_ring_buffer *ring, u32 value) argument
1500 gen6_ring_flush(struct intel_ring_buffer *ring, u32 invalidate, u32 flush) argument
1529 hsw_ring_dispatch_execbuffer(struct intel_ring_buffer *ring, u32 offset, u32 len, unsigned flags) argument
1550 gen6_ring_dispatch_execbuffer(struct intel_ring_buffer *ring, u32 offset, u32 len, unsigned flags) argument
1572 blt_ring_flush(struct intel_ring_buffer *ring, u32 invalidate, u32 flush) argument
1603 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local
1688 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local
1756 struct intel_ring_buffer *ring = &dev_priv->ring[VCS]; local
1804 struct intel_ring_buffer *ring = &dev_priv->ring[BCS]; local
1830 intel_ring_flush_all_caches(struct intel_ring_buffer *ring) argument
1846 intel_ring_invalidate_all_caches(struct intel_ring_buffer *ring) argument
[all...]
H A Dintel_ringbuffer.h24 #define I915_READ_TAIL(ring) I915_READ(RING_TAIL((ring)->mmio_base))
25 #define I915_WRITE_TAIL(ring, val) I915_WRITE(RING_TAIL((ring)->mmio_base), val)
27 #define I915_READ_START(ring) I915_READ(RING_START((ring)->mmio_base))
28 #define I915_WRITE_START(ring, val) I915_WRITE(RING_START((ring)->mmio_base), val)
30 #define I915_READ_HEAD(ring) I915_READ(RING_HEAD((ring)
145 intel_ring_initialized(struct intel_ring_buffer *ring) argument
151 intel_ring_flag(struct intel_ring_buffer *ring) argument
157 intel_ring_sync_index(struct intel_ring_buffer *ring, struct intel_ring_buffer *other) argument
176 intel_read_status_page(struct intel_ring_buffer *ring, int reg) argument
206 intel_ring_emit(struct intel_ring_buffer *ring, u32 data) argument
225 intel_ring_get_tail(struct intel_ring_buffer *ring) argument
230 intel_ring_get_seqno(struct intel_ring_buffer *ring) argument
237 i915_trace_irq_get(struct intel_ring_buffer *ring, u32 seqno) argument
[all...]
H A Di915_gem_context.c33 * something like a context does exist for the media ring, the code only
34 * supports contexts for the render ring.
141 KASSERT(ctx == dev_priv->ring[RCS].default_context,
175 /* The ring associated with the context object is handled by the normal
176 * object tracking code. We give an initial ring value simple to pass an
179 ctx->ring = &dev_priv->ring[RCS];
210 return (ctx == ctx->ring->default_context);
214 * The default context needs to exist per ring that uses contexts. It stores the
235 dev_priv->ring[RC
339 mi_set_context(struct intel_ring_buffer *ring, struct i915_hw_context *new_context, u32 hw_flags) argument
387 struct intel_ring_buffer *ring = to->ring; local
470 i915_switch_context(struct intel_ring_buffer *ring, struct drm_file *file, int to_id) argument
[all...]
/freebsd-11-stable/sys/dev/drm2/radeon/
H A Dradeon_ring.c44 * command ring and the hw will fetch the commands from the IB
47 * put in IBs for execution by the requested ring.
56 * @ring: ring index the IB is associated with
64 int radeon_ib_get(struct radeon_device *rdev, int ring, argument
81 ib->ring = ring;
116 * radeon_ib_schedule - schedule an IB (Indirect Buffer) on the ring
122 * Schedule an IB on the associated ring (all asics).
125 * On SI, there are two parallel engines fed from the primary ring,
138 struct radeon_ring *ring = &rdev->ring[ib->ring]; local
264 struct radeon_ring *ring = &rdev->ring[i]; local
313 radeon_ring_write(struct radeon_ring *ring, uint32_t v) argument
336 radeon_ring_supports_scratch_reg(struct radeon_device *rdev, struct radeon_ring *ring) argument
357 radeon_ring_free_size(struct radeon_device *rdev, struct radeon_ring *ring) argument
385 radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw) argument
420 radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw) argument
443 radeon_ring_commit(struct radeon_device *rdev, struct radeon_ring *ring) argument
463 radeon_ring_unlock_commit(struct radeon_device *rdev, struct radeon_ring *ring) argument
476 radeon_ring_undo(struct radeon_ring *ring) argument
488 radeon_ring_unlock_undo(struct radeon_device *rdev, struct radeon_ring *ring) argument
503 radeon_ring_force_activity(struct radeon_device *rdev, struct radeon_ring *ring) argument
524 radeon_ring_lockup_update(struct radeon_ring *ring) argument
550 radeon_ring_test_lockup(struct radeon_device *rdev, struct radeon_ring *ring) argument
585 radeon_ring_backup(struct radeon_device *rdev, struct radeon_ring *ring, uint32_t **data) argument
649 radeon_ring_restore(struct radeon_device *rdev, struct radeon_ring *ring, unsigned size, uint32_t *data) argument
687 radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ring_size, unsigned rptr_offs, unsigned rptr_reg, unsigned wptr_reg, u32 ptr_reg_shift, u32 ptr_reg_mask, u32 nop) argument
757 radeon_ring_fini(struct radeon_device *rdev, struct radeon_ring *ring) argument
791 struct radeon_ring *ring = &rdev->ring[ridx]; local
855 radeon_debugfs_ring_init(struct radeon_device *rdev, struct radeon_ring *ring) argument
[all...]
H A Devergreen_blit_kms.c45 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
59 radeon_ring_write(ring, PACKET3(PACKET3_SET_CONTEXT_REG, 15));
60 radeon_ring_write(ring, (CB_COLOR0_BASE - PACKET3_SET_CONTEXT_REG_START) >> 2);
61 radeon_ring_write(ring, gpu_addr >> 8);
62 radeon_ring_write(ring, pitch);
63 radeon_ring_write(ring, slice);
64 radeon_ring_write(ring, 0);
65 radeon_ring_write(ring, cb_color_info);
66 radeon_ring_write(ring,
84 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
112 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
140 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
185 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
226 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
257 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
282 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
[all...]
H A Dradeon_fence.c47 * are no longer in use by the associated ring on the GPU and
58 * @ring: ring index the fence is associated with
62 static void radeon_fence_write(struct radeon_device *rdev, u32 seq, int ring) argument
64 struct radeon_fence_driver *drv = &rdev->fence_drv[ring];
76 * @ring: ring index the fence is associated with
81 static u32 radeon_fence_read(struct radeon_device *rdev, int ring) argument
83 struct radeon_fence_driver *drv = &rdev->fence_drv[ring];
95 * radeon_fence_emit - emit a fence on the requested ring
104 radeon_fence_emit(struct radeon_device *rdev, struct radeon_fence **fence, int ring) argument
131 radeon_fence_process(struct radeon_device *rdev, int ring) argument
220 radeon_fence_seq_signaled(struct radeon_device *rdev, u64 seq, unsigned ring) argument
275 radeon_fence_wait_seq(struct radeon_device *rdev, u64 target_seq, unsigned ring, bool intr, bool lock_ring) argument
456 unsigned i, ring = RADEON_NUM_RINGS; local
640 radeon_fence_wait_next_locked(struct radeon_device *rdev, int ring) argument
663 radeon_fence_wait_empty_locked(struct radeon_device *rdev, int ring) argument
722 radeon_fence_count_emitted(struct radeon_device *rdev, int ring) argument
816 radeon_fence_driver_start_ring(struct radeon_device *rdev, int ring) argument
854 radeon_fence_driver_init_ring(struct radeon_device *rdev, int ring) argument
882 int ring; local
906 int ring, r; local
935 int ring; local
[all...]
H A Dradeon_semaphore.c61 void radeon_semaphore_emit_signal(struct radeon_device *rdev, int ring, argument
65 radeon_semaphore_ring_emit(rdev, ring, &rdev->ring[ring], semaphore, false);
68 void radeon_semaphore_emit_wait(struct radeon_device *rdev, int ring, argument
72 radeon_semaphore_ring_emit(rdev, ring, &rdev->ring[ring], semaphore, true);
75 /* caller must hold ring lock */
82 /* no need to signal and wait on the same ring */
[all...]
H A Dr600_blit_kms.c76 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
90 radeon_ring_write(ring, PACKET3(PACKET3_SET_CONTEXT_REG, 1));
91 radeon_ring_write(ring, (CB_COLOR0_BASE - PACKET3_SET_CONTEXT_REG_OFFSET) >> 2);
92 radeon_ring_write(ring, gpu_addr >> 8);
95 radeon_ring_write(ring, PACKET3(PACKET3_SURFACE_BASE_UPDATE, 0));
96 radeon_ring_write(ring, 2 << 0);
99 radeon_ring_write(ring, PACKET3(PACKET3_SET_CONTEXT_REG, 1));
100 radeon_ring_write(ring, (CB_COLOR0_SIZE - PACKET3_SET_CONTEXT_REG_OFFSET) >> 2);
101 radeon_ring_write(ring, (pitc
130 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
149 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
196 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
233 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
272 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
293 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
318 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
669 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
722 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
[all...]
H A Dni.c910 int ring, u32 cp_int_cntl)
914 WREG32(SRBM_GFX_CNTL, srbm_gfx_cntl | (ring & 3));
924 struct radeon_ring *ring = &rdev->ring[fence->ring]; local
925 u64 addr = rdev->fence_drv[fence->ring].gpu_addr;
928 radeon_ring_write(ring, PACKET3(PACKET3_SET_CONFIG_REG, 1));
929 radeon_ring_write(ring, (CP_COHER_CNTL2 - PACKET3_SET_CONFIG_REG_START) >> 2);
930 radeon_ring_write(ring, 0);
931 radeon_ring_write(ring, PACKET
909 cayman_cp_int_cntl_setup(struct radeon_device *rdev, int ring, u32 cp_int_cntl) argument
947 struct radeon_ring *ring = &rdev->ring[ib->ring]; local
1023 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
1089 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
1122 struct radeon_ring *ring; local
1227 struct radeon_ring *ring = &rdev->ring[ib->ring]; local
1288 struct radeon_ring *ring; local
1540 cayman_dma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) argument
1559 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
1752 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local
1930 struct radeon_ring *ring = &rdev->ring[rdev->asic->vm.pt_ring_index]; local
1997 struct radeon_ring *ring = &rdev->ring[ridx]; local
2020 struct radeon_ring *ring = &rdev->ring[ridx]; local
[all...]
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c60 struct mlx4_en_tx_ring *ring; local
65 ring = kzalloc_node(sizeof(struct mlx4_en_tx_ring), GFP_KERNEL, node);
66 if (!ring) {
67 ring = kzalloc(sizeof(struct mlx4_en_tx_ring), GFP_KERNEL);
68 if (!ring) {
69 en_err(priv, "Failed allocating TX ring\n");
87 &ring->dma_tag)))
90 ring->size = size;
91 ring->size_mask = size - 1;
92 ring
194 struct mlx4_en_tx_ring *ring = *pring; local
215 mlx4_en_activate_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring, int cq, int user_prio) argument
243 mlx4_en_deactivate_tx_ring(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring) argument
271 mlx4_en_stamp_wqe(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring, u32 index, u8 owner) argument
290 mlx4_en_free_tx_desc(struct mlx4_en_priv *priv, struct mlx4_en_tx_ring *ring, u32 index) argument
311 mlx4_en_free_tx_buf(struct net_device *dev, struct mlx4_en_tx_ring *ring) argument
340 mlx4_en_tx_ring_is_full(struct mlx4_en_tx_ring *ring) argument
352 struct mlx4_en_tx_ring *ring = priv->tx_ring[cq->ring]; local
427 struct mlx4_en_tx_ring *ring = priv->tx_ring[cq->ring]; local
440 struct mlx4_en_tx_ring *ring = priv->tx_ring[cq->ring]; local
466 struct mlx4_en_tx_ring *ring = priv->tx_ring[tx_ind]; local
485 mlx4_en_get_inline_hdr_size(struct mlx4_en_tx_ring *ring, struct mbuf *mb) argument
642 struct mlx4_en_tx_ring *ring = priv->tx_ring[tx_ind]; local
933 struct mlx4_en_tx_ring *ring = priv->tx_ring[tx_ind]; local
958 struct mlx4_en_tx_ring *ring; local
[all...]
H A Dmlx4_en_rx.c49 struct mlx4_en_rx_ring *ring,
53 ((struct mlx4_en_rx_desc *)ring->buf) + index;
61 * If the number of used fragments does not fill up the ring
74 mlx4_en_alloc_mbuf(struct mlx4_en_rx_ring *ring) argument
79 mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, ring->rx_mb_size);
81 mb->m_pkthdr.len = mb->m_len = ring->rx_mb_size;
92 if (mb_head->m_pkthdr.len >= ring->rx_mb_size)
110 mlx4_en_alloc_buf(struct mlx4_en_rx_ring *ring, struct mlx4_en_rx_desc *rx_desc, argument
123 if (unlikely(ring->spare.mbuf == NULL)) {
124 mb = mlx4_en_alloc_mbuf(ring);
48 mlx4_en_init_rx_desc(struct mlx4_en_priv *priv, struct mlx4_en_rx_ring *ring, int index) argument
223 mlx4_en_free_buf(struct mlx4_en_rx_ring *ring, struct mlx4_en_rx_mbuf *mb_list) argument
233 mlx4_en_prepare_rx_desc(struct mlx4_en_priv *priv, struct mlx4_en_rx_ring *ring, int index) argument
250 mlx4_en_update_rx_prod_db(struct mlx4_en_rx_ring *ring) argument
257 struct mlx4_en_rx_ring *ring; local
303 mlx4_en_free_rx_buf(struct mlx4_en_priv *priv, struct mlx4_en_rx_ring *ring) argument
370 struct mlx4_en_rx_ring *ring; local
465 struct mlx4_en_rx_ring *ring; local
550 struct mlx4_en_rx_ring *ring = *pring; local
574 mlx4_en_deactivate_rx_ring(struct mlx4_en_priv *priv, struct mlx4_en_rx_ring *ring) argument
623 mlx4_en_rx_mb(struct mlx4_en_priv *priv, struct mlx4_en_rx_ring *ring, struct mlx4_en_rx_desc *rx_desc, struct mlx4_en_rx_mbuf *mb_list, int length) argument
742 struct mlx4_en_rx_ring *ring = priv->rx_ring[cq->ring]; local
916 mlx4_en_config_rss_qp(struct mlx4_en_priv *priv, int qpn, struct mlx4_en_rx_ring *ring, enum mlx4_qp_state *state, struct mlx4_qp *qp) argument
[all...]
/freebsd-11-stable/sys/xen/interface/io/
H A Dconsole.h32 #define MASK_XENCONS_IDX(idx, ring) ((idx) & (sizeof(ring)-1))
/freebsd-11-stable/sys/dev/nxge/xgehal/
H A Dxgehal-ring.c29 #include <dev/nxge/include/xgehal-ring.h>
81 xge_hal_ring_t *ring, int from, int to)
110 xge_os_dma_sync(ring->channel.pdev,
135 xge_hal_ring_t *ring = (xge_hal_ring_t *)userdata; local
138 xge_assert(ring);
142 for (i=ring->rxds_per_block-1; i>=0; i--) {
146 int reserve_index = index * ring->rxds_per_block + i;
149 ring->reserved_rxds_arr[reserve_index] = (char *)item +
150 (ring->rxds_per_block - 1 - i) * ring
80 __hal_ring_rxdblock_link(xge_hal_mempool_h mempoolh, xge_hal_ring_t *ring, int from, int to) argument
249 xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; local
351 xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; local
389 xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; local
467 xge_hal_ring_t *ring = (xge_hal_ring_t *)channelh; local
[all...]
/freebsd-11-stable/sys/dev/vxge/vxgehal/
H A Dvxgehal-ring.c101 * @ringh: Handle to the ring
109 __hal_ring_t *ring = (__hal_ring_t *) ringh; local
112 dma_object = __hal_mempool_memblock_dma(ring->mempool, 0);
123 * @mempoolh: Handle to the memory pool of the ring
165 * @mempoolh: Handle to the memory pool of the ring
222 * @mempoolh: Handle to the memory pool of the ring
223 * @ring: ring
232 __hal_ring_t *ring,
241 vxge_assert((mempoolh != NULL) && (ring !
230 __hal_ring_rxdblock_link( vxge_hal_mempool_h mempoolh, __hal_ring_t *ring, u32 from, u32 to) argument
321 __hal_ring_t *ring = (__hal_ring_t *) userdata; local
435 __hal_ring_t *ring = (__hal_ring_t *) userdata; local
467 __hal_ring_initial_replenish( __hal_ring_t *ring, vxge_hal_reopen_e reopen) argument
527 __hal_ring_t *ring; local
692 __hal_ring_t *ring = (__hal_ring_t *) ringh; local
747 __hal_ring_t *ring = (__hal_ring_t *) ringh; local
806 __hal_ring_t *ring; local
943 __hal_ring_t *ring; local
1018 __hal_ring_t *ring; local
1108 __hal_ring_t *ring; local
1169 __hal_ring_t *ring; local
1300 __hal_ring_t *ring; local
1354 __hal_ring_t *ring; local
1448 __hal_ring_t *ring; local
1777 __hal_ring_t *ring; local
[all...]
/freebsd-11-stable/sys/dev/oce/
H A Doce_util.c149 * @brief Destroy a ring buffer
151 * @param ring ring buffer
155 oce_destroy_ring_buffer(POCE_SOFTC sc, oce_ring_buffer_t *ring) argument
157 oce_dma_free(sc, &ring->dma);
158 free(ring, M_DEVBUF);
169 oce_ring_buffer_t *ring; local
172 ring = malloc(sizeof(oce_ring_buffer_t), M_DEVBUF, M_NOWAIT | M_ZERO);
173 if (ring == NULL)
176 ring
254 oce_page_list(oce_ring_buffer_t *ring, struct phys_addr *pa_list) argument
[all...]
/freebsd-11-stable/sys/contrib/ck/include/
H A Dck_ring.h37 * Concurrent ring buffer.
57 ck_ring_size(const struct ck_ring *ring) argument
61 c = ck_pr_load_uint(&ring->c_head);
62 p = ck_pr_load_uint(&ring->p_tail);
63 return (p - c) & ring->mask;
67 ck_ring_capacity(const struct ck_ring *ring) argument
69 return ring->size;
73 ck_ring_init(struct ck_ring *ring, unsigned int size) argument
76 ring->size = size;
77 ring
88 _ck_ring_enqueue_sp(struct ck_ring *ring, void *CK_CC_RESTRICT buffer, const void *CK_CC_RESTRICT entry, unsigned int ts, unsigned int *size) argument
119 _ck_ring_enqueue_sp_size(struct ck_ring *ring, void *CK_CC_RESTRICT buffer, const void *CK_CC_RESTRICT entry, unsigned int ts, unsigned int *size) argument
134 _ck_ring_dequeue_sc(struct ck_ring *ring, const void *CK_CC_RESTRICT buffer, void *CK_CC_RESTRICT target, unsigned int size) argument
167 _ck_ring_enqueue_mp(struct ck_ring *ring, void *buffer, const void *entry, unsigned int ts, unsigned int *size) argument
253 _ck_ring_enqueue_mp_size(struct ck_ring *ring, void *buffer, const void *entry, unsigned int ts, unsigned int *size) argument
268 _ck_ring_trydequeue_mc(struct ck_ring *ring, const void *buffer, void *data, unsigned int size) argument
293 _ck_ring_dequeue_mc(struct ck_ring *ring, const void *buffer, void *data, unsigned int ts) argument
337 ck_ring_enqueue_spsc_size(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry, unsigned int *size) argument
348 ck_ring_enqueue_spsc(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry) argument
358 ck_ring_dequeue_spsc(struct ck_ring *ring, const struct ck_ring_buffer *buffer, void *data) argument
373 ck_ring_enqueue_mpmc(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry) argument
383 ck_ring_enqueue_mpmc_size(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry, unsigned int *size) argument
394 ck_ring_trydequeue_mpmc(struct ck_ring *ring, const struct ck_ring_buffer *buffer, void *data) argument
404 ck_ring_dequeue_mpmc(struct ck_ring *ring, const struct ck_ring_buffer *buffer, void *data) argument
419 ck_ring_enqueue_spmc_size(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry, unsigned int *size) argument
430 ck_ring_enqueue_spmc(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry) argument
440 ck_ring_trydequeue_spmc(struct ck_ring *ring, const struct ck_ring_buffer *buffer, void *data) argument
449 ck_ring_dequeue_spmc(struct ck_ring *ring, const struct ck_ring_buffer *buffer, void *data) argument
463 ck_ring_enqueue_mpsc(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry) argument
473 ck_ring_enqueue_mpsc_size(struct ck_ring *ring, struct ck_ring_buffer *buffer, const void *entry, unsigned int *size) argument
484 ck_ring_dequeue_mpsc(struct ck_ring *ring, const struct ck_ring_buffer *buffer, void *data) argument
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/
H A Dtst.ring2.d31 * Positive test for ring buffer policy.
33 * SECTION: Buffers and Buffering/ring Policy;
39 #pragma D option bufpolicy=ring
H A Dtst.smallring.d31 * Positive test for ring buffer policy.
33 * SECTION: Buffers and Buffering/ring Policy;
39 #pragma D option bufpolicy=ring
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.caller.d42 #pragma D option bufpolicy=ring
H A Dtst.stack.d40 #pragma D option bufpolicy=ring
H A Dtst.stackdepth.d41 #pragma D option bufpolicy=ring

Completed in 203 milliseconds

123456789