Home
last modified time | relevance | path

Searched refs:disc_addr (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/nvme/target/
Dconfigfs.c40 switch (to_nvmet_port(item)->disc_addr.adrfam) { in nvmet_addr_adrfam_show()
66 port->disc_addr.adrfam = NVMF_ADDR_FAMILY_IP4; in nvmet_addr_adrfam_store()
68 port->disc_addr.adrfam = NVMF_ADDR_FAMILY_IP6; in nvmet_addr_adrfam_store()
70 port->disc_addr.adrfam = NVMF_ADDR_FAMILY_IB; in nvmet_addr_adrfam_store()
72 port->disc_addr.adrfam = NVMF_ADDR_FAMILY_FC; in nvmet_addr_adrfam_store()
89 le16_to_cpu(port->disc_addr.portid)); in nvmet_addr_portid_show()
108 port->disc_addr.portid = cpu_to_le16(portid); in nvmet_addr_portid_store()
120 port->disc_addr.traddr); in nvmet_addr_traddr_show()
139 if (sscanf(page, "%s\n", port->disc_addr.traddr) != 1) in nvmet_addr_traddr_store()
149 switch (to_nvmet_port(item)->disc_addr.treq & in nvmet_addr_treq_show()
[all …]
Ddiscovery.c110 e->trtype = port->disc_addr.trtype; in nvmet_format_discovery_entry()
111 e->adrfam = port->disc_addr.adrfam; in nvmet_format_discovery_entry()
112 e->treq = port->disc_addr.treq; in nvmet_format_discovery_entry()
113 e->portid = port->disc_addr.portid; in nvmet_format_discovery_entry()
118 memcpy(e->trsvcid, port->disc_addr.trsvcid, NVMF_TRSVCID_SIZE); in nvmet_format_discovery_entry()
120 memcpy(e->tsas.common, port->disc_addr.tsas.common, NVMF_TSAS_SIZE); in nvmet_format_discovery_entry()
140 memcpy(traddr, port->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_set_disc_traddr()
211 r->disc_addr.traddr, in nvmet_execute_get_disc_log_page()
Drdma.c1509 switch (port->disc_addr.adrfam) { in nvmet_rdma_add_port()
1518 port->disc_addr.adrfam); in nvmet_rdma_add_port()
1531 ret = inet_pton_with_scope(&init_net, af, port->disc_addr.traddr, in nvmet_rdma_add_port()
1532 port->disc_addr.trsvcid, &addr); in nvmet_rdma_add_port()
1535 port->disc_addr.traddr, port->disc_addr.trsvcid); in nvmet_rdma_add_port()
1571 le16_to_cpu(port->disc_addr.portid), (struct sockaddr *)&addr); in nvmet_rdma_add_port()
1601 memcpy(traddr, port->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_rdma_disc_port_addr()
Dtcp.c1573 switch (nport->disc_addr.adrfam) { in nvmet_tcp_add_port()
1582 nport->disc_addr.adrfam); in nvmet_tcp_add_port()
1587 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port()
1588 nport->disc_addr.trsvcid, &port->addr); in nvmet_tcp_add_port()
1591 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port()
1642 le16_to_cpu(nport->disc_addr.portid), &port->addr); in nvmet_tcp_add_port()
1706 memcpy(traddr, nport->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_tcp_disc_port_addr()
Dcore.c305 ops = nvmet_transports[port->disc_addr.trtype]; in nvmet_enable_port()
308 request_module("nvmet-transport-%d", port->disc_addr.trtype); in nvmet_enable_port()
310 ops = nvmet_transports[port->disc_addr.trtype]; in nvmet_enable_port()
313 port->disc_addr.trtype); in nvmet_enable_port()
345 ops = nvmet_transports[port->disc_addr.trtype]; in nvmet_disable_port()
Dfc.c2505 if ((port->disc_addr.trtype != NVMF_TRTYPE_FC) || in nvmet_fc_add_port()
2506 (port->disc_addr.adrfam != NVMF_ADDR_FAMILY_FC)) in nvmet_fc_add_port()
2511 ret = nvme_fc_parse_traddr(&traddr, port->disc_addr.traddr, in nvmet_fc_add_port()
2512 sizeof(port->disc_addr.traddr)); in nvmet_fc_add_port()
Dnvmet.h130 struct nvmf_disc_rsp_page_entry disc_addr; member
Dloop.c559 strcmp(ctrl->opts->traddr, p->disc_addr.traddr)) in nvme_loop_find_port()