Lines Matching refs:hostnqn
620 u16 nvmet_ctrl_find_get(const char *subsysnqn, const char *hostnqn, u16 cntlid, in nvmet_ctrl_find_get() argument
638 if (strncmp(hostnqn, ctrl->hostnqn, NVMF_NQN_SIZE)) { in nvmet_ctrl_find_get()
651 cntlid, subsysnqn, hostnqn); in nvmet_ctrl_find_get()
662 const char *hostnqn) in __nvmet_host_allowed() argument
670 if (!strcmp(nvmet_host_name(p->host), hostnqn)) in __nvmet_host_allowed()
678 const char *hostnqn) in nvmet_host_discovery_allowed() argument
683 if (__nvmet_host_allowed(s->subsys, hostnqn)) in nvmet_host_discovery_allowed()
691 const char *hostnqn) in nvmet_host_allowed() argument
696 return nvmet_host_discovery_allowed(req, hostnqn); in nvmet_host_allowed()
698 return __nvmet_host_allowed(subsys, hostnqn); in nvmet_host_allowed()
701 u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn, in nvmet_alloc_ctrl() argument
720 if (!nvmet_host_allowed(req, subsys, hostnqn)) { in nvmet_alloc_ctrl()
722 hostnqn, subsysnqn); in nvmet_alloc_ctrl()
723 req->rsp->result = IPO_IATTR_CONNECT_DATA(hostnqn); in nvmet_alloc_ctrl()
741 memcpy(ctrl->hostnqn, hostnqn, NVMF_NQN_SIZE); in nvmet_alloc_ctrl()