Home
last modified time | relevance | path

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

12

/linux/fs/xfs/
A 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()
/linux/fs/jbd2/
A 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 …]
/linux/drivers/media/platform/marvell-ccic/
A Dmcam-core.c375 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()
414 cam->nbufs = 0; in mcam_free_dma_bufs()
430 if (cam->nbufs > 2) { in mcam_ctlr_dma_vmalloc()
489 if (cam->nbufs == 0) in mcam_check_dma_buffers()
571 cam->nbufs = 2; in mcam_ctlr_dma_contig()
641 cam->nbufs = 3; in mcam_ctlr_dma_sg()
1075 unsigned int *nbufs, in mcam_vb_queue_setup() argument
[all …]
A Dmcam-core.h160 unsigned int nbufs; /* How many are alloc'd */ member
/linux/drivers/infiniband/hw/qib/
A 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/drivers/net/ethernet/mellanox/mlx4/
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/wireless/mediatek/mt76/
A Ddma.c140 struct mt76_queue_buf *buf, int nbufs, u32 info, in mt76_dma_add_buf() argument
153 for (i = 0; i < nbufs; i += 2, buf += 2) { in mt76_dma_add_buf()
164 entry->skip_buf1 = i == nbufs - 1; in mt76_dma_add_buf()
170 if (i < nbufs - 1) { in mt76_dma_add_buf()
179 if (i == nbufs - 1) in mt76_dma_add_buf()
181 else if (i == nbufs - 2) in mt76_dma_add_buf()
/linux/drivers/net/ethernet/apm/xgene-v2/
A Dmain.h61 u8 nbufs; member
/linux/drivers/net/wireless/ath/ath9k/
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()
/linux/drivers/misc/
A 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()
725 for (oix = 0; oix < ctx->nbufs; oix++) { in fastrpc_get_payload_size()
799 for (oix = 0; oix < ctx->nbufs; ++oix) { in fastrpc_get_args()
872 for (i = ctx->nbufs; i < ctx->nscalars; ++i) { in fastrpc_get_args()
896 for (i = inbufs; i < ctx->nbufs; ++i) { in fastrpc_put_args()
/linux/fs/
A 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++) { in iter_file_splice_write()
/linux/drivers/md/
A 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()
A Ddm-verity-fec.h58 unsigned nbufs; /* number of buffers allocated */ member
/linux/fs/ntfs3/
A Dntfs_fs.h121 u32 nbufs; member
1078 u32 i, nbufs = nb->nbufs; in nb_put() local
1080 if (!nbufs) in nb_put()
1083 for (i = 0; i < nbufs; i++) in nb_put()
1085 nb->nbufs = 0; in nb_put()
A 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/drivers/net/ethernet/pensando/ionic/
A Dionic_txrx.c412 desc_info->nbufs = nfrags; in ionic_rx_fill()
435 desc_info->nbufs = 0; in ionic_rx_empty()
656 desc_info->nbufs = 1 + nfrags; in ionic_tx_map_skb()
685 if (desc_info->nbufs) { in ionic_tx_clean()
689 for (i = 1; i < desc_info->nbufs; i++, buf_info++) in ionic_tx_clean()
995 desc_info->nbufs = 0; in ionic_tx_tso()
A Dionic_dev.h204 unsigned int nbufs; member
/linux/drivers/net/ethernet/seeq/
A 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/drivers/gpu/drm/savage/
A 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/fs/xfs/libxfs/
A 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/sound/oss/dmasound/
A Ddmasound_core.c995 int size, nbufs; in sq_ioctl() local
1111 nbufs = (data >> 16) & 0x7fff ; /* 0x7fff is 'use maximum' */ in sq_ioctl()
1114 result = set_queue_frags(&write_sq, nbufs, size) ; in sq_ioctl()
/linux/drivers/infiniband/ulp/srpt/
A 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()
/linux/drivers/media/platform/omap/
A 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/drivers/media/usb/stkwebcam/
A 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()
/linux/drivers/mtd/nand/raw/gpmi-nand/
A Dgpmi-nand.c2252 int i, ret, buf_len = 0, nbufs = 0; in gpmi_nfc_exec_op() local
2316 nbufs++; in gpmi_nfc_exec_op()
2326 nbufs++; in gpmi_nfc_exec_op()
2341 if (nbufs > 1) { in gpmi_nfc_exec_op()

Completed in 95 milliseconds

12