Lines Matching refs:localport

237  * @pnvme_lport: Transport localport that LS is to be issued from
297 * @pnvme_lport: Transport localport that LS is to be issued from
330 lpfc_nvme_localport_delete(struct nvme_fc_local_port *localport)
332 struct lpfc_nvme_lport *lport = localport->private;
335 "6173 localport x%px delete complete\n",
339 if (lport->vport->localport)
432 if (!vport->localport)
435 lport = vport->localport->private;
525 if (vport->localport) {
526 lport = (struct lpfc_nvme_lport *)vport->localport->private;
792 * @pnvme_lport: Transport localport that LS is to be issued from.
900 lpfc_nvme_xmt_ls_rsp(struct nvme_fc_local_port *localport,
912 lport = (struct lpfc_nvme_lport *)localport->private;
932 * @pnvme_lport: Transport localport that LS is to be issued from.
1123 if (unlikely(status && vport->localport)) {
1124 lport = (struct lpfc_nvme_lport *)vport->localport->private;
2186 * lpfc_nvme_create_localport - Create/Bind an nvme localport instance.
2187 * @pvport - the lpfc_vport instance requesting a localport.
2189 * This routine is invoked to create an nvme localport instance to bind
2192 * It requires a vport, vpi, and wwns at call time. Other localport
2207 struct nvme_fc_local_port *localport;
2210 /* Initialize this localport instance. The vport wwn usage ensures
2232 /* localport is allocated from the stack, but the registration
2237 &vport->phba->pcidev->dev, &localport);
2243 localport->port_num, localport,
2244 localport->private,
2248 lport = (struct lpfc_nvme_lport *)localport->private;
2249 vport->localport = localport;
2277 * indicating the localport has successfully unregistered all
2320 lport, vport->localport, pending,
2328 lport, vport->localport);
2346 struct nvme_fc_local_port *localport;
2354 localport = vport->localport;
2355 lport = (struct lpfc_nvme_lport *)localport->private;
2358 "6011 Destroying NVME localport x%px\n",
2359 localport);
2365 ret = nvme_fc_unregister_localport(localport);
2371 vport->localport = NULL;
2396 struct nvme_fc_local_port *localport;
2399 localport = vport->localport;
2400 if (!localport) {
2402 "6710 Update NVME fail. No localport\n");
2405 lport = (struct lpfc_nvme_lport *)localport->private;
2409 localport);
2414 localport, vport->fc_myDID);
2416 localport->port_id = vport->fc_myDID;
2417 if (localport->port_id == 0)
2418 localport->port_role = FC_PORT_ROLE_NVME_DISCOVERY;
2420 localport->port_role = FC_PORT_ROLE_NVME_INITIATOR;
2424 lport, localport->port_id);
2433 struct nvme_fc_local_port *localport;
2446 localport = vport->localport;
2447 if (!localport)
2450 lport = (struct lpfc_nvme_lport *)localport->private;
2485 ret = nvme_fc_register_remoteport(localport, &rpinfo, &remote_port);
2617 struct nvme_fc_local_port *localport;
2622 localport = vport->localport;
2624 /* This is fundamental error. The localport is always
2627 if (!localport)
2630 lport = (struct lpfc_nvme_lport *)localport->private;
2682 vport->localport, ndlp->rport, ndlp->nlp_DID);