/Linux-v6.6/fs/xfs/ |
D | xfs_icreate_item.c | 158 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.6/fs/jbd2/ |
D | recovery.c | 70 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 bh_readahead_batch(nbufs, bufs, 0); 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 bh_readahead_batch(nbufs, bufs, 0); in do_readahead() 117 if (nbufs) in do_readahead() [all …]
|
/Linux-v6.6/io_uring/ |
D | kbuf.c | 27 __u16 nbufs; member 210 struct io_buffer_list *bl, unsigned nbufs) in __io_remove_buffers() argument 215 if (!nbufs) in __io_remove_buffers() 247 if (++i == nbufs) in __io_remove_buffers() 296 p->nbufs = tmp; in io_remove_buffers_prep() 316 ret = __io_remove_buffers(ctx, bl, p->nbufs); in io_remove_buffers() 337 p->nbufs = tmp; in io_provide_buffers_prep() 341 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep() 347 size = (unsigned long)p->len * p->nbufs; in io_provide_buffers_prep() 355 if (tmp + p->nbufs >= USHRT_MAX) in io_provide_buffers_prep() [all …]
|
/Linux-v6.6/drivers/media/platform/marvell/ |
D | mcam-core.c | 242 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 …]
|
D | mcam-core.h | 160 unsigned int nbufs; /* How many are alloc'd */ member
|
/Linux-v6.6/drivers/infiniband/hw/qib/ |
D | qib_tx.c | 282 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-v6.6/drivers/net/ethernet/mellanox/mlx4/ |
D | alloc.c | 582 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.6/drivers/net/ethernet/apm/xgene-v2/ |
D | main.h | 62 u8 nbufs; member
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/ |
D | dma.c | 256 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument 269 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf() 280 entry->skip_buf1 = i == nbufs - 1; in mt76_dma_add_buf() 286 if (i < nbufs - 1) { in mt76_dma_add_buf() 295 if (i == nbufs - 1) in mt76_dma_add_buf() 297 else if (i == nbufs - 2) in mt76_dma_add_buf()
|
/Linux-v6.6/drivers/net/wireless/ath/ath9k/ |
D | recv.c | 198 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()
|
D | ath9k.h | 579 int ath_rx_init(struct ath_softc *sc, int nbufs); 591 int ath_tx_init(struct ath_softc *sc, int nbufs);
|
/Linux-v6.6/drivers/md/ |
D | dm-verity-fec.h | 58 unsigned int nbufs; /* number of buffers allocated */ member
|
D | dm-verity-fec.c | 92 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.6/drivers/net/ethernet/pensando/ionic/ |
D | ionic_txrx.c | 493 desc_info->nbufs = nfrags; in ionic_rx_fill() 524 desc_info->nbufs = 0; in ionic_rx_empty() 753 desc_info->nbufs = 1 + nfrags; in ionic_tx_map_skb() 776 if (!desc_info->nbufs) in ionic_tx_desc_unmap_bufs() 782 for (i = 1; i < desc_info->nbufs; i++, buf_info++) in ionic_tx_desc_unmap_bufs() 786 desc_info->nbufs = 0; in ionic_tx_desc_unmap_bufs() 1112 desc_info->nbufs = 0; in ionic_tx_tso()
|
D | ionic_dev.h | 219 unsigned int nbufs; member
|
/Linux-v6.6/fs/ntfs3/ |
D | ntfs_fs.h | 126 u32 nbufs; member 1095 u32 i, nbufs = nb->nbufs; in nb_put() local 1097 if (!nbufs) in nb_put() 1100 for (i = 0; i < nbufs; i++) in nb_put() 1102 nb->nbufs = 0; in nb_put()
|
D | fsntfs.c | 1238 nb->nbufs = nbh; in ntfs_read_run_nb() 1275 nb->nbufs = 0; in ntfs_read_run_nb() 1359 nb->nbufs = nbh; in ntfs_get_bh() 1385 nb->nbufs = 0; in ntfs_get_bh() 1409 for (idx = 0; bytes && idx < nb->nbufs; idx += 1, off = 0) { in ntfs_write_bh()
|
/Linux-v6.6/drivers/misc/ |
D | fastrpc.c | 233 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() 969 for (oix = 0; oix < ctx->nbufs; ++oix) { in fastrpc_get_args() 1042 for (i = ctx->nbufs; i < ctx->nscalars; ++i) { in fastrpc_get_args() 1079 for (i = inbufs; i < ctx->nbufs; ++i) { in fastrpc_put_args()
|
/Linux-v6.6/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 687 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.6/fs/ |
D | splice.c | 675 int nbufs = pipe->max_usage; in iter_file_splice_write() local 676 struct bio_vec *array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write() 696 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write() 698 nbufs = pipe->max_usage; in iter_file_splice_write() 699 array = kcalloc(nbufs, sizeof(struct bio_vec), in iter_file_splice_write() 713 for (n = 0; !pipe_empty(head, tail) && left && n < nbufs; tail++) { in iter_file_splice_write()
|
/Linux-v6.6/fs/xfs/libxfs/ |
D | xfs_trans_resv.c | 49 uint nbufs, in xfs_calc_buf_res() argument 52 return nbufs * (size + xfs_buf_log_overhead()); in xfs_calc_buf_res()
|
/Linux-v6.6/sound/oss/dmasound/ |
D | dmasound_core.c | 990 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.6/drivers/net/ethernet/amd/pds_core/ |
D | core.h | 97 unsigned int nbufs; member
|
/Linux-v6.6/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 890 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()
|
/Linux-v6.6/drivers/media/platform/ti/omap/ |
D | omap_vout.c | 942 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()
|