Home
last modified time | relevance | path

Searched refs:subsysnqn (Results 1 - 25 of 31) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/nvme/host/
H A Dfabrics.h79 * @subsysnqn: Hold the fully qualified NQN subystem name (format defined
92 * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN.
110 char *subsysnqn; member
175 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || in nvmf_ctlr_matches_baseopts()
186 !strcmp(ctrl->opts->subsysnqn, NVME_DISC_SUBSYS_NAME)) in nvmf_ctrl_subsysnqn()
187 return ctrl->opts->subsysnqn; in nvmf_ctrl_subsysnqn()
H A Dfabrics.c321 case (offsetof(struct nvmf_connect_data, subsysnqn)): in nvmf_log_connect_error()
323 "%s, subsysnqn \"%s\"\n", in nvmf_log_connect_error()
324 inv_data, data->subsysnqn); in nvmf_log_connect_error()
351 data->subsysnqn, data->hostnqn); in nvmf_log_connect_error()
389 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); in nvmf_connect_data_prep()
707 kfree(opts->subsysnqn); in nvmf_parse_options()
708 opts->subsysnqn = p; in nvmf_parse_options()
709 nqnlen = strlen(opts->subsysnqn); in nvmf_parse_options()
712 opts->subsysnqn, NVMF_NQN_SIZ in nvmf_parse_options()
[all...]
H A Dauth.c496 ret = crypto_shash_update(shash, ctrl->opts->subsysnqn, in nvme_auth_dhchap_setup_host_response()
497 strlen(ctrl->opts->subsysnqn)); in nvme_auth_dhchap_setup_host_response()
516 ctrl->opts->subsysnqn); in nvme_auth_dhchap_setup_ctrl_response()
548 dev_dbg(ctrl->device, "%s: qid %d subsysnqn %s\n", in nvme_auth_dhchap_setup_ctrl_response()
549 __func__, chap->qid, ctrl->opts->subsysnqn); in nvme_auth_dhchap_setup_ctrl_response()
574 ret = crypto_shash_update(shash, ctrl->opts->subsysnqn, in nvme_auth_dhchap_setup_ctrl_response()
575 strlen(ctrl->opts->subsysnqn)); in nvme_auth_dhchap_setup_ctrl_response()
H A Dsysfs.c256 static DEVICE_ATTR(subsysnqn, S_IRUGO, nvme_sysfs_show_subsysnqn, NULL);
614 static SUBSYS_ATTR_RO(subsysnqn, S_IRUGO, nvme_subsys_show_nqn);
/kernel/linux/linux-5.10/drivers/nvme/host/
H A Dfabrics.c294 case (offsetof(struct nvmf_connect_data, subsysnqn)): in nvmf_log_connect_error()
296 "%s, subsysnqn \"%s\"\n", in nvmf_log_connect_error()
297 inv_data, data->subsysnqn); in nvmf_log_connect_error()
325 data->subsysnqn, data->hostnqn); in nvmf_log_connect_error()
401 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); in nvmf_connect_admin_queue()
464 strncpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); in nvmf_connect_io_queue()
674 kfree(opts->subsysnqn); in nvmf_parse_options()
675 opts->subsysnqn in nvmf_parse_options()
[all...]
H A Dfabrics.h69 * @subsysnqn: Hold the fully qualified NQN subystem name (format defined
80 * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN.
96 char *subsysnqn; member
158 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || in nvmf_ctlr_matches_baseopts()
H A Dcore.c158 "Removing ctrl: NQN \"%s\"\n", ctrl->opts->subsysnqn); in nvme_do_delete_ctrl()
2813 static struct nvme_subsystem *__nvme_find_get_subsystem(const char *subsysnqn) in __nvme_find_get_subsystem() argument
2827 if (!strcmp(subsysnqn, NVME_DISC_SUBSYS_NAME)) in __nvme_find_get_subsystem()
2831 if (strcmp(subsys->subnqn, subsysnqn)) in __nvme_find_get_subsystem()
2854 static SUBSYS_ATTR_RO(subsysnqn, S_IRUGO, nvme_subsys_show_nqn);
3592 static DEVICE_ATTR(subsysnqn, S_IRUGO, nvme_sysfs_show_subsysnqn, NULL);
H A Dfc.c1222 strncpy(assoc_rqst->assoc_cmd.subnqn, ctrl->ctrl.opts->subsysnqn, in nvme_fc_connect_admin_queue()
3062 ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn); in nvme_fc_create_association()
3564 ctrl->cnum, ctrl->ctrl.opts->subsysnqn); in nvme_fc_init_ctrl()
/kernel/linux/linux-5.10/drivers/nvme/target/
H A Dfabrics-cmd.c192 d->subsysnqn[NVMF_NQN_FIELD_LEN - 1] = '\0'; in nvmet_execute_admin_connect()
194 status = nvmet_alloc_ctrl(d->subsysnqn, d->hostnqn, req, in nvmet_execute_admin_connect()
214 ctrl->cntlid, ctrl->subsys->subsysnqn, ctrl->hostnqn, in nvmet_execute_admin_connect()
255 d->subsysnqn[NVMF_NQN_FIELD_LEN - 1] = '\0'; in nvmet_execute_io_connect()
257 ctrl = nvmet_ctrl_find_get(d->subsysnqn, d->hostnqn, in nvmet_execute_io_connect()
H A Dcore.c86 const char *subsysnqn);
1192 struct nvmet_ctrl *nvmet_ctrl_find_get(const char *subsysnqn, in nvmet_ctrl_find_get() argument
1199 subsys = nvmet_find_get_subsys(req->port, subsysnqn); in nvmet_ctrl_find_get()
1202 subsysnqn); in nvmet_ctrl_find_get()
1203 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(subsysnqn); in nvmet_ctrl_find_get()
1224 cntlid, subsysnqn, hostnqn); in nvmet_ctrl_find_get()
1311 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn, in nvmet_alloc_ctrl() argument
1320 subsys = nvmet_find_get_subsys(req->port, subsysnqn); in nvmet_alloc_ctrl()
1323 subsysnqn); in nvmet_alloc_ctrl()
1324 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(subsysnqn); in nvmet_alloc_ctrl()
1463 nvmet_find_get_subsys(struct nvmet_port *port, const char *subsysnqn) nvmet_find_get_subsys() argument
1491 nvmet_subsys_alloc(const char *subsysnqn, enum nvme_subsys_type type) nvmet_subsys_alloc() argument
[all...]
H A Dnvmet.h199 char subsysnqn[NVMF_NQN_FIELD_LEN]; member
237 char *subsysnqn; member
431 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn,
433 struct nvmet_ctrl *nvmet_ctrl_find_get(const char *subsysnqn,
439 struct nvmet_subsys *nvmet_subsys_alloc(const char *subsysnqn,
H A Ddiscovery.c215 p->subsys->subsysnqn, traddr, in nvmet_execute_disc_get_log_page()
289 strlcpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_disc_identify()
H A Dpassthru.c91 * export the passthru ctrl subsysnqn (PCIe NVMe ctrl) and will fail in in nvmet_passthru_override_id_ctrl()
94 * mask the passthru-ctrl subsysnqn with the target ctrl subsysnqn. in nvmet_passthru_override_id_ctrl()
96 memcpy(id->subnqn, ctrl->subsysnqn, sizeof(id->subnqn)); in nvmet_passthru_override_id_ctrl()
H A Dloop.c638 "new ctrl: \"%s\"\n", ctrl->ctrl.opts->subsysnqn); in nvme_loop_create_ctrl()
H A Dconfigfs.c653 pr_info("adding nsid %d to subsystem %s\n", nsid, subsys->subsysnqn); in nvmet_ns_make()
H A Dadmin-cmd.c431 strlcpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
/kernel/linux/linux-6.6/drivers/nvme/target/
H A Dcore.c93 const char *subsysnqn);
1234 struct nvmet_ctrl *nvmet_ctrl_find_get(const char *subsysnqn, in nvmet_ctrl_find_get() argument
1241 subsys = nvmet_find_get_subsys(req->port, subsysnqn); in nvmet_ctrl_find_get()
1244 subsysnqn); in nvmet_ctrl_find_get()
1245 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(subsysnqn); in nvmet_ctrl_find_get()
1266 cntlid, subsysnqn, hostnqn); in nvmet_ctrl_find_get()
1358 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn, in nvmet_alloc_ctrl() argument
1367 subsys = nvmet_find_get_subsys(req->port, subsysnqn); in nvmet_alloc_ctrl()
1370 subsysnqn); in nvmet_alloc_ctrl()
1371 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(subsysnqn); in nvmet_alloc_ctrl()
1518 nvmet_find_get_subsys(struct nvmet_port *port, const char *subsysnqn) nvmet_find_get_subsys() argument
1546 nvmet_subsys_alloc(const char *subsysnqn, enum nvme_subsys_type type) nvmet_subsys_alloc() argument
[all...]
H A Dfabrics-cmd.c247 d->subsysnqn[NVMF_NQN_FIELD_LEN - 1] = '\0'; in nvmet_execute_admin_connect()
249 status = nvmet_alloc_ctrl(d->subsysnqn, d->hostnqn, req, in nvmet_execute_admin_connect()
277 ctrl->cntlid, ctrl->subsys->subsysnqn, ctrl->hostnqn, in nvmet_execute_admin_connect()
318 d->subsysnqn[NVMF_NQN_FIELD_LEN - 1] = '\0'; in nvmet_execute_io_connect()
320 ctrl = nvmet_ctrl_find_get(d->subsysnqn, d->hostnqn, in nvmet_execute_io_connect()
H A Dauth.c358 ret = crypto_shash_update(shash, ctrl->subsysnqn, in nvmet_auth_host_hash()
359 strlen(ctrl->subsysnqn)); in nvmet_auth_host_hash()
406 ctrl->subsysnqn); in nvmet_auth_ctrl_hash()
461 ret = crypto_shash_update(shash, ctrl->subsysnqn, in nvmet_auth_ctrl_hash()
462 strlen(ctrl->subsysnqn)); in nvmet_auth_ctrl_hash()
H A Dnvmet.h215 char subsysnqn[NVMF_NQN_FIELD_LEN]; member
258 char *subsysnqn; member
481 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn,
483 struct nvmet_ctrl *nvmet_ctrl_find_get(const char *subsysnqn,
489 struct nvmet_subsys *nvmet_subsys_alloc(const char *subsysnqn,
H A Ddiscovery.c212 nvmet_disc_subsys->subsysnqn, in nvmet_execute_disc_get_log_page()
221 p->subsys->subsysnqn, traddr, in nvmet_execute_disc_get_log_page()
295 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_disc_identify()
H A Dpassthru.c148 * export the passthru ctrl subsysnqn (PCIe NVMe ctrl) and will fail in in nvmet_passthru_override_id_ctrl()
151 * mask the passthru-ctrl subsysnqn with the target ctrl subsysnqn. in nvmet_passthru_override_id_ctrl()
153 memcpy(id->subnqn, ctrl->subsysnqn, sizeof(id->subnqn)); in nvmet_passthru_override_id_ctrl()
H A Dloop.c589 "new ctrl: \"%s\"\n", ctrl->ctrl.opts->subsysnqn); in nvme_loop_create_ctrl()
H A Dadmin-cmd.c454 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
/kernel/linux/linux-5.10/include/linux/
H A Dnvme.h1350 char subsysnqn[NVMF_NQN_FIELD_LEN]; member

Completed in 36 milliseconds

12