/freebsd-11-stable/sys/dev/xen/netback/ |
H A D | netback.c | 164 netif_tx_back_ring_t *ring, int error); 183 netif_rx_back_ring_t *ring); 202 * stored in the Xen tx ring. Applicable to both RX and TX packets 215 * through the last will be sequential modulo the ring size 313 * \brief Configuration data for a shared memory request ring 319 * Runtime structures for ring access. Unfortunately, TX and RX rings 330 * mapping the ring and required to unmap it when a connection 335 /** The pseudo-physical address where ring memory is mapped.*/ 338 /** KVA address where ring memory is mapped. */ 342 * Grant table handles, one per-ring pag 705 struct xnb_ring_config *ring = &xnb->ring_configs[ring_type]; local 1606 xnb_txpkt2rsp(const struct xnb_pkt *pkt, netif_tx_back_ring_t *ring, int error) argument 2034 xnb_rxpkt2rsp(const struct xnb_pkt *pkt, const gnttab_copy_table gnttab, int n_entries, netif_rx_back_ring_t *ring) argument 2398 xnb_send(netif_rx_back_ring_t *ring, domid_t otherend, const struct mbuf *mbufc, gnttab_copy_table gnttab) argument [all...] |
/freebsd-11-stable/sys/dev/iwm/ |
H A D | if_iwm.c | 955 iwm_alloc_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument 960 ring->cur = 0; 964 error = iwm_dma_contig_alloc(sc->sc_dmat, &ring->desc_dma, size, 256); 967 "could not allocate RX ring DMA memory\n"); 970 ring->desc = ring->desc_dma.vaddr; 973 error = iwm_dma_contig_alloc(sc->sc_dmat, &ring->stat_dma, 974 sizeof(*ring->stat), 16); 980 ring->stat = ring 1026 iwm_reset_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument 1040 iwm_free_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring) argument 1073 iwm_alloc_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring, int qid) argument 1153 iwm_reset_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring) argument 1181 iwm_free_tx_ring(struct iwm_softc *sc, struct iwm_tx_ring *ring) argument 3051 struct iwm_rx_ring *ring = &sc->rxq; local 3353 struct iwm_tx_ring *ring = &sc->txq[qid]; local 3399 struct iwm_tx_ring *ring = &sc->txq[IWM_MVM_CMD_QUEUE]; local 3603 struct iwm_tx_ring *ring; local 5657 struct iwm_rx_ring *ring = &sc->rxq; local 5745 struct iwm_tx_ring *ring = &sc->txq[i]; local [all...] |
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | rv770.c | 322 rdev->ring[RADEON_RING_TYPE_GFX_INDEX].ready = false; 365 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 367 radeon_ring_fini(rdev, ring); 368 radeon_scratch_free(rdev, ring->rptr_save_reg); 913 struct radeon_ring *ring = &rdev->ring[ring_index]; local 926 r = radeon_ring_lock(rdev, ring, num_loops * 5 + 8); 933 if (radeon_fence_need_sync(*fence, ring->idx)) { 934 radeon_semaphore_sync_rings(rdev, sem, (*fence)->ring, 969 struct radeon_ring *ring; local [all...] |
H A D | rv515.c | 66 void rv515_ring_start(struct radeon_device *rdev, struct radeon_ring *ring) argument 70 r = radeon_ring_lock(rdev, ring, 64); 74 radeon_ring_write(ring, PACKET0(ISYNC_CNTL, 0)); 75 radeon_ring_write(ring, 80 radeon_ring_write(ring, PACKET0(WAIT_UNTIL, 0)); 81 radeon_ring_write(ring, WAIT_2D_IDLECLEAN | WAIT_3D_IDLECLEAN); 82 radeon_ring_write(ring, PACKET0(R300_DST_PIPE_CONFIG, 0)); 83 radeon_ring_write(ring, R300_PIPE_AUTO_CONFIG); 84 radeon_ring_write(ring, PACKET0(GB_SELECT, 0)); 85 radeon_ring_write(ring, [all...] |
H A D | r100.c | 850 struct radeon_ring *ring = &rdev->ring[fence->ring]; local 854 radeon_ring_write(ring, PACKET0(RADEON_RB3D_DSTCACHE_CTLSTAT, 0)); 855 radeon_ring_write(ring, RADEON_RB3D_DC_FLUSH_ALL); 856 radeon_ring_write(ring, PACKET0(RADEON_RB3D_ZCACHE_CTLSTAT, 0)); 857 radeon_ring_write(ring, RADEON_RB3D_ZC_FLUSH_ALL); 859 radeon_ring_write(ring, PACKET0(RADEON_WAIT_UNTIL, 0)); 860 radeon_ring_write(ring, RADEON_WAIT_2D_IDLECLEAN | RADEON_WAIT_3D_IDLECLEAN); 861 radeon_ring_write(ring, PACKET 873 r100_semaphore_ring_emit(struct radeon_device *rdev, struct radeon_ring *ring, struct radeon_semaphore *semaphore, bool emit_wait) argument 888 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 971 r100_ring_start(struct radeon_device *rdev, struct radeon_ring *ring) argument 1097 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 2628 r100_gpu_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) argument 3054 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 3737 r100_ring_test(struct radeon_device *rdev, struct radeon_ring *ring) argument 3779 struct radeon_ring *ring = &rdev->ring[RADEON_RING_TYPE_GFX_INDEX]; local 3792 r100_ib_test(struct radeon_device *rdev, struct radeon_ring *ring) argument [all...] |
H A D | radeon_cs.c | 101 static int radeon_cs_get_ring(struct radeon_cs_parser *p, u32 ring, s32 priority) argument 105 switch (ring) { 107 DRM_ERROR("unknown ring id: %d\n", ring); 110 p->ring = RADEON_RING_TYPE_GFX_INDEX; 115 p->ring = CAYMAN_RING_TYPE_CP1_INDEX; 117 p->ring = CAYMAN_RING_TYPE_CP2_INDEX; 119 p->ring = RADEON_RING_TYPE_GFX_INDEX; 124 p->ring = R600_RING_TYPE_DMA_INDEX; 126 p->ring 167 u32 ring = RADEON_CS_RING_GFX; local [all...] |
H A D | radeon_test.c | 45 int r, ring; local 49 ring = radeon_copy_dma_ring_index(rdev); 52 ring = radeon_copy_blit_ring_index(rdev); 62 * (Total GTT - IB pool - writeback page - ring buffers) / test size 66 n -= rdev->ring[i].ring_size; 128 if (ring == R600_RING_TYPE_DMA_INDEX) 174 if (ring == R600_RING_TYPE_DMA_INDEX) 275 DRM_ERROR("Failed to lock ring A %d\n", ringA->idx); 303 DRM_ERROR("Failed to lock ring B %p\n", ringB); 324 DRM_ERROR("Failed to lock ring [all...] |
/freebsd-11-stable/sys/dev/nxge/include/ |
H A D | xgehal.h | 41 #include <dev/nxge/include/xgehal-ring.h>
|
/freebsd-11-stable/sys/dev/iwi/ |
H A D | if_iwi.c | 335 device_printf(dev, "could not allocate Cmd ring\n"); 344 device_printf(dev, "could not allocate Tx ring %d\n", 351 device_printf(dev, "could not allocate Rx ring\n"); 546 iwi_alloc_cmd_ring(struct iwi_softc *sc, struct iwi_cmd_ring *ring, int count) argument 550 ring->count = count; 551 ring->queued = 0; 552 ring->cur = ring->next = 0; 557 NULL, NULL, &ring->desc_dmat); 563 error = bus_dmamem_alloc(ring 584 iwi_reset_cmd_ring(struct iwi_softc *sc, struct iwi_cmd_ring *ring) argument 591 iwi_free_cmd_ring(struct iwi_softc *sc, struct iwi_cmd_ring *ring) argument 605 iwi_alloc_tx_ring(struct iwi_softc *sc, struct iwi_tx_ring *ring, int count, bus_addr_t csr_ridx, bus_addr_t csr_widx) argument 671 iwi_reset_tx_ring(struct iwi_softc *sc, struct iwi_tx_ring *ring) argument 698 iwi_free_tx_ring(struct iwi_softc *sc, struct iwi_tx_ring *ring) argument 739 iwi_alloc_rx_ring(struct iwi_softc *sc, struct iwi_rx_ring *ring, int count) argument 799 iwi_reset_rx_ring(struct iwi_softc *sc, struct iwi_rx_ring *ring) argument 805 iwi_free_rx_ring(struct iwi_softc *sc, struct iwi_rx_ring *ring) argument [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/misc/ |
H A D | tst.roch.d | 30 * ASSERTION: test for assertion failure in the ring buffer code 32 * SECTION: Buffers and Buffering/ring Policy; Misc 39 * ring buffer code. 43 #pragma D option bufpolicy=ring
|
/freebsd-11-stable/sys/dev/netmap/ |
H A D | if_em_netmap.h | 113 * Reconcile kernel and user view of the transmit ring. 120 struct netmap_ring *ring = kring->ring; local 121 u_int nm_i; /* index into the netmap ring */ 122 u_int nic_i; /* index into the NIC ring */ 126 /* generate an interrupt approximately every half ring */ 144 struct netmap_slot *slot = &ring->slot[nm_i]; 165 /* Fill the slot in the NIC ring. */ 177 /* synchronize the NIC ring */ 206 * Reconcile kernel and user view of the receive ring 213 struct netmap_ring *ring = kring->ring; local [all...] |
H A D | if_igb_netmap.h | 81 * Reconcile kernel and user view of the transmit ring. 88 struct netmap_ring *ring = kring->ring; local 89 u_int nm_i; /* index into the netmap ring */ 90 u_int nic_i; /* index into the NIC ring */ 94 /* generate an interrupt approximately every half ring */ 115 struct netmap_slot *slot = &ring->slot[nm_i]; 136 /* Fill the slot in the NIC ring. */ 161 /* synchronize the NIC ring */ 188 * Reconcile kernel and user view of the receive ring 195 struct netmap_ring *ring = kring->ring; local [all...] |
H A D | if_lem_netmap.h | 97 * Reconcile kernel and user view of the transmit ring. 104 struct netmap_ring *ring = kring->ring; local 105 u_int nm_i; /* index into the netmap ring */ 106 u_int nic_i; /* index into the NIC ring */ 109 /* generate an interrupt approximately every half ring */ 126 struct netmap_slot *slot = &ring->slot[nm_i]; 147 /* Fill the slot in the NIC ring. */ 160 /* synchronize the NIC ring */ 188 * Reconcile kernel and user view of the receive ring 195 struct netmap_ring *ring = kring->ring; local [all...] |
H A D | ixgbe_netmap.h | 157 * Reconcile kernel and user view of the transmit ring. 175 struct netmap_ring *ring = kring->ring; local 176 u_int nm_i; /* index into the netmap ring */ 177 u_int nic_i; /* index into the NIC ring */ 183 * them every half ring, or where NS_REPORT is set 197 * nm_i is the current index in the netmap ring, 198 * nic_i is the corresponding index in the NIC ring. 200 * the NIC ring but leave the netmap ring unchange 362 struct netmap_ring *ring = kring->ring; local [all...] |
H A D | netmap_pipe.c | 189 struct netmap_ring *txring = txkring->ring, *rxring = rxkring->ring; 241 struct netmap_ring *txring = txkring->ring, *rxring = rxkring->ring; 396 /* mark the peer ring as needed */ 427 /* copy the buffers from the non-fake ring */ 435 memcpy(dring->ring->slot, 436 sring->ring->slot, 544 * of each ring. The reason is this: If the user is behaving correctly, 546 * some ring 555 struct netmap_ring *ring = kring->ring; local [all...] |
/freebsd-11-stable/sys/dev/rt/ |
H A D | if_rtvar.h | 65 #define RT_SOFTC_TX_RING_LOCK(ring) mtx_lock(&(ring)->lock) 66 #define RT_SOFTC_TX_RING_UNLOCK(ring) mtx_unlock(&(ring)->lock) 67 #define RT_SOFTC_TX_RING_ASSERT_LOCKED(ring) \ 68 mtx_assert(&(ring)->lock, MA_OWNED)
|
/freebsd-11-stable/sys/dev/drm/ |
H A D | radeon_cp.c | 610 dev_priv->ring.tail = cur_read_ptr; 681 /* Reset the CP ring */ 731 /* Initialize the ring buffer's read and write pointers */ 735 dev_priv->ring.tail = cur_read_ptr; 750 /* Set ring buffer size */ 754 (dev_priv->ring.fetch_size_l2ow << 18) | 755 (dev_priv->ring.rptr_update_l2qw << 8) | 756 dev_priv->ring.size_l2qw); 759 (dev_priv->ring.fetch_size_l2ow << 18) | 760 (dev_priv->ring 1903 drm_radeon_ring_buffer_t *ring = &dev_priv->ring; local 2097 u32 *ring; local [all...] |
H A D | r128_cce.c | 217 if (GET_RING_HEAD(dev_priv) == dev_priv->ring.tail) { 243 dev_priv->cce_mode | dev_priv->ring.size_l2qw 259 dev_priv->ring.tail = 0; 302 /* Reset the CCE ring */ 388 /* We don't support anything other than bus-mastering ring mode, 389 * but the ring can be in either AGP or PCI space for the ring 478 DRM_ERROR("could not find cce ring region!\n"); 485 DRM_ERROR("could not find ring read pointer!\n"); 545 dev_priv->ring 864 drm_r128_ring_buffer_t *ring = &dev_priv->ring; local [all...] |
/freebsd-11-stable/sys/dev/drm2/i915/ |
H A D | i915_dma.c | 41 #define LP_RING(d) (&((struct drm_i915_private *)(d))->ring[RCS]) 53 * Lock test for when it's just for synchronization of ring access. 56 * has access to the ring. 107 struct intel_ring_buffer *ring = LP_RING(dev_priv); local 114 if (ring->status_page.gfx_addr) { 115 ring->status_page.gfx_addr = 0; 128 struct intel_ring_buffer *ring = LP_RING(dev_priv); local 131 * We should never lose context on the ring with modesetting 137 ring->head = I915_READ_HEAD(ring) 223 struct intel_ring_buffer *ring = LP_RING(dev_priv); local 767 struct intel_ring_buffer *ring = LP_RING(dev_priv); local 1052 struct intel_ring_buffer *ring; local [all...] |
/freebsd-11-stable/tools/tools/netmap/ |
H A D | pkt-gen.c | 758 dump_payload(const char *_p, int len, struct netmap_ring *ring, int cur) argument 766 printf("ring %p cur %5d [buf %6d flags 0x%04x len %5d]\n", 767 ring, cur, ring->slot[cur].buf_idx, 768 ring->slot[cur].flags, len); 1153 * create and enqueue a batch of packets on a ring. 1158 send_packets(struct netmap_ring *ring, struct pkt *pkt, void *frame, argument 1161 u_int n, sent, head = ring->head; 1164 struct netmap_slot *slot = &ring->slot[head]; 1166 n = nm_ring_space(ring); 1316 struct netmap_ring *ring = NETMAP_TXRING(nifp, targ->nmd->first_tx_ring); local 1761 receive_packets(struct netmap_ring *ring, u_int limit, int dump, uint64_t *bytes) argument 1916 struct netmap_ring *ring; local 2099 multi_slot_to_string(struct netmap_ring *ring, unsigned int head, unsigned int nfrags, char *strbuf, size_t strbuflen) argument 2127 struct netmap_ring *ring; local 3159 struct netmap_ring *ring = NETMAP_TXRING(nifp, i); local 3164 struct netmap_ring *ring = NETMAP_RXRING(nifp, i); local [all...] |
/freebsd-11-stable/sys/dev/qlxgb/ |
H A D | qla_isr.c | 56 uint32_t idx, length, status, ring; local 65 ring = (uint32_t)Q8_STAT_DESC_TYPE(data); 70 if (ring == 0) { 72 device_printf(ha->pci_dev, "%s: ring[%d] index[0x%08x]" 74 __func__, ring, idx, length); 79 device_printf(ha->pci_dev, "%s: ring[%d] index[0x%08x]" 81 __func__, ring, idx, length); 86 if (ring == 0) 93 __func__, ring, idx, sds_idx)); 99 __func__, ring, id [all...] |
/freebsd-11-stable/sys/dev/vmware/vmxnet3/ |
H A D | vmx_netmap.h | 137 struct netmap_ring *ring = kring->ring; local 146 * them every half ring, or where NS_REPORT is set 157 /* no need to dma-sync the ring; memory barriers are sufficient */ 163 struct netmap_slot *slot = &ring->slot[nm_i]; 176 /* fill the slot in the NIC ring */ 241 struct netmap_ring *ring = kring->ring; local 259 /* no need to dma-sync the ring; memory barriers are sufficient */ 283 ring [all...] |
/freebsd-11-stable/usr.bin/mail/ |
H A D | cmd2.c | 478 char **ap, **ring; local 484 ring = (char **)salloc((tab->i_count + 1) * sizeof(char *)); 485 ap = ring; 490 qsort(ring, tab->i_count, sizeof(char *), igcomp); 491 for (ap = ring; *ap != 0; ap++)
|
/freebsd-11-stable/sys/contrib/ncsw/Peripherals/QM/ |
H A D | qman_private.h | 213 struct qm_eqcr_entry *ring, *cursor; member in struct:qm_eqcr 225 struct qm_dqrr_entry *ring, *cursor; member in struct:qm_dqrr 234 #define QM_DQRR_FLAG_RE 0x01 /* Stash ring entries */ 239 struct qm_mr_entry *ring, *cursor; member in struct:qm_mr
|
/freebsd-11-stable/sys/dev/bnxt/ |
H A D | if_bnxt.c | 378 /* Set up the completion ring */ 380 softc->tx_cp_rings[i].ring.phys_id = 382 softc->tx_cp_rings[i].ring.softc = softc; 383 softc->tx_cp_rings[i].ring.id = 385 softc->tx_cp_rings[i].ring.doorbell = 386 softc->tx_cp_rings[i].ring.id * 0x80; 387 softc->tx_cp_rings[i].ring.ring_size = 389 softc->tx_cp_rings[i].ring.vaddr = vaddrs[i * ntxqs]; 390 softc->tx_cp_rings[i].ring.paddr = paddrs[i * ntxqs]; 392 /* Set up the TX ring */ [all...] |