Home
last modified time | relevance | path

Searched refs:bio (Results 1 – 24 of 24) sorted by relevance

/include/linux/
Dbio.h20 #define bio_prio(bio) (bio)->bi_ioprio argument
21 #define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio) argument
23 #define bio_iter_iovec(bio, iter) \ argument
24 bvec_iter_bvec((bio)->bi_io_vec, (iter))
26 #define bio_iter_page(bio, iter) \ argument
27 bvec_iter_page((bio)->bi_io_vec, (iter))
28 #define bio_iter_len(bio, iter) \ argument
29 bvec_iter_len((bio)->bi_io_vec, (iter))
30 #define bio_iter_offset(bio, iter) \ argument
31 bvec_iter_offset((bio)->bi_io_vec, (iter))
[all …]
Dblk-crypto.h131 static inline bool bio_has_crypt_ctx(struct bio *bio) in bio_has_crypt_ctx() argument
133 return bio->bi_crypt_context; in bio_has_crypt_ctx()
136 void bio_crypt_set_ctx(struct bio *bio, const struct blk_crypto_key *key,
168 static inline bool bio_has_crypt_ctx(struct bio *bio) in bio_has_crypt_ctx() argument
175 static inline void bio_clone_skip_dm_default_key(struct bio *dst,
176 const struct bio *src);
178 int __bio_crypt_clone(struct bio *dst, struct bio *src, gfp_t gfp_mask);
190 static inline int bio_crypt_clone(struct bio *dst, struct bio *src, in bio_crypt_clone()
200 static inline void bio_set_skip_dm_default_key(struct bio *bio) in bio_set_skip_dm_default_key() argument
202 bio->bi_skip_dm_default_key = true; in bio_set_skip_dm_default_key()
[all …]
Dblk-cgroup.h19 struct bio;
34 struct cgroup_subsys_state *bio_blkcg_css(struct bio *bio);
42 static inline struct cgroup_subsys_state *bio_blkcg_css(struct bio *bio) in bio_blkcg_css() argument
49 char *blkcg_get_fc_appid(struct bio *bio);
Ddm-region-hash.h50 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);
Dpktcdvd.h117 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
Dblk-mq.h101 struct bio *bio; member
102 struct bio *biotail;
965 static inline void blk_rq_bio_prep(struct request *rq, struct bio *bio, in blk_rq_bio_prep() argument
969 rq->__data_len = bio->bi_iter.bi_size; in blk_rq_bio_prep()
970 rq->bio = rq->biotail = bio; in blk_rq_bio_prep()
971 rq->ioprio = bio_prio(bio); in blk_rq_bio_prep()
985 int (*bio_ctr)(struct bio *, struct bio *, void *), void *data);
1004 int blk_rq_unmap_user(struct bio *);
1007 int blk_rq_append_bio(struct request *rq, struct bio *bio);
1014 struct bio *bio; member
[all …]
Dblk-integrity.h42 int blk_rq_map_integrity_sg(struct request_queue *, struct bio *,
44 int blk_rq_count_integrity_sg(struct request_queue *, struct bio *);
115 return rq->bio->bi_integrity->bip_vec; in rq_integrity_vec()
119 struct bio *b) in blk_rq_count_integrity_sg()
124 struct bio *b, in blk_rq_map_integrity_sg()
Dblk_types.h16 struct bio;
21 typedef void (bio_end_io_t) (struct bio *);
253 struct bio { struct
254 struct bio *bi_next; /* request queue link */ argument
322 #define BIO_RESET_BYTES offsetof(struct bio, bi_max_vecs)
478 static inline enum req_op bio_op(const struct bio *bio) in bio_op() argument
480 return bio->bi_opf & REQ_OP_MASK; in bio_op()
484 static inline void bio_set_op_attrs(struct bio *bio, enum req_op op, in bio_set_op_attrs() argument
487 bio->bi_opf = op | op_flags; in bio_set_op_attrs()
Dfscrypt.h369 bool fscrypt_decrypt_bio(struct bio *bio);
655 static inline bool fscrypt_decrypt_bio(struct bio *bio) in fscrypt_decrypt_bio() argument
770 void fscrypt_set_bio_crypt_ctx(struct bio *bio,
774 void fscrypt_set_bio_crypt_ctx_bh(struct bio *bio,
778 bool fscrypt_mergeable_bio(struct bio *bio, const struct inode *inode,
781 bool fscrypt_mergeable_bio_bh(struct bio *bio,
795 static inline void fscrypt_set_bio_crypt_ctx(struct bio *bio, in fscrypt_set_bio_crypt_ctx() argument
800 struct bio *bio, in fscrypt_set_bio_crypt_ctx_bh() argument
804 static inline bool fscrypt_mergeable_bio(struct bio *bio, in fscrypt_mergeable_bio() argument
811 static inline bool fscrypt_mergeable_bio_bh(struct bio *bio, in fscrypt_mergeable_bio_bh() argument
Ddevice-mapper.h62 typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio);
79 struct bio *bio, blk_status_t *error);
391 void *dm_per_bio_data(struct bio *bio, size_t data_size);
392 struct bio *dm_bio_from_per_bio_data(void *data, size_t data_size);
393 unsigned int dm_bio_get_target_bio_nr(const struct bio *bio);
395 u64 dm_start_time_ns_from_clone(struct bio *bio);
491 void dm_accept_partial_bio(struct bio *bio, unsigned int n_sectors);
492 void dm_submit_bio_remap(struct bio *clone, struct bio *tgt_clone);
Ddm-io.h45 struct bio *bio; member
Dblkdev.h891 void submit_bio_noacct(struct bio *bio);
892 struct bio *bio_split_to_limits(struct bio *bio);
909 int bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags);
921 static inline unsigned int bio_zone_no(struct bio *bio) in bio_zone_no() argument
923 return disk_zone_no(bio->bi_bdev->bd_disk, bio->bi_iter.bi_sector); in bio_zone_no()
926 static inline unsigned int bio_zone_is_seq(struct bio *bio) in bio_zone_is_seq() argument
928 return disk_zone_is_seq(bio->bi_bdev->bd_disk, bio->bi_iter.bi_sector); in bio_zone_is_seq()
1093 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop);
1101 sector_t nr_sects, gfp_t gfp_mask, struct bio **biop,
1423 void (*submit_bio)(struct bio *bio);
[all …]
Dfsverity.h174 void fsverity_verify_bio(struct bio *bio);
240 static inline void fsverity_verify_bio(struct bio *bio) in fsverity_verify_bio() argument
Dwriteback.h15 struct bio;
279 static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) in wbc_init_bio() argument
288 bio_associate_blkg_from_css(bio, wbc->wb->blkcg_css); in wbc_init_bio()
317 static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) in wbc_init_bio() argument
Diomap.h269 struct bio *io_bio; /* bio being built */
270 struct bio io_inline_bio; /* MUST BE LAST! */
319 void (*submit_io)(const struct iomap_iter *iter, struct bio *bio,
366 void iomap_dio_bio_end_io(struct bio *bio);
Dbsg-lib.h60 struct bio *bidi_bio;
Dlibnvdimm.h133 int (*flush)(struct nd_region *nd_region, struct bio *bio);
289 int nvdimm_flush(struct nd_region *nd_region, struct bio *bio);
Dswap.h21 struct bio;
Dfs.h52 struct bio;
3264 typedef void (dio_submit_t)(struct bio *bio, struct inode *inode,
/include/trace/events/
Dblock.h258 TP_PROTO(struct request_queue *q, struct bio *bio),
260 TP_ARGS(q, bio),
271 __entry->dev = bio_dev(bio);
272 __entry->sector = bio->bi_iter.bi_sector;
273 __entry->nr_sector = bio_sectors(bio);
274 __entry->error = blk_status_to_errno(bio->bi_status);
275 blk_fill_rwbs(__entry->rwbs, bio->bi_opf);
286 TP_PROTO(struct bio *bio),
288 TP_ARGS(bio),
299 __entry->dev = bio_dev(bio);
[all …]
Dbcache.h11 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);
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 …]
Df2fs.h1096 TP_PROTO(struct super_block *sb, int type, struct bio *bio),
1098 TP_ARGS(sb, type, bio),
1112 __entry->target = bio_dev(bio);
1113 __entry->op = bio_op(bio);
1114 __entry->op_flags = bio->bi_opf;
1116 __entry->sector = bio->bi_iter.bi_sector;
1117 __entry->size = bio->bi_iter.bi_size;
1131 TP_PROTO(struct super_block *sb, int type, struct bio *bio),
1133 TP_ARGS(sb, type, bio),
1135 TP_CONDITION(bio)
[all …]
Dbtrfs.h2328 const struct bio *bio,
2331 TP_ARGS(rbio, bio, trace_info),
2348 __entry->physical = bio->bi_iter.bi_sector << SECTOR_SHIFT;
2349 __entry->len = bio->bi_iter.bi_size;
2350 __entry->opf = bio_op(bio);
2378 const struct bio *bio,
2381 TP_ARGS(rbio, bio, trace_info)
2386 const struct bio *bio,
2389 TP_ARGS(rbio, bio, trace_info)
2395 const struct bio *bio,
[all …]
/include/linux/ceph/
Dmessenger.h106 struct bio *bio; member
117 bio_advance_iter((it)->bio, &(it)->iter, __cur_n); \
118 if (!(it)->iter.bi_size && (it)->bio->bi_next) { \
120 (it)->bio = (it)->bio->bi_next; \
121 (it)->iter = (it)->bio->bi_iter; \
143 __bio_for_each_segment(bv, (it)->bio, __cur_iter, __cur_iter) \