Home
last modified time | relevance | path

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

/include/linux/
Dbio.h43 #define bio_prio(bio) (bio)->bi_ioprio argument
44 #define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio) argument
46 #define bio_iter_iovec(bio, iter) \ argument
47 bvec_iter_bvec((bio)->bi_io_vec, (iter))
49 #define bio_iter_page(bio, iter) \ argument
50 bvec_iter_page((bio)->bi_io_vec, (iter))
51 #define bio_iter_len(bio, iter) \ argument
52 bvec_iter_len((bio)->bi_io_vec, (iter))
53 #define bio_iter_offset(bio, iter) \ argument
54 bvec_iter_offset((bio)->bi_io_vec, (iter))
[all …]
Dblk_types.h12 struct bio;
18 typedef void (bio_end_io_t) (struct bio *);
25 struct bio { struct
26 struct bio *bi_next; /* request queue link */ argument
92 #define BIO_OP_SHIFT (8 * FIELD_SIZEOF(struct bio, bi_opf) - REQ_OP_BITS)
93 #define bio_flags(bio) ((bio)->bi_opf & ((1 << BIO_OP_SHIFT) - 1)) argument
94 #define bio_op(bio) ((bio)->bi_opf >> BIO_OP_SHIFT) argument
96 #define bio_set_op_attrs(bio, op, op_flags) do { \ argument
105 (bio)->bi_opf = bio_flags(bio); \
106 (bio)->bi_opf |= (((op) + 0U) << BIO_OP_SHIFT); \
[all …]
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);
Dblk-cgroup.h231 static inline struct blkcg *bio_blkcg(struct bio *bio) in bio_blkcg() argument
233 if (bio && bio->bi_css) in bio_blkcg()
234 return css_to_blkcg(bio->bi_css); in bio_blkcg()
417 struct bio *bio) in blk_get_rl() argument
424 blkcg = bio_blkcg(bio); in blk_get_rl()
679 struct bio *bio);
682 struct bio *bio) { return false; } in blk_throtl_bio() argument
686 struct bio *bio) in blkcg_bio_issue_check() argument
693 blkcg = bio_blkcg(bio); in blkcg_bio_issue_check()
704 throtl = blk_throtl_bio(q, blkg, bio); in blkcg_bio_issue_check()
[all …]
Delevator.h13 struct bio *);
20 struct request *, struct bio *);
26 struct request *, struct bio *);
38 struct bio *, gfp_t);
131 extern int elv_merge(struct request_queue *, struct request **, struct bio *);
136 struct bio *);
145 struct bio *bio, gfp_t gfp_mask);
165 extern bool elv_bio_merge_ok(struct request *, struct 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
Dblkdev.h107 struct bio *bio; member
108 struct bio *biotail;
228 typedef blk_qc_t (make_request_fn) (struct request_queue *q, struct bio *bio);
681 static inline bool blk_write_same_mergeable(struct bio *a, struct bio *b) in blk_write_same_mergeable()
725 extern void blk_queue_bounce(struct request_queue *q, struct bio **bio);
731 static inline void blk_queue_bounce(struct request_queue *q, struct bio **bio) in blk_queue_bounce() argument
747 struct bio *bio; member
754 if ((rq->bio)) \
755 for (_bio = (rq)->bio; _bio; _bio = _bio->bi_next)
758 __rq_for_each_bio(_iter.bio, _rq) \
[all …]
Ddevice-mapper.h57 typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio);
75 struct bio *bio, int error);
225 typedef unsigned (*dm_num_write_bios_fn) (struct dm_target *ti, struct bio *bio);
321 struct bio clone;
324 static inline void *dm_per_bio_data(struct bio *bio, size_t data_size) in dm_per_bio_data() argument
326 return (char *)bio - offsetof(struct dm_target_io, clone) - data_size; in dm_per_bio_data()
329 static inline struct bio *dm_bio_from_per_bio_data(void *data, size_t data_size) in dm_bio_from_per_bio_data()
331 return (struct bio *)((char *)data + data_size + offsetof(struct dm_target_io, clone)); in dm_bio_from_per_bio_data()
334 static inline unsigned dm_bio_get_target_bio_nr(const struct bio *bio) in dm_bio_get_target_bio_nr() argument
336 return container_of(bio, struct dm_target_io, clone)->target_bio_nr; in dm_bio_get_target_bio_nr()
[all …]
Ddm-io.h44 struct bio *bio; member
Dfscrypt_supp.h41 struct bio *bio; member
191 extern void fscrypt_decrypt_bio(struct bio *);
193 struct bio *bio);
Dfscrypt_notsupp.h166 static inline void fscrypt_decrypt_bio(struct bio *bio) in fscrypt_decrypt_bio() argument
171 struct bio *bio) in fscrypt_enqueue_decrypt_bio() argument
Dwriteback.h258 static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) in wbc_init_bio() argument
267 bio_associate_blkcg(bio, wbc->wb->blkcg_css); in wbc_init_bio()
296 static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) in wbc_init_bio() argument
Dswap.h18 struct bio;
358 extern void end_swap_bio_write(struct bio *bio);
Dlightnvm.h233 struct bio *bio; member
433 typedef blk_qc_t (nvm_tgt_make_rq_fn)(struct request_queue *, struct bio *);
Dfs.h2555 static inline int bio_data_dir(struct bio *bio) in bio_data_dir() argument
2557 return op_is_write(bio_op(bio)) ? WRITE : READ; in bio_data_dir()
2834 extern blk_qc_t submit_bio(struct bio *);
2887 typedef void (dio_submit_t)(struct bio *bio, struct inode *inode,
2904 void dio_end_io(struct bio *bio, int error);
/include/trace/events/
Dblock.h260 TP_PROTO(struct request_queue *q, struct bio *bio),
262 TP_ARGS(q, bio),
273 __entry->dev = bio->bi_bdev ?
274 bio->bi_bdev->bd_dev : 0;
275 __entry->sector = bio->bi_iter.bi_sector;
276 __entry->nr_sector = bio_sectors(bio);
277 blk_fill_rwbs(__entry->rwbs, bio_op(bio), bio->bi_opf,
278 bio->bi_iter.bi_size);
299 TP_PROTO(struct request_queue *q, struct bio *bio, int error),
301 TP_ARGS(q, bio, error),
[all …]
Dbcache.h10 TP_PROTO(struct bcache_device *d, struct bio *bio),
11 TP_ARGS(d, bio),
24 __entry->dev = bio->bi_bdev->bd_dev;
27 __entry->sector = bio->bi_iter.bi_sector;
28 __entry->orig_sector = bio->bi_iter.bi_sector - 16;
29 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
30 blk_fill_rwbs(__entry->rwbs, bio_op(bio), bio->bi_opf,
31 bio->bi_iter.bi_size);
81 TP_PROTO(struct bcache_device *d, struct bio *bio),
82 TP_ARGS(d, bio)
[all …]
Df2fs.h1014 TP_PROTO(struct super_block *sb, int type, struct bio *bio),
1016 TP_ARGS(sb, type, bio),
1030 __entry->target = bio->bi_bdev->bd_dev;
1031 __entry->op = bio_op(bio);
1032 __entry->op_flags = bio->bi_opf;
1034 __entry->sector = bio->bi_iter.bi_sector;
1035 __entry->size = bio->bi_iter.bi_size;
1049 TP_PROTO(struct super_block *sb, int type, struct bio *bio),
1051 TP_ARGS(sb, type, bio),
1053 TP_CONDITION(bio)
[all …]
/include/scsi/
Dosd_sec.h40 void osd_sec_sign_data(void *data_integ, struct bio *bio, const u8 *cap_key);
Dosd_initiator.h143 struct bio *bio; member
430 const struct osd_obj_id *obj, u64 offset, struct bio *bio, u64 len);
434 const struct osd_obj_id *, struct bio *data_out);/* NI */
436 const struct osd_obj_id *, struct bio *data_out, u64 offset);/* NI */
447 const struct osd_obj_id *obj, u64 offset, struct bio *bio, u64 len);
453 const struct osd_obj_id *obj, struct bio *bio,
456 const struct osd_obj_id *obj, struct bio *bio,
Dosd_ore.h158 struct bio *bio; member
/include/linux/ceph/
Dmessenger.h99 struct bio *bio; member
123 struct bio *bio; /* bio from list */ member
290 extern void ceph_msg_data_add_bio(struct ceph_msg *msg, struct bio *bio,
Dosd_client.h71 struct bio *bio; /* list of bios */ member
344 struct bio *bio, size_t bio_length);