Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx4/
Den_resources.c114 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_en_map_buffer()
117 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); in mlx4_en_map_buffer()
121 for (i = 0; i < buf->nbufs; ++i) in mlx4_en_map_buffer()
124 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); in mlx4_en_map_buffer()
134 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_en_unmap_buffer()
Dalloc.c592 buf->nbufs = 1; in mlx4_buf_alloc()
612 buf->nbufs = (size + PAGE_SIZE - 1) / PAGE_SIZE; in mlx4_buf_alloc()
613 buf->npages = buf->nbufs; in mlx4_buf_alloc()
615 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc()
620 for (i = 0; i < buf->nbufs; ++i) { in mlx4_buf_alloc()
635 pages = kmalloc(sizeof *pages * buf->nbufs, gfp); in mlx4_buf_alloc()
638 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_alloc()
640 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); in mlx4_buf_alloc()
660 if (buf->nbufs == 1) in mlx4_buf_free()
668 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_free()
Dmr.c806 if (buf->nbufs == 1) in mlx4_buf_write_mtt()
/drivers/media/platform/marvell-ccic/
Dmcam-core.c254 for (i = 0; i < cam->nbufs; i++) { in mcam_reset_buffers()
388 cam->nbufs = 0; in mcam_alloc_dma_bufs()
397 (cam->nbufs)++; in mcam_alloc_dma_bufs()
400 switch (cam->nbufs) { in mcam_alloc_dma_bufs()
404 cam->nbufs = 0; in mcam_alloc_dma_bufs()
421 for (i = 0; i < cam->nbufs; i++) { in mcam_free_dma_bufs()
426 cam->nbufs = 0; in mcam_free_dma_bufs()
442 if (cam->nbufs > 2) { in mcam_ctlr_dma_vmalloc()
462 for (i = 0; i < cam->nbufs; i++) { in mcam_frame_tasklet()
467 if (++(cam->next_buf) >= cam->nbufs) in mcam_frame_tasklet()
[all …]
Dmcam-core.h162 unsigned int nbufs; /* How many are alloc'd */ member
/drivers/infiniband/hw/qib/
Dqib_tx.c289 unsigned nbufs; in qib_getsendbuf_range() local
297 nbufs = last - first + 1; /* number in range to check */ in qib_getsendbuf_range()
319 nbufs = last - dd->min_kernel_pio + 1; in qib_getsendbuf_range()
320 for (j = 0; j < nbufs; j++, i++) { in qib_getsendbuf_range()
335 if (j == nbufs) { in qib_getsendbuf_range()
/drivers/net/wireless/ath/ath9k/
Drecv.c198 static int ath_rx_edma_init(struct ath_softc *sc, int nbufs) in ath_rx_edma_init() argument
215 size = sizeof(struct ath_rxbuf) * nbufs; in ath_rx_edma_init()
222 for (i = 0; i < nbufs; i++, bf++) { in ath_rx_edma_init()
271 int ath_rx_init(struct ath_softc *sc, int nbufs) in ath_rx_init() argument
284 return ath_rx_edma_init(sc, nbufs); in ath_rx_init()
292 "rx", nbufs, 1, 0); in ath_rx_init()
Dath9k.h550 int ath_rx_init(struct ath_softc *sc, int nbufs);
564 int ath_tx_init(struct ath_softc *sc, int nbufs);
Dxmit.c2808 int ath_tx_init(struct ath_softc *sc, int nbufs) in ath_tx_init() argument
2816 "tx", nbufs, 1, 1); in ath_tx_init()
/drivers/md/
Ddm-verity-fec.c98 for (__i = 0; __i < (io)->nbufs; __i++)
343 fio->nbufs = n; in fec_alloc_bufs()
399 pos += fio->nbufs << DM_VERITY_FEC_BUF_RS_BITS; in fec_decode_rsb()
533 fio->nbufs = 0; in verity_fec_init_io()
Ddm-verity-fec.h64 unsigned nbufs; /* number of buffers allocated */ member
/drivers/net/ethernet/seeq/
Dsgiseeq.c677 int nbufs) in setup_tx_ring() argument
682 while (i < (nbufs - 1)) { in setup_tx_ring()
694 int nbufs) in setup_rx_ring() argument
699 while (i < (nbufs - 1)) { in setup_rx_ring()
/drivers/staging/lustre/lnet/lnet/
Drouter.c1295 lnet_rtrpool_alloc_bufs(lnet_rtrbufpool_t *rbp, int nbufs, int cpt) in lnet_rtrpool_alloc_bufs() argument
1301 LASSERT(rbp->rbp_nbuffers == nbufs); in lnet_rtrpool_alloc_bufs()
1305 for (i = 0; i < nbufs; i++) { in lnet_rtrpool_alloc_bufs()
1310 nbufs, rbp->rbp_npages); in lnet_rtrpool_alloc_bufs()
1324 LASSERT(rbp->rbp_credits == nbufs); in lnet_rtrpool_alloc_bufs()
/drivers/gpu/drm/savage/
Dsavage_state.c799 unsigned int i, nbufs; in savage_dispatch_clear() local
809 nbufs = ((flags & SAVAGE_FRONT) ? 1 : 0) + in savage_dispatch_clear()
811 if (nbufs == 0) in savage_dispatch_clear()
827 BEGIN_DMA(nbufs * 6); in savage_dispatch_clear()
/drivers/media/usb/stkwebcam/
Dstk-webcam.c539 int nbufs; in stk_free_sio_buffers() local
556 nbufs = dev->n_sbufs; in stk_free_sio_buffers()
559 for (i = 0; i < nbufs; i++) in stk_free_sio_buffers()
/drivers/media/v4l2-core/
Dvideobuf-core.c881 unsigned size = 0, nbufs = 1; in videobuf_read_one() local
888 q->ops->buf_setup(q, &nbufs, &size); in videobuf_read_one()
/drivers/staging/rdma/ipath/
Dipath_driver.c1631 u32 pnum, nbufs; in ipath_getpiobuf() local
1641 nbufs = dd->ipath_piobcnt2k + dd->ipath_piobcnt4k; in ipath_getpiobuf()
1642 buf = ipath_getpiobuf_range(dd, &pnum, first, nbufs, lasti); in ipath_getpiobuf()
/drivers/net/ethernet/sun/
Dcassini.h2747 int nbufs; member
Dcassini.c1881 + cp->tx_tiny_use[ring][entry].nbufs + 1; in cas_tx_ringN()
1889 cp->tx_tiny_use[ring][entry].nbufs = 0; in cas_tx_ringN()
2759 cp->tx_tiny_use[ring][tentry].nbufs++; in tx_tiny_map()