Lines Matching refs:ctrl
27 nvmet_update_cc(req->sq->ctrl, val);
40 struct nvmet_ctrl *ctrl = req->sq->ctrl;
50 val = ctrl->cap;
59 val = ctrl->subsys->ver;
62 val = ctrl->cc;
65 val = ctrl->csts;
106 static u16 nvmet_install_queue(struct nvmet_ctrl *ctrl, struct nvmet_req *req)
114 old = cmpxchg(&req->sq->ctrl, NULL, ctrl);
129 nvmet_cq_setup(ctrl, req->cq, qid, sqsize + 1);
130 nvmet_sq_setup(ctrl, req->sq, qid, sqsize + 1);
137 if (ctrl->ops->install_queue) {
138 ret = ctrl->ops->install_queue(req->sq);
141 qid, ctrl->cntlid, ret);
149 req->sq->ctrl = NULL;
157 struct nvmet_ctrl *ctrl = NULL;
195 le32_to_cpu(c->kato), &ctrl);
203 ctrl->pi_support = ctrl->port->pi_enable && ctrl->subsys->pi_support;
205 uuid_copy(&ctrl->hostid, &d->hostid);
207 status = nvmet_install_queue(ctrl, req);
209 nvmet_ctrl_put(ctrl);
214 ctrl->cntlid, ctrl->subsys->subsysnqn, ctrl->hostnqn,
215 ctrl->pi_support ? " T10-PI is enabled" : "");
216 req->cqe->result.u16 = cpu_to_le16(ctrl->cntlid);
228 struct nvmet_ctrl *ctrl;
257 ctrl = nvmet_ctrl_find_get(d->subsysnqn, d->hostnqn,
259 if (!ctrl) {
264 if (unlikely(qid > ctrl->subsys->max_qid)) {
271 status = nvmet_install_queue(ctrl, req);
276 req->cqe->result.u16 = cpu_to_le16(ctrl->cntlid);
278 pr_debug("adding queue %d to ctrl %d.\n", qid, ctrl->cntlid);
287 nvmet_ctrl_put(ctrl);