/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/ |
H A D | tst.alignring.d | 31 * 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 D | tst.copyin.d | 45 #pragma D option bufpolicy=ring
|
H A D | tst.hton.d | 30 #pragma D option bufpolicy=ring
|
H A D | tst.index.d | 30 #pragma D option bufpolicy=ring
|
H A D | tst.rw.d | 30 #pragma D option bufpolicy=ring
|
H A D | tst.strchr.d | 30 #pragma D option bufpolicy=ring
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/usdt/ |
H A D | tst.noreapring.ksh | 101 $dtrace -x bufpolicy=ring -ZwqP test_prov\* > /dev/null 2>&1 & 103 echo launched ring buffered enabling as pid $background 108 # defunct: the active ring buffer in the earlier enabling prevents reaping of
|
/freebsd-11-stable/sys/modules/nxge/ |
H A D | Makefile | 36 SRCS+= xgehal-driver.c xgehal-ring.c xgehal-channel.c 46 CWARNFLAGS.xgehal-ring.c= ${NO_WSELF_ASSIGN}
|
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | evergreen.c | 58 int ring, u32 cp_int_cntl); 1605 struct radeon_ring *ring = &rdev->ring[ib->ring]; local 1609 radeon_ring_write(ring, PACKET3(PACKET3_MODE_CONTROL, 0)); 1610 radeon_ring_write(ring, 1); 1612 if (ring->rptr_save_reg) { 1613 next_rptr = ring->wptr + 3 + 4; 1614 radeon_ring_write(ring, PACKET3(PACKET3_SET_CONFIG_REG, 1)); 1615 radeon_ring_write(ring, ((rin 1672 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 1738 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 2422 evergreen_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) argument 3391 struct radeon_ring *ring = &rdev->ring[fence->ring]; local 3417 struct radeon_ring *ring = &rdev->ring[ib->ring]; local 3461 struct radeon_ring *ring = &rdev->ring[ring_index]; local 3517 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local [all...] |
H A D | r420.c | 204 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 213 radeon_ring_lock(rdev, ring, 8); 214 radeon_ring_write(ring, PACKET0(R300_CP_RESYNC_ADDR, 1)); 215 radeon_ring_write(ring, rdev->config.r300.resync_scratch); 216 radeon_ring_write(ring, 0xDEADBEEF); 217 radeon_ring_unlock_commit(rdev, ring); 222 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 227 radeon_ring_lock(rdev, ring, [all...] |
H A D | radeon.h | 129 /* internal ring indices */ 130 /* r1xx+ has gfx CP ring */ 137 /* R600+ has an async dma ring */ 139 /* cayman add a second async dma ring */ 226 /* sync_seq is protected by ring emission lock */ 239 unsigned ring; member in struct:radeon_fence 242 int radeon_fence_driver_start_ring(struct radeon_device *rdev, int ring); 246 int radeon_fence_emit(struct radeon_device *rdev, struct radeon_fence **fence, int ring); 247 void radeon_fence_process(struct radeon_device *rdev, int ring); 250 int radeon_fence_wait_next_locked(struct radeon_device *rdev, int ring); 637 int ring; member in struct:radeon_ib 647 volatile uint32_t *ring; member in struct:radeon_ring 734 volatile uint32_t *ring; member in struct:r600_ih 875 u32 ring; member in struct:radeon_cs_parser 1217 } ring[RADEON_NUM_RINGS]; member in struct:radeon_asic 1608 struct radeon_ring ring[RADEON_NUM_RINGS]; member in struct:radeon_device 1804 radeon_ring_write(struct radeon_ring *ring, uint32_t v) argument [all...] |
H A D | r200.c | 93 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 102 r = radeon_ring_lock(rdev, ring, num_loops * 4 + 64); 108 radeon_ring_write(ring, PACKET0(RADEON_WAIT_UNTIL, 0)); 109 radeon_ring_write(ring, (1 << 16)); 116 radeon_ring_write(ring, PACKET0(0x720, 2)); 117 radeon_ring_write(ring, src_offset); 118 radeon_ring_write(ring, dst_offset); 119 radeon_ring_write(ring, cur_size | (1U << 31) | (1 << 30)); 123 radeon_ring_write(ring, PACKET [all...] |
/freebsd-11-stable/sys/dev/drm2/i915/ |
H A D | intel_overlay.c | 220 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local 224 ret = i915_add_request(ring, NULL, &overlay->last_flip_req); 229 ret = i915_wait_seqno(ring, overlay->last_flip_req); 243 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local 251 ret = intel_ring_begin(ring, 4); 255 intel_ring_emit(ring, MI_OVERLAY_FLIP | MI_OVERLAY_ON); 256 intel_ring_emit(ring, overlay->flip_addr | OFC_UPDATE); 257 intel_ring_emit(ring, MI_WAIT_FOR_EVEN 270 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local 327 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local 370 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local 396 struct intel_ring_buffer *ring = &dev_priv->ring[RCS]; local [all...] |
H A D | i915_gem.c | 1037 i915_gem_check_olr(struct intel_ring_buffer *ring, u32 seqno) argument 1041 DRM_LOCK_ASSERT(ring->dev); 1044 if (seqno == ring->outstanding_lazy_request) 1045 ret = i915_add_request(ring, NULL, NULL); 1052 * @ring: the ring expected to report seqno 1060 static int __wait_seqno(struct intel_ring_buffer *ring, u32 seqno, argument 1063 drm_i915_private_t *dev_priv = ring->dev->dev_private; 1070 if (i915_seqno_passed(ring->get_seqno(ring, tru 1159 i915_wait_seqno(struct intel_ring_buffer *ring, uint32_t seqno) argument 1188 struct intel_ring_buffer *ring = obj->ring; local 1223 struct intel_ring_buffer *ring = obj->ring; local 2146 i915_gem_object_move_to_active(struct drm_i915_gem_object *obj, struct intel_ring_buffer *ring) argument 2213 struct intel_ring_buffer *ring; local 2260 i915_add_request(struct intel_ring_buffer *ring, struct drm_file *file, u32 *out_seqno) argument 2353 i915_gem_reset_ring_lists(struct drm_i915_private *dev_priv, struct intel_ring_buffer *ring) argument 2407 struct intel_ring_buffer *ring; local 2431 i915_gem_retire_requests_ring(struct intel_ring_buffer *ring) argument 2496 struct intel_ring_buffer *ring; local 2508 struct intel_ring_buffer *ring; local 2594 struct intel_ring_buffer *ring = NULL; local 2776 struct intel_ring_buffer *ring; local 3729 struct intel_ring_buffer *ring = NULL; local 4352 struct intel_ring_buffer *ring; local 4426 init_ring_lists(struct intel_ring_buffer *ring) argument [all...] |
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_port.c | 165 const struct mlx4_en_rx_ring *ring = priv->rx_ring[i]; local 167 packets += READ_ONCE(ring->packets); 168 bytes += READ_ONCE(ring->bytes); 176 const struct mlx4_en_tx_ring *ring = priv->tx_ring[i]; local 178 packets += READ_ONCE(ring->packets); 179 bytes += READ_ONCE(ring->bytes); 225 const struct mlx4_en_tx_ring *ring; local 226 ring = priv->tx_ring[i]; 228 priv->port_stats.tx_chksum_offload += ring->tx_csum; 229 priv->port_stats.queue_stopped += ring 463 const struct mlx4_en_tx_ring *ring = priv->tx_ring[i]; local [all...] |
/freebsd-11-stable/sys/dev/wpi/ |
H A D | if_wpi.c | 33 * There is 6 memory rings. 1 command ring, 1 rx data ring & 4 tx data rings. 36 * The rx data ring consists of 32 dma buffers. Two registers are used to 37 * indicate where in the ring the driver and the firmware are up to. The 48 * The command ring operates in the same manner as the tx queues. 435 "could not allocate TX ring %d, error %d\n", i, 441 /* Allocate RX ring. */ 443 device_printf(dev, "could not allocate RX ring, error %d\n", 990 struct wpi_rx_ring *ring = &sc->rxq; local 994 ring 1081 struct wpi_rx_ring *ring = &sc->rxq; local 1104 struct wpi_rx_ring *ring = &sc->rxq; local 1127 struct wpi_rx_ring *ring = &sc->rxq; local 1154 wpi_alloc_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring, uint8_t qid) argument 1230 wpi_update_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) argument 1236 wpi_update_tx_ring_ps(struct wpi_softc *sc, struct wpi_tx_ring *ring) argument 1256 wpi_reset_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) argument 1288 wpi_free_tx_ring(struct wpi_softc *sc, struct wpi_tx_ring *ring) argument 1908 struct wpi_rx_ring *ring = &sc->rxq; local 2054 struct wpi_tx_ring *ring = &sc->txq[desc->qid & 0x3]; local 2109 struct wpi_tx_ring *ring = &sc->txq[WPI_CMD_QUEUE_NUM]; local 2373 struct wpi_tx_ring *ring = &sc->txq[qid]; local 2502 struct wpi_tx_ring *ring = &sc->txq[i]; local 2575 struct wpi_tx_ring *ring; local 2607 struct wpi_tx_ring *ring; local 3040 struct wpi_tx_ring *ring = &sc->txq[ac]; local 3213 struct wpi_tx_ring *ring = &sc->txq[WPI_CMD_QUEUE_NUM]; local [all...] |
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | ixgbe_netmap.c | 172 * Reconcile kernel and user view of the transmit ring. 190 struct netmap_ring *ring = kring->ring; local 191 u_int nm_i; /* index into the netmap ring */ 192 u_int nic_i; /* index into the NIC ring */ 198 * them every half ring, or where NS_REPORT is set 212 * nm_i is the current index in the netmap ring, 213 * nic_i is the corresponding index in the NIC ring. 215 * the NIC ring but leave the netmap ring unchange 376 struct netmap_ring *ring = kring->ring; local [all...] |
/freebsd-11-stable/sys/dev/netmap/ |
H A D | if_ixl_netmap.h | 145 * Reconcile kernel and user view of the transmit ring. 163 struct netmap_ring *ring = kring->ring; local 164 u_int nm_i; /* index into the netmap ring */ 165 u_int nic_i; /* index into the NIC ring */ 171 * them every half ring, or where NS_REPORT is set 185 * nm_i is the current index in the netmap ring, 186 * nic_i is the corresponding index in the NIC ring. 189 * iterate over the netmap ring, fetch length and update 190 * the corresponding slot in the NIC ring 297 struct netmap_ring *ring = kring->ring; local [all...] |
H A D | netmap.c | 68 a system call on the same netmap ring. The OS does not enforce 76 - a spinlock on each ring, to handle producer/consumer races on 78 threads writing from the host stack to the same ring), 84 instance of *_*xsync() on the ring at any time. 87 lock on the ring is not actually used. 122 On the rx ring, the per-port lock is grabbed initially to reserve 123 a number of slot in the ring, then the lock is released, 125 the lock is acquired again and the receive ring is updated. 126 (A similar thing is done on the tx ring for NIC and host stack 159 * In this phase, the sync callbacks for each ring ar 1318 struct netmap_ring *ring = kring->ring; local 1633 nm_txsync_prologue(struct netmap_kring *kring, struct netmap_ring *ring) argument 1697 nm_rxsync_prologue(struct netmap_kring *kring, struct netmap_ring *ring) argument 1761 struct netmap_ring *ring = kring->ring; local 2392 ring_timestamp_set(struct netmap_ring *ring) argument 2871 struct netmap_ring *ring = kring->ring; local 3240 struct netmap_ring *ring; local [all...] |
/freebsd-11-stable/sys/dev/ral/ |
H A D | rt2860.c | 286 "could not allocate Tx ring %d\n", qid); 292 device_printf(sc->sc_dev, "could not allocate Rx ring\n"); 301 /* mgmt ring is broken on RT2860C, use EDCA AC VO ring instead */ 509 rt2860_alloc_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument 517 size, 1, size, 0, NULL, NULL, &ring->desc_dmat); 523 error = bus_dmamem_alloc(ring->desc_dmat, (void **)&ring->txd, 524 BUS_DMA_NOWAIT | BUS_DMA_ZERO, &ring->desc_map); 530 error = bus_dmamap_load(ring 546 rt2860_reset_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument 576 rt2860_free_tx_ring(struct rt2860_softc *sc, struct rt2860_tx_ring *ring) argument 690 rt2860_alloc_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument 767 rt2860_reset_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument 780 rt2860_free_rx_ring(struct rt2860_softc *sc, struct rt2860_rx_ring *ring) argument 1130 struct rt2860_tx_ring *ring = &sc->txq[qid]; local 1455 struct rt2860_tx_ring *ring; local 1732 struct rt2860_tx_ring *ring; local [all...] |
/freebsd-11-stable/sys/dev/xen/netfront/ |
H A D | netfront.c | 167 netif_rx_front_ring_t ring; member in struct:netfront_rxq 187 netif_tx_front_ring_t ring; member in struct:netfront_txq 371 * structures and the ring buffers for communication with the backend, and 488 err = xs_printf(*xst, path, "tx-ring-ref","%u", txq->ring_ref); 490 message = "writing tx ring-ref"; 493 err = xs_printf(*xst, path, "rx-ring-ref","%u", rxq->ring_ref); 495 message = "writing rx ring-ref"; 648 if (RING_HAS_UNCONSUMED_RESPONSES(&txq->ring)) 684 free(rxq->ring.sring, M_DEVBUF); 717 rxq->ring [all...] |
/freebsd-11-stable/sys/dev/oce/ |
H A D | oce_if.h | 293 #define RING_NUM_PENDING(ring) ring->num_used 294 #define RING_FULL(ring) (ring->num_used == ring->num_items) 295 #define RING_EMPTY(ring) (ring->num_used == 0) 296 #define RING_NUM_FREE(ring) \ 297 (uint32_t)(ring->num_items - ring 605 oce_ring_buffer_t *ring; member in struct:oce_eq 639 oce_ring_buffer_t *ring; member in struct:oce_cq 655 oce_ring_buffer_t *ring; member in struct:oce_mq 697 oce_ring_buffer_t *ring; member in struct:oce_wq 751 oce_ring_buffer_t *ring; member in struct:oce_rq [all...] |
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | pci_virtio_net.c | 293 * But, will be called when the rx ring hasn't yet 336 * No more packets, but still some avail ring 374 struct netmap_ring *ring = NETMAP_TXRING(nmd->nifp, r); local 378 if (nm_ring_empty(ring)) { 386 cur = ring->cur; 387 idx = ring->slot[cur].buf_idx; 388 buf = NETMAP_BUF(ring, idx); 396 ring->slot[cur].len = len; 397 ring->head = ring 414 struct netmap_ring *ring = NETMAP_RXRING(nmd->nifp, r); local [all...] |
/freebsd-11-stable/sys/xen/interface/io/ |
H A D | ring.h | 2 * ring.h 4 * Shared producer-consumer ring macros. 48 * Calculate size of a shared ring, given the total available space for the 49 * ring and indexes (_sz), and the name tag of the request/response structure. 50 * A ring contains as many entries as will fit, rounded down to the nearest 54 (__RD32(((_sz) - offsetof(struct _s##_sring, ring)) / \ 55 sizeof(((struct _s##_sring *)0)->ring[0]))) 60 (__RD32(((_sz) - (long)(_s)->ring + (long)(_s)) / sizeof((_s)->ring[0]))) 63 * Macros to make the correct C datatypes for a new kind of ring [all...] |
/freebsd-11-stable/sys/dev/drm/ |
H A D | via_dma.c | 139 * Checks whether buffer head has reach the end. Rewind the ring buffer 142 * Returns virtual pointer to ring buffer. 168 if (dev_priv->ring.virtual_start) { 171 drm_core_ioremapfree(&dev_priv->ring.map, dev); 172 dev_priv->ring.virtual_start = NULL; 193 if (dev_priv->ring.virtual_start != NULL) { 208 dev_priv->ring.map.offset = dev->agp->base + init->offset; 209 dev_priv->ring.map.size = init->size; 210 dev_priv->ring.map.type = 0; 211 dev_priv->ring [all...] |