Lines Matching refs:localport

67  * @pnvme_lport: Transport localport that LS is to be issued from
131 * @pnvme_lport: Transport localport that LS is to be issued from
164 lpfc_nvme_localport_delete(struct nvme_fc_local_port *localport)
166 struct lpfc_nvme_lport *lport = localport->private;
169 "6173 localport x%px delete complete\n",
173 if (lport->vport->localport)
274 if (!vport->localport ||
278 lport = vport->localport->private;
374 if (vport->localport) {
375 lport = (struct lpfc_nvme_lport *)vport->localport->private;
650 * @pnvme_lport: Transport localport that LS is to be issued from.
759 lpfc_nvme_xmt_ls_rsp(struct nvme_fc_local_port *localport,
771 lport = (struct lpfc_nvme_lport *)localport->private;
791 * @pnvme_lport: Transport localport that LS is to be issued from.
983 if (unlikely(status && vport->localport)) {
984 lport = (struct lpfc_nvme_lport *)vport->localport->private;
2128 * lpfc_nvme_create_localport - Create/Bind an nvme localport instance.
2129 * @vport: the lpfc_vport instance requesting a localport.
2131 * This routine is invoked to create an nvme localport instance to bind
2134 * It requires a vport, vpi, and wwns at call time. Other localport
2149 struct nvme_fc_local_port *localport;
2152 /* Initialize this localport instance. The vport wwn usage ensures
2174 /* localport is allocated from the stack, but the registration
2179 &vport->phba->pcidev->dev, &localport);
2185 localport->port_num, localport,
2186 localport->private,
2190 lport = (struct lpfc_nvme_lport *)localport->private;
2191 vport->localport = localport;
2219 * indicating the localport has successfully unregistered all
2251 if (!vport->localport || !qp || !qp->io_wq)
2261 if (!vport->localport ||
2271 lport, vport->localport, pending,
2279 lport, vport->localport);
2297 struct nvme_fc_local_port *localport;
2305 localport = vport->localport;
2306 if (!localport)
2308 lport = (struct lpfc_nvme_lport *)localport->private;
2311 "6011 Destroying NVME localport x%px\n",
2312 localport);
2318 ret = nvme_fc_unregister_localport(localport);
2324 vport->localport = NULL;
2349 struct nvme_fc_local_port *localport;
2352 localport = vport->localport;
2353 if (!localport) {
2355 "6710 Update NVME fail. No localport\n");
2358 lport = (struct lpfc_nvme_lport *)localport->private;
2362 localport);
2367 localport, vport->fc_myDID);
2369 localport->port_id = vport->fc_myDID;
2370 if (localport->port_id == 0)
2371 localport->port_role = FC_PORT_ROLE_NVME_DISCOVERY;
2373 localport->port_role = FC_PORT_ROLE_NVME_INITIATOR;
2377 lport, localport->port_id);
2386 struct nvme_fc_local_port *localport;
2399 localport = vport->localport;
2400 if (!localport)
2403 lport = (struct lpfc_nvme_lport *)localport->private;
2447 ret = nvme_fc_register_remoteport(localport, &rpinfo, &remote_port);
2576 struct nvme_fc_local_port *localport;
2581 localport = vport->localport;
2583 /* This is fundamental error. The localport is always
2586 if (!localport)
2589 lport = (struct lpfc_nvme_lport *)localport->private;
2667 vport->localport, ndlp->rport, ndlp->nlp_DID);