Searched refs:hostnqn (Results 1 – 7 of 7) sorted by relevance
/drivers/nvme/target/ |
D | fabrics-cmd.c | 193 d->hostnqn[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() 256 d->hostnqn[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()
|
D | discovery.c | 38 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() 151 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in discovery_log_entries() 210 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in nvmet_execute_disc_get_log_page()
|
D | core.c | 1193 const char *hostnqn, u16 cntlid, in nvmet_ctrl_find_get() argument 1210 if (strncmp(hostnqn, ctrl->hostnqn, NVMF_NQN_SIZE)) { in nvmet_ctrl_find_get() 1224 cntlid, subsysnqn, hostnqn); in nvmet_ctrl_find_get() 1250 bool nvmet_host_allowed(struct nvmet_subsys *subsys, const char *hostnqn) in nvmet_host_allowed() argument 1263 if (!strcmp(nvmet_host_name(p->host), hostnqn)) in nvmet_host_allowed() 1311 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn, in nvmet_alloc_ctrl() argument 1330 if (!nvmet_host_allowed(subsys, hostnqn)) { in nvmet_alloc_ctrl() 1332 hostnqn, subsysnqn); in nvmet_alloc_ctrl() 1333 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(hostnqn); in nvmet_alloc_ctrl() 1356 memcpy(ctrl->hostnqn, hostnqn, NVMF_NQN_SIZE); in nvmet_alloc_ctrl()
|
D | nvmet.h | 200 char hostnqn[NVMF_NQN_FIELD_LEN]; member 431 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn, 434 const char *hostnqn, u16 cntlid, 519 bool nvmet_host_allowed(struct nvmet_subsys *subsys, const char *hostnqn);
|
/drivers/nvme/host/ |
D | fabrics.c | 24 static struct nvmf_host *__nvmf_host_find(const char *hostnqn) in __nvmf_host_find() argument 29 if (!strcmp(host->nqn, hostnqn)) in __nvmf_host_find() 36 static struct nvmf_host *nvmf_host_add(const char *hostnqn) in nvmf_host_add() argument 41 host = __nvmf_host_find(hostnqn); in nvmf_host_add() 52 strlcpy(host->nqn, hostnqn, NVMF_NQN_SIZE); in nvmf_host_add() 289 case (offsetof(struct nvmf_connect_data, hostnqn)): in nvmf_log_connect_error() 292 inv_data, data->hostnqn); in nvmf_log_connect_error() 325 data->subsysnqn, data->hostnqn); in nvmf_log_connect_error() 402 strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); in nvmf_connect_admin_queue() 465 strncpy(data->hostnqn, ctrl->opts->host->nqn, NVMF_NQN_SIZE); in nvmf_connect_io_queue()
|
D | fc.c | 1213 strncpy(assoc_rqst->assoc_cmd.hostnqn, ctrl->ctrl.opts->host->nqn, in nvme_fc_connect_admin_queue()
|
D | core.c | 3622 static DEVICE_ATTR(hostnqn, S_IRUGO, nvme_sysfs_show_hostnqn, NULL);
|