Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx4/
Den_resources.c79 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_en_map_buffer()
82 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); in mlx4_en_map_buffer()
86 for (i = 0; i < buf->nbufs; ++i) in mlx4_en_map_buffer()
89 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); in mlx4_en_map_buffer()
99 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_en_unmap_buffer()
Dalloc.c173 buf->nbufs = 1; in mlx4_buf_alloc()
193 buf->nbufs = (size + PAGE_SIZE - 1) / PAGE_SIZE; in mlx4_buf_alloc()
194 buf->npages = buf->nbufs; in mlx4_buf_alloc()
196 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc()
201 for (i = 0; i < buf->nbufs; ++i) { in mlx4_buf_alloc()
215 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); in mlx4_buf_alloc()
218 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_alloc()
220 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); in mlx4_buf_alloc()
240 if (buf->nbufs == 1) in mlx4_buf_free()
247 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_free()
Dmr.c645 if (buf->nbufs == 1) in mlx4_buf_write_mtt()
/drivers/media/platform/marvell-ccic/
Dmcam-core.c223 for (i = 0; i < cam->nbufs; i++) in mcam_reset_buffers()
279 cam->nbufs = 0; in mcam_alloc_dma_bufs()
288 (cam->nbufs)++; in mcam_alloc_dma_bufs()
291 switch (cam->nbufs) { in mcam_alloc_dma_bufs()
295 cam->nbufs = 0; in mcam_alloc_dma_bufs()
312 for (i = 0; i < cam->nbufs; i++) { in mcam_free_dma_bufs()
317 cam->nbufs = 0; in mcam_free_dma_bufs()
334 if (cam->nbufs > 2) { in mcam_ctlr_dma_vmalloc()
354 for (i = 0; i < cam->nbufs; i++) { in mcam_frame_tasklet()
359 if (++(cam->next_buf) >= cam->nbufs) in mcam_frame_tasklet()
[all …]
Dmcam-core.h133 unsigned int nbufs; /* How many are alloc'd */ member
/drivers/infiniband/hw/qib/
Dqib_tx.c288 unsigned nbufs; in qib_getsendbuf_range() local
296 nbufs = last - first + 1; /* number in range to check */ in qib_getsendbuf_range()
318 nbufs = last - dd->min_kernel_pio + 1; in qib_getsendbuf_range()
319 for (j = 0; j < nbufs; j++, i++) { in qib_getsendbuf_range()
334 if (j == nbufs) { in qib_getsendbuf_range()
/drivers/staging/tidspbridge/include/dspbridge/
Drms_sh.h52 rms_word nbufs; /* Max number of bufs in stream */ member
/drivers/net/wireless/ath/ath9k/
Drecv.c192 static int ath_rx_edma_init(struct ath_softc *sc, int nbufs) in ath_rx_edma_init() argument
209 size = sizeof(struct ath_buf) * nbufs; in ath_rx_edma_init()
216 for (i = 0; i < nbufs; i++, bf++) { in ath_rx_edma_init()
265 int ath_rx_init(struct ath_softc *sc, int nbufs) in ath_rx_init() argument
278 return ath_rx_edma_init(sc, nbufs); in ath_rx_init()
286 "rx", nbufs, 1, 0); in ath_rx_init()
Dath9k.h327 int ath_rx_init(struct ath_softc *sc, int nbufs);
340 int ath_tx_init(struct ath_softc *sc, int nbufs);
Dxmit.c2334 int ath_tx_init(struct ath_softc *sc, int nbufs) in ath_tx_init() argument
2342 "tx", nbufs, 1, 1); in ath_tx_init()
/drivers/md/
Ddm-verity-fec.c97 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()
545 fio->nbufs = 0; in verity_fec_init_io()
Ddm-verity-fec.h64 unsigned nbufs; /* number of buffers allocated */ member
/drivers/net/ethernet/seeq/
Dsgiseeq.c678 int nbufs) in setup_tx_ring() argument
683 while (i < (nbufs - 1)) { in setup_tx_ring()
695 int nbufs) in setup_rx_ring() argument
700 while (i < (nbufs - 1)) { in setup_rx_ring()
/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.c532 int nbufs; in stk_free_sio_buffers() local
549 nbufs = dev->n_sbufs; in stk_free_sio_buffers()
552 for (i = 0; i < nbufs; i++) { in stk_free_sio_buffers()
/drivers/media/v4l2-core/
Dvideobuf-core.c877 unsigned size = 0, nbufs = 1; in videobuf_read_one() local
884 q->ops->buf_setup(q, &nbufs, &size); in videobuf_read_one()
/drivers/staging/tidspbridge/rmgr/
Ddisp.c546 strm_def_obj->nbufs = strm_def.num_bufs; in fill_stream_def()
/drivers/infiniband/hw/ipath/
Dipath_driver.c1624 u32 pnum, nbufs; in ipath_getpiobuf() local
1634 nbufs = dd->ipath_piobcnt2k + dd->ipath_piobcnt4k; in ipath_getpiobuf()
1635 buf = ipath_getpiobuf_range(dd, &pnum, first, nbufs, lasti); in ipath_getpiobuf()
/drivers/net/ethernet/sun/
Dcassini.h2749 int nbufs; member
Dcassini.c1884 + cp->tx_tiny_use[ring][entry].nbufs + 1; in cas_tx_ringN()
1892 cp->tx_tiny_use[ring][entry].nbufs = 0; in cas_tx_ringN()
2762 cp->tx_tiny_use[ring][tentry].nbufs++; in tx_tiny_map()