Searched refs:nr_phys_segments (Results 1 – 5 of 5) sorted by relevance
308 rq->nr_phys_segments = __blk_recalc_rq_segments(rq->q, rq->bio, in blk_recalc_rq_segments()488 if (req->nr_phys_segments + nr_phys_segs > queue_max_segments(q)) in ll_new_hw_segment()501 req->nr_phys_segments += nr_phys_segs; in ll_new_hw_segment()574 req->nr_phys_segments = segments + blk_rq_nr_discard_segments(next); in req_attempt_discard_merge()605 total_phys_segments = req->nr_phys_segments + next->nr_phys_segments; in ll_merge_requests_fn()607 if (req->nr_phys_segments == 1) in ll_merge_requests_fn()609 if (next->nr_phys_segments == 1) in ll_merge_requests_fn()624 req->nr_phys_segments = total_phys_segments; in ll_merge_requests_fn()
177 size_t sz = (sizeof(struct scatterlist) * req->nr_phys_segments); in bsg_map_buffer()179 BUG_ON(!req->nr_phys_segments); in bsg_map_buffer()184 sg_init_table(buf->sg_list, req->nr_phys_segments); in bsg_map_buffer()
1870 req->nr_phys_segments = segments + 1; in bio_attempt_discard_merge()2620 if (rq->nr_phys_segments > queue_max_segments(q)) { in blk_cloned_rq_check_limits()2917 rq->nr_phys_segments++; in blk_peek_request()2939 --rq->nr_phys_segments; in blk_peek_request()3414 rq->nr_phys_segments = bio_phys_segments(q, bio); in blk_rq_bio_prep()3416 rq->nr_phys_segments = 1; in blk_rq_bio_prep()3504 dst->nr_phys_segments = src->nr_phys_segments; in __blk_rq_prep_clone()
314 rq->nr_phys_segments = 0; in blk_mq_rq_ctx_init()658 rq->nr_phys_segments++; in blk_mq_start_request()676 rq->nr_phys_segments--; in __blk_mq_requeue_request()
239 unsigned short nr_phys_segments; member1274 return rq->nr_phys_segments; in blk_rq_nr_phys_segments()1283 return max_t(unsigned short, rq->nr_phys_segments, 1); in blk_rq_nr_discard_segments()