Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/nvme/target/
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()
223 r->disc_addr.traddr, in nvmet_execute_disc_get_log_page()
Dconfigfs.c48 le16_to_cpu(p->disc_addr.portid), caller); in nvmet_is_port_enabled()
58 u8 adrfam = to_nvmet_port(item)->disc_addr.adrfam; in nvmet_addr_adrfam_show()
87 port->disc_addr.adrfam = nvmet_addr_family[i].type; in nvmet_addr_adrfam_store()
99 le16_to_cpu(port->disc_addr.portid)); in nvmet_addr_portid_show()
116 port->disc_addr.portid = cpu_to_le16(portid); in nvmet_addr_portid_store()
128 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()
159 u8 treq = to_nvmet_port(item)->disc_addr.treq & in nvmet_addr_treq_show()
175 u8 treq = port->disc_addr.treq & ~NVME_TREQ_SECURE_CHANNEL_MASK; in nvmet_addr_treq_store()
191 port->disc_addr.treq = treq; in nvmet_addr_treq_store()
[all …]
Dtcp.c1648 switch (nport->disc_addr.adrfam) { in nvmet_tcp_add_port()
1657 nport->disc_addr.adrfam); in nvmet_tcp_add_port()
1662 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port()
1663 nport->disc_addr.trsvcid, &port->addr); in nvmet_tcp_add_port()
1666 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port()
1705 le16_to_cpu(nport->disc_addr.portid), &port->addr); in nvmet_tcp_add_port()
1785 memcpy(traddr, nport->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_tcp_disc_port_addr()
Dcore.c320 ops = nvmet_transports[port->disc_addr.trtype]; in nvmet_enable_port()
323 request_module("nvmet-transport-%d", port->disc_addr.trtype); in nvmet_enable_port()
325 ops = nvmet_transports[port->disc_addr.trtype]; in nvmet_enable_port()
328 port->disc_addr.trtype); in nvmet_enable_port()
342 port->disc_addr.trtype); in nvmet_enable_port()
373 ops = nvmet_transports[port->disc_addr.trtype]; in nvmet_disable_port()
Drdma.c1923 switch (nport->disc_addr.adrfam) { in nvmet_rdma_add_port()
1932 nport->disc_addr.adrfam); in nvmet_rdma_add_port()
1946 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_rdma_add_port()
1947 nport->disc_addr.trsvcid, &port->addr); in nvmet_rdma_add_port()
1950 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_rdma_add_port()
1959 le16_to_cpu(nport->disc_addr.portid), in nvmet_rdma_add_port()
1992 memcpy(traddr, nport->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_rdma_disc_port_addr()
Dfc.c2847 if ((port->disc_addr.trtype != NVMF_TRTYPE_FC) || in nvmet_fc_add_port()
2848 (port->disc_addr.adrfam != NVMF_ADDR_FAMILY_FC)) in nvmet_fc_add_port()
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()
Dnvmet.h135 struct nvmf_disc_rsp_page_entry disc_addr; member
Dloop.c573 strcmp(ctrl->opts->traddr, p->disc_addr.traddr)) in nvme_loop_find_port()