Lines Matching refs:ctrl
25 struct nvmet_ctrl *ctrl = req->sq->ctrl;
26 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl;
40 id->cntlid = cpu_to_le16(ctrl->cntlid);
41 id->ver = cpu_to_le32(ctrl->subsys->ver);
58 page_shift = NVME_CAP_MPSMIN(ctrl->cap) + 12;
69 /* emulate kas as most of the PCIe ctrl don't have a support for kas */
84 if (ctrl->ops->flags & NVMF_KEYED_SGLS)
91 * export the passthru ctrl subsysnqn (PCIe NVMe ctrl) and will fail in
94 * mask the passthru-ctrl subsysnqn with the target ctrl subsysnqn.
96 memcpy(id->subnqn, ctrl->subsysnqn, sizeof(id->subnqn));
98 /* use fabric id-ctrl values */
103 id->msdbd = ctrl->ops->msdbd;
226 struct nvme_ctrl *ctrl = nvmet_req_passthru_ctrl(req);
227 struct request_queue *q = ctrl->admin_q;
237 ns = nvme_find_get_ns(ctrl, nsid);
266 effects = nvme_command_effects(ctrl, ns, req->cmd->common.opcode);
299 struct nvme_ctrl *ctrl = nvmet_req_passthru_ctrl(req);
308 ret = nvme_get_features(ctrl, NVME_FEAT_HOST_BEHAVIOR, 0,
499 struct nvme_ctrl *ctrl;
521 ctrl = nvme_ctrl_from_file(file);
522 if (!ctrl) {
529 old = xa_cmpxchg(&passthru_subsystems, ctrl->cntlid, NULL,
539 subsys->passthru_ctrl = ctrl;
540 subsys->ver = ctrl->vs;
548 nvme_get_ctrl(ctrl);