Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_icreate_item.c157 int nbufs; in xlog_recover_icreate_commit_pass2() local
223 nbufs = length / igeo->blocks_per_cluster; in xlog_recover_icreate_commit_pass2()
224 for (i = 0, cancel_count = 0; i < nbufs; i++) { in xlog_recover_icreate_commit_pass2()
243 ASSERT(!cancel_count || cancel_count == nbufs); in xlog_recover_icreate_commit_pass2()
245 if (cancel_count != nbufs) in xlog_recover_icreate_commit_pass2()
/kernel/linux/linux-5.10/fs/jbd2/
Drecovery.c69 unsigned int max, nbufs, next; in do_readahead() local
83 nbufs = 0; in do_readahead()
101 bufs[nbufs++] = bh; in do_readahead()
102 if (nbufs == MAXBUF) { in do_readahead()
103 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs); in do_readahead()
104 journal_brelse_array(bufs, nbufs); in do_readahead()
105 nbufs = 0; in do_readahead()
111 if (nbufs) in do_readahead()
112 ll_rw_block(REQ_OP_READ, 0, nbufs, bufs); in do_readahead()
116 if (nbufs) in do_readahead()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/marvell-ccic/
Dmcam-core.c242 for (i = 0; i < cam->nbufs; i++) { in mcam_reset_buffers()
375 cam->nbufs = 0; in mcam_alloc_dma_bufs()
384 (cam->nbufs)++; in mcam_alloc_dma_bufs()
387 switch (cam->nbufs) { in mcam_alloc_dma_bufs()
391 cam->nbufs = 0; in mcam_alloc_dma_bufs()
409 for (i = 0; i < cam->nbufs; i++) { in mcam_free_dma_bufs()
414 cam->nbufs = 0; in mcam_free_dma_bufs()
430 if (cam->nbufs > 2) { in mcam_ctlr_dma_vmalloc()
450 for (i = 0; i < cam->nbufs; i++) { in mcam_frame_tasklet()
455 if (++(cam->next_buf) >= cam->nbufs) in mcam_frame_tasklet()
[all …]
Dmcam-core.h161 unsigned int nbufs; /* How many are alloc'd */ member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c582 buf->nbufs = 1; in mlx4_buf_direct_alloc()
616 buf->nbufs = DIV_ROUND_UP(size, PAGE_SIZE); in mlx4_buf_alloc()
617 buf->npages = buf->nbufs; in mlx4_buf_alloc()
619 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx4_buf_alloc()
624 for (i = 0; i < buf->nbufs; ++i) { in mlx4_buf_alloc()
646 if (buf->nbufs == 1) { in mlx4_buf_free()
652 for (i = 0; i < buf->nbufs; ++i) in mlx4_buf_free()
Dcq.c333 if (buf->nbufs == 1) in mlx4_init_kernel_cqes()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Ddma.c121 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument
134 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf()
145 entry->skip_buf1 = i == nbufs - 1; in mt76_dma_add_buf()
151 if (i < nbufs - 1) { in mt76_dma_add_buf()
160 if (i == nbufs - 1) in mt76_dma_add_buf()
162 else if (i == nbufs - 2) in mt76_dma_add_buf()
/kernel/linux/linux-5.10/drivers/net/ethernet/apm/xgene-v2/
Dmain.h61 u8 nbufs; member
/kernel/linux/linux-5.10/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.h578 int ath_rx_init(struct ath_softc *sc, int nbufs);
590 int ath_tx_init(struct ath_softc *sc, int nbufs);
/kernel/linux/linux-5.10/drivers/md/
Ddm-verity-fec.h58 unsigned nbufs; /* number of buffers allocated */ member
Ddm-verity-fec.c92 for (__i = 0; __i < (io)->nbufs; __i++)
333 fio->nbufs = n; in fec_alloc_bufs()
383 pos += fio->nbufs << DM_VERITY_FEC_BUF_RS_BITS; in fec_decode_rsb()
517 fio->nbufs = 0; in verity_fec_init_io()
/kernel/linux/linux-5.10/drivers/misc/
Dfastrpc.c178 int nbufs; member
409 for (i = 0; i < ctx->nbufs; ++i) { in fastrpc_get_buff_overlaps()
415 sort(ctx->olaps, ctx->nbufs, sizeof(*ctx->olaps), olaps_cmp, NULL); in fastrpc_get_buff_overlaps()
417 for (i = 0; i < ctx->nbufs; ++i) { in fastrpc_get_buff_overlaps()
456 ctx->nbufs = REMOTE_SCALARS_INBUFS(sc) + in fastrpc_context_alloc()
723 for (oix = 0; oix < ctx->nbufs; oix++) { in fastrpc_get_payload_size()
797 for (oix = 0; oix < ctx->nbufs; ++oix) { in fastrpc_get_args()
870 for (i = ctx->nbufs; i < ctx->nscalars; ++i) { in fastrpc_get_args()
894 for (i = inbufs; i < ctx->nbufs; ++i) { in fastrpc_put_args()
/kernel/linux/linux-5.10/fs/
Dsplice.c627 int nbufs = pipe->max_usage; in iter_file_splice_write() local
628 struct bio_vec *array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
648 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write()
650 nbufs = pipe->max_usage; in iter_file_splice_write()
651 array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
665 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++, n++) { in iter_file_splice_write()
/kernel/linux/linux-5.10/drivers/net/ethernet/seeq/
Dsgiseeq.c687 int nbufs) in setup_tx_ring() argument
692 while (i < (nbufs - 1)) { in setup_tx_ring()
704 int nbufs) in setup_rx_ring() argument
709 while (i < (nbufs - 1)) { in setup_rx_ring()
/kernel/linux/linux-5.10/drivers/gpu/drm/savage/
Dsavage_state.c810 unsigned int i, nbufs; in savage_dispatch_clear() local
820 nbufs = ((flags & SAVAGE_FRONT) ? 1 : 0) + in savage_dispatch_clear()
822 if (nbufs == 0) in savage_dispatch_clear()
838 BEGIN_DMA(nbufs * 6); in savage_dispatch_clear()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_trans_resv.c49 uint nbufs, in xfs_calc_buf_res() argument
52 return nbufs * (size + xfs_buf_log_overhead()); in xfs_calc_buf_res()
/kernel/linux/linux-5.10/sound/oss/dmasound/
Ddmasound_core.c995 int size, nbufs; in sq_ioctl() local
1115 nbufs = (data >> 16) & 0x7fff ; /* 0x7fff is 'use maximum' */ in sq_ioctl()
1118 result = set_queue_frags(&write_sq, nbufs, size) ; in sq_ioctl()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/srpt/
Dib_srpt.c890 struct srp_direct_buf *db, int nbufs, struct scatterlist **sg, in srpt_alloc_rw_ctxs() argument
899 if (nbufs == 1) { in srpt_alloc_rw_ctxs()
902 ioctx->rw_ctxs = kmalloc_array(nbufs, sizeof(*ioctx->rw_ctxs), in srpt_alloc_rw_ctxs()
908 for (i = ioctx->n_rw_ctx; i < nbufs; i++, db++) { in srpt_alloc_rw_ctxs()
915 i < nbufs - 1); in srpt_alloc_rw_ctxs()
1047 int nbufs = be32_to_cpu(idb->table_desc.len) / in srpt_get_desc_tbl() local
1050 if (nbufs > in srpt_get_desc_tbl()
1061 return srpt_alloc_rw_ctxs(ioctx, idb->desc_list, nbufs, in srpt_get_desc_tbl()
/kernel/linux/linux-5.10/drivers/media/platform/omap/
Domap_vout.c941 unsigned int *nbufs, in omap_vout_vb2_queue_setup() argument
948 if (is_rotation_enabled(vout) && vq->num_buffers + *nbufs > VRFB_NUM_BUFS) { in omap_vout_vb2_queue_setup()
949 *nbufs = VRFB_NUM_BUFS - vq->num_buffers; in omap_vout_vb2_queue_setup()
950 if (*nbufs == 0) in omap_vout_vb2_queue_setup()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c2263 int i, ret, buf_len = 0, nbufs = 0; in gpmi_nfc_exec_op() local
2329 nbufs++; in gpmi_nfc_exec_op()
2339 nbufs++; in gpmi_nfc_exec_op()
2354 if (nbufs > 1) { in gpmi_nfc_exec_op()
/kernel/linux/linux-5.10/drivers/media/platform/
Dpxa_camera.c1441 unsigned int *nbufs, in pxac_vb2_queue_setup() argument
1450 __func__, vq, *nbufs, *num_planes, size); in pxac_vb2_queue_setup()
1469 if (!*nbufs) in pxac_vb2_queue_setup()
1470 *nbufs = 1; in pxac_vb2_queue_setup()
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c387 static int cedrus_queue_setup(struct vb2_queue *vq, unsigned int *nbufs, in cedrus_queue_setup() argument

12