Home
last modified time | relevance | path

Searched refs:req_op (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.4/block/
Dblk-merge.c525 if (op_is_write(req_op(rq))) in blk_rq_map_sg()
703 if (req_op(req) == REQ_OP_DISCARD && in blk_discard_mergable()
730 if (req_op(req) != req_op(next)) in attempt_merge()
737 if (req_op(req) == REQ_OP_WRITE_SAME && in attempt_merge()
853 if (req_op(rq) != bio_op(bio)) in blk_rq_merge_ok()
869 if (req_op(rq) == REQ_OP_WRITE_SAME && in blk_rq_merge_ok()
Dblk-map.c81 bio->bi_opf |= req_op(rq); in __blk_rq_map_user_iov()
245 bio->bi_opf |= req_op(rq); in blk_rq_map_kern()
Dblk-core.c223 blk_rq_pos(req), req_op(req), blk_op_str(req_op(req)), in print_req_error()
1219 if (blk_rq_sectors(rq) > blk_queue_get_max_sectors(q, req_op(rq))) { in blk_cloned_rq_check_limits()
1222 blk_queue_get_max_sectors(q, req_op(rq))); in blk_cloned_rq_check_limits()
1312 const int sgrp = op_stat_group(req_op(req)); in blk_account_io_completion()
1330 const int sgrp = op_stat_group(req_op(req)); in blk_account_io_done()
1441 if (blk_integrity_rq(req) && req_op(req) == REQ_OP_READ && in blk_update_request()
Dblk-zoned.c42 switch (req_op(rq)) { in blk_req_needs_zone_write_lock()
Dbio.c1733 void generic_end_io_acct(struct request_queue *q, int req_op, in generic_end_io_acct() argument
1738 const int sgrp = op_stat_group(req_op); in generic_end_io_acct()
1745 part_dec_in_flight(q, part, op_is_write(req_op)); in generic_end_io_acct()
Dblk-wbt.c674 const int op = req_op(rq); in wbt_data_dir()
/Linux-v5.4/include/linux/
Dblkdev.h261 return blk_op_is_scsi(req_op(rq)); in blk_rq_is_scsi()
266 return blk_op_is_private(req_op(rq)); in blk_rq_is_private()
675 #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ)
678 (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE)
749 if (req_op(rq) == REQ_OP_FLUSH) in rq_mergeable()
752 if (req_op(rq) == REQ_OP_WRITE_ZEROES) in rq_mergeable()
1032 req_op(rq) == REQ_OP_DISCARD || in blk_rq_get_max_sectors()
1033 req_op(rq) == REQ_OP_SECURE_ERASE) in blk_rq_get_max_sectors()
1034 return blk_queue_get_max_sectors(q, req_op(rq)); in blk_rq_get_max_sectors()
1037 blk_queue_get_max_sectors(q, req_op(rq))); in blk_rq_get_max_sectors()
Dblk_types.h380 #define req_op(req) \ macro
/Linux-v5.4/drivers/mmc/core/
Dqueue.c48 switch (req_op(req)) { in mmc_cqe_issue_type()
68 if (req_op(req) == REQ_OP_READ || req_op(req) == REQ_OP_WRITE) in mmc_issue_type()
/Linux-v5.4/drivers/md/
Ddm-rq.c225 if (req_op(clone) == REQ_OP_DISCARD && in dm_done()
228 else if (req_op(clone) == REQ_OP_WRITE_SAME && in dm_done()
231 else if (req_op(clone) == REQ_OP_WRITE_ZEROES && in dm_done()
/Linux-v5.4/arch/um/drivers/
Dubd_kern.c522 if ((io_req->error == BLK_STS_NOTSUPP) && (req_op(io_req->req) == REQ_OP_DISCARD)) { in ubd_handler()
1300 if (req_op(req->req) == REQ_OP_READ) { in cowify_req()
1386 switch (req_op(req)) { in ubd_queue_rq()
1509 if (req_op(req->req) == REQ_OP_FLUSH) { in do_io()
1531 switch (req_op(req->req)) { in do_io()
/Linux-v5.4/drivers/block/
Dxen-blkfront.c556 if (req_op(req) == REQ_OP_SECURE_ERASE && info->feature_secdiscard) in blkif_queue_discard_req()
758 BUG_ON(req_op(req) == REQ_OP_FLUSH || req->cmd_flags & REQ_FUA); in blkif_queue_rw_req()
770 if (req_op(req) == REQ_OP_FLUSH || req->cmd_flags & REQ_FUA) { in blkif_queue_rw_req()
854 if (unlikely(req_op(req) == REQ_OP_DISCARD || in blkif_queue_request()
855 req_op(req) == REQ_OP_SECURE_ERASE)) in blkif_queue_request()
875 ((req_op(req) == REQ_OP_FLUSH) && in blkif_request_flush_invalid()
2095 if (req_op(shadow[j].request) == REQ_OP_FLUSH || in blkfront_resume()
2096 req_op(shadow[j].request) == REQ_OP_DISCARD || in blkfront_resume()
2097 req_op(shadow[j].request) == REQ_OP_SECURE_ERASE || in blkfront_resume()
Dnull_blk_zoned.c128 switch (req_op(cmd->rq)) { in null_zone_reset()
Dps3disk.c183 switch (req_op(req)) { in ps3disk_do_request()
246 if (req_op(req) == REQ_OP_FLUSH) { in ps3disk_interrupt()
Dnull_blk_main.c1064 if (req_op(rq) == REQ_OP_DISCARD) { in null_handle_rq()
1073 op_is_write(req_op(rq)), sector, in null_handle_rq()
1074 req_op(rq) & REQ_FUA); in null_handle_rq()
1358 return null_handle_cmd(cmd, sector, nr_sectors, req_op(bd->rq)); in null_queue_rq()
Dloop.c460 req_op(rq) != REQ_OP_READ) { in lo_complete_rq()
596 switch (req_op(rq)) { in do_req_filebacked()
1903 switch (req_op(rq)) { in loop_queue_rq()
1930 const bool write = op_is_write(req_op(rq)); in loop_handle_cmd()
Dvirtio_blk.c219 switch (req_op(req)) { in virtblk_request_done()
287 switch (req_op(req)) { in virtio_queue_rq()
/Linux-v5.4/drivers/mtd/
Dmtd_blkdevs.c75 if (req_op(req) == REQ_OP_FLUSH) { in do_blktrans_request()
85 switch (req_op(req)) { in do_blktrans_request()
/Linux-v5.4/drivers/ide/
Dide-cd.c316 if (req_op(rq) == REQ_OP_WRITE) { in cdrom_decode_status()
666 switch (req_op(rq)) { in cdrom_newpc_intr()
744 switch (req_op(rq)) { in cdrom_newpc_intr()
888 switch (req_op(rq)) { in ide_cd_do_request()
Dide-floppy.c258 switch (req_op(rq)) { in ide_floppy_do_request()
/Linux-v5.4/drivers/scsi/
Dsd_zbc.c266 if (req_op(rq) == REQ_OP_ZONE_RESET && in sd_zbc_complete()
/Linux-v5.4/drivers/s390/block/
Ddasd_fba.c568 if (req_op(req) == REQ_OP_DISCARD || req_op(req) == REQ_OP_WRITE_ZEROES) in dasd_fba_build_cp()
/Linux-v5.4/drivers/block/paride/
Dpd.c487 switch (req_op(pd_req)) { in do_pd_io_start()
500 if (req_op(pd_req) == REQ_OP_READ) in do_pd_io_start()
/Linux-v5.4/drivers/mtd/ubi/
Dblock.c320 switch (req_op(req)) { in ubiblock_queue_rq()
/Linux-v5.4/drivers/cdrom/
Dgdrom.c636 switch (req_op(bd->rq)) { in gdrom_queue_rq()

12