Lines Matching refs:lport
214 struct fcloop_lport *lport; member
221 struct fcloop_lport *lport; member
231 struct fcloop_lport *lport; member
240 struct fcloop_lport *lport; member
500 *wwnn = rport->lport->localport->node_name; in fcloop_t2h_host_traddr()
501 *wwpn = rport->lport->localport->port_name; in fcloop_t2h_host_traddr()
1028 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local
1031 complete(&lport->unreg_done); in fcloop_localport_delete()
1106 struct fcloop_lport *lport; in fcloop_create_local_port() local
1111 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port()
1112 if (!lport) in fcloop_create_local_port()
1139 lport_priv->lport = lport; in fcloop_create_local_port()
1141 lport->localport = localport; in fcloop_create_local_port()
1142 INIT_LIST_HEAD(&lport->lport_list); in fcloop_create_local_port()
1145 list_add_tail(&lport->lport_list, &fcloop_lports); in fcloop_create_local_port()
1154 kfree(lport); in fcloop_create_local_port()
1161 __unlink_local_port(struct fcloop_lport *lport) in __unlink_local_port() argument
1163 list_del(&lport->lport_list); in __unlink_local_port()
1167 __wait_localport_unreg(struct fcloop_lport *lport) in __wait_localport_unreg() argument
1171 init_completion(&lport->unreg_done); in __wait_localport_unreg()
1173 ret = nvme_fc_unregister_localport(lport->localport); in __wait_localport_unreg()
1176 wait_for_completion(&lport->unreg_done); in __wait_localport_unreg()
1178 kfree(lport); in __wait_localport_unreg()
1188 struct fcloop_lport *tlport, *lport = NULL; in fcloop_delete_local_port() local
1202 lport = tlport; in fcloop_delete_local_port()
1203 __unlink_local_port(lport); in fcloop_delete_local_port()
1209 if (!lport) in fcloop_delete_local_port()
1212 ret = __wait_localport_unreg(lport); in fcloop_delete_local_port()
1221 struct fcloop_lport *tmplport, *lport = NULL; in fcloop_alloc_nport() local
1263 lport = tmplport; in fcloop_alloc_nport()
1267 if (!lport) in fcloop_alloc_nport()
1269 newnport->lport = lport; in fcloop_alloc_nport()
1286 nport->lport = lport; in fcloop_alloc_nport()
1331 ret = nvme_fc_register_remoteport(nport->lport->localport, in fcloop_create_remote_port()
1344 nport->tport->lport = nport->lport; in fcloop_create_remote_port()
1347 rport->lport = nport->lport; in fcloop_create_remote_port()
1447 tport->lport = nport->lport; in fcloop_create_target_port()
1606 struct fcloop_lport *lport = NULL; in fcloop_exit() local
1638 lport = list_first_entry_or_null(&fcloop_lports, in fcloop_exit()
1639 typeof(*lport), lport_list); in fcloop_exit()
1640 if (!lport) in fcloop_exit()
1643 __unlink_local_port(lport); in fcloop_exit()
1647 ret = __wait_localport_unreg(lport); in fcloop_exit()