Home
last modified time | relevance | path

Searched refs:nvme_req (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/nvme/host/
H A Dtrace.h63 __entry->ctrl_id = nvme_req(req)->ctrl->instance;
99 __entry->ctrl_id = nvme_req(req)->ctrl->instance;
101 __entry->cid = nvme_req(req)->cmd->common.command_id;
102 __entry->result = le64_to_cpu(nvme_req(req)->result.u64);
103 __entry->retries = nvme_req(req)->retries;
104 __entry->flags = nvme_req(req)->flags;
105 __entry->status = nvme_req(req)->status;
152 __entry->ctrl_id = nvme_req(req)->ctrl->instance;
H A Dfault_inject.c72 fault_inject = &nvme_req(req)->ctrl->fault_inject; in nvme_should_fail()
80 nvme_req(req)->status = status; in nvme_should_fail()
H A Dmultipath.c140 u16 status = nvme_req(req)->status & NVME_SCT_SC_MASK; in nvme_failover_req()
175 nvme_req(req)->status = 0; in nvme_failover_req()
186 !(nvme_req(rq)->flags & NVME_MPATH_CNT_ACTIVE)) { in nvme_mpath_start_request()
188 nvme_req(rq)->flags |= NVME_MPATH_CNT_ACTIVE; in nvme_mpath_start_request()
192 (nvme_req(rq)->flags & NVME_MPATH_IO_STATS)) in nvme_mpath_start_request()
195 nvme_req(rq)->flags |= NVME_MPATH_IO_STATS; in nvme_mpath_start_request()
196 nvme_req(rq)->start_time = bdev_start_io_acct(disk->part0, req_op(rq), in nvme_mpath_start_request()
205 if (nvme_req(rq)->flags & NVME_MPATH_CNT_ACTIVE) in nvme_mpath_end_request()
208 if (!(nvme_req(rq)->flags & NVME_MPATH_IO_STATS)) in nvme_mpath_end_request()
212 nvme_req(rq)->start_time); in nvme_mpath_end_request()
H A Dioctl.c111 nvme_req(req)->flags |= NVME_REQ_USERCMD; in nvme_alloc_user_request()
123 struct nvme_ctrl *ctrl = nvme_req(req)->ctrl; in nvme_map_user_request()
187 ctrl = nvme_req(req)->ctrl; in nvme_submit_user_cmd()
192 *result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_submit_user_cmd()
418 if (nvme_req(req)->flags & NVME_REQ_CANCELLED) { in nvme_uring_cmd_end_io()
421 pdu->status = nvme_req(req)->status; in nvme_uring_cmd_end_io()
425 pdu->result = le64_to_cpu(nvme_req(req)->result.u64); in nvme_uring_cmd_end_io()
H A Dapple.c635 nvme_req(req)->status != NVME_SC_SUCCESS, in apple_nvme_handle_cqe()
827 struct nvme_request *nreq = nvme_req(req); in apple_nvme_init_request()
943 nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD; in apple_nvme_timeout()
944 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in apple_nvme_timeout()
969 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in apple_nvme_timeout()
H A Dpci.c523 nvme_req(req)->ctrl = set->driver_data; in nvme_pci_init_request()
524 nvme_req(req)->cmd = &iod->cmd; in nvme_pci_init_request()
619 nvme_req(req)->flags & NVME_REQ_USERCMD; in nvme_pci_metadata_use_sgls()
642 nvme_req(req)->flags & NVME_REQ_USERCMD || in nvme_pci_use_sgls()
1151 (entries == 1 && !(nvme_req(req)->flags & NVME_REQ_USERCMD))) { in nvme_pci_setup_meta_iter()
1405 nvme_req(req)->status != NVME_SC_SUCCESS, in nvme_handle_cqe()
1627 "Abort status: 0x%x", nvme_req(req)->status); in abort_endio()
1752 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
1766 opcode = nvme_req(req)->cmd->common.opcode; in nvme_timeout()
1772 nvme_req(req)->flags |= NVME_REQ_CANCELLED; in nvme_timeout()
H A Dtcp.c567 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_tcp_init_request()
568 nvme_req(rq)->cmd = &pdu->cmd; in nvme_tcp_init_request()
H A Dfc.c2125 nvme_req(rq)->ctrl = &ctrl->ctrl; in nvme_fc_init_request()
2126 nvme_req(rq)->cmd = &op->op.cmd_iu.sqe; in nvme_fc_init_request()
/linux/drivers/nvme/target/
H A Dpassthru.c218 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl; in nvmet_passthru_execute_cmd_work()
241 req->cqe->result = nvme_req(rq)->result; in nvmet_passthru_execute_cmd_work()
254 req->cqe->result = nvme_req(rq)->result; in nvmet_passthru_req_done()
255 nvmet_req_complete(req, nvme_req(rq)->status); in nvmet_passthru_req_done()
H A Dfc.c215 nvmet_req_to_fod(struct nvmet_req *nvme_req) in nvmet_req_to_fod() argument
217 return container_of(nvme_req, struct nvmet_fc_fcp_iod, req); in nvmet_req_to_fod()
1928 static void nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req);
2510 nvmet_fc_fcp_nvme_cmd_done(struct nvmet_req *nvme_req) in nvmet_fc_fcp_nvme_cmd_done() argument
2512 struct nvmet_fc_fcp_iod *fod = nvmet_req_to_fod(nvme_req); in nvmet_fc_fcp_nvme_cmd_done()