Lines Matching refs:bio
58 int __bio_queue_enter(struct request_queue *q, struct bio *bio);
59 bool submit_bio_checks(struct bio *bio);
85 static inline int bio_queue_enter(struct bio *bio) in bio_queue_enter() argument
87 struct request_queue *q = bdev_get_queue(bio->bi_bdev); in bio_queue_enter()
91 return __bio_queue_enter(q, bio); in bio_queue_enter()
174 bool __bio_integrity_endio(struct bio *);
175 void bio_integrity_free(struct bio *bio);
176 static inline bool bio_integrity_endio(struct bio *bio) in bio_integrity_endio() argument
178 if (bio_integrity(bio)) in bio_integrity_endio()
179 return __bio_integrity_endio(bio); in bio_integrity_endio()
186 struct bio *);
189 struct bio *next) in integrity_req_gap_back_merge()
191 struct bio_integrity_payload *bip = bio_integrity(req->bio); in integrity_req_gap_back_merge()
199 struct bio *bio) in integrity_req_gap_front_merge() argument
201 struct bio_integrity_payload *bip = bio_integrity(bio); in integrity_req_gap_front_merge()
202 struct bio_integrity_payload *bip_next = bio_integrity(req->bio); in integrity_req_gap_front_merge()
217 struct request *r, struct bio *b) in blk_integrity_merge_bio()
222 struct bio *next) in integrity_req_gap_back_merge()
227 struct bio *bio) in integrity_req_gap_front_merge() argument
235 static inline bool bio_integrity_endio(struct bio *bio) in bio_integrity_endio() argument
239 static inline void bio_integrity_free(struct bio *bio) in bio_integrity_free() argument
255 bool blk_attempt_plug_merge(struct request_queue *q, struct bio *bio,
258 struct bio *bio, unsigned int nr_segs);
305 static inline bool blk_may_split(struct request_queue *q, struct bio *bio) in blk_may_split() argument
307 switch (bio_op(bio)) { in blk_may_split()
325 return q->limits.chunk_sectors || bio->bi_vcnt != 1 || in blk_may_split()
326 bio->bi_io_vec->bv_len + bio->bi_io_vec->bv_offset > PAGE_SIZE; in blk_may_split()
329 void __blk_queue_split(struct request_queue *q, struct bio **bio,
331 int ll_back_merge_fn(struct request *req, struct bio *bio,
337 bool blk_rq_merge_ok(struct request *rq, struct bio *bio);
338 enum elv_merge blk_try_merge(struct request *rq, struct bio *bio);
417 extern void blk_throtl_bio_endio(struct bio *bio);
420 static inline void blk_throtl_bio_endio(struct bio *bio) { } in blk_throtl_bio_endio() argument
424 void __blk_queue_bounce(struct request_queue *q, struct bio **bio);
433 static inline void blk_queue_bounce(struct request_queue *q, struct bio **bio) in blk_queue_bounce() argument
435 if (unlikely(blk_queue_may_bounce(q) && bio_has_data(*bio))) in blk_queue_bounce()
436 __blk_queue_bounce(q, bio); in blk_queue_bounce()
445 struct bio *blk_next_bio(struct bio *bio, unsigned int nr_pages, gfp_t gfp);
466 int bio_add_hw_page(struct request_queue *q, struct bio *bio,
480 static inline void bio_clear_polled(struct bio *bio) in bio_clear_polled() argument
483 bio_clear_flag(bio, BIO_PERCPU_CACHE); in bio_clear_polled()
484 bio->bi_opf &= ~REQ_POLLED; in bio_clear_polled()