Home
last modified time | relevance | path

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

12

/Linux-v6.1/io_uring/
Dkbuf.c27 __u16 nbufs; member
209 struct io_buffer_list *bl, unsigned nbufs) in __io_remove_buffers() argument
214 if (!nbufs) in __io_remove_buffers()
237 if (++i == nbufs) in __io_remove_buffers()
287 p->nbufs = tmp; in io_remove_buffers_prep()
307 ret = __io_remove_buffers(ctx, bl, p->nbufs); in io_remove_buffers()
331 p->nbufs = tmp; in io_provide_buffers_prep()
335 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
341 size = (unsigned long)p->len * p->nbufs; in io_provide_buffers_prep()
349 if (tmp + p->nbufs >= USHRT_MAX) in io_provide_buffers_prep()
[all …]
/Linux-v6.1/fs/xfs/
Dxfs_icreate_item.c158 int nbufs; in xlog_recover_icreate_commit_pass2() local
224 nbufs = length / igeo->blocks_per_cluster; in xlog_recover_icreate_commit_pass2()
225 for (i = 0, cancel_count = 0; i < nbufs; i++) { in xlog_recover_icreate_commit_pass2()
244 ASSERT(!cancel_count || cancel_count == nbufs); in xlog_recover_icreate_commit_pass2()
246 if (cancel_count != nbufs) in xlog_recover_icreate_commit_pass2()
/Linux-v6.1/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 bh_readahead_batch(nbufs, bufs, 0); 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 bh_readahead_batch(nbufs, bufs, 0); in do_readahead()
116 if (nbufs) in do_readahead()
[all …]
/Linux-v6.1/drivers/media/platform/marvell/
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.h160 unsigned int nbufs; /* How many are alloc'd */ member
/Linux-v6.1/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-v6.1/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()
/Linux-v6.1/drivers/net/ethernet/apm/xgene-v2/
Dmain.h61 u8 nbufs; member
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/
Ddma.c143 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument
156 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf()
167 entry->skip_buf1 = i == nbufs - 1; in mt76_dma_add_buf()
173 if (i < nbufs - 1) { in mt76_dma_add_buf()
182 if (i == nbufs - 1) in mt76_dma_add_buf()
184 else if (i == nbufs - 2) in mt76_dma_add_buf()
/Linux-v6.1/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()
/Linux-v6.1/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.c411 desc_info->nbufs = nfrags; in ionic_rx_fill()
434 desc_info->nbufs = 0; in ionic_rx_empty()
655 desc_info->nbufs = 1 + nfrags; in ionic_tx_map_skb()
678 if (!desc_info->nbufs) in ionic_tx_desc_unmap_bufs()
684 for (i = 1; i < desc_info->nbufs; i++, buf_info++) in ionic_tx_desc_unmap_bufs()
688 desc_info->nbufs = 0; in ionic_tx_desc_unmap_bufs()
1006 desc_info->nbufs = 0; in ionic_tx_tso()
Dionic_dev.h204 unsigned int nbufs; member
/Linux-v6.1/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()
/Linux-v6.1/fs/
Dsplice.c624 int nbufs = pipe->max_usage; in iter_file_splice_write() local
625 struct bio_vec *array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
645 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write()
647 nbufs = pipe->max_usage; in iter_file_splice_write()
648 array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
662 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++) { in iter_file_splice_write()
/Linux-v6.1/fs/ntfs3/
Dntfs_fs.h120 u32 nbufs; member
1079 u32 i, nbufs = nb->nbufs; in nb_put() local
1081 if (!nbufs) in nb_put()
1084 for (i = 0; i < nbufs; i++) in nb_put()
1086 nb->nbufs = 0; in nb_put()
Dfsntfs.c1215 nb->nbufs = nbh; in ntfs_read_run_nb()
1252 nb->nbufs = 0; in ntfs_read_run_nb()
1336 nb->nbufs = nbh; in ntfs_get_bh()
1362 nb->nbufs = 0; in ntfs_get_bh()
1386 for (idx = 0; bytes && idx < nb->nbufs; idx += 1, off = 0) { in ntfs_write_bh()
/Linux-v6.1/drivers/misc/
Dfastrpc.c217 int nbufs; member
436 for (i = 0; i < ctx->nbufs; i++) in fastrpc_context_free()
489 for (i = 0; i < ctx->nbufs; ++i) { in fastrpc_get_buff_overlaps()
495 sort(ctx->olaps, ctx->nbufs, sizeof(*ctx->olaps), olaps_cmp, NULL); in fastrpc_get_buff_overlaps()
497 for (i = 0; i < ctx->nbufs; ++i) { in fastrpc_get_buff_overlaps()
536 ctx->nbufs = REMOTE_SCALARS_INBUFS(sc) + in fastrpc_context_alloc()
821 for (oix = 0; oix < ctx->nbufs; oix++) { in fastrpc_get_payload_size()
901 for (oix = 0; oix < ctx->nbufs; ++oix) { in fastrpc_get_args()
974 for (i = ctx->nbufs; i < ctx->nscalars; ++i) { in fastrpc_get_args()
1011 for (i = inbufs; i < ctx->nbufs; ++i) { in fastrpc_put_args()
/Linux-v6.1/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()
/Linux-v6.1/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()
/Linux-v6.1/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()
/Linux-v6.1/sound/oss/dmasound/
Ddmasound_core.c990 int size, nbufs; in sq_ioctl() local
1106 nbufs = (data >> 16) & 0x7fff ; /* 0x7fff is 'use maximum' */ in sq_ioctl()
1109 result = set_queue_frags(&write_sq, nbufs, size) ; in sq_ioctl()
/Linux-v6.1/drivers/infiniband/ulp/srpt/
Dib_srpt.c887 struct srp_direct_buf *db, int nbufs, struct scatterlist **sg, in srpt_alloc_rw_ctxs() argument
896 if (nbufs == 1) { in srpt_alloc_rw_ctxs()
899 ioctx->rw_ctxs = kmalloc_array(nbufs, sizeof(*ioctx->rw_ctxs), in srpt_alloc_rw_ctxs()
905 for (i = ioctx->n_rw_ctx; i < nbufs; i++, db++) { in srpt_alloc_rw_ctxs()
912 i < nbufs - 1); in srpt_alloc_rw_ctxs()
1044 int nbufs = be32_to_cpu(idb->table_desc.len) / in srpt_get_desc_tbl() local
1047 if (nbufs > in srpt_get_desc_tbl()
1058 return srpt_alloc_rw_ctxs(ioctx, idb->desc_list, nbufs, in srpt_get_desc_tbl()
/Linux-v6.1/drivers/media/platform/ti/omap/
Domap_vout.c942 unsigned int *nbufs, in omap_vout_vb2_queue_setup() argument
949 if (is_rotation_enabled(vout) && vq->num_buffers + *nbufs > VRFB_NUM_BUFS) { in omap_vout_vb2_queue_setup()
950 *nbufs = VRFB_NUM_BUFS - vq->num_buffers; in omap_vout_vb2_queue_setup()
951 if (*nbufs == 0) in omap_vout_vb2_queue_setup()
/Linux-v6.1/drivers/staging/media/deprecated/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()

12