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()
274 if (!vport->localport || in lpfc_nvme_handle_lsreq()
278 lport = vport->localport->private; in lpfc_nvme_handle_lsreq()
374 if (vport->localport) { in lpfc_nvme_ls_req_cmp()
375 lport = (struct lpfc_nvme_lport *)vport->localport->private; in lpfc_nvme_ls_req_cmp()
759 lpfc_nvme_xmt_ls_rsp(struct nvme_fc_local_port *localport, in lpfc_nvme_xmt_ls_rsp() argument
771 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_xmt_ls_rsp()
983 if (unlikely(status && vport->localport)) { in lpfc_nvme_io_cmd_cmpl()
984 lport = (struct lpfc_nvme_lport *)vport->localport->private; in lpfc_nvme_io_cmd_cmpl()
2149 struct nvme_fc_local_port *localport; in lpfc_nvme_create_localport() local
2179 &vport->phba->pcidev->dev, &localport); in lpfc_nvme_create_localport()
2185 localport->port_num, localport, in lpfc_nvme_create_localport()
2186 localport->private, in lpfc_nvme_create_localport()
2190 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_create_localport()
2191 vport->localport = localport; in lpfc_nvme_create_localport()
2251 if (!vport->localport || !qp || !qp->io_wq) in lpfc_nvme_lport_unreg_wait()
2261 if (!vport->localport || in lpfc_nvme_lport_unreg_wait()
2271 lport, vport->localport, pending, in lpfc_nvme_lport_unreg_wait()
2279 lport, vport->localport); in lpfc_nvme_lport_unreg_wait()
2297 struct nvme_fc_local_port *localport; in lpfc_nvme_destroy_localport() local
2305 localport = vport->localport; in lpfc_nvme_destroy_localport()
2306 if (!localport) in lpfc_nvme_destroy_localport()
2308 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_destroy_localport()
2312 localport); in lpfc_nvme_destroy_localport()
2318 ret = nvme_fc_unregister_localport(localport); in lpfc_nvme_destroy_localport()
2324 vport->localport = NULL; in lpfc_nvme_destroy_localport()
2349 struct nvme_fc_local_port *localport; in lpfc_nvme_update_localport() local
2352 localport = vport->localport; in lpfc_nvme_update_localport()
2353 if (!localport) { in lpfc_nvme_update_localport()
2358 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_update_localport()
2362 localport); in lpfc_nvme_update_localport()
2367 localport, vport->fc_myDID); in lpfc_nvme_update_localport()
2369 localport->port_id = vport->fc_myDID; in lpfc_nvme_update_localport()
2370 if (localport->port_id == 0) in lpfc_nvme_update_localport()
2371 localport->port_role = FC_PORT_ROLE_NVME_DISCOVERY; in lpfc_nvme_update_localport()
2373 localport->port_role = FC_PORT_ROLE_NVME_INITIATOR; in lpfc_nvme_update_localport()
2377 lport, localport->port_id); in lpfc_nvme_update_localport()
2386 struct nvme_fc_local_port *localport; in lpfc_nvme_register_port() local
2399 localport = vport->localport; in lpfc_nvme_register_port()
2400 if (!localport) in lpfc_nvme_register_port()
2403 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_register_port()
2447 ret = nvme_fc_register_remoteport(localport, &rpinfo, &remote_port); in lpfc_nvme_register_port()
2576 struct nvme_fc_local_port *localport; in lpfc_nvme_unregister_port() local
2581 localport = vport->localport; in lpfc_nvme_unregister_port()
2586 if (!localport) in lpfc_nvme_unregister_port()
2589 lport = (struct lpfc_nvme_lport *)localport->private; in lpfc_nvme_unregister_port()
2667 vport->localport, ndlp->rport, ndlp->nlp_DID); in lpfc_nvme_unregister_port()