/include/linux/ |
D | bio.h | 28 #define bio_prio(bio) (bio)->bi_ioprio argument 29 #define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio) argument 31 #define bio_iter_iovec(bio, iter) \ argument 32 bvec_iter_bvec((bio)->bi_io_vec, (iter)) 34 #define bio_iter_page(bio, iter) \ argument 35 bvec_iter_page((bio)->bi_io_vec, (iter)) 36 #define bio_iter_len(bio, iter) \ argument 37 bvec_iter_len((bio)->bi_io_vec, (iter)) 38 #define bio_iter_offset(bio, iter) \ argument 39 bvec_iter_offset((bio)->bi_io_vec, (iter)) [all …]
|
D | bio-crypt-ctx.h | 113 void bio_crypt_free_ctx(struct bio *bio); 115 static inline bool bio_has_crypt_ctx(struct bio *bio) in bio_has_crypt_ctx() argument 117 return bio->bi_crypt_context; in bio_has_crypt_ctx() 120 void bio_crypt_clone(struct bio *dst, struct bio *src, gfp_t gfp_mask); 122 static inline void bio_crypt_set_ctx(struct bio *bio, in bio_crypt_set_ctx() argument 134 bio->bi_crypt_context = bc; in bio_crypt_set_ctx() 175 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes) in bio_crypt_advance() argument 177 struct bio_crypt_ctx *bc = bio->bi_crypt_context; in bio_crypt_advance() 186 bool bio_crypt_ctx_compatible(struct bio *b_1, struct bio *b_2); 188 bool bio_crypt_ctx_mergeable(struct bio *b_1, unsigned int b1_bytes, [all …]
|
D | blk-crypto.h | 13 int blk_crypto_submit_bio(struct bio **bio_ptr); 15 bool blk_crypto_endio(struct bio *bio); 35 static inline int blk_crypto_submit_bio(struct bio **bio_ptr) in blk_crypto_submit_bio() 40 static inline bool blk_crypto_endio(struct bio *bio) in blk_crypto_endio() argument
|
D | blk-cgroup.h | 281 static inline struct blkcg *__bio_blkcg(struct bio *bio) in __bio_blkcg() argument 283 if (bio && bio->bi_blkg) in __bio_blkcg() 284 return bio->bi_blkg->blkcg; in __bio_blkcg() 296 static inline struct blkcg *bio_blkcg(struct bio *bio) in bio_blkcg() argument 298 if (bio && bio->bi_blkg) in bio_blkcg() 299 return bio->bi_blkg->blkcg; in bio_blkcg() 334 static inline bool bio_issue_as_root_blkg(struct bio *bio) in bio_issue_as_root_blkg() argument 336 return (bio->bi_opf & (REQ_META | REQ_SWAP)) != 0; in bio_issue_as_root_blkg() 708 struct bio *bio); 711 struct bio *bio) { return false; } in blk_throtl_bio() argument [all …]
|
D | dm-region-hash.h | 50 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio); 79 void dm_rh_delay(struct dm_region_hash *rh, struct bio *bio); 81 void dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio);
|
D | blk_types.h | 15 struct bio; 21 typedef void (bio_end_io_t) (struct bio *); 146 struct bio { struct 147 struct bio *bi_next; /* request queue link */ argument 217 #define BIO_RESET_BYTES offsetof(struct bio, bi_max_vecs) 257 #define BVEC_POOL_IDX(bio) ((bio)->bi_flags >> BVEC_POOL_OFFSET) argument 397 #define bio_op(bio) \ argument 398 ((bio)->bi_opf & REQ_OP_MASK) 403 static inline void bio_set_op_attrs(struct bio *bio, unsigned op, in bio_set_op_attrs() argument 406 bio->bi_opf = op | op_flags; in bio_set_op_attrs()
|
D | pktcdvd.h | 117 struct bio *w_bio; /* The bio we will send to the real CD */ 132 struct bio *r_bios[PACKET_MAX_SIZE]; /* bios to use during data gathering */ 145 struct bio *bio; member 150 struct bio *bio; /* Original read request bio */ member
|
D | elevator.h | 37 bool (*allow_merge)(struct request_queue *, struct request *, struct bio *); 47 bool (*bio_merge)(struct blk_mq_hw_ctx *, struct bio *, unsigned int); 49 bool (*bio_merge)(struct request_queue *, struct bio *, unsigned int); 51 int (*request_merge)(struct request_queue *q, struct request **, struct bio *); 55 void (*prepare_request)(struct request *, struct bio *bio); 136 struct bio *); 157 extern bool elv_bio_merge_ok(struct request *, struct bio *);
|
D | blkdev.h | 156 struct bio *bio; member 157 struct bio *biotail; 283 static inline bool bio_is_passthrough(struct bio *bio) in bio_is_passthrough() argument 285 unsigned op = bio_op(bio); in bio_is_passthrough() 299 typedef blk_qc_t (make_request_fn) (struct request_queue *q, struct bio *bio); 774 static inline bool blk_write_same_mergeable(struct bio *a, struct bio *b) in blk_write_same_mergeable() 826 struct bio *bio; member 833 if ((rq->bio)) \ 834 for (_bio = (rq)->bio; _bio; _bio = _bio->bi_next) 837 __rq_for_each_bio(_iter.bio, _rq) \ [all …]
|
D | fsverity.h | 139 void fsverity_verify_bio(struct bio *bio); 189 static inline void fsverity_verify_bio(struct bio *bio) in fsverity_verify_bio() argument
|
D | fscrypt.h | 242 void fscrypt_decrypt_bio(struct bio *bio); 504 static inline void fscrypt_decrypt_bio(struct bio *bio) in fscrypt_decrypt_bio() argument 596 extern void fscrypt_set_bio_crypt_ctx(struct bio *bio, 600 extern void fscrypt_set_bio_crypt_ctx_bh(struct bio *bio, 604 extern bool fscrypt_mergeable_bio(struct bio *bio, const struct inode *inode, 607 extern bool fscrypt_mergeable_bio_bh(struct bio *bio, 626 static inline void fscrypt_set_bio_crypt_ctx(struct bio *bio, in fscrypt_set_bio_crypt_ctx() argument 631 struct bio *bio, in fscrypt_set_bio_crypt_ctx_bh() argument 635 static inline bool fscrypt_mergeable_bio(struct bio *bio, in fscrypt_mergeable_bio() argument 642 static inline bool fscrypt_mergeable_bio_bh(struct bio *bio, in fscrypt_mergeable_bio_bh() argument
|
D | dm-io.h | 44 struct bio *bio; member
|
D | device-mapper.h | 60 typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio); 77 struct bio *bio, blk_status_t *error); 338 void *dm_per_bio_data(struct bio *bio, size_t data_size); 339 struct bio *dm_bio_from_per_bio_data(void *data, size_t data_size); 340 unsigned dm_bio_get_target_bio_nr(const struct bio *bio); 436 void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors);
|
D | writeback.h | 16 struct bio; 281 static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) in wbc_init_bio() argument 290 bio_associate_blkg_from_css(bio, wbc->wb->blkcg_css); in wbc_init_bio() 319 static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) in wbc_init_bio() argument
|
D | bsg-lib.h | 60 struct bio *bidi_bio;
|
D | libnvdimm.h | 133 int (*flush)(struct nd_region *nd_region, struct bio *bio); 264 int nvdimm_flush(struct nd_region *nd_region, struct bio *bio);
|
D | swap.h | 19 struct bio; 390 extern void end_swap_bio_write(struct bio *bio);
|
D | blk-mq.h | 316 struct bio *bio, unsigned int nr_segs);
|
D | lightnvm.h | 285 struct bio *bio; member 634 typedef blk_qc_t (nvm_tgt_make_rq_fn)(struct request_queue *, struct bio *);
|
D | fs.h | 51 struct bio; 3247 typedef void (dio_submit_t)(struct bio *bio, struct inode *inode, 3258 void dio_end_io(struct bio *bio);
|
/include/trace/events/ |
D | block.h | 227 TP_PROTO(struct request_queue *q, struct bio *bio), 229 TP_ARGS(q, bio), 240 __entry->dev = bio_dev(bio); 241 __entry->sector = bio->bi_iter.bi_sector; 242 __entry->nr_sector = bio_sectors(bio); 243 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size); 264 TP_PROTO(struct request_queue *q, struct bio *bio, int error), 266 TP_ARGS(q, bio, error), 277 __entry->dev = bio_dev(bio); 278 __entry->sector = bio->bi_iter.bi_sector; [all …]
|
D | bcache.h | 11 TP_PROTO(struct bcache_device *d, struct bio *bio), 12 TP_ARGS(d, bio), 25 __entry->dev = bio_dev(bio); 28 __entry->sector = bio->bi_iter.bi_sector; 29 __entry->orig_sector = bio->bi_iter.bi_sector - 16; 30 __entry->nr_sector = bio->bi_iter.bi_size >> 9; 31 blk_fill_rwbs(__entry->rwbs, bio->bi_opf, bio->bi_iter.bi_size); 81 TP_PROTO(struct bcache_device *d, struct bio *bio), 82 TP_ARGS(d, bio) 86 TP_PROTO(struct bcache_device *d, struct bio *bio), [all …]
|
D | f2fs.h | 1075 TP_PROTO(struct super_block *sb, int type, struct bio *bio), 1077 TP_ARGS(sb, type, bio), 1091 __entry->target = bio_dev(bio); 1092 __entry->op = bio_op(bio); 1093 __entry->op_flags = bio->bi_opf; 1095 __entry->sector = bio->bi_iter.bi_sector; 1096 __entry->size = bio->bi_iter.bi_size; 1110 TP_PROTO(struct super_block *sb, int type, struct bio *bio), 1112 TP_ARGS(sb, type, bio), 1114 TP_CONDITION(bio) [all …]
|
/include/linux/ceph/ |
D | messenger.h | 88 struct bio *bio; member 99 bio_advance_iter((it)->bio, &(it)->iter, __cur_n); \ 100 if (!(it)->iter.bi_size && (it)->bio->bi_next) { \ 102 (it)->bio = (it)->bio->bi_next; \ 103 (it)->iter = (it)->bio->bi_iter; \ 125 __bio_for_each_segment(bv, (it)->bio, __cur_iter, __cur_iter) \
|