Lines Matching defs:rq
287 struct request_list rq;
406 #define blk_fs_request(rq) ((rq)->flags & REQ_CMD)
407 #define blk_pc_request(rq) ((rq)->flags & REQ_BLOCK_PC)
408 #define blk_noretry_request(rq) ((rq)->flags & REQ_FAILFAST)
409 #define blk_rq_started(rq) ((rq)->flags & REQ_STARTED)
411 #define blk_account_rq(rq) (blk_rq_started(rq) && blk_fs_request(rq))
413 #define blk_pm_suspend_request(rq) ((rq)->flags & REQ_PM_SUSPEND)
414 #define blk_pm_resume_request(rq) ((rq)->flags & REQ_PM_RESUME)
415 #define blk_pm_request(rq) ((rq)->flags & (REQ_PM_SUSPEND | REQ_PM_RESUME))
417 #define blk_sorted_rq(rq) ((rq)->flags & REQ_SORTED)
418 #define blk_barrier_rq(rq) ((rq)->flags & REQ_HARDBARRIER)
419 #define blk_fua_rq(rq) ((rq)->flags & REQ_FUA)
423 #define rq_data_dir(rq) ((rq)->flags & 1)
426 #define rq_mergeable(rq) (!((rq)->flags & RQ_NOMERGE_FLAGS) && blk_fs_request((rq)))
436 #define rq_for_each_bio(_bio, rq) if ((rq->bio)) for (_bio = (rq)->bio; _bio; _bio = _bio->bi_next)
442 #define blk_rq_tagged(rq) ((rq)->flags & REQ_QUEUED)