| /freebsd/crypto/krb5/src/lib/krb5/os/ |
| H A D | write_msg.c | 40 int nbufs) in k5_write_messages() argument 44 while (nbufs) { in k5_write_messages() 49 if (nbufs > 1) in k5_write_messages() 67 nbufs -= nbufs1; in k5_write_messages()
|
| /freebsd/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/lib/libc/db/hash/ |
| H A D | hash_buf.c | 180 if (hashp->nbufs == 0 && prev_bp && bp->ovfl) { in newbuf() 185 hashp->nbufs++; in newbuf() 195 if (hashp->nbufs || (bp->flags & BUF_PIN) || bp == hashp->cpage) { in newbuf() 203 if (hashp->nbufs) in newbuf() 204 hashp->nbufs--; in newbuf() 310 hashp->nbufs = npages; in __buf_init()
|
| H A D | hash.h | 111 int nbufs; /* Number of buffers left to member
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | recvbuff.c | 96 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 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/sys/dev/video/ |
| H A D | video.c | 71 video_pool_alloc(u_int nbufs, size_t buf_size) in video_pool_alloc() argument 82 if (buf_size == 0 || nbufs == 0 || nbufs > VIDEO_MAX_BUFFERS) in video_pool_alloc() 84 if (SIZE_MAX / nbufs < buf_size) in video_pool_alloc() 86 map_size = (size_t)nbufs * buf_size; in video_pool_alloc() 117 pool->nbufs = nbufs; in video_pool_alloc() 121 for (i = 0; i < nbufs; i++) { in video_pool_alloc() 547 if (vd->pool == NULL || b->index >= vd->pool->nbufs) { in video_querybuf() 598 b->index >= vd->pool->nbufs) { in video_qbuf() 742 for (i = 0; i < vd->pool->nbufs; i++) { in video_streamoff() 1073 for (u_int i = 0; i < vd->pool->nbufs; i++) { in video_read()
|
| H A D | video_internal.h | 70 u_int nbufs; member
|
| /freebsd/sys/dev/ath/ |
| H A D | if_ath_rx_edma.c | 150 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 D | virtio_console.c | 660 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 D | ch.c | 59 int nbufs; member 67 #define ch_nbufs thisfile->nbufs 881 thisfile->nbufs = 0; in ch_init() 984 printf(" %d bufs:\n", fs->nbufs);
|
| /freebsd/sys/dev/virtio/network/ |
| H A D | if_vtnet.c | 1608 int nbufs, error; in vtnet_rxq_populate() local 1619 for (nbufs = 0; !virtqueue_full(vq); nbufs++) { in vtnet_rxq_populate() 1625 if (nbufs > 0) { in vtnet_rxq_populate() 1665 vtnet_rx_alloc_buf(struct vtnet_softc *sc, int nbufs, struct mbuf **m_tailp) in vtnet_rx_alloc_buf() argument 1678 KASSERT(nbufs == 1 || sc->vtnet_flags & VTNET_FLAG_LRO_NOMRG, in vtnet_rx_alloc_buf() 1679 ("%s: mbuf %d chain requested without LRO_NOMRG", __func__, nbufs)); in vtnet_rx_alloc_buf() 1681 for (i = 0; i < nbufs; i++) { in vtnet_rx_alloc_buf() 1946 vtnet_rxq_discard_merged_bufs(struct vtnet_rxq *rxq, int nbufs) in vtnet_rxq_discard_merged_bufs() argument 1950 while (--nbufs > 0) { in vtnet_rxq_discard_merged_bufs() 1973 vtnet_rxq_merged_eof(struct vtnet_rxq *rxq, struct mbuf *m_head, int nbufs) in vtnet_rxq_merged_eof() argument [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A D | dma.c | 312 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument 325 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf() 336 entry->skip_buf1 = i == nbufs - 1; in mt76_dma_add_buf() 345 if (i < nbufs - 1) { in mt76_dma_add_buf() 358 if (i == nbufs - 1) in mt76_dma_add_buf() 360 else if (i == nbufs - 2) in mt76_dma_add_buf()
|
| /freebsd/sys/dev/mxge/ |
| H A D | if_mxge.c | 2383 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 D | if_mxge_var.h | 133 int nbufs; member
|
| /freebsd/contrib/file/src/ |
| H A D | magic.c | 331 size_t nbufs) in magic_load_buffers() argument 336 sizes, nbufs); in magic_load_buffers()
|
| H A D | apprentice.c | 683 size_t *sizes, size_t nbufs) in buffer_apprentice() argument 688 if (nbufs == 0) in buffer_apprentice() 703 for (i = 0; i < nbufs; i++) { in buffer_apprentice()
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | pac.c | 44 struct k5_pac_buffer *nbufs; in k5_pac_add_buffer() local 56 nbufs = realloc(pac->buffers, (pac->nbuffers + 1) * sizeof(*pac->buffers)); in k5_pac_add_buffer() 57 if (nbufs == NULL) in k5_pac_add_buffer() 59 pac->buffers = nbufs; in k5_pac_add_buffer()
|
| /freebsd/sys/dev/oce/ |
| H A D | oce_if.h | 671 uint32_t nbufs; member 718 uint32_t nbufs; member
|
| H A D | oce_queue.c | 227 wq->cfg.nbufs = 2 * wq->cfg.q_len; in oce_wq_init()
|
| /freebsd/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()
|