| /freebsd-12-stable/sys/dev/mlx4/mlx4_en/ |
| D | mlx4_en_resources.c | 91 if (buf->direct.buf != NULL || buf->nbufs == 1) in mlx4_en_map_buffer() 94 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); in mlx4_en_map_buffer() 98 for (i = 0; i < buf->nbufs; ++i) in mlx4_en_map_buffer() 101 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); in mlx4_en_map_buffer() 111 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_en_unmap_buffer()
|
| /freebsd-12-stable/lib/libc/db/hash/ |
| D | hash_buf.c | 178 if (hashp->nbufs == 0 && prev_bp && bp->ovfl) { in newbuf() 183 hashp->nbufs++; in newbuf() 193 if (hashp->nbufs || (bp->flags & BUF_PIN) || bp == hashp->cpage) { in newbuf() 201 if (hashp->nbufs) in newbuf() 202 hashp->nbufs--; in newbuf() 308 hashp->nbufs = npages; in __buf_init()
|
| D | hash.h | 114 int nbufs; /* Number of buffers left to member
|
| /freebsd-12-stable/contrib/ntp/libntp/ |
| D | recvbuff.c | 96 size_t nbufs) in create_buffers() argument 113 abuf = nbufs + buffer_shortfall; in create_buffers() 119 if (abuf < nbufs || abuf > RECV_BATCH) in create_buffers() 145 init_recvbuff(int nbufs) in init_recvbuff() argument 157 create_buffers(nbufs); in init_recvbuff()
|
| /freebsd-12-stable/sys/dev/mlx4/mlx4_core/ |
| D | mlx4_alloc.c | 591 buf->nbufs = 1; in mlx4_buf_alloc() 611 buf->nbufs = (size + PAGE_SIZE - 1) / PAGE_SIZE; in mlx4_buf_alloc() 612 buf->npages = buf->nbufs; in mlx4_buf_alloc() 614 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc() 619 for (i = 0; i < buf->nbufs; ++i) { in mlx4_buf_alloc() 634 pages = kmalloc(sizeof *pages * buf->nbufs, gfp); in mlx4_buf_alloc() 637 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_alloc() 639 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); in mlx4_buf_alloc() 659 if (buf->nbufs == 1) in mlx4_buf_free() 667 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_free()
|
| D | mlx4_mr.c | 808 if (buf->nbufs == 1) in mlx4_buf_write_mtt()
|
| /freebsd-12-stable/sys/dev/virtio/console/ |
| D | virtio_console.c | 652 int nbufs, error; in vtcon_ctrl_event_populate() local 657 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_ctrl_event_populate() 663 if (nbufs > 0) { in vtcon_ctrl_event_populate() 1046 int nbufs, error; in vtcon_port_populate() local 1051 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_port_populate() 1057 if (nbufs > 0) { in vtcon_port_populate()
|
| /freebsd-12-stable/sys/dev/virtio/network/ |
| D | if_vtnet.c | 1193 int nbufs, error; in vtnet_rxq_populate() local 1204 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtnet_rxq_populate() 1210 if (nbufs > 0) { in vtnet_rxq_populate() 1250 vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp) in vtnet_rx_alloc_buf() argument 1257 KASSERT(nbufs == 1 || sc->vtnet_flags & VTNET_FLAG_LRO_NOMRG, in vtnet_rx_alloc_buf() 1258 ("%s: chained mbuf %d request without LRO_NOMRG", __func__, nbufs)); in vtnet_rx_alloc_buf() 1268 for (i = 1; i < nbufs; i++) { in vtnet_rx_alloc_buf() 1640 vtnet_rxq_discard_merged_bufs(struct vtnet_rxq *rxq, int nbufs) in vtnet_rxq_discard_merged_bufs() argument 1644 while (--nbufs > 0) { in vtnet_rxq_discard_merged_bufs() 1667 vtnet_rxq_merged_eof(struct vtnet_rxq *rxq, struct mbuf *m_head, int nbufs) in vtnet_rxq_merged_eof() argument [all …]
|
| /freebsd-12-stable/sys/dev/ath/ |
| D | if_ath_rx_edma.c | 152 int nbufs); 817 ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs) in ath_edma_rxfifo_alloc() argument 828 for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) { in ath_edma_rxfifo_alloc() 853 nbufs); in ath_edma_rxfifo_alloc() 878 nbufs, in ath_edma_rxfifo_alloc()
|
| /freebsd-12-stable/contrib/less/ |
| D | ch.c | 64 int nbufs; member 72 #define ch_nbufs thisfile->nbufs 865 thisfile->nbufs = 0; 955 printf(" %d bufs:\n", fs->nbufs);
|
| D | optfunc.c | 30 extern int nbufs;
|
| /freebsd-12-stable/sys/dev/dpaa/ |
| D | bman.c | 296 bman_pool_fill(t_Handle pool, uint16_t nbufs) in bman_pool_fill() argument 311 error = BM_POOL_FillBufs(pool, portal, nbufs); in bman_pool_fill()
|
| D | bman.h | 153 int bman_pool_fill(t_Handle pool, uint16_t nbufs);
|
| /freebsd-12-stable/sys/dev/mxge/ |
| D | if_mxge.c | 2471 for (i = 0; i < rx->nbufs; i++) { in mxge_get_buf_big() 2661 rx->cnt += rx->nbufs; in mxge_rx_done_big() 3502 mxge_choose_params(int mtu, int *big_buf_size, int *cl_size, int *nbufs) in mxge_choose_params() argument 3510 *nbufs = 1; in mxge_choose_params() 3518 *nbufs = 1; in mxge_choose_params() 3525 *nbufs = mtu / 4096 + 1; in mxge_choose_params() 3527 if (*nbufs == 3) in mxge_choose_params() 3528 *nbufs = 4; in mxge_choose_params() 3532 *nbufs = 1; in mxge_choose_params() 3537 mxge_slice_open(struct mxge_slice_state *ss, int nbufs, int cl_size) in mxge_slice_open() argument [all …]
|
| D | if_mxge_var.h | 156 int nbufs; member
|
| /freebsd-12-stable/sys/dev/drm/ |
| D | savage_state.c | 800 unsigned int i, nbufs; in savage_dispatch_clear() local 810 nbufs = ((flags & SAVAGE_FRONT) ? 1 : 0) + in savage_dispatch_clear() 812 if (nbufs == 0) in savage_dispatch_clear() 829 BEGIN_DMA(nbufs * 6); in savage_dispatch_clear()
|
| /freebsd-12-stable/contrib/file/src/ |
| D | magic.c | 330 size_t nbufs) in magic_load_buffers() argument 335 sizes, nbufs); in magic_load_buffers()
|
| D | apprentice.c | 693 size_t *sizes, size_t nbufs) in buffer_apprentice() argument 699 if (nbufs == 0) in buffer_apprentice() 714 for (i = 0; i < nbufs; i++) { in buffer_apprentice()
|
| /freebsd-12-stable/sys/dev/oce/ |
| D | oce_if.h | 680 uint32_t nbufs; member 727 uint32_t nbufs; member
|
| D | oce_queue.c | 234 wq->cfg.nbufs = 2 * wq->cfg.q_len; in oce_wq_init()
|
| /freebsd-12-stable/sys/dev/mlx4/ |
| D | device.h | 637 int nbufs; member 1076 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_buf_offset()
|