/freebsd-11-stable/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_resources.c | 89 // if nbufs == 1 - there is no need to vmap 91 if (buf->direct.buf != NULL || buf->nbufs == 1) 94 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); 98 for (i = 0; i < buf->nbufs; ++i) 101 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); 111 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
|
/freebsd-11-stable/lib/libc/db/hash/ |
H A D | hash_buf.c | 176 if (hashp->nbufs == 0 && prev_bp && bp->ovfl) { 181 hashp->nbufs++; 191 if (hashp->nbufs || (bp->flags & BUF_PIN) || bp == hashp->cpage) { 199 if (hashp->nbufs) 200 hashp->nbufs--; 306 hashp->nbufs = npages;
|
H A D | hash.h | 112 int nbufs; /* Number of buffers left to member in struct:htab
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | recvbuff.c | 96 size_t nbufs) 115 abuf = nbufs + buffer_shortfall; 118 if (abuf < nbufs || abuf > RECV_BATCH) 144 init_recvbuff(int nbufs) argument 156 create_buffers(nbufs); 95 create_buffers( size_t nbufs) argument
|
/freebsd-11-stable/sys/dev/dpaa/ |
H A D | bman.h | 148 * @param nbufs The number of buffers to allocate. To maximize 153 int bman_pool_fill(t_Handle pool, uint16_t nbufs);
|
H A D | bman.c | 297 bman_pool_fill(t_Handle pool, uint16_t nbufs) argument 312 error = BM_POOL_FillBufs(pool, portal, nbufs);
|
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_alloc.c | 591 buf->nbufs = 1; 611 buf->nbufs = (size + PAGE_SIZE - 1) / PAGE_SIZE; 612 buf->npages = buf->nbufs; 614 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), 619 for (i = 0; i < buf->nbufs; ++i) { 634 pages = kmalloc(sizeof *pages * buf->nbufs, gfp); 637 for (i = 0; i < buf->nbufs; ++i) 639 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); 659 if (buf->nbufs == 1) 667 for (i = 0; i < buf->nbufs; [all...] |
H A D | mlx4_mr.c | 808 if (buf->nbufs == 1)
|
/freebsd-11-stable/sys/dev/virtio/console/ |
H A D | virtio_console.c | 643 int nbufs, error; local 648 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { 654 if (nbufs > 0) { 987 int nbufs, error; local 992 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { 998 if (nbufs > 0) {
|
/freebsd-11-stable/contrib/less/ |
H A D | ch.c | 64 int nbufs; member in struct:filestate 72 #define ch_nbufs thisfile->nbufs 865 thisfile->nbufs = 0; 955 printf(" %d bufs:\n", fs->nbufs);
|
H A D | optfunc.c | 30 extern int nbufs;
|
/freebsd-11-stable/sys/dev/virtio/network/ |
H A D | if_vtnet.c | 1186 int nbufs, error; local 1197 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { 1203 if (nbufs > 0) { 1243 vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp) argument 1250 KASSERT(nbufs == 1 || sc->vtnet_flags & VTNET_FLAG_LRO_NOMRG, 1251 ("%s: chained mbuf %d request without LRO_NOMRG", __func__, nbufs)); 1261 for (i = 1; i < nbufs; i++) { 1633 vtnet_rxq_discard_merged_bufs(struct vtnet_rxq *rxq, int nbufs) argument 1637 while (--nbufs > 1660 vtnet_rxq_merged_eof(struct vtnet_rxq *rxq, struct mbuf *m_head, int nbufs) argument 1763 int len, deq, nbufs, adjsz, count; local [all...] |
/freebsd-11-stable/sys/dev/ath/ |
H A D | if_ath_rx_edma.c | 150 int nbufs); 780 ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs) argument 789 * Allocate buffers until the FIFO is full or nbufs is reached. 791 for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) { 812 "%s: Q%d: alloc failed: i=%d, nbufs=%d?\n", 816 nbufs); 838 DPRINTF(sc, ATH_DEBUG_EDMA_RX, "%s: Q%d: nbufs=%d, nalloced=%d\n", 841 nbufs,
|
/freebsd-11-stable/contrib/file/src/ |
H A D | magic.c | 311 size_t nbufs) 316 sizes, nbufs); 310 magic_load_buffers(struct magic_set *ms, void **bufs, size_t *sizes, size_t nbufs) argument
|
H A D | apprentice.c | 635 size_t *sizes, size_t nbufs) 641 if (nbufs == 0) 656 for (i = 0; i < nbufs; i++) { 634 buffer_apprentice(struct magic_set *ms, struct magic **bufs, size_t *sizes, size_t nbufs) argument
|
/freebsd-11-stable/sys/dev/drm/ |
H A D | savage_state.c | 800 unsigned int i, nbufs; local 810 nbufs = ((flags & SAVAGE_FRONT) ? 1 : 0) + 812 if (nbufs == 0) 829 BEGIN_DMA(nbufs * 6);
|
/freebsd-11-stable/sys/dev/mxge/ |
H A D | if_mxge_var.h | 155 int nbufs; member in struct:__anon11161
|
H A D | if_mxge.c | 1185 /* try to set nbufs to see if it we can 2485 for (i = 0; i < rx->nbufs; i++) { 2675 rx->cnt += rx->nbufs; 3516 mxge_choose_params(int mtu, int *big_buf_size, int *cl_size, int *nbufs) argument 3524 *nbufs = 1; 3532 *nbufs = 1; 3539 *nbufs = mtu / 4096 + 1; 3541 if (*nbufs == 3) 3542 *nbufs = 4; 3546 *nbufs 3551 mxge_slice_open(struct mxge_slice_state *ss, int nbufs, int cl_size) argument 3635 int err, big_bytes, nbufs, slice, cl_size, i; local [all...] |
/freebsd-11-stable/sys/dev/fatm/ |
H A D | if_fatm.c | 1076 int nblocks, nbufs; local 1084 nbufs = max(4 * sc->open_vccs, 32); 1085 nbufs = min(nbufs, SMALL_POOL_SIZE); 1086 nbufs -= sc->small_cnt; 1088 nblocks = howmany(nbufs, SMALL_SUPPLY_BLKSIZE); 1165 int nbufs, nblocks, cnt; local 1173 nbufs = max(4 * sc->open_vccs, 32); 1174 nbufs = min(nbufs, LARGE_POOL_SIZ [all...] |
/freebsd-11-stable/sys/dev/mlx4/ |
H A D | device.h | 637 int nbufs; member in struct:mlx4_buf 1076 if (BITS_PER_LONG == 64 || buf->nbufs == 1)
|
/freebsd-11-stable/sys/dev/oce/ |
H A D | oce_if.h | 678 uint32_t nbufs; member in struct:wq_config 725 uint32_t nbufs; member in struct:rq_config
|
H A D | oce_queue.c | 232 wq->cfg.nbufs = 2 * wq->cfg.q_len;
|