Lines Matching refs:nport
155 struct nvmet_port *nport; member
1313 c->req.port = queue->port->nport; in nvmet_tcp_alloc_cmd()
1681 static int nvmet_tcp_add_port(struct nvmet_port *nport) in nvmet_tcp_add_port() argument
1691 switch (nport->disc_addr.adrfam) { in nvmet_tcp_add_port()
1700 nport->disc_addr.adrfam); in nvmet_tcp_add_port()
1705 ret = inet_pton_with_scope(&init_net, af, nport->disc_addr.traddr, in nvmet_tcp_add_port()
1706 nport->disc_addr.trsvcid, &port->addr); in nvmet_tcp_add_port()
1709 nport->disc_addr.traddr, nport->disc_addr.trsvcid); in nvmet_tcp_add_port()
1713 port->nport = nport; in nvmet_tcp_add_port()
1715 if (port->nport->inline_data_size < 0) in nvmet_tcp_add_port()
1716 port->nport->inline_data_size = NVMET_TCP_DEF_INLINE_DATA_SIZE; in nvmet_tcp_add_port()
1746 nport->priv = port; in nvmet_tcp_add_port()
1748 le16_to_cpu(nport->disc_addr.portid), &port->addr); in nvmet_tcp_add_port()
1770 static void nvmet_tcp_remove_port(struct nvmet_port *nport) in nvmet_tcp_remove_port() argument
1772 struct nvmet_tcp_port *port = nport->priv; in nvmet_tcp_remove_port()
1817 struct nvmet_port *nport, char *traddr) in nvmet_tcp_disc_port_addr() argument
1819 struct nvmet_tcp_port *port = nport->priv; in nvmet_tcp_disc_port_addr()
1828 memcpy(traddr, nport->disc_addr.traddr, NVMF_TRADDR_SIZE); in nvmet_tcp_disc_port_addr()