Home
last modified time | relevance | path

Searched refs:nbufs (Results 1 – 21 of 21) sorted by relevance

/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c91 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/lib/libc/db/hash/
H A Dhash_buf.c172 if (hashp->nbufs == 0 && prev_bp && bp->ovfl) { in newbuf()
177 hashp->nbufs++; in newbuf()
187 if (hashp->nbufs || (bp->flags & BUF_PIN) || bp == hashp->cpage) { in newbuf()
195 if (hashp->nbufs) in newbuf()
196 hashp->nbufs--; in newbuf()
302 hashp->nbufs = npages; in __buf_init()
H A Dhash.h111 int nbufs; /* Number of buffers left to member
/freebsd/contrib/ntp/libntp/
H A Drecvbuff.c96 size_t nbufs in create_buffers() argument
115 abuf = nbufs + buffer_shortfall; in create_buffers()
128 if (abuf < nbufs || abuf > RECV_BATCH) { in create_buffers()
158 init_recvbuff(int nbufs) in init_recvbuff()
170 create_buffers(nbufs);
145 init_recvbuff(int nbufs) init_recvbuff() argument
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_alloc.c591 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()
H A Dmlx4_mr.c808 if (buf->nbufs == 1) in mlx4_buf_write_mtt()
/freebsd/sys/dev/ath/
H A Dif_ath_rx_edma.c150 int nbufs);
815 ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs) in ath_edma_rxfifo_alloc() argument
826 for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) { in ath_edma_rxfifo_alloc()
851 nbufs); in ath_edma_rxfifo_alloc()
876 nbufs, in ath_edma_rxfifo_alloc()
/freebsd/sys/dev/virtio/console/
H A Dvirtio_console.c660 int nbufs, error; in vtcon_ctrl_event_populate() local
665 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_ctrl_event_populate()
671 if (nbufs > 0) { in vtcon_ctrl_event_populate()
1057 int nbufs, error; in vtcon_port_populate() local
1062 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_port_populate()
1068 if (nbufs > 0) { in vtcon_port_populate()
/freebsd/contrib/less/
H A Dch.c58 int nbufs;
66 #define ch_nbufs thisfile->nbufs
830 thisfile->nbufs = 0; in ch_init()
933 printf(" %d bufs:\n", fs->nbufs);
65 int nbufs; global() member
H A Doptfunc.c
/freebsd/sys/dev/virtio/network/
H A Dif_vtnet.c1463 int nbufs, error; in vtnet_rxq_populate() local
1474 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtnet_rxq_populate()
1480 if (nbufs > 0) { in vtnet_rxq_populate()
1520 vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp) in vtnet_rx_alloc_buf() argument
1528 KASSERT(nbufs == 1 || sc->vtnet_flags & VTNET_FLAG_LRO_NOMRG, in vtnet_rx_alloc_buf()
1529 ("%s: mbuf %d chain requested without LRO_NOMRG", __func__, nbufs)); in vtnet_rx_alloc_buf()
1531 for (i = 0; i < nbufs; i++) { in vtnet_rx_alloc_buf()
1912 vtnet_rxq_discard_merged_bufs(struct vtnet_rxq *rxq, int nbufs) in vtnet_rxq_discard_merged_bufs() argument
1916 while (--nbufs > 0) { in vtnet_rxq_discard_merged_bufs()
1939 vtnet_rxq_merged_eof(struct vtnet_rxq *rxq, struct mbuf *m_head, int nbufs) in vtnet_rxq_merged_eof() argument
[all …]
/freebsd/sys/dev/dpaa/
H A Dbman.c291 bman_pool_fill(t_Handle pool, uint16_t nbufs) in bman_pool_fill() argument
306 error = BM_POOL_FillBufs(pool, portal, nbufs); in bman_pool_fill()
H A Dbman.h151 int bman_pool_fill(t_Handle pool, uint16_t nbufs);
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Ddma.c260 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument
273 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf()
284 entry->skip_buf1 = i == nbufs - 1; in mt76_dma_add_buf()
290 if (i < nbufs - 1) { in mt76_dma_add_buf()
299 if (i == nbufs - 1) in mt76_dma_add_buf()
301 else if (i == nbufs - 2) in mt76_dma_add_buf()
/freebsd/sys/dev/mxge/
H A Dif_mxge.c2383 for (i = 0; i < rx->nbufs; i++) { in mxge_get_buf_big()
2568 rx->cnt += rx->nbufs; in mxge_rx_done_big()
3367 mxge_choose_params(int mtu, int *big_buf_size, int *cl_size, int *nbufs) in mxge_choose_params() argument
3375 *nbufs = 1; in mxge_choose_params()
3383 *nbufs = 1; in mxge_choose_params()
3388 *nbufs = 1; in mxge_choose_params()
3392 mxge_slice_open(struct mxge_slice_state *ss, int nbufs, int cl_size) in mxge_slice_open() argument
3450 ss->rx_big.nbufs = nbufs; in mxge_slice_open()
3454 for (i = 0; i <= ss->rx_big.mask; i += ss->rx_big.nbufs) { in mxge_slice_open()
3470 int err, big_bytes, nbufs, slice, cl_size, i; in mxge_open() local
[all …]
H A Dif_mxge_var.h133 int nbufs; member
/freebsd/contrib/file/src/
H A Dmagic.c330 size_t nbufs) in magic_load_buffers() argument
335 sizes, nbufs); in magic_load_buffers()
H A Dapprentice.c696 size_t *sizes, size_t nbufs) in buffer_apprentice() argument
701 if (nbufs == 0) in buffer_apprentice()
716 for (i = 0; i < nbufs; i++) { in buffer_apprentice()
/freebsd/sys/dev/oce/
H A Doce_if.h671 uint32_t nbufs; member
718 uint32_t nbufs; member
H A Doce_queue.c227 wq->cfg.nbufs = 2 * wq->cfg.q_len; in oce_wq_init()
/freebsd/sys/dev/mlx4/
H A Ddevice.h638 int nbufs; member
1077 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_buf_offset()