/drivers/net/ethernet/mellanox/mlx4/ |
D | en_resources.c | 114 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()
|
D | alloc.c | 592 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()
|
D | mr.c | 806 if (buf->nbufs == 1) in mlx4_buf_write_mtt()
|
/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 254 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 …]
|
D | mcam-core.h | 162 unsigned int nbufs; /* How many are alloc'd */ member
|
/drivers/infiniband/hw/qib/ |
D | qib_tx.c | 289 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/ |
D | recv.c | 198 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()
|
D | ath9k.h | 550 int ath_rx_init(struct ath_softc *sc, int nbufs); 564 int ath_tx_init(struct ath_softc *sc, int nbufs);
|
D | xmit.c | 2808 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/ |
D | dm-verity-fec.c | 98 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()
|
D | dm-verity-fec.h | 64 unsigned nbufs; /* number of buffers allocated */ member
|
/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 677 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/ |
D | router.c | 1295 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/ |
D | savage_state.c | 799 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/ |
D | stk-webcam.c | 539 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/ |
D | videobuf-core.c | 881 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/ |
D | ipath_driver.c | 1631 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/ |
D | cassini.h | 2747 int nbufs; member
|
D | cassini.c | 1881 + 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()
|