/Linux-v5.4/include/linux/ |
D | bio.h | 56 (op_is_write(bio_op(bio)) ? WRITE : READ) 65 bio_op(bio) != REQ_OP_DISCARD && in bio_has_data() 66 bio_op(bio) != REQ_OP_SECURE_ERASE && in bio_has_data() 67 bio_op(bio) != REQ_OP_WRITE_ZEROES) in bio_has_data() 75 return bio_op(bio) == REQ_OP_DISCARD || in bio_no_advance_iter() 76 bio_op(bio) == REQ_OP_SECURE_ERASE || in bio_no_advance_iter() 77 bio_op(bio) == REQ_OP_WRITE_SAME || in bio_no_advance_iter() 78 bio_op(bio) == REQ_OP_WRITE_ZEROES; in bio_no_advance_iter() 185 switch (bio_op(bio)) { in bio_segments()
|
D | blk_types.h | 378 #define bio_op(bio) \ macro
|
/Linux-v5.4/drivers/md/ |
D | dm-zoned-target.c | 89 bio_op(bio) == REQ_OP_WRITE && in dmz_bio_endio() 138 if (bio_op(bio) == REQ_OP_WRITE && dmz_is_seq(zone)) in dmz_submit_bio() 388 if (bio_op(bio) == REQ_OP_WRITE) in dmz_handle_bio() 404 bio_op(bio)); in dmz_handle_bio() 416 switch (bio_op(bio)) { in dmz_handle_bio() 429 bio_op(bio)); in dmz_handle_bio() 610 bio_op(bio), (unsigned long long)sector, nr_sectors, in dmz_map() 617 if (!nr_sectors && bio_op(bio) != REQ_OP_WRITE) in dmz_map() 631 if (!nr_sectors && bio_op(bio) == REQ_OP_WRITE) { in dmz_map() 649 bio_op(bio), (u64)dmz_bio_chunk(dmz->dev, bio), in dmz_map()
|
D | dm-stripe.c | 298 if (unlikely(bio_op(bio) == REQ_OP_DISCARD) || in stripe_map() 299 unlikely(bio_op(bio) == REQ_OP_SECURE_ERASE) || in stripe_map() 300 unlikely(bio_op(bio) == REQ_OP_WRITE_ZEROES) || in stripe_map() 301 unlikely(bio_op(bio) == REQ_OP_WRITE_SAME)) { in stripe_map()
|
D | dm-zero.c | 38 switch (bio_op(bio)) { in zero_map()
|
D | dm-flakey.c | 283 if (bio_sectors(bio) || bio_op(bio) == REQ_OP_ZONE_RESET) in flakey_map_bio() 326 if (bio_op(bio) == REQ_OP_ZONE_RESET) in flakey_map() 387 if (bio_op(bio) == REQ_OP_ZONE_RESET) in flakey_end_io()
|
D | dm.c | 658 generic_start_io_acct(md->queue, bio_op(bio), bio_sectors(bio), in start_io_acct() 673 generic_end_io_acct(md->queue, bio_op(bio), &dm_disk(md)->part0, in end_io_acct() 982 if (bio_op(bio) == REQ_OP_DISCARD && in clone_endio() 985 else if (bio_op(bio) == REQ_OP_WRITE_SAME && in clone_endio() 988 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES && in clone_endio() 1534 switch (bio_op(bio)) { in is_abnormal_io() 1551 if (bio_op(bio) == REQ_OP_DISCARD) in __process_abnormal_io() 1553 else if (bio_op(bio) == REQ_OP_SECURE_ERASE) in __process_abnormal_io() 1555 else if (bio_op(bio) == REQ_OP_WRITE_SAME) in __process_abnormal_io() 1557 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES) in __process_abnormal_io() [all …]
|
D | md.h | 782 if (bio_op(bio) == REQ_OP_WRITE_SAME && in mddev_check_writesame() 789 if (bio_op(bio) == REQ_OP_WRITE_ZEROES && in mddev_check_write_zeroes()
|
D | dm-raid1.c | 622 if (bio_op(bio) == REQ_OP_DISCARD) { in write_callback() 661 if (bio_op(bio) == REQ_OP_DISCARD) { in do_write() 701 (bio_op(bio) == REQ_OP_DISCARD)) { in do_writes() 1248 bio_op(bio) != REQ_OP_DISCARD) in mirror_end_io()
|
D | dm-linear.c | 93 if (bio_sectors(bio) || bio_op(bio) == REQ_OP_ZONE_RESET) in linear_map_bio()
|
D | dm-region-hash.c | 408 if (bio_op(bio) == REQ_OP_DISCARD) in dm_rh_mark_nosync() 531 if (bio->bi_opf & REQ_PREFLUSH || bio_op(bio) == REQ_OP_DISCARD) in dm_rh_inc_pending()
|
D | md-linear.c | 279 if (unlikely((bio_op(bio) == REQ_OP_DISCARD) && in linear_make_request()
|
/Linux-v5.4/drivers/md/bcache/ |
D | request.c | 385 (bio_op(bio) == REQ_OP_DISCARD)) in check_should_bypass() 390 op_is_write(bio_op(bio)))) in check_should_bypass() 676 generic_end_io_acct(s->d->disk->queue, bio_op(s->orig_bio), in bio_complete() 736 s->write = op_is_write(bio_op(bio)); in search_alloc() 1002 if (bio_op(bio) == REQ_OP_DISCARD) in cached_dev_write() 1016 if (bio_op(bio) == REQ_OP_DISCARD && in cached_dev_write() 1090 generic_end_io_acct(ddip->d->disk->queue, bio_op(bio), in detached_dev_end_io() 1122 if ((bio_op(bio) == REQ_OP_DISCARD) && in detached_dev_do_request() 1200 bio_op(bio), in cached_dev_make_request() 1322 generic_start_io_acct(q, bio_op(bio), bio_sectors(bio), &d->disk->part0); in flash_dev_make_request() [all …]
|
D | writeback.h | 74 if (bio_op(bio) == REQ_OP_DISCARD) in should_writeback()
|
D | io.c | 143 unsigned int threshold = op_is_write(bio_op(bio)) in bch_bbio_count_io_errors()
|
/Linux-v5.4/drivers/block/drbd/ |
D | drbd_req.c | 29 generic_start_io_acct(q, bio_op(req->master_bio), in _drbd_start_io_acct() 38 generic_end_io_acct(q, bio_op(req->master_bio), in _drbd_end_io_acct() 53 | (bio_op(bio_src) == REQ_OP_WRITE_SAME ? RQ_WSAME : 0) in drbd_req_new() 54 | (bio_op(bio_src) == REQ_OP_WRITE_ZEROES ? RQ_ZEROES : 0) in drbd_req_new() 55 | (bio_op(bio_src) == REQ_OP_DISCARD ? RQ_UNMAP : 0); in drbd_req_new() 261 if (op_is_write(bio_op(req->master_bio)) && in drbd_req_complete() 283 bio_op(req->master_bio) == REQ_OP_READ && in drbd_req_complete() 1162 if (bio_op(bio) != REQ_OP_READ) in drbd_submit_req_private_bio() 1179 else if (bio_op(bio) == REQ_OP_WRITE_ZEROES) in drbd_submit_req_private_bio() 1182 else if (bio_op(bio) == REQ_OP_DISCARD) in drbd_submit_req_private_bio() [all …]
|
/Linux-v5.4/block/ |
D | bio-integrity.c | 214 if (bio_op(bio) != REQ_OP_READ && bio_op(bio) != REQ_OP_WRITE) in bio_integrity_prep() 353 if (bio_op(bio) == REQ_OP_READ && !bio->bi_status && in __bio_integrity_endio()
|
D | blk-merge.c | 298 switch (bio_op(*bio)) { in __blk_queue_split() 366 switch (bio_op(rq->bio)) { in blk_recalc_rq_segments() 510 else if (rq->bio && bio_op(rq->bio) == REQ_OP_WRITE_SAME) in blk_rq_map_sg() 853 if (req_op(rq) != bio_op(bio)) in blk_rq_merge_ok()
|
D | blk-core.c | 789 const int op = bio_op(bio); in bio_check_ro() 855 if (bio_sectors(bio) || bio_op(bio) == REQ_OP_ZONE_RESET) { in blk_partition_remap() 925 switch (bio_op(bio)) { in generic_make_request_checks() 1157 if (unlikely(bio_op(bio) == REQ_OP_WRITE_SAME)) in submit_bio() 1162 if (op_is_write(bio_op(bio))) { in submit_bio() 1175 op_is_write(bio_op(bio)) ? "WRITE" : "READ", in submit_bio()
|
D | blk-wbt.c | 531 switch (bio_op(bio)) { in wbt_should_throttle() 554 if (bio_op(bio) == REQ_OP_READ) { in bio_to_wbt_flags() 559 if (bio_op(bio) == REQ_OP_DISCARD) in bio_to_wbt_flags()
|
D | blk-mq.h | 261 if (!blk_queue_is_zoned(q) || !op_is_write(bio_op(bio))) in blk_mq_plug()
|
D | bounce.c | 256 switch (bio_op(bio)) { in bounce_clone_bio()
|
/Linux-v5.4/drivers/block/rsxx/ |
D | dev.c | 101 generic_start_io_acct(card->queue, bio_op(bio), bio_sectors(bio), in disk_stats_start() 109 generic_end_io_acct(card->queue, bio_op(bio), in disk_stats_complete()
|
/Linux-v5.4/drivers/nvdimm/ |
D | nd.h | 408 generic_start_io_acct(disk->queue, bio_op(bio), bio_sectors(bio), in nd_iostat_start() 416 generic_end_io_acct(disk->queue, bio_op(bio), &disk->part0, start); in nd_iostat_end()
|
/Linux-v5.4/drivers/block/ |
D | umem.c | 367 bio_op(bio) == REQ_OP_READ ? in add_bio() 396 if (bio_op(bio) == REQ_OP_WRITE) in add_bio() 460 } else if (op_is_write(bio_op(bio)) && in process_page()
|