Lines Matching refs:localport

164 lpfc_nvme_localport_delete(struct nvme_fc_local_port *localport)  in lpfc_nvme_localport_delete()  argument
166 struct lpfc_nvme_lport *lport = localport->private; in lpfc_nvme_localport_delete()
173 if (lport->vport->localport) in lpfc_nvme_localport_delete()
275 if (!vport->localport || in lpfc_nvme_handle_lsreq()
279 lport = vport->localport->private; in lpfc_nvme_handle_lsreq()
372 if (vport->localport) { in lpfc_nvme_ls_req_cmp()
373 lport = (struct lpfc_nvme_lport *)vport->localport->private; in lpfc_nvme_ls_req_cmp()
757 lpfc_nvme_xmt_ls_rsp(struct nvme_fc_local_port *localport, in lpfc_nvme_xmt_ls_rsp() argument
769 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_xmt_ls_rsp()
981 if (unlikely(status && vport->localport)) { in lpfc_nvme_io_cmd_cmpl()
982 lport = (struct lpfc_nvme_lport *)vport->localport->private; in lpfc_nvme_io_cmd_cmpl()
2154 struct nvme_fc_local_port *localport; in lpfc_nvme_create_localport() local
2184 &vport->phba->pcidev->dev, &localport); in lpfc_nvme_create_localport()
2190 localport->port_num, localport, in lpfc_nvme_create_localport()
2191 localport->private, in lpfc_nvme_create_localport()
2195 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_create_localport()
2196 vport->localport = localport; in lpfc_nvme_create_localport()
2256 if (!vport->localport || !qp || !qp->io_wq) in lpfc_nvme_lport_unreg_wait()
2266 if (!vport->localport || in lpfc_nvme_lport_unreg_wait()
2275 lport, vport->localport, pending, in lpfc_nvme_lport_unreg_wait()
2283 lport, vport->localport); in lpfc_nvme_lport_unreg_wait()
2301 struct nvme_fc_local_port *localport; in lpfc_nvme_destroy_localport() local
2309 localport = vport->localport; in lpfc_nvme_destroy_localport()
2310 if (!localport) in lpfc_nvme_destroy_localport()
2312 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_destroy_localport()
2316 localport); in lpfc_nvme_destroy_localport()
2322 ret = nvme_fc_unregister_localport(localport); in lpfc_nvme_destroy_localport()
2328 vport->localport = NULL; in lpfc_nvme_destroy_localport()
2353 struct nvme_fc_local_port *localport; in lpfc_nvme_update_localport() local
2356 localport = vport->localport; in lpfc_nvme_update_localport()
2357 if (!localport) { in lpfc_nvme_update_localport()
2362 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_update_localport()
2366 localport); in lpfc_nvme_update_localport()
2371 localport, vport->fc_myDID); in lpfc_nvme_update_localport()
2373 localport->port_id = vport->fc_myDID; in lpfc_nvme_update_localport()
2374 if (localport->port_id == 0) in lpfc_nvme_update_localport()
2375 localport->port_role = FC_PORT_ROLE_NVME_DISCOVERY; in lpfc_nvme_update_localport()
2377 localport->port_role = FC_PORT_ROLE_NVME_INITIATOR; in lpfc_nvme_update_localport()
2381 lport, localport->port_id); in lpfc_nvme_update_localport()
2390 struct nvme_fc_local_port *localport; in lpfc_nvme_register_port() local
2403 localport = vport->localport; in lpfc_nvme_register_port()
2404 if (!localport) in lpfc_nvme_register_port()
2407 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_register_port()
2451 ret = nvme_fc_register_remoteport(localport, &rpinfo, &remote_port); in lpfc_nvme_register_port()
2583 struct nvme_fc_local_port *localport; in lpfc_nvme_unregister_port() local
2588 localport = vport->localport; in lpfc_nvme_unregister_port()
2593 if (!localport) in lpfc_nvme_unregister_port()
2596 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_unregister_port()
2658 vport->localport, ndlp->rport, ndlp->nlp_DID); in lpfc_nvme_unregister_port()