Home
last modified time | relevance | path

Searched refs:subsysnqn (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/nvme/host/
H A Dfabrics.h83 * @subsysnqn: Hold the fully qualified NQN subsystem name (format defined
96 * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN.
118 char *subsysnqn; member
189 strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) || in nvmf_ctlr_matches_baseopts()
200 !strcmp(ctrl->opts->subsysnqn, NVME_DISC_SUBSYS_NAME)) in nvmf_ctrl_subsysnqn()
201 return ctrl->opts->subsysnqn; in nvmf_ctrl_subsysnqn()
H A Dfabrics.c337 case (offsetof(struct nvmf_connect_data, subsysnqn)): in nvmf_log_connect_error()
339 "%s, subsysnqn \"%s\"\n", in nvmf_log_connect_error()
340 inv_data, data->subsysnqn); in nvmf_log_connect_error()
367 data->subsysnqn, data->hostnqn); in nvmf_log_connect_error()
405 strscpy(data->subsysnqn, ctrl->opts->subsysnqn, NVMF_NQN_SIZE); in nvmf_connect_data_prep()
772 kfree(opts->subsysnqn); in nvmf_parse_options()
773 opts->subsysnqn = p; in nvmf_parse_options()
774 nqnlen = strlen(opts->subsysnqn); in nvmf_parse_options()
777 opts->subsysnqn, NVMF_NQN_SIZ in nvmf_parse_options()
[all...]
H A Dauth.c505 ret = crypto_shash_update(shash, ctrl->opts->subsysnqn, in nvme_auth_dhchap_setup_host_response()
506 strlen(ctrl->opts->subsysnqn)); in nvme_auth_dhchap_setup_host_response()
525 ctrl->opts->subsysnqn); in nvme_auth_dhchap_setup_ctrl_response()
557 dev_dbg(ctrl->device, "%s: qid %d subsysnqn %s\n", in nvme_auth_dhchap_setup_ctrl_response()
558 __func__, chap->qid, ctrl->opts->subsysnqn); in nvme_auth_dhchap_setup_ctrl_response()
583 ret = crypto_shash_update(shash, ctrl->opts->subsysnqn, in nvme_auth_dhchap_setup_ctrl_response()
584 strlen(ctrl->opts->subsysnqn)); in nvme_auth_dhchap_setup_ctrl_response()
738 ctrl->opts->subsysnqn, in nvme_auth_secure_concat()
759 ctrl->opts->subsysnqn, chap->hash_id, in nvme_auth_secure_concat()
H A Dsysfs.c448 static DEVICE_ATTR(subsysnqn, S_IRUGO, nvme_sysfs_show_subsysnqn, NULL);
877 static SUBSYS_ATTR_RO(subsysnqn, S_IRUGO, nvme_subsys_show_nqn);
H A Dcore.c3128 static struct nvme_subsystem *__nvme_find_get_subsystem(const char *subsysnqn) in __nvme_find_get_subsystem() argument
3142 if (!strcmp(subsysnqn, NVME_DISC_SUBSYS_NAME)) in __nvme_find_get_subsystem()
3146 if (strcmp(subsys->subnqn, subsysnqn)) in __nvme_find_get_subsystem()
H A Dfc.c1174 strscpy(assoc_rqst->assoc_cmd.subnqn, ctrl->ctrl.opts->subsysnqn, in nvme_fc_connect_admin_queue()
3045 ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn); in nvme_fc_create_association()
H A Dtcp.c2074 ctrl->opts->subsysnqn); in nvme_tcp_alloc_admin_queue()
/linux/drivers/nvme/target/
H A Dcore.c87 const char *subsysnqn);
1459 struct nvmet_ctrl *nvmet_ctrl_find_get(const char *subsysnqn, in nvmet_ctrl_find_get() argument
1466 subsys = nvmet_find_get_subsys(req->port, subsysnqn); in nvmet_ctrl_find_get()
1469 subsysnqn); in nvmet_ctrl_find_get()
1470 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(subsysnqn); in nvmet_ctrl_find_get()
1491 cntlid, subsysnqn, hostnqn); in nvmet_ctrl_find_get()
1592 subsys = nvmet_find_get_subsys(args->port, args->subsysnqn); in nvmet_alloc_ctrl()
1595 args->subsysnqn); in nvmet_alloc_ctrl()
1596 args->result = IPO_IATTR_CONNECT_DATA(subsysnqn); in nvmet_alloc_ctrl()
1604 args->hostnqn, args->subsysnqn); in nvmet_alloc_ctrl()
1794 nvmet_find_get_subsys(struct nvmet_port * port,const char * subsysnqn) nvmet_find_get_subsys() argument
1828 nvmet_subsys_alloc(const char * subsysnqn,enum nvme_subsys_type type) nvmet_subsys_alloc() argument
[all...]
H A Dauth.c383 ret = crypto_shash_update(shash, ctrl->subsysnqn, in nvmet_auth_host_hash()
384 strlen(ctrl->subsysnqn)); in nvmet_auth_host_hash()
431 ctrl->subsysnqn); in nvmet_auth_ctrl_hash()
486 ret = crypto_shash_update(shash, ctrl->subsysnqn, in nvmet_auth_ctrl_hash()
487 strlen(ctrl->subsysnqn)); in nvmet_auth_ctrl_hash()
577 sq->ctrl->subsysnqn, in nvmet_auth_insert_psk()
592 tls_key = nvme_tls_psk_refresh(NULL, sq->ctrl->hostnqn, sq->ctrl->subsysnqn, in nvmet_auth_insert_psk()
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()
298 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_disc_identify()
H A Dpci-epf.c222 char subsysnqn[NVMF_NQN_SIZE]; member
2058 args.subsysnqn = nvme_epf->subsysnqn; in nvmet_pci_epf_create_ctrl()
2096 ctrl->tctrl->subsys->subsysnqn, ctrl->nr_queues - 1, in nvmet_pci_epf_create_ctrl()
2140 ctrl->tctrl->subsys->subsysnqn); in nvmet_pci_epf_destroy_ctrl()
2519 return sysfs_emit(page, "%s\n", nvme_epf->subsysnqn); in nvmet_pci_epf_subsysnqn_show()
2535 strscpy(nvme_epf->subsysnqn, page, len); in nvmet_pci_epf_subsysnqn_store()
2540 CONFIGFS_ATTR(nvmet_pci_epf_, subsysnqn);
H A Ddebugfs.c199 subsys->debugfs_dir = debugfs_create_dir(subsys->subsysnqn, in nvmet_debugfs_subsys_setup()
H A Dconfigfs.c856 pr_info("adding nsid %d to subsystem %s\n", nsid, subsys->subsysnqn); in nvmet_ns_make()
1719 if (sysfs_streq(name, nvmet_disc_subsys->subsysnqn)) { in nvmet_subsys_make()
2287 return snprintf(page, PAGE_SIZE, "%s\n", nvmet_disc_subsys->subsysnqn); in nvmet_root_discovery_nqn_show()
2317 old_nqn = nvmet_disc_subsys->subsysnqn; in nvmet_root_discovery_nqn_store()
2318 nvmet_disc_subsys->subsysnqn = new_nqn; in nvmet_root_discovery_nqn_store()
H A Dpassthru.c148 * export the passthru ctrl subsysnqn (PCIe NVMe ctrl) and will fail in in nvmet_passthru_override_id_ctrl()
150 * code path with duplicate ctrl subsysnqn. In order to prevent that we 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.c621 "new ctrl: \"%s\"\n", ctrl->ctrl.opts->subsysnqn); in nvme_loop_create_ctrl()
H A Dadmin-cmd.c756 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
/linux/drivers/nvme/common/
H A Dauth.c557 * @subsysnqn: NQN of the subsystem
588 char *subsysnqn, char *hostnqn, u8 **ret_digest) in nvme_auth_generate_digest() argument
597 if (WARN_ON(!subsysnqn || !hostnqn)) in nvme_auth_generate_digest()
654 ret = crypto_shash_update(shash, subsysnqn, strlen(subsysnqn)); in nvme_auth_generate_digest()
/linux/include/linux/
H A Dnvme-auth.h47 char *subsysnqn, char *hostnqn, u8 **ret_digest);
H A Dnvme.h1723 char subsysnqn[NVMF_NQN_FIELD_LEN]; member
/linux/Documentation/nvme/
H A Dnvme-pci-endpoint-target.rst275 # echo "nvmepf.0.nqn" > nvmepf.0/nvme/subsysnqn
367 subsysnqn The NQN of the target subsystem to use