Lines Matching refs:nr_segs
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()
34 memcpy(bmd->iov, iter_iov(data), sizeof(struct iovec) * data->nr_segs); in bio_alloc_map_data()
534 unsigned int nr_segs = 0; in blk_rq_append_bio() local
537 nr_segs++; in blk_rq_append_bio()
540 blk_rq_bio_prep(rq, bio, nr_segs); in blk_rq_append_bio()
542 if (!ll_back_merge_fn(rq, bio, nr_segs)) in blk_rq_append_bio()
559 size_t nr_segs = iter->nr_segs; in blk_rq_map_user_bvec() local
568 if (nr_segs > queue_max_segments(q)) in blk_rq_map_user_bvec()
577 blk_rq_bio_prep(rq, bio, nr_segs); in blk_rq_map_user_bvec()
581 for (i = 0; i < nr_segs; i++) { in blk_rq_map_user_bvec()
593 if (nsegs >= nr_segs || bytes > UINT_MAX - bv->bv_len) in blk_rq_map_user_bvec()