Lines Matching +full:ctrl +full:- +full:module
1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
18 /* default is -1: the fail fast mechanism is disabled */
19 #define NVMF_DEF_FAIL_FAST_TMO -1
44 * enum nvmf_parsing_opts - used to define the sysfs parsing options used.
73 * struct nvmf_ctrl_options - Used to hold the options specified
82 * @traddr: The transport-specific TRADDR field for a port on the
84 * @trsvcid: The transport-specific TRSVCID field for a port on the
86 * @host_traddr: A transport-specific field identifying the NVME host port
88 * @host_iface: A transport-specific field identifying the NVME host
93 * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN.
94 * @kato: Keep-alive timeout.
97 * the controller, (-1) means reconnect forever, zero means remove
133 * struct nvmf_transport_ops - used to register a specific
136 * registration entry to its linked-list internal tree.
137 * @module: Transport module reference
139 * @required_opts: sysfs command-line options that must be specified
141 * @allowed_opts: sysfs command-line options that can be specified
143 * @create_ctrl(): function pointer that points to a non-NVMe
144 * implementation-specific fabric technology
154 * modules .bss section so that a pure module_get on @module
159 struct module *module; member
168 nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl, in nvmf_ctlr_matches_baseopts() argument
171 if (ctrl->state == NVME_CTRL_DELETING || in nvmf_ctlr_matches_baseopts()
172 ctrl->state == NVME_CTRL_DEAD || in nvmf_ctlr_matches_baseopts()
173 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || in nvmf_ctlr_matches_baseopts()
174 strcmp(opts->host->nqn, ctrl->opts->host->nqn) || in nvmf_ctlr_matches_baseopts()
175 memcmp(&opts->host->id, &ctrl->opts->host->id, sizeof(uuid_t))) in nvmf_ctlr_matches_baseopts()
181 int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val);
182 int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val);
183 int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val);
184 int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl);
185 int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid);
189 int nvmf_get_address(struct nvme_ctrl *ctrl, char *buf, int size);
190 bool nvmf_should_reconnect(struct nvme_ctrl *ctrl);
191 bool nvmf_ip_options_match(struct nvme_ctrl *ctrl,