/linux-5.19.10/include/linux/ |
D | uio.h | 34 unsigned long nr_segs; member 51 unsigned long nr_segs; member 70 state->nr_segs = iter->nr_segs; in iov_iter_save_state() 115 static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs) in iov_length() argument 120 for (seg = 0; seg < nr_segs; seg++) in iov_length() 225 unsigned long nr_segs, size_t count); 227 unsigned long nr_segs, size_t count); 229 unsigned long nr_segs, size_t count); 315 unsigned long nr_segs, unsigned long fast_segs, 318 unsigned nr_segs, unsigned fast_segs, struct iovec **iovp, [all …]
|
D | bio.h | 15 static inline unsigned int bio_max_segs(unsigned int nr_segs) in bio_max_segs() argument 17 return min(nr_segs, BIO_MAX_VECS); in bio_max_segs()
|
D | blk-mq.h | 932 unsigned int nr_segs) in blk_rq_bio_prep() argument 934 rq->nr_phys_segments = nr_segs; in blk_rq_bio_prep()
|
/linux-5.19.10/block/ |
D | blk-merge.c | 326 unsigned int *nr_segs) in __blk_queue_split() argument 333 split = blk_bio_discard_split(q, *bio, &q->bio_split, nr_segs); in __blk_queue_split() 337 nr_segs); in __blk_queue_split() 340 split = blk_bio_segment_split(q, *bio, &q->bio_split, nr_segs); in __blk_queue_split() 369 unsigned int nr_segs; in blk_queue_split() local 372 __blk_queue_split(q, bio, &nr_segs); in blk_queue_split() 604 int ll_back_merge_fn(struct request *req, struct bio *bio, unsigned int nr_segs) in ll_back_merge_fn() argument 619 return ll_new_hw_segment(req, bio, nr_segs); in ll_back_merge_fn() 623 unsigned int nr_segs) in ll_front_merge_fn() argument 638 return ll_new_hw_segment(req, bio, nr_segs); in ll_front_merge_fn() [all …]
|
D | blk-map.c | 26 if (data->nr_segs > UIO_MAXIOV) in bio_alloc_map_data() 29 bmd = kmalloc(struct_size(bmd, iov, data->nr_segs), gfp_mask); in bio_alloc_map_data() 32 memcpy(bmd->iov, data->iov, sizeof(struct iovec) * data->nr_segs); in bio_alloc_map_data() 494 unsigned int nr_segs = 0; in blk_rq_append_bio() local 497 nr_segs++; in blk_rq_append_bio() 500 blk_rq_bio_prep(rq, bio, nr_segs); in blk_rq_append_bio() 502 if (!ll_back_merge_fn(rq, bio, nr_segs)) in blk_rq_append_bio()
|
D | blk-mq-sched.h | 12 unsigned int nr_segs, struct request **merged_request); 14 unsigned int nr_segs);
|
D | blk.h | 246 unsigned int nr_segs); 248 struct bio *bio, unsigned int nr_segs); 307 unsigned int *nr_segs); 309 unsigned int nr_segs);
|
D | blk-mq-sched.c | 346 unsigned int nr_segs) in blk_mq_sched_bio_merge() argument 355 ret = e->type->ops.bio_merge(q, bio, nr_segs); in blk_mq_sched_bio_merge() 373 if (blk_bio_list_merge(q, &ctx->rq_lists[type], bio, nr_segs)) in blk_mq_sched_bio_merge()
|
D | blk-crypto-fallback.c | 162 unsigned int nr_segs = bio_segments(bio_src); in blk_crypto_fallback_clone_bio() local 167 bio = bio_kmalloc(nr_segs, GFP_NOIO); in blk_crypto_fallback_clone_bio() 170 bio_init(bio, bio_src->bi_bdev, bio->bi_inline_vecs, nr_segs, in blk_crypto_fallback_clone_bio()
|
D | blk-mq.c | 2426 unsigned int nr_segs) in blk_mq_bio_to_request() argument 2434 blk_rq_bio_prep(rq, bio, nr_segs); in blk_mq_bio_to_request() 2705 struct bio *bio, unsigned int nr_segs) in blk_mq_attempt_bio_merge() argument 2708 if (blk_attempt_plug_merge(q, bio, nr_segs)) in blk_mq_attempt_bio_merge() 2710 if (blk_mq_sched_bio_merge(q, bio, nr_segs)) in blk_mq_attempt_bio_merge() 2806 unsigned int nr_segs = 1; in blk_mq_submit_bio() local 2811 __blk_queue_split(q, &bio, &nr_segs); in blk_mq_submit_bio() 2816 rq = blk_mq_get_cached_request(q, plug, &bio, nr_segs); in blk_mq_submit_bio() 2820 rq = blk_mq_get_new_requests(q, plug, bio, nr_segs); in blk_mq_submit_bio() 2829 blk_mq_bio_to_request(rq, bio, nr_segs); in blk_mq_submit_bio()
|
D | kyber-iosched.c | 570 unsigned int nr_segs) in kyber_bio_merge() argument 581 merged = blk_bio_list_merge(hctx->queue, rq_list, bio, nr_segs); in kyber_bio_merge()
|
/linux-5.19.10/lib/ |
D | iov_iter.c | 119 i->nr_segs -= iov - i->iov; \ 127 i->nr_segs -= bvec - i->bvec; \ 135 i->nr_segs -= kvec - i->kvec; \ 249 i->nr_segs -= iov - i->iov; in copy_page_to_iter_iovec() 333 i->nr_segs -= iov - i->iov; in copy_page_from_iter_iovec() 509 const struct iovec *iov, unsigned long nr_segs, in iov_iter_init() argument 518 .nr_segs = nr_segs, in iov_iter_init() 1047 i->nr_segs -= bi.bi_idx; in iov_iter_bvec_advance() 1061 for (iov = i->iov, end = iov + i->nr_segs; iov < end; iov++) { in iov_iter_iovec_advance() 1067 i->nr_segs -= iov - i->iov; in iov_iter_iovec_advance() [all …]
|
/linux-5.19.10/fs/ksmbd/ |
D | transport_tcp.c | 115 unsigned int nr_segs, size_t bytes) in kvec_array_init() argument 126 nr_segs--; in kvec_array_init() 131 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init() 134 return nr_segs; in kvec_array_init() 144 static struct kvec *get_conn_iovec(struct tcp_transport *t, unsigned int nr_segs) in get_conn_iovec() argument 148 if (t->iov && nr_segs <= t->nr_iov) in get_conn_iovec() 152 new_iov = kmalloc_array(nr_segs, sizeof(*new_iov), GFP_KERNEL); in get_conn_iovec() 156 t->nr_iov = nr_segs; in get_conn_iovec() 290 unsigned int nr_segs, unsigned int to_read) in ksmbd_tcp_readv() argument 299 iov = get_conn_iovec(t, nr_segs); in ksmbd_tcp_readv() [all …]
|
/linux-5.19.10/arch/powerpc/mm/ |
D | dma-noncoherent.c | 65 int nr_segs = 1 + ((size - seg_size) + PAGE_SIZE - 1)/PAGE_SIZE; in __dma_sync_page_highmem() local 84 } while (seg_nr < nr_segs); in __dma_sync_page_highmem()
|
/linux-5.19.10/drivers/scsi/ |
D | xen-scsifront.c | 1142 unsigned int sg_grant, nr_segs; in scsifront_read_backend_params() local 1146 nr_segs = min_t(unsigned int, sg_grant, SG_ALL); in scsifront_read_backend_params() 1147 nr_segs = max_t(unsigned int, nr_segs, VSCSIIF_SG_TABLESIZE); in scsifront_read_backend_params() 1148 nr_segs = min_t(unsigned int, nr_segs, in scsifront_read_backend_params() 1153 dev_info(&dev->dev, "using up to %d SG entries\n", nr_segs); in scsifront_read_backend_params() 1154 else if (info->pause && nr_segs < host->sg_tablesize) in scsifront_read_backend_params() 1157 host->sg_tablesize, nr_segs); in scsifront_read_backend_params() 1159 host->sg_tablesize = nr_segs; in scsifront_read_backend_params() 1160 host->max_sectors = (nr_segs - 1) * PAGE_SIZE / 512; in scsifront_read_backend_params()
|
D | scsi_lib.c | 1024 unsigned short nr_segs = blk_rq_nr_phys_segments(rq); in scsi_alloc_sgtables() local 1030 if (WARN_ON_ONCE(!nr_segs)) in scsi_alloc_sgtables() 1038 nr_segs++; in scsi_alloc_sgtables() 1043 if (unlikely(sg_alloc_table_chained(&cmd->sdb.table, nr_segs, in scsi_alloc_sgtables()
|
/linux-5.19.10/drivers/hwtracing/intel_th/ |
D | msu.c | 73 unsigned int nr_segs; member 330 for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { in msc_win_total_sz() 425 for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { in msc_win_oldest_sg() 662 for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { in msc_buffer_clear_hw_header() 992 unsigned int nr_segs) in __msc_buffer_win_alloc() argument 998 ret = sg_alloc_table(win->sgt, nr_segs, GFP_KERNEL); in __msc_buffer_win_alloc() 1002 for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { in __msc_buffer_win_alloc() 1012 return nr_segs; in __msc_buffer_win_alloc() 1037 for_each_sg(win->sgt->sgl, sg_ptr, win->nr_segs, i) { in msc_buffer_set_uc() 1057 for_each_sg(win->sgt->sgl, sg_ptr, win->nr_segs, i) { in msc_buffer_set_wb() [all …]
|
/linux-5.19.10/drivers/md/bcache/ |
D | debug.c | 110 unsigned int nr_segs = bio_segments(bio); in bch_data_verify() local 115 check = bio_kmalloc(nr_segs, GFP_NOIO); in bch_data_verify() 118 bio_init(check, bio->bi_bdev, check->bi_inline_vecs, nr_segs, in bch_data_verify()
|
/linux-5.19.10/fs/fuse/ |
D | dev.c | 649 unsigned long nr_segs; member 705 BUG_ON(!cs->nr_segs); in fuse_copy_fill() 711 cs->nr_segs--; in fuse_copy_fill() 713 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_copy_fill() 729 cs->nr_segs++; in fuse_copy_fill() 805 BUG_ON(!cs->nr_segs); in fuse_try_move_page() 809 cs->nr_segs--; in fuse_try_move_page() 897 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_ref_page() 915 cs->nr_segs++; in fuse_ref_page() 1392 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read() [all …]
|
/linux-5.19.10/drivers/block/xen-blkback/ |
D | blkback.c | 710 invcount = xen_blkbk_unmap_prepare(ring, pages, req->nr_segs, in xen_blkbk_unmap_and_respond() 907 pending_req->nr_segs, in xen_blkbk_map_seg() 923 nseg = pending_req->nr_segs; in xen_blkbk_parse_indirect() 1257 pending_req->nr_segs = nseg; in dispatch_rw_block_io() 1371 pending_req->nr_segs); in dispatch_rw_block_io()
|
D | common.h | 347 int nr_segs; member
|
/linux-5.19.10/drivers/nvme/target/ |
D | io-cmd-file.c | 94 unsigned long nr_segs, size_t count, int ki_flags) in nvmet_file_submit_bvec() argument 111 iov_iter_bvec(&iter, rw, req->f.bvec, nr_segs, count); in nvmet_file_submit_bvec()
|
/linux-5.19.10/drivers/usb/host/ |
D | xen-hcd.c | 719 int nr_segs = 0; in xenhcd_gnttab_done() local 728 nr_segs = shadow->req.nr_buffer_segs; in xenhcd_gnttab_done() 731 nr_segs += shadow->req.u.isoc.nr_frame_desc_segs; in xenhcd_gnttab_done() 733 for (i = 0; i < nr_segs; i++) { in xenhcd_gnttab_done()
|
/linux-5.19.10/mm/ |
D | swap.c | 174 int get_kernel_pages(const struct kvec *kiov, int nr_segs, int write, in get_kernel_pages() argument 179 for (seg = 0; seg < nr_segs; seg++) { in get_kernel_pages()
|
/linux-5.19.10/sound/core/ |
D | pcm_native.c | 3524 if (to->nr_segs > 1024 || to->nr_segs != runtime->channels) in snd_pcm_readv() 3529 bufs = kmalloc_array(to->nr_segs, sizeof(void *), GFP_KERNEL); in snd_pcm_readv() 3532 for (i = 0; i < to->nr_segs; ++i) in snd_pcm_readv() 3561 if (from->nr_segs > 128 || from->nr_segs != runtime->channels || in snd_pcm_writev() 3565 bufs = kmalloc_array(from->nr_segs, sizeof(void *), GFP_KERNEL); in snd_pcm_writev() 3568 for (i = 0; i < from->nr_segs; ++i) in snd_pcm_writev()
|