Home
last modified time | relevance | path

Searched refs:hostnqn (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/drivers/nvme/common/
Dkeyring.c93 const char *hostnqn, const char *subnqn, in nvme_tls_psk_lookup() argument
106 psk_ver, generated ? 'G' : 'R', hmac, hostnqn, subnqn); in nvme_tls_psk_lookup()
169 const char *hostnqn, const char *subnqn) in nvme_tls_psk_default() argument
180 tls_key = nvme_tls_psk_lookup(keyring, hostnqn, subnqn, in nvme_tls_psk_default()
/linux-6.12.1/include/linux/
Dnvme-keyring.h12 const char *hostnqn, const char *subnqn);
19 const char *hostnqn, const char *subnqn) in nvme_tls_psk_default() argument
Dnvme-fc.h263 u8 hostnqn[FCNVME_ASSOC_HOSTNQN_LEN]; member
Dnvme.h1554 char hostnqn[NVMF_NQN_FIELD_LEN]; member
/linux-6.12.1/drivers/nvme/host/
Dfabrics.c25 static struct nvmf_host *nvmf_host_alloc(const char *hostnqn, uuid_t *id) in nvmf_host_alloc() argument
35 strscpy(host->nqn, hostnqn, NVMF_NQN_SIZE); in nvmf_host_alloc()
40 static struct nvmf_host *nvmf_host_add(const char *hostnqn, uuid_t *id) in nvmf_host_add() argument
53 bool same_hostnqn = !strcmp(host->nqn, hostnqn); in nvmf_host_add()
62 hostnqn, id); in nvmf_host_add()
68 id, hostnqn); in nvmf_host_add()
74 host = nvmf_host_alloc(hostnqn, id); in nvmf_host_add()
332 case (offsetof(struct nvmf_connect_data, hostnqn)): in nvmf_log_connect_error()
335 inv_data, data->hostnqn); in nvmf_log_connect_error()
367 data->subsysnqn, data->hostnqn); in nvmf_log_connect_error()
[all …]
Dsysfs.c403 static DEVICE_ATTR(hostnqn, S_IRUGO, nvme_sysfs_show_hostnqn, NULL);
Dfc.c1214 strscpy(assoc_rqst->assoc_cmd.hostnqn, ctrl->ctrl.opts->host->nqn, in nvme_fc_connect_admin_queue()
1215 sizeof(assoc_rqst->assoc_cmd.hostnqn)); in nvme_fc_connect_admin_queue()
/linux-6.12.1/drivers/nvme/target/
Dauth.c157 if (strcmp(nvmet_host_name(p->host), ctrl->hostnqn)) in nvmet_setup_auth()
163 pr_debug("host %s not found\n", ctrl->hostnqn); in nvmet_setup_auth()
307 ctrl->hostnqn); in nvmet_auth_host_hash()
365 ret = crypto_shash_update(shash, ctrl->hostnqn, strlen(ctrl->hostnqn)); in nvmet_auth_host_hash()
483 ret = crypto_shash_update(shash, ctrl->hostnqn, strlen(ctrl->hostnqn)); in nvmet_auth_ctrl_hash()
Dfabrics-cmd.c246 d->hostnqn[NVMF_NQN_FIELD_LEN - 1] = '\0'; in nvmet_execute_admin_connect()
247 status = nvmet_alloc_ctrl(d->subsysnqn, d->hostnqn, req, in nvmet_execute_admin_connect()
274 ctrl->cntlid, ctrl->subsys->subsysnqn, ctrl->hostnqn, in nvmet_execute_admin_connect()
313 d->hostnqn[NVMF_NQN_FIELD_LEN - 1] = '\0'; in nvmet_execute_io_connect()
314 ctrl = nvmet_ctrl_find_get(d->subsysnqn, d->hostnqn, in nvmet_execute_io_connect()
Ddiscovery.c38 if (subsys && !nvmet_host_allowed(subsys, ctrl->hostnqn)) in nvmet_port_disc_changed()
58 if (host && strcmp(nvmet_host_name(host), ctrl->hostnqn)) in __nvmet_subsys_disc_changed()
152 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in discovery_log_entries()
217 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in nvmet_execute_disc_get_log_page()
Dcore.c1262 const char *hostnqn, u16 cntlid, in nvmet_ctrl_find_get() argument
1279 if (strncmp(hostnqn, ctrl->hostnqn, NVMF_NQN_SIZE)) { in nvmet_ctrl_find_get()
1293 cntlid, subsysnqn, hostnqn); in nvmet_ctrl_find_get()
1324 bool nvmet_host_allowed(struct nvmet_subsys *subsys, const char *hostnqn) in nvmet_host_allowed() argument
1337 if (!strcmp(nvmet_host_name(p->host), hostnqn)) in nvmet_host_allowed()
1385 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn, in nvmet_alloc_ctrl() argument
1404 if (!nvmet_host_allowed(subsys, hostnqn)) { in nvmet_alloc_ctrl()
1406 hostnqn, subsysnqn); in nvmet_alloc_ctrl()
1407 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(hostnqn); in nvmet_alloc_ctrl()
1437 memcpy(ctrl->hostnqn, hostnqn, NVMF_NQN_SIZE); in nvmet_alloc_ctrl()
Dnvmet.h229 char hostnqn[NVMF_NQN_FIELD_LEN]; member
500 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn,
503 const char *hostnqn, u16 cntlid,
592 bool nvmet_host_allowed(struct nvmet_subsys *subsys, const char *hostnqn);
Ddebugfs.c43 seq_puts(m, ctrl->hostnqn); in nvmet_ctrl_hostnqn_show()