Lines Matching +full:ctrl +full:- +full:module
1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
35 * enum nvmf_parsing_opts - used to define the sysfs parsing options used.
62 * struct nvmf_ctrl_options - Used to hold the options specified
71 * @traddr: The transport-specific TRADDR field for a port on the
73 * @trsvcid: The transport-specific TRSVCID field for a port on the
75 * @host_traddr: A transport-specific field identifying the NVME host port
80 * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN.
81 * @kato: Keep-alive timeout.
84 * the controller, (-1) means reconnect forever, zero means remove
117 * struct nvmf_transport_ops - used to register a specific
120 * registration entry to its linked-list internal tree.
121 * @module: Transport module reference
123 * @required_opts: sysfs command-line options that must be specified
125 * @allowed_opts: sysfs command-line options that can be specified
127 * @create_ctrl(): function pointer that points to a non-NVMe
128 * implementation-specific fabric technology
138 * modules .bss section so that a pure module_get on @module
143 struct module *module; member
152 nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl, in nvmf_ctlr_matches_baseopts() argument
155 if (ctrl->state == NVME_CTRL_DELETING || in nvmf_ctlr_matches_baseopts()
156 ctrl->state == NVME_CTRL_DEAD || in nvmf_ctlr_matches_baseopts()
157 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || in nvmf_ctlr_matches_baseopts()
158 strcmp(opts->host->nqn, ctrl->opts->host->nqn) || in nvmf_ctlr_matches_baseopts()
159 memcmp(&opts->host->id, &ctrl->opts->host->id, sizeof(uuid_t))) in nvmf_ctlr_matches_baseopts()
165 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val);
166 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val);
167 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val);
168 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl);
169 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid, bool poll);
173 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size);
174 bool nvmf_should_reconnect(struct nvme_ctrl *ctrl);
175 blk_status_t nvmf_fail_nonready_command(struct nvme_ctrl *ctrl,
177 bool __nvmf_check_ready(struct nvme_ctrl *ctrl, struct request *rq,
179 bool nvmf_ip_options_match(struct nvme_ctrl *ctrl,
182 static inline bool nvmf_check_ready(struct nvme_ctrl *ctrl, struct request *rq, in nvmf_check_ready() argument
185 if (likely(ctrl->state == NVME_CTRL_LIVE || in nvmf_check_ready()
186 ctrl->state == NVME_CTRL_DELETING)) in nvmf_check_ready()
188 return __nvmf_check_ready(ctrl, rq, queue_live); in nvmf_check_ready()