| /freebsd-13.1/sys/dev/mlx4/mlx4_en/ |
| H A 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-13.1/lib/libc/db/hash/ |
| H A 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()
|
| H A D | hash.h | 114 int nbufs; /* Number of buffers left to member
|
| /freebsd-13.1/contrib/ntp/libntp/ |
| H A D | recvbuff.c | 96 size_t nbufs) in create_buffers() argument 115 abuf = nbufs + buffer_shortfall; in create_buffers() 118 if (abuf < nbufs || abuf > RECV_BATCH) in create_buffers() 144 init_recvbuff(int nbufs) in init_recvbuff() argument 156 create_buffers(nbufs); in init_recvbuff()
|
| /freebsd-13.1/sys/dev/mlx4/mlx4_core/ |
| H A 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()
|
| H A D | mlx4_mr.c | 808 if (buf->nbufs == 1) in mlx4_buf_write_mtt()
|
| /freebsd-13.1/sys/dev/ath/ |
| H A D | if_ath_rx_edma.c | 152 int nbufs); 821 ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs) in ath_edma_rxfifo_alloc() argument 832 for (i = 0; i < nbufs && re->m_fifo_depth < re->m_fifolen; i++) { in ath_edma_rxfifo_alloc() 857 nbufs); in ath_edma_rxfifo_alloc() 882 nbufs, in ath_edma_rxfifo_alloc()
|
| /freebsd-13.1/sys/dev/virtio/console/ |
| H A D | virtio_console.c | 665 int nbufs, error; in vtcon_ctrl_event_populate() local 670 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_ctrl_event_populate() 676 if (nbufs > 0) { in vtcon_ctrl_event_populate() 1062 int nbufs, error; in vtcon_port_populate() local 1067 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtcon_port_populate() 1073 if (nbufs > 0) { in vtcon_port_populate()
|
| /freebsd-13.1/contrib/less/ |
| H A D | ch.c | 64 int nbufs; member 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-13.1/sys/dev/virtio/network/ |
| H A D | if_vtnet.c | 1468 int nbufs, error; in vtnet_rxq_populate() local 1479 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtnet_rxq_populate() 1485 if (nbufs > 0) { in vtnet_rxq_populate() 1536 for (i = 0; i < nbufs; i++) { in vtnet_rx_alloc_buf() 1900 while (--nbufs > 0) { in vtnet_rxq_discard_merged_bufs() 1933 while (--nbufs > 0) { in vtnet_rxq_merged_eof() 1946 if (nbufs > 1) in vtnet_rxq_merged_eof() 2065 uint32_t len, nbufs, adjsz; in vtnet_rxq_eof() local 2087 nbufs = 1; in vtnet_rxq_eof() 2099 if (nbufs > 1) in vtnet_rxq_eof() [all …]
|
| /freebsd-13.1/sys/dev/dpaa/ |
| H A 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()
|
| H A D | bman.h | 153 int bman_pool_fill(t_Handle pool, uint16_t nbufs);
|
| /freebsd-13.1/sys/dev/mxge/ |
| H A D | if_mxge.c | 2628 rx->cnt += rx->nbufs; in mxge_rx_done_big() 3468 *nbufs = 1; in mxge_choose_params() 3476 *nbufs = 1; in mxge_choose_params() 3483 *nbufs = mtu / 4096 + 1; in mxge_choose_params() 3485 if (*nbufs == 3) in mxge_choose_params() 3486 *nbufs = 4; in mxge_choose_params() 3490 *nbufs = 1; in mxge_choose_params() 3558 ss->rx_big.nbufs = nbufs; in mxge_slice_open() 3622 cmd.data0 = nbufs; in mxge_open() 3627 if (err && nbufs > 1) { in mxge_open() [all …]
|
| H A D | if_mxge_var.h | 155 int nbufs; member
|
| /freebsd-13.1/contrib/file/src/ |
| H A D | magic.c | 313 size_t nbufs) in magic_load_buffers() argument 318 sizes, nbufs); in magic_load_buffers()
|
| H A D | apprentice.c | 638 size_t *sizes, size_t nbufs) in buffer_apprentice() argument 644 if (nbufs == 0) in buffer_apprentice() 659 for (i = 0; i < nbufs; i++) { in buffer_apprentice()
|
| /freebsd-13.1/sys/dev/oce/ |
| H A D | oce_if.h | 672 uint32_t nbufs; member 719 uint32_t nbufs; member
|
| H A D | oce_queue.c | 228 wq->cfg.nbufs = 2 * wq->cfg.q_len; in oce_wq_init()
|
| /freebsd-13.1/sys/dev/mlx4/ |
| H A D | device.h | 638 int nbufs; member 1077 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_buf_offset()
|