Lines Matching +full:controller +full:- +full:specific

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
37 * enum nvmf_parsing_opts - used to define the sysfs parsing options used.
73 * struct nvmf_ctrl_options - Used to hold the options specified
76 * on adding a NVMe controller.
78 * the controller, (-1) means reconnect forever, zero means remove
81 * better description) that will be used by an NVMe controller
85 * @traddr: The transport-specific TRADDR field for a port on the
86 * subsystem which is adding a controller.
87 * @trsvcid: The transport-specific TRSVCID field for a port on the
88 * subsystem which is adding a controller.
89 * @host_traddr: A transport-specific field identifying the NVME host port
90 * to use for the connection to the controller.
91 * @host_iface: A transport-specific field identifying the NVME host
92 * interface to use for the connection to the controller.
94 * @nr_io_queues: Number of controller IO queues that will be established.
96 * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN.
97 * @kato: Keep-alive timeout.
99 * @dhchap_secret: DH-HMAC-CHAP secret
100 * @dhchap_ctrl_secret: DH-HMAC-CHAP controller secret for bi-directional
106 * @disable_sqflow: disable controller sq flow control
146 * struct nvmf_transport_ops - used to register a specific
149 * registration entry to its linked-list internal tree.
152 * @required_opts: sysfs command-line options that must be specified
153 * when adding a new NVMe controller.
154 * @allowed_opts: sysfs command-line options that can be specified
155 * when adding a new NVMe controller.
156 * @create_ctrl(): function pointer that points to a non-NVMe
157 * implementation-specific fabric technology
159 * for the purpose of conneciton to an NVMe controller
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()
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()
208 nvme_req(rq)->status = NVME_SC_HOST_ABORTED_CMD; in nvmf_complete_timed_out_request()
215 return min(opts->nr_io_queues, num_online_cpus()) + in nvmf_nr_io_queues()
216 min(opts->nr_write_queues, num_online_cpus()) + in nvmf_nr_io_queues()
217 min(opts->nr_poll_queues, num_online_cpus()); in nvmf_nr_io_queues()