/freebsd-13-stable/sys/xen/interface/io/ |
H A D | ring.h | 388 static inline RING_IDX name##_mask(RING_IDX idx, RING_IDX ring_size) \ 390 return idx & (ring_size - 1); \ 395 RING_IDX ring_size) \ 397 return buf + name##_mask(idx, ring_size); \ 405 RING_IDX ring_size) \ 408 size <= ring_size - *masked_cons) { \ 411 memcpy(opaque, buf + *masked_cons, ring_size - *masked_cons); \ 412 memcpy((unsigned char *)opaque + ring_size - *masked_cons, buf, \ 413 size - (ring_size - *masked_cons)); \ 415 *masked_cons = name##_mask(*masked_cons + size, ring_size); \ [all...] |
/freebsd-13-stable/sys/dev/ena/ |
H A D | ena.h | 120 #define ENA_TX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) 122 #define ENA_RX_RING_IDX_NEXT(idx, ring_size) (((idx) + 1) & ((ring_size) - 1)) 336 int ring_size; /* number of tx/rx_buffer_info's entries */ member in struct:ena_ring
|
H A D | ena_datapath.c | 193 if (likely(req_id < tx_ring->ring_size)) { 279 tx_ring->ring_size); 451 ntc = ENA_RX_RING_IDX_NEXT(ntc, rx_ring->ring_size); 496 ntc = ENA_RX_RING_IDX_NEXT(ntc, rx_ring->ring_size); 621 rx_ring->ring_size); 672 rx_ring->ring_size / ENA_RX_REFILL_THRESH_DIVIDER, 1014 tx_ring->ring_size);
|
H A D | ena.c | 595 for (i = 0; i < tx_ring->ring_size; ++i) { 636 size = sizeof(struct ena_tx_buffer) * tx_ring->ring_size; 642 size = sizeof(uint16_t) * tx_ring->ring_size; 654 for (i = 0; i < tx_ring->ring_size; i++) 671 for (i = 0; i < tx_ring->ring_size; i++) { 704 i = tx_ring->ring_size; 754 for (int i = 0; i < tx_ring->ring_size; i++) { 854 size = sizeof(struct ena_rx_buffer) * rx_ring->ring_size; 869 size = sizeof(uint16_t) * rx_ring->ring_size; 872 for (i = 0; i < rx_ring->ring_size; [all...] |
H A D | ena_netmap.c | 462 ctx->nt = ENA_TX_RING_IDX_NEXT(ctx->nt, ctx->ring->ring_size); 882 if (likely(req_id < tx_ring->ring_size)) 1052 ctx->nt = ENA_RX_RING_IDX_NEXT(ctx->nt, ctx->ring->ring_size);
|
/freebsd-13-stable/contrib/libpcap/ |
H A D | pcap-usb-linux.c | 413 int ring_size; local 418 ring_size = (handle->snapshot - header_size) * 5; 426 if (ring_size > MAX_RING_SIZE) { 432 ring_size = MAX_RING_SIZE; 434 } else if (ring_size < MIN_RING_SIZE) { 441 ring_size = MIN_RING_SIZE; 444 if (ioctl(handle->fd, MON_IOCT_RING_SIZE, ring_size) == -1) { 449 return ring_size;
|
/freebsd-13-stable/sys/dev/bnxt/ |
H A D | bnxt.h | 118 if (__predict_false(++(cons) == (ring)->ring_size)) \ 122 #define RING_NEXT(ring, idx) (__predict_false(idx + 1 == (ring)->ring_size) ? \ 128 ((cpr)->ring.ring_size - 1)]) 468 uint32_t ring_size; /* Must be a power of two */ member in struct:bnxt_ring
|
H A D | if_bnxt.c | 388 softc->tx_cp_rings[i].ring.ring_size = 399 softc->tx_rings[i].ring_size = softc->scctx->isc_ntxd[1]; 529 softc->rx_cp_rings[i].ring.ring_size = 539 softc->rx_rings[i].ring_size = softc->scctx->isc_nrxd[1]; 559 softc->ag_rings[i].ring_size = softc->scctx->isc_nrxd[2]; 875 softc->def_cp_ring.ring.ring_size = PAGE_SIZE / 878 sizeof(struct cmpl_base) * softc->def_cp_ring.ring.ring_size, 2299 for (i = 0; i < cpr->ring.ring_size; i++)
|
H A D | bnxt_txrx.c | 293 if (++pidx == rx_ring->ring_size)
|
H A D | bnxt_hwrm.c | 773 req.length = htole32(ring->ring_size);
|
/freebsd-13-stable/sys/dev/oce/ |
H A D | oce_hw.h | 769 uint32_t ring_size:4; member in struct:oce_mq_ext_ctx_u::__anon13572 786 uint32_t ring_size:4; 809 uint32_t ring_size:4; member in struct:oce_mq_ext_ctx_u::__anon13573 825 uint32_t ring_size:4; 1466 uint32_t ring_size:4; member in struct:oce_mq_ctx_u::__anon13614 1481 uint32_t ring_size:4;
|
H A D | oce_queue.c | 679 ctx->v1.ring_size = OCE_LOG2(q_len) + 1; 693 ctx->v0.ring_size = OCE_LOG2(q_len) + 1;
|
/freebsd-13-stable/lib/libnetmap/ |
H A D | nmport.c | 317 NPKEY_DECL(extmem, ring_size, 0) 381 } else if (i == NPKEY_ID(extmem, ring_size)) {
|
/freebsd-13-stable/sys/dev/xen/blkback/ |
H A D | blkback.c | 3038 size_t ring_size; local 3083 ring_size = PAGE_SIZE * xbb->ring_config.ring_pages; 3084 xbb->max_requests = BLKIF_MAX_RING_REQUESTS(ring_size);
|
/freebsd-13-stable/sys/dev/ocs_fc/ |
H A D | sli4.c | 2211 mq->ring_size = SLI4_MQE_SIZE_16; 2214 mq->ring_size = SLI4_MQE_SIZE_32; 2217 mq->ring_size = SLI4_MQE_SIZE_64; 2220 mq->ring_size = SLI4_MQE_SIZE_128;
|
H A D | sli4.h | 1749 ring_size:4, member in struct:sli4_req_common_create_mq_ext_s
|