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
1019 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local
1022 complete(&lport->unreg_done); in fcloop_localport_delete()
1096 struct fcloop_lport *lport; in fcloop_create_local_port() local
1101 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port()
1102 if (!lport) in fcloop_create_local_port()
1129 lport_priv->lport = lport; in fcloop_create_local_port()
1131 lport->localport = localport; in fcloop_create_local_port()
1132 INIT_LIST_HEAD(&lport->lport_list); in fcloop_create_local_port()
1135 list_add_tail(&lport->lport_list, &fcloop_lports); in fcloop_create_local_port()
1144 kfree(lport); in fcloop_create_local_port()
1151 __unlink_local_port(struct fcloop_lport *lport) in __unlink_local_port() argument
1153 list_del(&lport->lport_list); in __unlink_local_port()
1157 __wait_localport_unreg(struct fcloop_lport *lport) in __wait_localport_unreg() argument
1161 init_completion(&lport->unreg_done); in __wait_localport_unreg()
1163 ret = nvme_fc_unregister_localport(lport->localport); in __wait_localport_unreg()
1165 wait_for_completion(&lport->unreg_done); in __wait_localport_unreg()
1167 kfree(lport); in __wait_localport_unreg()
1177 struct fcloop_lport *tlport, *lport = NULL; in fcloop_delete_local_port() local
1191 lport = tlport; in fcloop_delete_local_port()
1192 __unlink_local_port(lport); in fcloop_delete_local_port()
1198 if (!lport) in fcloop_delete_local_port()
1201 ret = __wait_localport_unreg(lport); in fcloop_delete_local_port()
1210 struct fcloop_lport *tmplport, *lport = NULL; in fcloop_alloc_nport() local
1252 lport = tmplport; in fcloop_alloc_nport()
1256 if (!lport) in fcloop_alloc_nport()
1258 newnport->lport = lport; in fcloop_alloc_nport()
1275 nport->lport = lport; in fcloop_alloc_nport()
1320 ret = nvme_fc_register_remoteport(nport->lport->localport, in fcloop_create_remote_port()
1333 nport->tport->lport = nport->lport; in fcloop_create_remote_port()
1336 rport->lport = nport->lport; in fcloop_create_remote_port()
1434 tport->lport = nport->lport; in fcloop_create_target_port()
1592 struct fcloop_lport *lport = NULL; in fcloop_exit() local
1624 lport = list_first_entry_or_null(&fcloop_lports, in fcloop_exit()
1625 typeof(*lport), lport_list); in fcloop_exit()
1626 if (!lport) in fcloop_exit()
1629 __unlink_local_port(lport); in fcloop_exit()
1633 ret = __wait_localport_unreg(lport); in fcloop_exit()