Lines Matching refs:ctrl
169 nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl,
172 if (ctrl->state == NVME_CTRL_DELETING ||
173 ctrl->state == NVME_CTRL_DELETING_NOIO ||
174 ctrl->state == NVME_CTRL_DEAD ||
175 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) ||
176 strcmp(opts->host->nqn, ctrl->opts->host->nqn) ||
177 !uuid_equal(&opts->host->id, &ctrl->opts->host->id))
183 static inline char *nvmf_ctrl_subsysnqn(struct nvme_ctrl *ctrl)
185 if (!ctrl->subsys ||
186 !strcmp(ctrl->opts->subsysnqn, NVME_DISC_SUBSYS_NAME))
187 return ctrl->opts->subsysnqn;
188 return ctrl->subsys->subnqn;
206 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val);
207 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val);
208 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val);
209 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl);
210 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid);
214 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size);
215 bool nvmf_should_reconnect(struct nvme_ctrl *ctrl);
216 bool nvmf_ip_options_match(struct nvme_ctrl *ctrl,
220 void nvmf_map_queues(struct blk_mq_tag_set *set, struct nvme_ctrl *ctrl,