Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/lib/libc/db/hash/
H A Dhash_buf.c175 if (hashp->nbufs == 0 && prev_bp && bp->ovfl) { in newbuf()
180 hashp->nbufs++; in newbuf()
190 if (hashp->nbufs || (bp->flags & BUF_PIN) || bp == hashp->cpage) { in newbuf()
198 if (hashp->nbufs) in newbuf()
199 hashp->nbufs--; in newbuf()
305 hashp->nbufs = npages; in __buf_init()
H A Dhash.h113 int nbufs; /* Number of buffers left to member
/freebsd-14.2/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() argument
170 create_buffers(nbufs); in init_recvbuff()
/freebsd-14.2/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-14.2/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-14.2/sys/dev/virtio/console/
H A Dvirtio_console.c661 int nbufs, error; in vtcon_ctrl_event_populate() local
666 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_ctrl_event_populate()
672 if (nbufs > 0) { in vtcon_ctrl_event_populate()
1058 int nbufs, error; in vtcon_port_populate() local
1063 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_port_populate()
1069 if (nbufs > 0) { in vtcon_port_populate()
/freebsd-14.2/contrib/less/
H A Dch.c65 int nbufs; member
73 #define ch_nbufs thisfile->nbufs
829 thisfile->nbufs = 0; in ch_init()
916 printf(" %d bufs:\n", fs->nbufs);
H A Doptfunc.c30 extern int nbufs;
/freebsd-14.2/sys/dev/virtio/network/
H A Dif_vtnet.c1472 int nbufs, error; in vtnet_rxq_populate() local
1483 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtnet_rxq_populate()
1489 if (nbufs > 0) { in vtnet_rxq_populate()
1540 for (i = 0; i < nbufs; i++) { in vtnet_rx_alloc_buf()
1925 while (--nbufs > 0) { in vtnet_rxq_discard_merged_bufs()
1958 while (--nbufs > 0) { in vtnet_rxq_merged_eof()
1971 if (nbufs > 1) in vtnet_rxq_merged_eof()
2091 uint32_t len, nbufs, adjsz; in vtnet_rxq_eof() local
2114 nbufs = 1; in vtnet_rxq_eof()
2126 if (nbufs > 1) in vtnet_rxq_eof()
[all …]
/freebsd-14.2/sys/dev/dpaa/
H A Dbman.c292 bman_pool_fill(t_Handle pool, uint16_t nbufs) in bman_pool_fill() argument
307 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-14.2/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-14.2/sys/dev/mxge/
H A Dif_mxge.c2384 for (i = 0; i < rx->nbufs; i++) { in mxge_get_buf_big()
2569 rx->cnt += rx->nbufs; in mxge_rx_done_big()
3376 *nbufs = 1; in mxge_choose_params()
3384 *nbufs = 1; in mxge_choose_params()
3389 *nbufs = 1; in mxge_choose_params()
3451 ss->rx_big.nbufs = nbufs; in mxge_slice_open()
3471 int err, big_bytes, nbufs, slice, cl_size, i; in mxge_open() local
3515 cmd.data0 = nbufs; in mxge_open()
3520 if (err && nbufs > 1) { in mxge_open()
3523 nbufs); in mxge_open()
[all …]
H A Dif_mxge_var.h133 int nbufs; member
/freebsd-14.2/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.c692 size_t *sizes, size_t nbufs) in buffer_apprentice() argument
697 if (nbufs == 0) in buffer_apprentice()
712 for (i = 0; i < nbufs; i++) { in buffer_apprentice()
/freebsd-14.2/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-14.2/sys/dev/mlx4/
H A Ddevice.h638 int nbufs; member
1077 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_buf_offset()