Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_alloc.c166 if (buf->nbufs == 1) { in hns_roce_buf_free()
169 for (i = 0; i < buf->nbufs; ++i) in hns_roce_buf_free()
190 buf->nbufs = 1; in hns_roce_buf_alloc()
212 buf->nbufs = (size + page_size - 1) / page_size; in hns_roce_buf_alloc()
213 buf->npages = buf->nbufs; in hns_roce_buf_alloc()
215 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in hns_roce_buf_alloc()
221 for (i = 0; i < buf->nbufs; ++i) { in hns_roce_buf_alloc()
Dhns_roce_device.h362 int nbufs; member
902 if (buf->nbufs == 1) in hns_roce_buf_offset()
/Linux-v4.19/fs/jbd2/
Drecovery.c70 unsigned int max, nbufs, next; in do_readahead() local
84 nbufs = 0; in do_readahead()
102 bufs[nbufs++] = bh; in do_readahead()
103 if (nbufs == MAXBUF) { in do_readahead()
104 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs); in do_readahead()
105 journal_brelse_array(bufs, nbufs); in do_readahead()
106 nbufs = 0; in do_readahead()
112 if (nbufs) in do_readahead()
113 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs); in do_readahead()
117 if (nbufs) in do_readahead()
[all …]
/Linux-v4.19/drivers/media/platform/marvell-ccic/
Dmcam-core.c246 for (i = 0; i < cam->nbufs; i++) { in mcam_reset_buffers()
380 cam->nbufs = 0; in mcam_alloc_dma_bufs()
389 (cam->nbufs)++; in mcam_alloc_dma_bufs()
392 switch (cam->nbufs) { in mcam_alloc_dma_bufs()
396 cam->nbufs = 0; in mcam_alloc_dma_bufs()
414 for (i = 0; i < cam->nbufs; i++) { in mcam_free_dma_bufs()
419 cam->nbufs = 0; in mcam_free_dma_bufs()
435 if (cam->nbufs > 2) { in mcam_ctlr_dma_vmalloc()
455 for (i = 0; i < cam->nbufs; i++) { in mcam_frame_tasklet()
460 if (++(cam->next_buf) >= cam->nbufs) in mcam_frame_tasklet()
[all …]
Dmcam-core.h163 unsigned int nbufs; /* How many are alloc'd */ member
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_tx.c285 unsigned nbufs; in qib_getsendbuf_range() local
293 nbufs = last - first + 1; /* number in range to check */ in qib_getsendbuf_range()
315 nbufs = last - dd->min_kernel_pio + 1; in qib_getsendbuf_range()
316 for (j = 0; j < nbufs; j++, i++) { in qib_getsendbuf_range()
331 if (j == nbufs) { in qib_getsendbuf_range()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c583 buf->nbufs = 1; in mlx4_buf_direct_alloc()
617 buf->nbufs = (size + PAGE_SIZE - 1) / PAGE_SIZE; in mlx4_buf_alloc()
618 buf->npages = buf->nbufs; in mlx4_buf_alloc()
620 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc()
625 for (i = 0; i < buf->nbufs; ++i) { in mlx4_buf_alloc()
647 if (buf->nbufs == 1) { in mlx4_buf_free()
653 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_free()
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Ddma.c56 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument
66 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf()
70 if (i < nbufs - 1) { in mt76_dma_add_buf()
75 if (i == nbufs - 1) in mt76_dma_add_buf()
77 else if (i == nbufs - 2) in mt76_dma_add_buf()
Dmt76.h123 struct mt76_queue_buf *buf, int nbufs, u32 info,
/Linux-v4.19/drivers/net/ethernet/apm/xgene-v2/
Dmain.h74 u8 nbufs; member
/Linux-v4.19/drivers/md/
Ddm-verity-fec.c97 for (__i = 0; __i < (io)->nbufs; __i++)
335 fio->nbufs = n; in fec_alloc_bufs()
385 pos += fio->nbufs << DM_VERITY_FEC_BUF_RS_BITS; in fec_decode_rsb()
519 fio->nbufs = 0; in verity_fec_init_io()
Ddm-verity-fec.h61 unsigned nbufs; /* number of buffers allocated */ member
/Linux-v4.19/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.h584 int ath_rx_init(struct ath_softc *sc, int nbufs);
596 int ath_tx_init(struct ath_softc *sc, int nbufs);
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/fs/
Dsplice.c692 int nbufs = pipe->buffers; in iter_file_splice_write() local
693 struct bio_vec *array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
712 if (unlikely(nbufs < pipe->buffers)) { in iter_file_splice_write()
714 nbufs = pipe->buffers; in iter_file_splice_write()
715 array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
/Linux-v4.19/fs/xfs/libxfs/
Dxfs_trans_resv.c51 uint nbufs, in xfs_calc_buf_res() argument
54 return nbufs * (size + xfs_buf_log_overhead()); in xfs_calc_buf_res()
Dxfs_ialloc.c291 int nbufs, blks_per_cluster, inodes_per_cluster; in xfs_ialloc_inode_init() local
304 nbufs = length / blks_per_cluster; in xfs_ialloc_inode_init()
344 for (j = 0; j < nbufs; j++) { in xfs_ialloc_inode_init()
/Linux-v4.19/sound/oss/dmasound/
Ddmasound_core.c994 int size, nbufs; in sq_ioctl() local
1114 nbufs = (data >> 16) & 0x7fff ; /* 0x7fff is 'use maximum' */ in sq_ioctl()
1117 result = set_queue_frags(&write_sq, nbufs, size) ; in sq_ioctl()
/Linux-v4.19/drivers/infiniband/ulp/srpt/
Dib_srpt.c883 struct srp_direct_buf *db, int nbufs, struct scatterlist **sg, in srpt_alloc_rw_ctxs() argument
892 if (nbufs == 1) { in srpt_alloc_rw_ctxs()
895 ioctx->rw_ctxs = kmalloc_array(nbufs, sizeof(*ioctx->rw_ctxs), in srpt_alloc_rw_ctxs()
901 for (i = ioctx->n_rw_ctx; i < nbufs; i++, db++) { in srpt_alloc_rw_ctxs()
908 i < nbufs - 1); in srpt_alloc_rw_ctxs()
1035 int nbufs = be32_to_cpu(idb->table_desc.len) / in srpt_get_desc_tbl() local
1038 if (nbufs > in srpt_get_desc_tbl()
1050 return srpt_alloc_rw_ctxs(ioctx, idb->desc_list, nbufs, in srpt_get_desc_tbl()
/Linux-v4.19/drivers/media/usb/stkwebcam/
Dstk-webcam.c537 int nbufs; in stk_free_sio_buffers() local
554 nbufs = dev->n_sbufs; in stk_free_sio_buffers()
557 for (i = 0; i < nbufs; i++) in stk_free_sio_buffers()
/Linux-v4.19/drivers/media/platform/
Dpxa_camera.c1504 unsigned int *nbufs, in pxac_vb2_queue_setup() argument
1513 __func__, vq, *nbufs, *num_planes, size); in pxac_vb2_queue_setup()
1532 if (!*nbufs) in pxac_vb2_queue_setup()
1533 *nbufs = 1; in pxac_vb2_queue_setup()
/Linux-v4.19/drivers/media/v4l2-core/
Dvideobuf-core.c882 unsigned size = 0, nbufs = 1; in videobuf_read_one() local
889 q->ops->buf_setup(q, &nbufs, &size); in videobuf_read_one()
/Linux-v4.19/include/linux/mlx4/
Ddevice.h644 int nbufs; member
1094 if (buf->nbufs == 1) in mlx4_buf_offset()

12