Home
last modified time | relevance | path

Searched defs:bio (Results 1 – 25 of 253) sorted by relevance

1234567891011

/linux-6.8/include/linux/
Dbio.h22 #define bio_prio(bio) (bio)->bi_ioprio argument
23 #define bio_set_prio(bio, prio) ((bio)->bi_ioprio = prio) argument
25 #define bio_iter_iovec(bio, iter) \ argument
28 #define bio_iter_page(bio, iter) \ argument
30 #define bio_iter_len(bio, iter) \ argument
32 #define bio_iter_offset(bio, iter) \ argument
35 #define bio_page(bio) bio_iter_page((bio), (bio)->bi_iter) argument
36 #define bio_offset(bio) bio_iter_offset((bio), (bio)->bi_iter) argument
37 #define bio_iovec(bio) bio_iter_iovec((bio), (bio)->bi_iter) argument
42 #define bio_sectors(bio) bvec_iter_sectors((bio)->bi_iter) argument
[all …]
Dblk_types.h264 struct bio { struct
265 struct bio *bi_next; /* request queue link */ argument
278 bio_end_io_t *bi_end_io; argument
282 * Represents the association of the css and request_queue for the bio. argument
288 struct bio_issue bi_issue; argument
295 struct bio_crypt_ctx *bi_crypt_context; argument
304 unsigned short bi_vcnt; /* how many bio_vec's */ argument
314 struct bio_vec *bi_io_vec; /* the actual vec list */ argument
316 struct bio_set *bi_pool; argument
319 * We can inline a number of vecs at the end of the bio, to avoid argument
[all …]
/linux-6.8/block/
Dbio.c214 void bio_uninit(struct bio *bio) in bio_uninit()
229 static void bio_free(struct bio *bio) in bio_free()
246 void bio_init(struct bio *bio, struct block_device *bdev, struct bio_vec *table, in bio_init()
300 void bio_reset(struct bio *bio, struct block_device *bdev, blk_opf_t opf) in bio_reset()
312 static struct bio *__bio_chain_endio(struct bio *bio) in __bio_chain_endio()
322 static void bio_chain_endio(struct bio *bio) in bio_chain_endio()
338 void bio_chain(struct bio *bio, struct bio *parent) in bio_chain()
348 struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev, in blk_next_bio()
365 struct bio *bio; in bio_alloc_rescue() local
382 struct bio *bio; in punt_bios_to_rescuer() local
[all …]
Dblk-merge.c21 static inline void bio_get_first_bvec(struct bio *bio, struct bio_vec *bv) in bio_get_first_bvec()
26 static inline void bio_get_last_bvec(struct bio *bio, struct bio_vec *bv) in bio_get_last_bvec()
88 static inline bool req_gap_back_merge(struct request *req, struct bio *bio) in req_gap_back_merge()
93 static inline bool req_gap_front_merge(struct request *req, struct bio *bio) in req_gap_front_merge()
108 static struct bio *bio_split_discard(struct bio *bio, in bio_split_discard()
145 static struct bio *bio_split_write_zeroes(struct bio *bio, in bio_split_write_zeroes()
165 static inline unsigned get_max_io_size(struct bio *bio, in get_max_io_size()
275 struct bio *bio_split_rw(struct bio *bio, const struct queue_limits *lim, in bio_split_rw()
350 struct bio *__bio_split_to_limits(struct bio *bio, in __bio_split_to_limits()
397 struct bio *bio_split_to_limits(struct bio *bio) in bio_split_to_limits()
[all …]
Dblk-map.c48 static int bio_copy_from_iter(struct bio *bio, struct iov_iter *iter) in bio_copy_from_iter()
79 static int bio_copy_to_iter(struct bio *bio, struct iov_iter iter) in bio_copy_to_iter()
109 static int bio_uncopy_user(struct bio *bio) in bio_uncopy_user()
136 struct bio *bio; in bio_copy_user_iov() local
243 static void blk_mq_map_bio_put(struct bio *bio) in blk_mq_map_bio_put()
256 struct bio *bio; in blk_rq_map_bio_alloc() local
278 struct bio *bio; in bio_map_user_iov() local
359 static void bio_invalidate_vmalloc_pages(struct bio *bio) in bio_invalidate_vmalloc_pages()
372 static void bio_map_kern_endio(struct bio *bio) in bio_map_kern_endio()
399 struct bio *bio; in bio_map_kern() local
[all …]
Dblk-core.c339 int __bio_queue_enter(struct request_queue *q, struct bio *bio) in __bio_queue_enter()
500 static inline void bio_check_ro(struct bio *bio) in bio_check_ro()
519 static noinline int should_fail_bio(struct bio *bio) in should_fail_bio()
532 static inline int bio_check_eod(struct bio *bio) in bio_check_eod()
552 static int blk_partition_remap(struct bio *bio) in blk_partition_remap()
572 struct bio *bio) in blk_check_zone_append()
602 static void __submit_bio(struct bio *bio) in __submit_bio()
636 static void __submit_bio_noacct(struct bio *bio) in __submit_bio_noacct()
680 static void __submit_bio_noacct_mq(struct bio *bio) in __submit_bio_noacct_mq()
693 void submit_bio_noacct_nocheck(struct bio *bio) in submit_bio_noacct_nocheck()
[all …]
Dblk-crypto-internal.h37 struct bio *bio) in bio_crypt_ctx_back_mergeable()
44 struct bio *bio) in bio_crypt_ctx_front_mergeable()
97 struct bio *bio) in bio_crypt_rq_ctx_compatible()
103 struct bio *bio) in bio_crypt_ctx_front_mergeable()
109 struct bio *bio) in bio_crypt_ctx_back_mergeable()
135 static inline void bio_crypt_advance(struct bio *bio, unsigned int bytes) in bio_crypt_advance()
142 static inline void bio_crypt_free_ctx(struct bio *bio) in bio_crypt_free_ctx()
149 struct bio *bio) in bio_crypt_do_front_merge()
200 static inline int blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio, in blk_crypto_rq_bio_prep()
Dbio-integrity.c48 struct bio_integrity_payload *bio_integrity_alloc(struct bio *bio, in bio_integrity_alloc()
142 void bio_integrity_free(struct bio *bio) in bio_integrity_free()
166 int bio_integrity_add_page(struct bio *bio, struct page *page, in bio_integrity_add_page()
206 static int bio_integrity_copy_user(struct bio *bio, struct bio_vec *bvec, in bio_integrity_copy_user()
265 static int bio_integrity_init_user(struct bio *bio, struct bio_vec *bvec, in bio_integrity_init_user()
311 int bio_integrity_map_user(struct bio *bio, void __user *ubuf, ssize_t bytes, in bio_integrity_map_user()
383 static blk_status_t bio_integrity_process(struct bio *bio, in bio_integrity_process()
426 bool bio_integrity_prep(struct bio *bio) in bio_integrity_prep()
531 struct bio *bio = bip->bip_bio; in bio_integrity_verify_fn() local
556 bool __bio_integrity_endio(struct bio *bio) in __bio_integrity_endio()
[all …]
Dblk.h64 static inline int bio_queue_enter(struct bio *bio) in bio_queue_enter()
186 static inline bool bio_integrity_endio(struct bio *bio) in bio_integrity_endio()
210 struct bio *bio) in integrity_req_gap_front_merge()
238 struct bio *bio) in integrity_req_gap_front_merge()
246 static inline bool bio_integrity_endio(struct bio *bio) in bio_integrity_endio()
250 static inline void bio_integrity_free(struct bio *bio) in bio_integrity_free()
296 static inline bool bio_may_exceed_limits(struct bio *bio, in bio_may_exceed_limits()
375 static inline void blk_throtl_bio_endio(struct bio *bio) { } in blk_throtl_bio_endio()
388 static inline struct bio *blk_queue_bounce(struct bio *bio, in blk_queue_bounce()
444 static inline void bio_release_page(struct bio *bio, struct page *page) in bio_release_page()
Dblk-crypto.c91 void bio_crypt_set_ctx(struct bio *bio, const struct blk_crypto_key *key, in bio_crypt_set_ctx()
110 void __bio_crypt_free_ctx(struct bio *bio) in __bio_crypt_free_ctx()
144 void __bio_crypt_advance(struct bio *bio, unsigned int bytes) in __bio_crypt_advance()
193 bool bio_crypt_rq_ctx_compatible(struct request *rq, struct bio *bio) in bio_crypt_rq_ctx_compatible()
213 static bool bio_crypt_check_alignment(struct bio *bio) in bio_crypt_check_alignment()
275 struct bio *bio = *bio_ptr; in __blk_crypto_bio_prep() local
303 int __blk_crypto_rq_bio_prep(struct request *rq, struct bio *bio, in __blk_crypto_rq_bio_prep()
Dbounce.c102 static void bounce_end_io(struct bio *bio) in bounce_end_io()
126 static void bounce_end_io_write(struct bio *bio) in bounce_end_io_write()
131 static void bounce_end_io_read(struct bio *bio) in bounce_end_io_read()
145 struct bio *bio; in bounce_clone_bio() local
204 struct bio *bio; in __blk_queue_bounce() local
Dblk-lib.c41 struct bio *bio = *biop; in __blkdev_issue_discard() local
100 struct bio *bio = NULL; in blkdev_issue_discard() local
122 struct bio *bio = *biop; in __blkdev_issue_write_zeroes() local
172 struct bio *bio = *biop; in __blkdev_issue_zero_pages() local
257 struct bio *bio; in blkdev_issue_zeroout() local
308 struct bio *bio = NULL; in blkdev_issue_secure_erase() local
/linux-6.8/drivers/md/bcache/
Drequest.c40 static void bio_csum(struct bio *bio, struct bkey *k) in bio_csum()
111 struct bio *bio = op->bio; in bch_data_invalidate() local
169 static void bch_data_insert_endio(struct bio *bio) in bch_data_insert_endio()
190 struct bio *bio = op->bio, *n; in CLOSURE_CALLBACK() local
363 static bool check_should_bypass(struct cached_dev *dc, struct bio *bio) in check_should_bypass()
467 struct bbio bio; member
485 static void bch_cache_read_endio(struct bio *bio) in bch_cache_read_endio()
516 struct bio *n, *bio = &s->bio.bio; in cache_lookup_fn() local
581 struct bio *bio = &s->bio.bio; in CLOSURE_CALLBACK() local
621 static void request_endio(struct bio *bio) in request_endio()
[all …]
Dio.c17 void bch_bbio_free(struct bio *bio, struct cache_set *c) in bch_bbio_free()
27 struct bio *bio = &b->bio; in bch_bbio_alloc() local
35 void __bch_submit_bbio(struct bio *bio, struct cache_set *c) in __bch_submit_bbio()
46 void bch_submit_bbio(struct bio *bio, struct cache_set *c, in bch_submit_bbio()
56 void bch_count_backing_io_errors(struct cached_dev *dc, struct bio *bio) in bch_count_backing_io_errors()
137 void bch_bbio_count_io_errors(struct cache_set *c, struct bio *bio, in bch_bbio_count_io_errors()
167 void bch_bbio_endio(struct cache_set *c, struct bio *bio, in bch_bbio_endio()
Dmovinggc.c19 struct bbio bio; member
48 struct bio *bio = &io->bio.bio; in CLOSURE_CALLBACK() local
62 static void read_moving_endio(struct bio *bio) in read_moving_endio()
80 struct bio *bio = &io->bio.bio; in moving_init() local
119 struct bio *bio = &io->bio.bio; in CLOSURE_CALLBACK() local
130 struct bio *bio; in read_moving() local
/linux-6.8/drivers/md/
Ddm-io-rewind.c56 static void dm_bio_integrity_rewind(struct bio *bio, unsigned int bytes_done) in dm_bio_integrity_rewind()
68 static inline void dm_bio_integrity_rewind(struct bio *bio, in dm_bio_integrity_rewind()
94 static void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes) in dm_bio_crypt_rewind()
104 static inline void dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes) in dm_bio_crypt_rewind()
110 static inline void dm_bio_rewind_iter(const struct bio *bio, in dm_bio_rewind_iter()
132 static void dm_bio_rewind(struct bio *bio, unsigned int bytes) in dm_bio_rewind()
Ddm-thin.c385 struct bio *bio; member
443 static int bio_detain(struct pool *pool, struct dm_cell_key *key, struct bio *bio, in bio_detain()
602 struct bio *bio; in error_bio_list() local
677 static dm_block_t get_bio_block(struct thin_c *tc, struct bio *bio) in get_bio_block()
693 static void get_bio_block_range(struct thin_c *tc, struct bio *bio, in get_bio_block_range()
718 static void remap(struct thin_c *tc, struct bio *bio, dm_block_t block) in remap()
733 static void remap_to_origin(struct thin_c *tc, struct bio *bio) in remap_to_origin()
738 static int bio_triggers_commit(struct thin_c *tc, struct bio *bio) in bio_triggers_commit()
744 static void inc_all_io_entry(struct pool *pool, struct bio *bio) in inc_all_io_entry()
755 static void issue(struct thin_c *tc, struct bio *bio) in issue()
[all …]
Ddm-zoned-target.c22 struct bio *bio; member
75 static inline void dmz_bio_endio(struct bio *bio, blk_status_t status) in dmz_bio_endio()
117 struct bio *bio, sector_t chunk_block, in dmz_submit_bio()
153 static void dmz_handle_read_zero(struct dmz_target *dmz, struct bio *bio, in dmz_handle_read_zero()
170 struct bio *bio) in dmz_handle_read()
250 struct dm_zone *zone, struct bio *bio, in dmz_handle_direct_write()
283 struct dm_zone *zone, struct bio *bio, in dmz_handle_buffered_write()
319 struct bio *bio) in dmz_handle_write()
358 struct bio *bio) in dmz_handle_discard()
396 struct bio *bio) in dmz_handle_bio()
[all …]
Ddm-raid1.c126 static void queue_bio(struct mirror_set *ms, struct bio *bio, int rw) in queue_bio()
145 struct bio *bio; in dispatch_bios() local
168 static struct mirror *bio_get_m(struct bio *bio) in bio_get_m()
173 static void bio_set_m(struct bio *bio, struct mirror *m) in bio_set_m()
445 static int mirror_available(struct mirror_set *ms, struct bio *bio) in mirror_available()
459 static sector_t map_sector(struct mirror *m, struct bio *bio) in map_sector()
466 static void map_bio(struct mirror *m, struct bio *bio) in map_bio()
473 struct bio *bio) in map_region()
480 static void hold_bio(struct mirror_set *ms, struct bio *bio) in hold_bio()
517 struct bio *bio = context; in read_callback() local
[all …]
Ddm-flakey.c21 #define all_corrupt_bio_flags_match(bio, fc) \ argument
333 static void flakey_map_bio(struct dm_target *ti, struct bio *bio) in flakey_map_bio()
341 static void corrupt_bio_common(struct bio *bio, unsigned int corrupt_bio_byte, in corrupt_bio_common()
368 static void corrupt_bio_data(struct bio *bio, struct flakey_c *fc) in corrupt_bio_data()
378 static void corrupt_bio_random(struct bio *bio) in corrupt_bio_random()
407 struct bio *bio = clone->bi_private; in clone_endio() local
413 static struct bio *clone_bio(struct dm_target *ti, struct flakey_c *fc, struct bio *bio) in clone_bio()
478 static int flakey_map(struct dm_target *ti, struct bio *bio) in flakey_map()
553 static int flakey_end_io(struct dm_target *ti, struct bio *bio, in flakey_end_io()
/linux-6.8/fs/ext4/
Dreadpage.c63 struct bio *bio; member
69 static void __read_end_io(struct bio *bio) in __read_end_io()
86 struct bio *bio = ctx->bio; in decrypt_work() local
98 struct bio *bio = ctx->bio; in verity_work() local
145 static bool bio_post_read_required(struct bio *bio) in bio_post_read_required()
162 static void mpage_end_io(struct bio *bio) in mpage_end_io()
180 static void ext4_set_bio_post_read_ctx(struct bio *bio, in ext4_set_bio_post_read_ctx()
214 struct bio *bio = NULL; in ext4_mpage_readpages() local
/linux-6.8/drivers/nvme/target/
Dio-cmd-bdev.c181 static void nvmet_bio_done(struct bio *bio) in nvmet_bio_done()
190 static int nvmet_bdev_alloc_bip(struct nvmet_req *req, struct bio *bio, in nvmet_bdev_alloc_bip()
235 static int nvmet_bdev_alloc_bip(struct nvmet_req *req, struct bio *bio, in nvmet_bdev_alloc_bip()
245 struct bio *bio; in nvmet_bdev_execute_rw() local
335 struct bio *bio = &req->b.inline_bio; in nvmet_bdev_execute_flush() local
364 struct nvme_dsm_range *range, struct bio **bio) in nvmet_bdev_discard_range()
383 struct bio *bio = NULL; in nvmet_bdev_execute_discard() local
431 struct bio *bio = NULL; in nvmet_bdev_execute_write_zeroes() local
/linux-6.8/mm/
Dpage_io.c30 static void __end_swap_bio_write(struct bio *bio) in __end_swap_bio_write()
52 static void end_swap_bio_write(struct bio *bio) in end_swap_bio_write()
58 static void __end_swap_bio_read(struct bio *bio) in __end_swap_bio_read()
72 static void end_swap_bio_read(struct bio *bio) in end_swap_bio_read()
225 static void bio_associate_blkg_from_page(struct bio *bio, struct folio *folio) in bio_associate_blkg_from_page()
240 #define bio_associate_blkg_from_page(bio, folio) do { } while (0) argument
338 struct bio bio; in swap_writepage_bdev_sync() local
358 struct bio *bio; in swap_writepage_bdev_async() local
466 struct bio bio; in swap_read_folio_bdev_sync() local
485 struct bio *bio; in swap_read_folio_bdev_async() local
/linux-6.8/fs/btrfs/
Dbio.c67 struct bio *bio; in btrfs_bio_alloc() local
80 struct bio *bio; in btrfs_split_bio() local
333 static void btrfs_log_dev_io_error(struct bio *bio, struct btrfs_device *dev) in btrfs_log_dev_io_error()
349 struct bio *bio) in btrfs_end_io_wq()
367 static void btrfs_simple_end_io(struct bio *bio) in btrfs_simple_end_io()
388 static void btrfs_raid56_end_io(struct bio *bio) in btrfs_raid56_end_io()
403 static void btrfs_orig_write_end_io(struct bio *bio) in btrfs_orig_write_end_io()
432 static void btrfs_clone_write_end_io(struct bio *bio) in btrfs_clone_write_end_io()
448 static void btrfs_submit_dev_bio(struct btrfs_device *dev, struct bio *bio) in btrfs_submit_dev_bio()
485 struct bio *orig_bio = bioc->orig_bio, *bio; in btrfs_submit_mirrored_bio() local
[all …]
/linux-6.8/fs/f2fs/
Diostat.h45 static inline void iostat_update_submit_ctx(struct bio *bio, in iostat_update_submit_ctx()
54 static inline struct bio_post_read_ctx *get_post_read_ctx(struct bio *bio) in get_post_read_ctx()
71 static inline void iostat_update_and_unbind_ctx(struct bio *bio) {} in iostat_update_and_unbind_ctx()
73 struct bio *bio, struct bio_post_read_ctx *ctx) {} in iostat_alloc_and_bind_ctx()
74 static inline void iostat_update_submit_ctx(struct bio *bio, in iostat_update_submit_ctx()
76 static inline struct bio_post_read_ctx *get_post_read_ctx(struct bio *bio) in get_post_read_ctx()

1234567891011