| /linux/block/ |
| H A D | blk.h | 56 enum req_op str_to_blk_op(const char *op); 188 if (req_op(rq) == REQ_OP_FLUSH) in rq_mergeable() 191 if (req_op(rq) == REQ_OP_WRITE_ZEROES) in rq_mergeable() 194 if (req_op(rq) == REQ_OP_ZONE_APPEND) in rq_mergeable() 215 if (req_op(req) == REQ_OP_DISCARD && in blk_discard_mergable() 223 if (req_op(rq) == REQ_OP_DISCARD) in blk_rq_get_max_segments() 231 enum req_op op = req_op(rq); in blk_queue_get_max_sectors() 497 enum req_op op) in bdev_inc_in_flight() 507 enum req_op op) in bdev_dec_in_flight() 539 return req_op(rq) == REQ_OP_ZONE_APPEND || in blk_req_bio_is_zone_append()
|
| H A D | error-injection.c | 16 enum req_op op; 61 static int error_inject_add(struct gendisk *disk, enum req_op op, in error_inject_add() 157 static int match_op(substring_t *args, enum req_op *op) in match_op() 190 enum req_op op = REQ_OP_LAST; in blk_error_injection_parse_options()
|
| H A D | blk-merge.c | 535 req_op(rq) == REQ_OP_DISCARD || in blk_rq_get_max_sectors() 536 req_op(rq) == REQ_OP_SECURE_ERASE) in blk_rq_get_max_sectors() 552 if (req_op(req) == REQ_OP_DISCARD) in ll_new_hw_segment() 723 part_stat_inc(req->part, merges[op_stat_group(req_op(req))]); in blk_account_io_merge_request() 724 bdev_dec_in_flight(req->part, req_op(req)); in blk_account_io_merge_request() 780 if (req_op(req) != req_op(next)) in attempt_merge() 900 if (req_op(rq) != bio_op(bio)) in blk_rq_merge_ok() 936 part_stat_inc(req->part, merges[op_stat_group(req_op(req))]); in blk_account_io_merge_bio()
|
| H A D | blk-core.c | 125 inline const char *blk_op_str(enum req_op op) in blk_op_str() 136 enum req_op str_to_blk_op(const char *op) in str_to_blk_op() 142 return (enum req_op)i; in str_to_blk_op() 1080 unsigned long bdev_start_io_acct(struct block_device *bdev, enum req_op op, in bdev_start_io_acct() 1104 void bdev_end_io_acct(struct block_device *bdev, enum req_op op, in bdev_end_io_acct()
|
| H A D | blk-map.c | 368 enum req_op op = req_op(rq); in bio_copy_kern()
|
| H A D | blk-mq.c | 859 const int sgrp = op_stat_group(req_op(req)); in blk_account_io_completion() 874 blk_rq_pos(req), (__force u32)req_op(req), in blk_print_req_error() 875 blk_op_str(req_op(req)), in blk_print_req_error() 896 if (blk_integrity_rq(req) && req_op(req) == REQ_OP_READ) in blk_complete_request() 966 if (blk_integrity_rq(req) && req_op(req) == REQ_OP_READ && in blk_update_request() 1079 const int sgrp = op_stat_group(req_op(req)); in blk_account_io_done() 1085 bdev_dec_in_flight(req->part, req_op(req)); in blk_account_io_done() 1115 bdev_inc_in_flight(req->part, req_op(req)); in blk_account_io_start() 1357 if (blk_integrity_rq(rq) && req_op(rq) == REQ_OP_WRITE) in blk_mq_start_request() 2610 } else if (req_op(rq) == REQ_OP_FLUSH) { in blk_mq_insert_request()
|
| H A D | blk-wbt.c | 703 const enum req_op op = req_op(rq); in wbt_data_dir()
|
| /linux/include/linux/ |
| H A D | blk_types.h | 348 enum req_op { enum 455 static inline enum req_op bio_op(const struct bio *bio) in bio_op() 493 static inline bool op_is_zone_mgmt(enum req_op op) in op_is_zone_mgmt() 507 static inline int op_stat_group(enum req_op op) in op_stat_group()
|
| H A D | blkdev.h | 457 int blkdev_zone_mgmt(struct block_device *bdev, enum req_op op, 885 enum req_op op = bio_op(bio); in bio_needs_zone_write_plugging() 1043 extern const char *blk_op_str(enum req_op op); 1630 unsigned long bdev_start_io_acct(struct block_device *bdev, enum req_op op, 1632 void bdev_end_io_acct(struct block_device *bdev, enum req_op op,
|
| /linux/arch/um/drivers/ |
| H A D | ubd_kern.c | 451 if (req_op(io_req->req) == REQ_OP_DISCARD) in ubd_end_request() 453 else if (req_op(io_req->req) == REQ_OP_WRITE_ZEROES) in ubd_end_request() 1178 if (req_op(req->req) == REQ_OP_READ) { in cowify_req() 1198 enum req_op op = req_op(req); in ubd_map_req() 1261 enum req_op op = req_op(req); in ubd_submit_request() 1298 switch (req_op(req)) { in ubd_queue_rq() 1416 if (req_op(req->req) == REQ_OP_FLUSH) { in do_io() 1437 switch (req_op(req->req)) { in do_io()
|
| /linux/drivers/block/ |
| H A D | zloop.c | 523 int rw = req_op(rq) == REQ_OP_READ ? ITER_DEST : ITER_SOURCE; in zloop_do_rw() 579 bool is_append = req_op(rq) == REQ_OP_ZONE_APPEND; in zloop_seq_write_prep() 640 bool is_append = req_op(rq) == REQ_OP_ZONE_APPEND; in zloop_rw() 641 bool is_write = req_op(rq) == REQ_OP_WRITE || is_append; in zloop_rw() 755 switch (req_op(rq)) { in zloop_handle_cmd() 785 pr_err("Unsupported operation %d\n", req_op(rq)); in zloop_handle_cmd() 811 switch (req_op(rq)) { in zloop_complete_rq() 830 req_op(rq) == REQ_OP_WRITE ? "" : "append ", in zloop_complete_rq() 848 if (req_op(rq) == REQ_OP_ZONE_APPEND) in zloop_complete_rq() 904 if (zlo->ordered_zone_append && req_op(rq) == REQ_OP_ZONE_APPEND) { in zloop_queue_rq()
|
| H A D | xen-blkfront.c | 566 if (req_op(req) == REQ_OP_SECURE_ERASE && info->feature_secdiscard) in blkif_queue_discard_req() 771 BUG_ON(req_op(req) == REQ_OP_FLUSH || req->cmd_flags & REQ_FUA); in blkif_queue_rw_req() 783 if (req_op(req) == REQ_OP_FLUSH || in blkif_queue_rw_req() 784 (req_op(req) == REQ_OP_WRITE && (req->cmd_flags & REQ_FUA))) { in blkif_queue_rw_req() 876 if (unlikely(req_op(req) == REQ_OP_DISCARD || in blkif_queue_request() 877 req_op(req) == REQ_OP_SECURE_ERASE)) in blkif_queue_request() 915 if (unlikely(req_op(qd->rq) == REQ_OP_FLUSH && !info->feature_flush)) in blkif_queue_rq() 2094 if (req_op(shadow[j].request) == REQ_OP_FLUSH || in blkfront_resume() 2095 req_op(shadow[j].request) == REQ_OP_DISCARD || in blkfront_resume() 2096 req_op(shadow[j].request) == REQ_OP_SECURE_ERASE || in blkfront_resume()
|
| H A D | ps3disk.c | 172 switch (req_op(req)) { in ps3disk_do_request() 235 if (req_op(req) == REQ_OP_FLUSH) { in ps3disk_interrupt()
|
| H A D | loop.c | 291 req_op(rq) != REQ_OP_READ) { in lo_complete_rq() 327 if (req_op(rq) == REQ_OP_WRITE) in lo_rw_aio_do_completion() 415 switch (req_op(rq)) { in do_req_filebacked() 1885 switch (req_op(rq)) { in loop_queue_rq() 1921 const bool write = op_is_write(req_op(rq)); in loop_handle_cmd()
|
| /linux/fs/zonefs/ |
| H A D | zonefs.h | 260 int zonefs_inode_zone_mgmt(struct inode *inode, enum req_op op);
|
| /linux/fs/xfs/ |
| H A D | xfs_platform.h | 225 char *data, enum req_op op);
|
| /linux/drivers/md/ |
| H A D | dm-ebs-target.c | 65 static int __ebs_rw_bvec(struct ebs_c *ec, enum req_op op, struct bio_vec *bv, in __ebs_rw_bvec() 122 static int __ebs_rw_bio(struct ebs_c *ec, enum req_op op, struct bio *bio) in __ebs_rw_bio()
|
| /linux/drivers/block/null_blk/ |
| H A D | main.c | 1309 op_is_write(req_op(rq)), pos, in null_handle_data_transfer() 1380 blk_status_t null_handle_memory_backed(struct nullb_cmd *cmd, enum req_op op, in null_handle_memory_backed() 1397 if (!dev->memory_backed && req_op(rq) == REQ_OP_READ) { in nullb_zero_read_cmd_buffer() 1431 blk_status_t null_process_cmd(struct nullb_cmd *cmd, enum req_op op, in null_process_cmd() 1451 sector_t nr_sectors, enum req_op op) in null_handle_cmd() 1616 cmd->error = null_process_cmd(cmd, req_op(req), blk_rq_pos(req), in null_poll() 1711 null_handle_cmd(cmd, sector, nr_sectors, req_op(rq)); in null_queue_rq()
|
| H A D | zoned.c | 652 static blk_status_t null_zone_mgmt(struct nullb_cmd *cmd, enum req_op op, in null_zone_mgmt() 714 blk_status_t null_process_zoned_cmd(struct nullb_cmd *cmd, enum req_op op, in null_process_zoned_cmd()
|
| /linux/drivers/nvme/target/ |
| H A D | passthru.c | 283 ARRAY_SIZE(req->inline_bvec), req_op(rq)); in nvmet_passthru_map_sg() 285 bio = bio_alloc(NULL, bio_max_segs(req->sg_cnt), req_op(rq), in nvmet_passthru_map_sg()
|
| H A D | zns.c | 324 static inline enum req_op zsa_req_op(u8 zsa) in zsa_req_op() 479 enum req_op op = zsa_req_op(req->cmd->zms.zsa); in nvmet_bdev_zmgmt_send_work()
|
| /linux/drivers/nvme/host/ |
| H A D | zns.c | 249 if (req_op(req) == REQ_OP_ZONE_RESET_ALL) in nvme_setup_zone_mgmt_send()
|
| /linux/drivers/s390/block/ |
| H A D | dasd_fba.c | 555 if (req_op(req) == REQ_OP_DISCARD || req_op(req) == REQ_OP_WRITE_ZEROES) in dasd_fba_build_cp()
|
| /linux/drivers/mtd/ |
| H A D | mtd_blkdevs.c | 57 switch (req_op(req)) { in do_blktrans_request()
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_actlog.c | 127 sector_t sector, enum req_op op) in _drbd_md_sync_page_io() 178 sector_t sector, enum req_op op) in drbd_md_sync_page_io()
|