Home
last modified time | relevance | path

Searched full:rings (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/freebsd/sys/dev/qat/qat_common/
H A Dadf_cfg_instance.c13 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init()
16 if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_ASYM && in crypto_instance_init()
17 bundle->rings[i]->mode == TX) { in crypto_instance_init()
18 instance->asym_tx = bundle->rings[i]->number; in crypto_instance_init()
19 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init()
25 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init()
28 if (bundle->rings[i]->serv_type == ADF_ACCEL_SERV_SYM && in crypto_instance_init()
29 bundle->rings[i]->mode == TX) { in crypto_instance_init()
30 instance->sym_tx = bundle->rings[i]->number; in crypto_instance_init()
31 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init()
[all …]
H A Dadf_transport.c192 /* Read the ring status CSR to determine which rings are empty. */ in adf_poll_bank()
195 /* Complement to find which rings have data to be processed. */ in adf_poll_bank()
198 /* Return RETRY if the bank polling rings in adf_poll_bank()
207 * Loop over all rings within this bank. in adf_poll_bank()
209 * rings hence while we loop over all rings in the in adf_poll_bank()
214 ring = &bank->rings[ring_num]; in adf_poll_bank()
260 /* if there are no polling rings on this bank in adf_poll_all_banks()
427 ring = &bank->rings[ring_num]; in adf_create_ring()
504 adf_handle_response(&bank->rings[i], 0); in adf_ring_response_handler()
593 /* Allocate the rings in the bank */ in adf_init_bank()
[all …]
H A Dadf_freebsd_uio_cleanup.c236 * Normalize messages in tx rings to match rx ring in is_all_resp_recvd()
299 * 1. disable all tx rings in cleanup_orphan_ring()
301 * 3. reset all rings in cleanup_orphan_ring()
307 "Failed to clean up orphan rings"); in cleanup_orphan_ring()
313 * there is no inflight request in the rings and that in cleanup_orphan_ring()
363 "Process %d %s exit with orphan rings %lx:%lx\n", in adf_uio_do_cleanup_orphan()
379 * If the user process died without releasing the rings in adf_uio_do_cleanup_orphan()
/freebsd/sys/net/
H A Dnetmap.h119 * + NIOCREGIF can attach to PIPE rings sharing the same memory
125 * + NIOCREGIF can also attach to 'monitor' rings that replicate
126 * the content of specific rings, also from the same memory space.
130 * netmap:foo all NIC rings pairs
131 * netmap:foo^ only host rings pairs
132 * netmap:foo^k the k-th host rings pair
133 * netmap:foo+ all NIC rings + host rings pairs
134 * netmap:foo-k the k-th NIC rings pair
135 * netmap:foo{k PIPE rings pair k, master side
136 * netmap:foo}k PIPE rings pair k, slave side
[all …]
H A Dnetmap_legacy.h70 * Indicates how rings should be bound to the file descriptors.
73 * the actual rings to bind. NETMAP_NO_TX_POLL is unaffected.
78 * 0 (default) binds all physical rings
80 * NETMAP_SW_RING binds only the host tx/rx rings
83 * packets on tx rings only if POLLOUT is set.
87 * packets on rx rings also when POLLIN is NOT set.
98 * nr_flags is the recommended mode to indicate which rings should
118 * which rings to use. Used by valectl -a ...
155 uint32_t nr_tx_slots; /* slots in tx rings */
156 uint32_t nr_rx_slots; /* slots in rx rings */
[all …]
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dflowring.c158 if (flow->rings[i] == NULL) in brcmf_flowring_create()
176 flow->rings[i] = ring; in brcmf_flowring_create()
188 ring = flow->rings[flowid]; in brcmf_flowring_tid()
208 ring = flow->rings[flowid]; in brcmf_flowring_block()
217 if ((flow->rings[i]) && (i != flowid)) { in brcmf_flowring_block()
218 ring = flow->rings[i]; in brcmf_flowring_block()
228 flow->rings[flowid]->blocked = blocked; in brcmf_flowring_block()
252 ring = flow->rings[flowid]; in brcmf_flowring_delete()
263 flow->rings[flowid] = NULL; in brcmf_flowring_delete()
280 ring = flow->rings[flowid]; in brcmf_flowring_enqueue()
[all …]
/freebsd/share/man/man4/
H A Dnetmap.4136 .Em ( rings )
145 the rings, and possibly implement zero-copy forwarding
174 Ports and rings are created and controlled through a file descriptor,
240 const uint32_t ni_tx_rings; /* NIC tx rings */
241 const uint32_t ni_rx_rings; /* NIC rx rings */
247 Indicates the number of available rings
250 The number of tx and rx rings
298 Implements transmit and receive rings, with read/write
335 .Sh RINGS, BUFFERS AND DATA I/O
336 .Va Rings
[all …]
/freebsd/sys/dev/rtwn/rtl8192c/pci/
H A Dr92ce_rx.c58 r92ce_get_intr_status(struct rtwn_pci_softc *pc, int *rings) in r92ce_get_intr_status() argument
64 *rings = 0; in r92ce_get_intr_status()
78 *rings |= (1 << RTWN_PCI_BEACON_QUEUE); in r92ce_get_intr_status()
80 *rings |= (1 << RTWN_PCI_HIGH_QUEUE); in r92ce_get_intr_status()
82 *rings |= (1 << RTWN_PCI_MGNT_QUEUE); in r92ce_get_intr_status()
84 *rings |= (1 << RTWN_PCI_BK_QUEUE); in r92ce_get_intr_status()
86 *rings |= (1 << RTWN_PCI_BE_QUEUE); in r92ce_get_intr_status()
88 *rings |= (1 << RTWN_PCI_VI_QUEUE); in r92ce_get_intr_status()
90 *rings |= (1 << RTWN_PCI_VO_QUEUE); in r92ce_get_intr_status()
/freebsd/sys/contrib/device-tree/Bindings/soc/ti/
H A Dk3-ringacc.yaml56 ti,num-rings:
58 description: Number of rings supported by RA
60 ti,sci-rm-range-gp-rings:
69 - ti,num-rings
70 - ti,sci-rm-range-gp-rings
90 ti,num-rings = <818>;
91 ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
H A Dk3-ringacc.txt25 - ti,num-rings : Number of rings supported by RA
26 - ti,sci-rm-range-gp-rings : TI-SCI RM subtype for GP ring range
45 ti,num-rings = <818>;
46 ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
/freebsd/usr.sbin/valectl/
H A Dvalectl.867 Print the number of receive rings of
117 it supplies the number of tx and rx rings and slots.
119 of rx slots, number of tx rings and number of rx rings.
122 for both the number of tx and the number of rx rings.
124 of rings.
134 If 0, then all interface rings will be polled by a single thread, running
140 rings and cores.
/freebsd/sys/dev/rtwn/rtl8188e/pci/
H A Dr88ee_rx.c54 r88ee_get_intr_status(struct rtwn_pci_softc *pc, int *rings) in r88ee_get_intr_status() argument
60 *rings = 0; in r88ee_get_intr_status()
78 *rings |= (1 << RTWN_PCI_HIGH_QUEUE); in r88ee_get_intr_status()
80 *rings |= (1 << RTWN_PCI_MGNT_QUEUE); in r88ee_get_intr_status()
82 *rings |= (1 << RTWN_PCI_BK_QUEUE); in r88ee_get_intr_status()
84 *rings |= (1 << RTWN_PCI_BE_QUEUE); in r88ee_get_intr_status()
86 *rings |= (1 << RTWN_PCI_VI_QUEUE); in r88ee_get_intr_status()
88 *rings |= (1 << RTWN_PCI_VO_QUEUE); in r88ee_get_intr_status()
/freebsd/usr.bin/sed/tests/
H A Dhanoi.sed8 # sequence of states involved in moving 4 rings, the largest called "a" and
10 # that the rings on any tower at any time are in descending order of size.
11 # You can start with a different arrangement and a different number of rings,
13 # to the middle tower. The rules are: the names of the rings must all be
16 # are in alphabetical order (i.e. rings are in descending order of size).
26 # of the alphabetical order of the names of the rings. The b at the
30 # Although this version is "limited" to 26 rings because of the size of the
31 # alphabet, one could write a script using the same idea in which the rings
/freebsd/tools/tools/netmap/
H A Dpkt-gen.8141 to handle all the netmap rings.
151 must be less than or equal to the number of TX (or RX) rings available
214 Exit immediately if all the RX rings are empty the first time they are
230 Configuration in terms of number of rings and slots to be used when
258 transmit and receive rings to
261 have several transmit and receive rings that are used by the operating
264 can peel off one or more of the transmit or receive rings for its own
272 access to a pair of transmit and receive rings that are separate from
H A Dbridge.855 When bridging the hardware rings of a physical port with the corresponding
56 host rings, it is necessary to turn off the offloads, because netmap does
57 not prepare the NIC rings with offload information.
/freebsd/sys/dev/qat/qat_api/include/
H A Dicp_sal_poll.h13 * These functions retrieve requests on appropriate response rings and
27 * response rings associated with that instance and dispatch the
49 * @retval CPA_STATUS_RETRY There are no responses on the rings
60 * response rings associated with that instance and dispatch the
82 * @retval CPA_STATUS_RETRY There are no responses on the rings
93 * response rings associated with that instance and dispatch the
115 * @retval CPA_STATUS_RETRY There are no responses on the rings
126 * response rings associated with that instance and dispatch the
148 * @retval CPA_STATUS_RETRY There are no responses on the rings
291 * This function polls the rings on the given bank to determine
[all …]
/freebsd/lib/libnetmap/
H A Dlibnetmap.h114 * specify the rings/slots numbers (effective only on
120 * *rings number of tx and rx rings
121 * tx-rings number of tx rings
122 * rx-rings number of rx rings
123 * host-rings number of tx and rx host rings
124 * host-tx-rings number of host tx rings
125 * host-rx-rings number of host rx rings
217 * The rings available for tx are in the [first_tx_ring, last_tx_ring]
242 * to use all available tx rings in turn. Note: the packet is copied.
335 * Registers the port with netmap and maps the rings and buffers into the
[all …]
/freebsd/sys/dev/netmap/
H A Dnetmap_kern.h376 * The indexes in the NIC and netmap rings are offset by nkr_hwofs slots.
379 * RX rings: the next empty buffer (hwtail + hwofs) coincides with
381 * TX rings: hwcur + hwofs coincides with next_to_send
389 * In RX rings (used for VALE ports),
391 * In TX rings (used for NIC or host stack ports)
402 * for NIC rings, and for TX rings attached to the host stack.
404 * RX rings attached to the host stack use an mbq (rx_queue) on both
408 * RX rings attached to the VALE switch are accessed by both senders
418 * Copies of values in user rings, so we do not need to look
448 * indexes in the netmap rings remain the same. nkr_hwofs
[all …]
H A Dnetmap.c40 * The memory pool contains packet buffers and "netmap rings",
65 The netmap rings and data structures may be shared among multiple
75 Within the kernel, access to the netmap rings is protected as follows:
78 RX rings attached to the host stack (against multiple host
80 and on 'destination' rings attached to a VALE switch
81 (i.e. RX rings in VALE ports, and TX rings in NIC/host ports)
86 For rings connected to user file
89 For NIC RX rings connected to a VALE switch, an atomic_test_and_set()
92 For NIC TX rings connected to a VALE switch, the lock arbitrates
158 * and all necessary netmap rings, filling them with netmap buffers.
[all …]
H A Dnetmap_monitor.c35 * with as many pairs of netmap rings as the monitored adapter.
36 * However, only the rx rings are actually used. Each monitor rx ring receives
37 * the traffic transiting on both the tx and rx corresponding rings in the
137 /* nm_sync callback for the monitor's own tx rings.
147 /* nm_sync callback for the monitor's own rx rings.
178 /* override the host rings callbacks */ in netmap_monitor_krings_create()
255 * nm_notify() callbacks in the monitored rings.
442 * We need to notify the monitors that the monitored rings are gone.
444 * Note that the rings are already stopped when this happens, so
691 /* callback used to replace the nm_sync callback in the monitored tx rings */
[all …]
H A Dnetmap_bdg.c505 /* Check if we need to skip the host rings. */ in netmap_get_bdg_na()
850 * more consecutive rings are polled. in get_polling_cfg()
854 nm_prerr("Rings %u-%u not in range (have %d rings)", in get_polling_cfg()
863 /* Poll all the rings using a core specified by nr_first_cpu_id. in get_polling_cfg()
1169 * The main task is to swap the meaning of tx and rx rings to match the
1192 * Additionally, the bwrap can optionally attach the host rings pair
1329 /* if the host rings have been attached to switch, in netmap_bwrap_reg()
1366 /* intercept the hwna nm_nofify callback on the hw rings */ in netmap_bwrap_reg()
1402 /* reset the number of host rings to default */ in netmap_bwrap_reg()
1444 /* limit the number of host rings to that of hw */ in netmap_bwrap_config()
[all …]
/freebsd/sys/contrib/xen/io/
H A Dlibxenvchan.h43 * that assumes all rings reside in a single contiguous memory space. This is
45 * for the setup. Unlike the producer-consumer rings defined in ring.h, the
46 * size of the rings used in vchan are determined at execution time instead of
47 * compile time, so the macros in ring.h cannot be used to access the rings.
71 * size of the rings, which determines their location
/freebsd/sys/dev/qlxgbe/
H A Dql_ioctl.h153 uint32_t num_tx_rings; /* number of tx rings */
156 uint32_t txr_offset; /* start of tx ring [0 - #rings] content */
158 uint32_t num_rx_rings; /* number of rx rings */
161 uint32_t rxr_offset; /* start of rx ring [0 - #rings] content */
163 uint32_t num_sds_rings; /* number of sds rings */
166 uint32_t sds_offset; /* start of sds ring [0 - #rings] content */
/freebsd/sys/contrib/alpine-hal/
H A Dal_hal_udma_main.c179 al_reg_write32(&udma_q->q_regs->rings.drbp_low, in al_udma_q_set_pointers()
181 al_reg_write32(&udma_q->q_regs->rings.drbp_high, in al_udma_q_set_pointers()
184 al_reg_write32(&udma_q->q_regs->rings.drl, udma_q->size); in al_udma_q_set_pointers()
194 al_reg_write32(&udma_q->q_regs->rings.crbp_low, in al_udma_q_set_pointers()
196 al_reg_write32(&udma_q->q_regs->rings.crbp_high, in al_udma_q_set_pointers()
213 uint32_t reg = al_reg_read32(&udma_q->q_regs->rings.cfg); in al_udma_q_enable()
222 al_reg_write32(&udma_q->q_regs->rings.cfg, reg); in al_udma_q_enable()
384 status_reg = &udma_q->q_regs->rings.status; in al_udma_q_reset()
406 dcp_reg = &udma_q->q_regs->rings.dcp; in al_udma_q_reset()
407 crhp_reg = &udma_q->q_regs->rings.crhp; in al_udma_q_reset()
/freebsd/sys/contrib/device-tree/Bindings/soc/qcom/
H A Dqcom,wcnss.yaml75 Should reference the tx-enable and tx-rings-empty SMEM states.
80 - const: tx-rings-empty
134 qcom,smem-state-names = "tx-enable", "tx-rings-empty";

12345678910>>...14