Home
last modified time | relevance | path

Searched refs:traddr (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/nvme/target/
Ddiscovery.c105 struct nvmet_port *port, char *subsys_nqn, char *traddr, in nvmet_format_discovery_entry() argument
119 memcpy(e->traddr, traddr, NVMF_TRADDR_SIZE); in nvmet_format_discovery_entry()
135 char *traddr) in nvmet_set_disc_traddr() argument
138 req->ops->disc_traddr(req, port, traddr); in nvmet_set_disc_traddr()
140 memcpy(traddr, port->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_set_disc_traddr()
208 char traddr[NVMF_TRADDR_SIZE]; in nvmet_execute_disc_get_log_page() local
213 nvmet_set_disc_traddr(req, req->port, traddr); in nvmet_execute_disc_get_log_page()
215 p->subsys->subsysnqn, traddr, in nvmet_execute_disc_get_log_page()
223 r->disc_addr.traddr, in nvmet_execute_disc_get_log_page()
Dfc.c2795 nvme_fc_parse_traddr(struct nvmet_fc_traddr *traddr, char *buf, size_t blen) in nvme_fc_parse_traddr() argument
2823 if (__nvme_fc_parse_u64(&wwn, &traddr->nn)) in nvme_fc_parse_traddr()
2827 if (__nvme_fc_parse_u64(&wwn, &traddr->pn)) in nvme_fc_parse_traddr()
2842 struct nvmet_fc_traddr traddr = { 0L, 0L }; in nvmet_fc_add_port() local
2853 ret = nvme_fc_parse_traddr(&traddr, port->disc_addr.traddr, in nvmet_fc_add_port()
2854 sizeof(port->disc_addr.traddr)); in nvmet_fc_add_port()
2865 if ((tgtport->fc_target_port.node_name == traddr.nn) && in nvmet_fc_add_port()
2866 (tgtport->fc_target_port.port_name == traddr.pn)) { in nvmet_fc_add_port()
Dtcp.c1662 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port()
1666 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port()
1774 struct nvmet_port *nport, char *traddr) in nvmet_tcp_disc_port_addr() argument
1783 sprintf(traddr, "%pISc", (struct sockaddr *)&queue->sockaddr); in nvmet_tcp_disc_port_addr()
1785 memcpy(traddr, nport->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_tcp_disc_port_addr()
Drdma.c1946 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_rdma_add_port()
1950 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_rdma_add_port()
1979 struct nvmet_port *nport, char *traddr) in nvmet_rdma_disc_port_addr() argument
1990 sprintf(traddr, "%pISc", addr); in nvmet_rdma_disc_port_addr()
1992 memcpy(traddr, nport->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_rdma_disc_port_addr()
Dloop.c573 strcmp(ctrl->opts->traddr, p->disc_addr.traddr)) in nvme_loop_find_port()
Dnvmet.h303 struct nvmet_port *port, char *traddr);
Dconfigfs.c128 port->disc_addr.traddr); in nvmet_addr_traddr_show()
144 if (sscanf(page, "%s\n", port->disc_addr.traddr) != 1) in nvmet_addr_traddr_store()
/kernel/linux/linux-5.10/drivers/nvme/host/
Dfabrics.c108 len += scnprintf(buf, size, "traddr=%s", ctrl->opts->traddr); in nvmf_get_address()
693 kfree(opts->traddr); in nvmf_parse_options()
694 opts->traddr = p; in nvmf_parse_options()
934 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match()
984 kfree(opts->traddr); in nvmf_free_options()
Dfabrics.h97 char *traddr; member
Dfc.c3635 nvme_fc_parse_traddr(struct nvmet_fc_traddr *traddr, char *buf, size_t blen) in nvme_fc_parse_traddr() argument
3663 if (__nvme_fc_parse_u64(&wwn, &traddr->nn)) in nvme_fc_parse_traddr()
3667 if (__nvme_fc_parse_u64(&wwn, &traddr->pn)) in nvme_fc_parse_traddr()
3688 ret = nvme_fc_parse_traddr(&raddr, opts->traddr, NVMF_TRADDR_SIZE); in nvme_fc_create_ctrl()
3725 __func__, opts->traddr, opts->host_traddr); in nvme_fc_create_ctrl()
Drdma.c2345 opts->traddr, opts->trsvcid, &ctrl->addr); in nvme_rdma_create_ctrl()
2348 opts->traddr, opts->trsvcid); in nvme_rdma_create_ctrl()
Dtcp.c2506 opts->traddr, opts->trsvcid, &ctrl->addr); in nvme_tcp_create_ctrl()
2509 opts->traddr, opts->trsvcid); in nvme_tcp_create_ctrl()
Dcore.c4205 ret = add_uevent_var(env, "NVME_TRADDR=%s", opts->traddr); in nvme_class_uevent()
/kernel/linux/linux-5.10/include/linux/
Dnvme.h1298 char traddr[NVMF_TRADDR_SIZE]; member