Lines Matching defs:vpi
3214 * This function handles completion of init vpi mailbox command.
3271 int rc, vpi;
3273 if ((vport->port_type != LPFC_PHYSICAL_PORT) && (!vport->vpi)) {
3274 vpi = lpfc_alloc_vpi(vport->phba);
3275 if (!vpi) {
3277 "3303 Failed to obtain vport vpi\n");
3281 vport->vpi = vpi;
3291 lpfc_init_vpi(vport->phba, mboxq, vport->vpi);
3320 /* There are no vpi for this vport */
3321 if (vports[i]->vpi > phba->max_vpi) {
3946 "2798 Unreg_vpi failed vpi 0x%x, mb status = 0x%x\n",
3947 vport->vpi, mb->mbxStatus);
3977 lpfc_unreg_vpi(phba, vport->vpi, mbox);
5344 lpfc_unreg_login(phba, vport->vpi, rpi, mbox);
5466 lpfc_unreg_login(phba, vport->vpi, LPFC_UNREG_ALL_RPIS_VPORT,
5496 lpfc_unreg_did(phba, vport->vpi, LPFC_UNREG_ALL_DFLT_RPIS,
6229 vport->vpi ? "FDISC" : "FLOGI");
6534 * @vpi: the physical host virtual N_Port identifier.
6537 * @vpi. The function walks the HBA's vport list and returns the address
6538 * of the vport with the matching @vpi.
6541 * NULL - No vport with the matching @vpi found
6542 * Otherwise - Address to the vport with the matching @vpi.
6545 lpfc_find_vport_by_vpid(struct lpfc_hba *phba, uint16_t vpi)
6551 /* The physical ports are always vpi 0 - translate is unnecessary. */
6552 if (vpi > 0) {
6554 * Translate the physical vpi to the logical vpi. The
6555 * vport stores the logical vpi.
6558 if (vpi == phba->vpi_ids[i])
6565 "to vpi %d\n", vpi);
6572 if (vport->vpi == i) {