Lines Matching refs:rq
572 static inline u16 nvme_cid(struct request *rq) in nvme_cid() argument
574 return nvme_cid_install_genctr(nvme_req(rq)->genctr) | rq->tag; in nvme_cid()
582 struct request *rq; in nvme_find_rq() local
584 rq = blk_mq_tag_to_rq(tags, tag); in nvme_find_rq()
585 if (unlikely(!rq)) { in nvme_find_rq()
590 if (unlikely(nvme_genctr_mask(nvme_req(rq)->genctr) != genctr)) { in nvme_find_rq()
591 dev_err(nvme_req(rq)->ctrl->device, in nvme_find_rq()
593 tag, genctr, nvme_genctr_mask(nvme_req(rq)->genctr)); in nvme_find_rq()
596 return rq; in nvme_find_rq()
718 struct nvme_request *rq = nvme_req(req); in nvme_try_complete_req() local
719 struct nvme_ctrl *ctrl = rq->ctrl; in nvme_try_complete_req()
722 rq->genctr++; in nvme_try_complete_req()
724 rq->status = le16_to_cpu(status) >> 1; in nvme_try_complete_req()
725 rq->result = result; in nvme_try_complete_req()
775 void (*fn)(struct request *rq)) in nvme_complete_batch() argument
836 bool __nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq,
839 static inline bool nvme_check_ready(struct nvme_ctrl *ctrl, struct request *rq, in nvme_check_ready() argument
847 return __nvme_check_ready(ctrl, rq, queue_live); in nvme_check_ready()
945 void nvme_mpath_start_request(struct request *rq);
946 void nvme_mpath_end_request(struct request *rq);
1032 static inline void nvme_mpath_start_request(struct request *rq) in nvme_mpath_start_request() argument
1035 static inline void nvme_mpath_end_request(struct request *rq) in nvme_mpath_end_request() argument
1083 static inline void nvme_start_request(struct request *rq) in nvme_start_request() argument
1085 if (rq->cmd_flags & REQ_NVME_MPATH) in nvme_start_request()
1086 nvme_mpath_start_request(rq); in nvme_start_request()
1087 blk_mq_start_request(rq); in nvme_start_request()
1130 int nvme_execute_rq(struct request *rq, bool at_head);