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()
32 memcpy(bmd->iov, data->iov, sizeof(struct iovec) * data->nr_segs); in bio_alloc_map_data()
531 unsigned int nr_segs = 0; in blk_rq_append_bio() local
534 nr_segs++; in blk_rq_append_bio()
537 blk_rq_bio_prep(rq, bio, nr_segs); in blk_rq_append_bio()
539 if (!ll_back_merge_fn(rq, bio, nr_segs)) in blk_rq_append_bio()
556 size_t nr_segs = iter->nr_segs; in blk_rq_map_user_bvec() local
565 if (nr_segs > queue_max_segments(q)) in blk_rq_map_user_bvec()
574 blk_rq_bio_prep(rq, bio, nr_segs); in blk_rq_map_user_bvec()
578 for (i = 0; i < nr_segs; i++) { in blk_rq_map_user_bvec()
590 if (nsegs >= nr_segs || bytes > UINT_MAX - bv->bv_len) in blk_rq_map_user_bvec()