Home
last modified time | relevance | path

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

12

/linux/fs/xfs/
H A 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/io_uring/
H A Dkbuf.h195 int nbufs, unsigned issue_flags) in __io_put_kbufs() argument
204 if (!__io_put_kbuf_ring(req, len, nbufs)) in __io_put_kbufs()
219 int nbufs, unsigned issue_flags) in io_put_kbufs() argument
221 return __io_put_kbufs(req, len, nbufs, issue_flags); in io_put_kbufs()
H A Dkbuf.c30 __u32 nbufs; member
344 struct io_buffer_list *bl, unsigned nbufs) in __io_remove_buffers() argument
349 if (!nbufs) in __io_remove_buffers()
379 if (++i == nbufs) in __io_remove_buffers()
435 p->nbufs = tmp; in io_remove_buffers_prep()
455 ret = __io_remove_buffers(ctx, bl, p->nbufs); in io_remove_buffers()
476 p->nbufs = tmp; in io_provide_buffers_prep()
480 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
486 size = (unsigned long)p->len * p->nbufs; in io_provide_buffers_prep()
494 if (tmp + p->nbufs > MAX_BIDS_PER_BGID) in io_provide_buffers_prep()
[all …]
H A Drsrc.c932 unsigned int nbufs; in io_clone_buffers() local
941 nbufs = READ_ONCE(src_ctx->buf_table.nr); in io_clone_buffers()
943 arg->nr = nbufs; in io_clone_buffers()
944 else if (arg->nr > nbufs) in io_clone_buffers()
948 if (check_add_overflow(arg->nr, arg->dst_off, &nbufs)) in io_clone_buffers()
951 ret = io_rsrc_data_alloc(&data, max(nbufs, ctx->buf_table.nr)); in io_clone_buffers()
973 nbufs = src_ctx->buf_table.nr; in io_clone_buffers()
974 if (!nbufs) in io_clone_buffers()
978 arg->nr = nbufs; in io_clone_buffers()
979 else if (arg->nr > nbufs) in io_clone_buffers()
[all...]
H A Dnet.c469 int nbufs; in io_bundle_nbufs() local
486 nbufs = 0; in io_bundle_nbufs()
488 int this_len = min_t(int, iov[nbufs].iov_len, ret); in io_bundle_nbufs()
490 nbufs++; in io_bundle_nbufs()
494 return nbufs; in io_bundle_nbufs()
/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_txrx.c276 if (!desc_info->nbufs) in ionic_xdp_tx_desc_clean()
295 desc_info->nbufs = 0; in ionic_xdp_tx_desc_clean()
333 desc_info->nbufs = 1; in ionic_xdp_post_frame()
373 desc_info->nbufs++; in ionic_xdp_post_frame()
378 0, (desc_info->nbufs - 1), buf_info->dma_addr); in ionic_xdp_post_frame()
456 int nbufs) in ionic_xdp_rx_unlink_bufs() argument
460 for (i = 0; i < nbufs; i++) { in ionic_xdp_rx_unlink_bufs()
479 int nbufs = 1; in ionic_run_xdp() local
528 nbufs += sinfo->nr_frags; in ionic_run_xdp()
573 ionic_xdp_rx_unlink_bufs(rxq, buf_info, nbufs); in ionic_run_xdp()
[all …]
H A Dionic_dev.h203 unsigned int nbufs; member
211 unsigned int nbufs; member
/linux/drivers/infiniband/hw/qib/
H A Dqib_tx.c282 unsigned nbufs; in qib_getsendbuf_range() local
290 nbufs = last - first + 1; /* number in range to check */ in qib_getsendbuf_range()
312 nbufs = last - dd->min_kernel_pio + 1; in qib_getsendbuf_range()
313 for (j = 0; j < nbufs; j++, i++) { in qib_getsendbuf_range()
328 if (j == nbufs) { in qib_getsendbuf_range()
/linux/tools/virtio/
H A Dvhost_net_test.c480 long nbufs = 0x100000; in main() local
507 nbufs = strtol(optarg, NULL, 10); in main()
508 assert(nbufs > 0); in main()
528 run_rx_test(&dev, &dev.vqs[0], delayed, nbufs); in main()
529 run_tx_test(&dev, &dev.vqs[1], delayed, nbufs); in main()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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/drivers/net/ethernet/apm/xgene-v2/
H A Dmain.h62 u8 nbufs; member
/linux/drivers/md/
H A Ddm-verity-fec.c94 for (__i = 0; __i < (io)->nbufs; __i++)
336 fio->nbufs = n; in fec_alloc_bufs()
386 pos += fio->nbufs << DM_VERITY_FEC_BUF_RS_BITS; in fec_decode_rsb()
499 fio->nbufs = 0; in verity_fec_init_io()
H A Ddm-verity-fec.h58 unsigned int nbufs; /* number of buffers allocated */ member
/linux/drivers/net/wireless/mediatek/mt76/
H A Ddma.c286 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument
299 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf()
310 entry->skip_buf1 = i == nbufs - 1; in mt76_dma_add_buf()
319 if (i < nbufs - 1) { in mt76_dma_add_buf()
332 if (i == nbufs - 1) in mt76_dma_add_buf()
334 else if (i == nbufs - 2) in mt76_dma_add_buf()
/linux/drivers/net/wireless/ath/ath9k/
H A 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()
H A Dath9k.h580 int ath_rx_init(struct ath_softc *sc, int nbufs);
592 int ath_tx_init(struct ath_softc *sc, int nbufs);
/linux/fs/ntfs3/
H A Dntfs_fs.h128 u32 nbufs; member
1081 u32 i, nbufs = nb->nbufs; in nb_put() local
1083 if (!nbufs) in nb_put()
1086 for (i = 0; i < nbufs; i++) in nb_put()
1088 nb->nbufs = 0; in nb_put()
H A Dfsntfs.c1263 nb->nbufs = nbh; in ntfs_read_run_nb()
1300 nb->nbufs = 0; in ntfs_read_run_nb()
1384 nb->nbufs = nbh; in ntfs_get_bh()
1410 nb->nbufs = 0; in ntfs_get_bh()
1434 for (idx = 0; bytes && idx < nb->nbufs; idx += 1, off = 0) { in ntfs_write_bh()
/linux/fs/
H A Dsplice.c676 int nbufs = pipe->max_usage; in iter_file_splice_write() local
683 array = kcalloc(nbufs, sizeof(struct bio_vec), GFP_KERNEL); in iter_file_splice_write()
701 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write()
703 nbufs = pipe->max_usage; in iter_file_splice_write()
704 array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write()
718 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++) { in iter_file_splice_write()
/linux/drivers/misc/
H A Dfastrpc.c234 int nbufs; member
490 for (i = 0; i < ctx->nbufs; i++) in fastrpc_context_free()
543 for (i = 0; i < ctx->nbufs; ++i) { in fastrpc_get_buff_overlaps()
549 sort(ctx->olaps, ctx->nbufs, sizeof(*ctx->olaps), olaps_cmp, NULL); in fastrpc_get_buff_overlaps()
551 for (i = 0; i < ctx->nbufs; ++i) { in fastrpc_get_buff_overlaps()
590 ctx->nbufs = REMOTE_SCALARS_INBUFS(sc) + in fastrpc_context_alloc()
888 for (oix = 0; oix < ctx->nbufs; oix++) { in fastrpc_get_payload_size()
972 for (oix = 0; oix < ctx->nbufs; ++oix) { in fastrpc_get_args()
1045 for (i = ctx->nbufs; i < ctx->nscalars; ++i) { in fastrpc_get_args()
1082 for (i = inbufs; i < ctx->nbufs; ++i) { in fastrpc_put_args()
/linux/drivers/media/platform/marvell/
H A Dmcam-core.h161 unsigned int nbufs; /* How many are alloc'd */ member
/linux/sound/oss/dmasound/
H A 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/fs/xfs/libxfs/
H A Dxfs_trans_resv.c52 uint nbufs, in xfs_calc_buf_res() argument
55 return nbufs * (size + xfs_buf_log_overhead()); in xfs_calc_buf_res()
/linux/drivers/net/ethernet/amd/pds_core/
H A Dcore.h97 unsigned int nbufs; member
/linux/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c955 struct srp_direct_buf *db, int nbufs, struct scatterlist **sg, in srpt_alloc_rw_ctxs() argument
964 if (nbufs == 1) { in srpt_alloc_rw_ctxs()
967 ioctx->rw_ctxs = kmalloc_array(nbufs, sizeof(*ioctx->rw_ctxs), in srpt_alloc_rw_ctxs()
973 for (i = ioctx->n_rw_ctx; i < nbufs; i++, db++) { in srpt_alloc_rw_ctxs()
980 i < nbufs - 1); in srpt_alloc_rw_ctxs()
1112 int nbufs = be32_to_cpu(idb->table_desc.len) / in srpt_get_desc_tbl() local
1115 if (nbufs > in srpt_get_desc_tbl()
1126 return srpt_alloc_rw_ctxs(ioctx, idb->desc_list, nbufs, in srpt_get_desc_tbl()

12