Home
last modified time | relevance | path

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

/include/linux/
Dbio.h51 #define bio_prio(bio) ((bio)->bi_rw >> BIO_PRIO_SHIFT) argument
52 #define bio_prio_valid(bio) ioprio_valid(bio_prio(bio)) argument
54 #define bio_set_prio(bio, prio) do { \ argument
56 (bio)->bi_rw &= ((1UL << BIO_PRIO_SHIFT) - 1); \
57 (bio)->bi_rw |= ((unsigned long) (prio) << BIO_PRIO_SHIFT); \
83 #define bio_iter_iovec(bio, iter) \ argument
84 bvec_iter_bvec((bio)->bi_io_vec, (iter))
86 #define bio_iter_page(bio, iter) \ argument
87 bvec_iter_page((bio)->bi_io_vec, (iter))
88 #define bio_iter_len(bio, iter) \ argument
[all …]
Dblk_types.h11 struct bio;
17 typedef void (bio_end_io_t) (struct bio *, int);
18 typedef void (bio_destructor_t) (struct bio *);
46 struct bio { struct
47 struct bio *bi_next; /* request queue link */ argument
109 #define BIO_RESET_BYTES offsetof(struct bio, bi_max_vecs)
133 #define bio_flagged(bio, flag) ((bio)->bi_flags & (1 << (flag))) argument
142 #define BIO_POOL_IDX(bio) ((bio)->bi_flags >> BIO_POOL_OFFSET) argument
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);
Delevator.h13 struct bio *);
19 typedef int (elevator_allow_merge_fn) (struct request_queue *, struct request *, struct bio *);
22 struct request *, struct bio *);
34 struct bio *, gfp_t);
124 extern int elv_merge(struct request_queue *, struct request **, struct bio *);
129 struct bio *);
138 struct bio *bio, gfp_t gfp_mask);
158 extern bool elv_rq_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
Ddevice-mapper.h48 typedef int (*dm_map_fn) (struct dm_target *ti, struct bio *bio);
61 struct bio *bio, int error);
193 typedef unsigned (*dm_num_write_bios_fn) (struct dm_target *ti, struct bio *bio);
289 struct bio clone;
292 static inline void *dm_per_bio_data(struct bio *bio, size_t data_size) in dm_per_bio_data() argument
294 return (char *)bio - offsetof(struct dm_target_io, clone) - data_size; in dm_per_bio_data()
297 static inline struct bio *dm_bio_from_per_bio_data(void *data, size_t data_size) in dm_bio_from_per_bio_data()
299 return (struct bio *)((char *)data + data_size + offsetof(struct dm_target_io, clone)); in dm_bio_from_per_bio_data()
302 static inline unsigned dm_bio_get_target_bio_nr(const struct bio *bio) in dm_bio_get_target_bio_nr() argument
304 return container_of(bio, struct dm_target_io, clone)->target_bio_nr; in dm_bio_get_target_bio_nr()
[all …]
Dblkdev.h120 struct bio *bio; member
121 struct bio *biotail;
240 typedef void (make_request_fn) (struct request_queue *q, struct bio *bio);
698 static inline bool blk_write_same_mergeable(struct bio *a, struct bio *b) in blk_write_same_mergeable()
739 extern void blk_queue_bounce(struct request_queue *q, struct bio **bio);
745 static inline void blk_queue_bounce(struct request_queue *q, struct bio **bio) in blk_queue_bounce() argument
761 struct bio *bio; member
768 if ((rq->bio)) \
769 for (_bio = (rq)->bio; _bio; _bio = _bio->bi_next)
772 __rq_for_each_bio(_iter.bio, _rq) \
[all …]
Ddm-io.h44 struct bio *bio; member
Dswap.h18 struct bio;
384 extern void end_swap_bio_write(struct bio *bio, int err);
386 void (*end_write_func)(struct bio *, int));
388 extern void end_swap_bio_read(struct bio *bio, int err);
Dfscrypt.h35 struct bio *bio; member
Dfscrypt_notsupp.h164 struct bio *bio) in fscrypt_decrypt_bio_pages() argument
Dfscrypt_supp.h145 extern void fscrypt_decrypt_bio_pages(struct fscrypt_ctx *, struct bio *);
Dfs.h2262 #define bio_rw(bio) ((bio)->bi_rw & (RW_MASK | RWA_MASK)) argument
2267 #define bio_data_dir(bio) ((bio)->bi_rw & 1) argument
2486 extern void submit_bio(int, struct bio *);
2556 typedef void (dio_submit_t)(int rw, struct bio *bio, struct inode *inode,
2570 void dio_end_io(struct bio *bio, int error);
/include/trace/events/
Dblock.h258 TP_PROTO(struct request_queue *q, struct bio *bio),
260 TP_ARGS(q, bio),
271 __entry->dev = bio->bi_bdev ?
272 bio->bi_bdev->bd_dev : 0;
273 __entry->sector = bio->bi_iter.bi_sector;
274 __entry->nr_sector = bio_sectors(bio);
275 blk_fill_rwbs(__entry->rwbs, bio->bi_rw, bio->bi_iter.bi_size);
296 TP_PROTO(struct request_queue *q, struct bio *bio, int error),
298 TP_ARGS(q, bio, error),
309 __entry->dev = bio->bi_bdev->bd_dev;
[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->bi_rw, bio->bi_iter.bi_size);
80 TP_PROTO(struct bcache_device *d, struct bio *bio),
81 TP_ARGS(d, bio)
85 TP_PROTO(struct bcache_device *d, struct bio *bio),
[all …]
Df2fs.h971 TP_PROTO(struct super_block *sb, int type, struct bio *bio),
973 TP_ARGS(sb, type, bio),
987 __entry->target = bio->bi_bdev->bd_dev;
988 __entry->op = bio_op(bio);
989 __entry->op_flags = bio->bi_rw;
991 __entry->sector = bio->bi_iter.bi_sector;
992 __entry->size = bio->bi_iter.bi_size;
1006 TP_PROTO(struct super_block *sb, int type, struct bio *bio),
1008 TP_ARGS(sb, type, bio),
1010 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.h98 struct bio *bio; member
122 struct bio *bio; /* bio from list */ member
282 extern void ceph_msg_data_add_bio(struct ceph_msg *msg, struct bio *bio,
Dosd_client.h70 struct bio *bio; /* list of bios */ member
278 struct bio *bio, size_t bio_length);