Lines Matching refs:ctrl

23 void nvmet_passthrough_override_cap(struct nvmet_ctrl *ctrl)
29 if (!nvme_multi_css(ctrl->subsys->passthru_ctrl))
30 ctrl->cap &= ~(1ULL << 43);
35 struct nvmet_ctrl *ctrl = req->sq->ctrl;
42 if (!ctrl->subsys->clear_ids)
82 struct nvmet_ctrl *ctrl = req->sq->ctrl;
83 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl;
97 id->cntlid = cpu_to_le16(ctrl->cntlid);
98 id->ver = cpu_to_le32(ctrl->subsys->ver);
115 page_shift = NVME_CAP_MPSMIN(ctrl->cap) + 12;
126 /* emulate kas as most of the PCIe ctrl don't have a support for kas */
141 if (ctrl->ops->flags & NVMF_KEYED_SGLS)
148 * export the passthru ctrl subsysnqn (PCIe NVMe ctrl) and will fail in
151 * mask the passthru-ctrl subsysnqn with the target ctrl subsysnqn.
153 memcpy(id->subnqn, ctrl->subsysnqn, sizeof(id->subnqn));
155 /* use fabric id-ctrl values */
160 id->msdbd = ctrl->ops->msdbd;
202 if (req->sq->ctrl->subsys->clear_ids) {
218 struct nvme_ctrl *ctrl = nvme_req(rq)->ctrl;
223 effects = nvme_passthru_start(ctrl, ns, req->cmd->common.opcode);
246 nvme_passthru_end(ctrl, ns, effects, req->cmd, status);
294 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl;
295 struct request_queue *q = ctrl->admin_q;
306 ns = nvme_find_get_ns(ctrl, nsid);
342 effects = nvme_command_effects(ctrl, ns, req->cmd->common.opcode);
375 struct nvme_ctrl *ctrl = nvmet_req_subsys(req)->passthru_ctrl;
384 ret = nvme_get_features(ctrl, NVME_FEAT_HOST_BEHAVIOR, 0,
575 struct nvme_ctrl *ctrl;
597 ctrl = nvme_ctrl_from_file(file);
598 if (!ctrl) {
605 old = xa_cmpxchg(&passthru_subsystems, ctrl->cntlid, NULL,
615 subsys->passthru_ctrl = ctrl;
616 subsys->ver = ctrl->vs;
624 nvme_get_ctrl(ctrl);