Lines Matching refs:ctrl
181 nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl, in nvmf_ctlr_matches_baseopts() argument
184 enum nvme_ctrl_state state = nvme_ctrl_state(ctrl); in nvmf_ctlr_matches_baseopts()
189 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || in nvmf_ctlr_matches_baseopts()
190 strcmp(opts->host->nqn, ctrl->opts->host->nqn) || in nvmf_ctlr_matches_baseopts()
191 !uuid_equal(&opts->host->id, &ctrl->opts->host->id)) in nvmf_ctlr_matches_baseopts()
197 static inline char *nvmf_ctrl_subsysnqn(struct nvme_ctrl *ctrl) in nvmf_ctrl_subsysnqn() argument
199 if (!ctrl->subsys || in nvmf_ctrl_subsysnqn()
200 !strcmp(ctrl->opts->subsysnqn, NVME_DISC_SUBSYS_NAME)) in nvmf_ctrl_subsysnqn()
201 return ctrl->opts->subsysnqn; in nvmf_ctrl_subsysnqn()
202 return ctrl->subsys->subnqn; in nvmf_ctrl_subsysnqn()
220 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val);
221 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val);
222 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val);
223 int nvmf_subsystem_reset(struct nvme_ctrl *ctrl);
224 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl);
225 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid);
229 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size);
230 bool nvmf_should_reconnect(struct nvme_ctrl *ctrl, int status);
231 bool nvmf_ip_options_match(struct nvme_ctrl *ctrl,
235 void nvmf_map_queues(struct blk_mq_tag_set *set, struct nvme_ctrl *ctrl,