Lines Matching refs:ctrl
16 struct nvmet_ctrl *ctrl)
18 if (ctrl->port != port)
21 if (nvmet_aen_bit_disabled(ctrl, NVME_AEN_BIT_DISC_CHANGE))
24 nvmet_add_async_event(ctrl, NVME_AER_TYPE_NOTICE,
31 struct nvmet_ctrl *ctrl;
37 list_for_each_entry(ctrl, &nvmet_disc_subsys->ctrls, subsys_entry) {
38 if (subsys && !nvmet_host_allowed(subsys, ctrl->hostnqn))
41 __nvmet_disc_changed(port, ctrl);
54 struct nvmet_ctrl *ctrl;
57 list_for_each_entry(ctrl, &nvmet_disc_subsys->ctrls, subsys_entry) {
58 if (host && strcmp(nvmet_host_name(host), ctrl->hostnqn))
61 __nvmet_disc_changed(port, ctrl);
145 struct nvmet_ctrl *ctrl = req->sq->ctrl;
151 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn))
163 struct nvmet_ctrl *ctrl = req->sq->ctrl;
210 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn))
244 struct nvmet_ctrl *ctrl = req->sq->ctrl;
265 bin2hex(id->sn, &ctrl->subsys->serial,
266 min(sizeof(ctrl->subsys->serial), sizeof(id->sn) / 2));
274 id->cntlid = cpu_to_le16(ctrl->cntlid);
275 id->ver = cpu_to_le32(ctrl->subsys->ver);
282 if (ctrl->ops->flags & NVMF_KEYED_SGLS)
289 strlcpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn));
353 if (unlikely(!(req->sq->ctrl->csts & NVME_CSTS_RDY))) {