Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/nvme/target/
Ddiscovery.c106 struct nvmet_port *port, char *subsys_nqn, char *traddr, in nvmet_format_discovery_entry() argument
120 memcpy(e->traddr, traddr, NVMF_TRADDR_SIZE); in nvmet_format_discovery_entry()
136 char *traddr) in nvmet_set_disc_traddr() argument
139 req->ops->disc_traddr(req, port, traddr); in nvmet_set_disc_traddr()
141 memcpy(traddr, port->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_set_disc_traddr()
174 char traddr[NVMF_TRADDR_SIZE]; in nvmet_execute_disc_get_log_page() local
209 nvmet_set_disc_traddr(req, req->port, traddr); in nvmet_execute_disc_get_log_page()
213 traddr, NVME_NQN_CURR, numrec); in nvmet_execute_disc_get_log_page()
221 p->subsys->subsysnqn, traddr, in nvmet_execute_disc_get_log_page()
229 r->disc_addr.traddr, in nvmet_execute_disc_get_log_page()
Dfc.c2821 nvme_fc_parse_traddr(struct nvmet_fc_traddr *traddr, char *buf, size_t blen) in nvme_fc_parse_traddr() argument
2849 if (__nvme_fc_parse_u64(&wwn, &traddr->nn)) in nvme_fc_parse_traddr()
2853 if (__nvme_fc_parse_u64(&wwn, &traddr->pn)) in nvme_fc_parse_traddr()
2868 struct nvmet_fc_traddr traddr = { 0L, 0L }; in nvmet_fc_add_port() local
2879 ret = nvme_fc_parse_traddr(&traddr, port->disc_addr.traddr, in nvmet_fc_add_port()
2880 sizeof(port->disc_addr.traddr)); in nvmet_fc_add_port()
2891 if ((tgtport->fc_target_port.node_name == traddr.nn) && in nvmet_fc_add_port()
2892 (tgtport->fc_target_port.port_name == traddr.pn)) { in nvmet_fc_add_port()
Dtcp.c1758 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port()
1762 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port()
1870 struct nvmet_port *nport, char *traddr) in nvmet_tcp_disc_port_addr() argument
1879 sprintf(traddr, "%pISc", (struct sockaddr *)&queue->sockaddr); in nvmet_tcp_disc_port_addr()
1881 memcpy(traddr, nport->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_tcp_disc_port_addr()
Dloop.c524 strcmp(ctrl->opts->traddr, p->disc_addr.traddr)) in nvme_loop_find_port()
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()
Dnvmet.h339 struct nvmet_port *port, char *traddr);
Dconfigfs.c134 return snprintf(page, PAGE_SIZE, "%s\n", port->disc_addr.traddr); in nvmet_addr_traddr_show()
150 if (sscanf(page, "%s\n", port->disc_addr.traddr) != 1) in nvmet_addr_traddr_store()
/linux-6.6.21/drivers/nvme/host/
Dfabrics.c134 len += scnprintf(buf, size, "traddr=%s", ctrl->opts->traddr); in nvmf_get_address()
726 kfree(opts->traddr); in nvmf_parse_options()
727 opts->traddr = p; in nvmf_parse_options()
1099 strcmp(opts->traddr, ctrl->opts->traddr) || in nvmf_ip_options_match()
1162 kfree(opts->traddr); in nvmf_free_options()
Dfabrics.h118 char *traddr; member
Dfc.c3636 nvme_fc_parse_traddr(struct nvmet_fc_traddr *traddr, char *buf, size_t blen) in nvme_fc_parse_traddr() argument
3664 if (__nvme_fc_parse_u64(&wwn, &traddr->nn)) in nvme_fc_parse_traddr()
3668 if (__nvme_fc_parse_u64(&wwn, &traddr->pn)) in nvme_fc_parse_traddr()
3689 ret = nvme_fc_parse_traddr(&raddr, opts->traddr, NVMF_TRADDR_SIZE); in nvme_fc_create_ctrl()
3726 __func__, opts->traddr, opts->host_traddr); in nvme_fc_create_ctrl()
Drdma.c2243 opts->traddr, opts->trsvcid, &ctrl->addr); in nvme_rdma_create_ctrl()
2246 opts->traddr, opts->trsvcid); in nvme_rdma_create_ctrl()
Dtcp.c2549 opts->traddr, opts->trsvcid, &ctrl->addr); in nvme_tcp_create_ctrl()
2552 opts->traddr, opts->trsvcid); in nvme_tcp_create_ctrl()
Dcore.c4024 ret = add_uevent_var(env, "NVME_TRADDR=%s", opts->traddr); in nvme_class_uevent()
/linux-6.6.21/include/linux/
Dnvme.h1485 char traddr[NVMF_TRADDR_SIZE]; member