Lines Matching defs:size

324 /* this should really scale with ring size - this is a fairly arbitrary value */
423 get_inuse(int size, qidx_t cidx, qidx_t pidx, uint8_t gen)
430 used = size - cidx + pidx;
434 used = size;
485 /* multiple of word size */
743 static uint16_t iflib_get_mbuf_size_for(unsigned int size);
1465 iflib_dma_alloc_align(if_ctx_t ctx, int size, int align, iflib_dma_info_t dma, int mapflags)
1475 size, /* maxsize */
1477 size, /* maxsegsize */
1494 __func__, (uintmax_t)size, err);
1500 size, _iflib_dmamap_cb, &dma->idi_paddr, mapflags | BUS_DMA_NOWAIT);
1508 dma->idi_size = size;
1522 iflib_dma_alloc(if_ctx_t ctx, int size, iflib_dma_info_t dma, int mapflags)
1528 return (iflib_dma_alloc_align(ctx, size, sctx->isc_q_align, dma, mapflags));
2342 * to the selected mbuf size.
2480 iflib_get_mbuf_size_for(unsigned int size)
2483 if (size <= MCLBYTES)
2553 * Calculate a suitable Rx mbuf size prior to calling IFDI_INIT, so
2682 qidx_t size;
2687 size = fl->ifl_rxd_size;
2690 if (__predict_false(size == 0))
2692 cur = start + size*cidx;
2693 end = start + size*nrxd;
3182 #define TXQ_MAX_DB_CONSUMED(size) (size >> 4)
3446 qidx_t size;
3451 size = txq->ift_txd_size[qid];
3454 if (__predict_false(size == 0))
3456 cur = start + size*cidx;
3457 end = start + size*ntxd;
3463 * Pad an mbuf to ensure a minimum ethernet frame size.
3464 * min_frame_size is the frame size (less CRC) to pad the mbuf to
3806 int next, size;
3809 size = r->size;
3810 next = (cidx + CACHE_PTR_INCREMENT) & (size-1);
3813 prefetch(items[(cidx + offset) & (size-1)]);
3816 prefetch2cachelines(items[(cidx + offset + 1) & (size-1)]);
3817 prefetch2cachelines(items[(cidx + offset + 2) & (size-1)]);
3818 prefetch2cachelines(items[(cidx + offset + 3) & (size-1)]);
3820 return (__DEVOLATILE(struct mbuf **, &r->items[(cidx + offset) & (size-1)]));
3862 avail = IDXDIFF(pidx, cidx, r->size);
3870 if (__predict_true(r->items[(cidx + i) & (r->size-1)] != (void *)txq))
3871 m_freem(r->items[(cidx + i) & (r->size-1)]);
3872 r->items[(cidx + i) & (r->size-1)] = NULL;
3972 avail = IDXDIFF(pidx, cidx, r->size);
3993 ifmp_ring_check_drainage(r, r->size);
5118 sc = malloc(sctx->isc_driver->size, M_IFLIB, M_WAITOK|M_ZERO);
5182 * The stack can't handle a TSO size larger than IP_MAXPACKET,
5377 sc = malloc(sctx->isc_driver->size, M_IFLIB, M_WAITOK|M_ZERO);
5481 * The stack can't handle a TSO size larger than IP_MAXPACKET,
7158 &fl->ifl_buf_size, 1, "buffer size");