/drivers/net/ethernet/mellanox/mlx4/ |
D | en_resources.c | 79 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()
|
D | alloc.c | 173 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()
|
D | mr.c | 645 if (buf->nbufs == 1) in mlx4_buf_write_mtt()
|
/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 223 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 …]
|
D | mcam-core.h | 133 unsigned int nbufs; /* How many are alloc'd */ member
|
/drivers/infiniband/hw/qib/ |
D | qib_tx.c | 288 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/ |
D | rms_sh.h | 52 rms_word nbufs; /* Max number of bufs in stream */ member
|
/drivers/net/wireless/ath/ath9k/ |
D | recv.c | 192 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()
|
D | ath9k.h | 327 int ath_rx_init(struct ath_softc *sc, int nbufs); 340 int ath_tx_init(struct ath_softc *sc, int nbufs);
|
D | xmit.c | 2334 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/ |
D | dm-verity-fec.c | 97 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()
|
D | dm-verity-fec.h | 64 unsigned nbufs; /* number of buffers allocated */ member
|
/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 678 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/ |
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 | 532 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/ |
D | videobuf-core.c | 877 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/ |
D | disp.c | 546 strm_def_obj->nbufs = strm_def.num_bufs; in fill_stream_def()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_driver.c | 1624 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/ |
D | cassini.h | 2749 int nbufs; member
|
D | cassini.c | 1884 + 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()
|