Lines Matching defs:vports
826 struct lpfc_vport **vports;
838 vports = lpfc_create_vport_work_array(phba);
839 if (vports != NULL)
841 vports[i] != NULL; i++)
842 lpfc_cleanup_discovery_resources(vports[i]);
843 lpfc_destroy_vport_work_array(phba, vports);
1402 struct lpfc_vport **vports;
1414 vports = lpfc_create_vport_work_array(phba);
1415 if (vports != NULL)
1416 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
1417 lpfc_rcv_seq_check_edtov(vports[i]);
1418 lpfc_fdmi_change_check(vports[i]);
1420 lpfc_destroy_vport_work_array(phba, vports);
2871 /* Just free up ndlp with Fabric_DID for vports */
3081 struct lpfc_vport **vports;
3088 vports = lpfc_create_vport_work_array(phba);
3089 if (vports == NULL)
3092 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3093 if (vports[i]->load_flag & FC_UNLOADING)
3097 &vports[i]->fc_nodes,
3117 lpfc_destroy_vport_work_array(phba, vports);
3375 struct lpfc_vport **vports;
3420 vports = lpfc_create_vport_work_array(phba);
3421 if (vports != NULL) {
3422 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3424 shost = lpfc_shost_from_vport(vports[i]);
3426 vports[i]->fc_flag &= ~FC_OFFLINE_MODE;
3428 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
3430 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI;
3432 (vports[i]->port_type !=
3434 vports[i]->vpi = 0;
3439 lpfc_destroy_vport_work_array(phba, vports);
3477 * unregistration login to all the nodes on all vports and flushes the mailbox
3485 struct lpfc_vport **vports;
3496 /* Issue an unreg_login to all nodes on all vports */
3497 vports = lpfc_create_vport_work_array(phba);
3498 if (vports != NULL) {
3499 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3500 if (vports[i]->load_flag & FC_UNLOADING)
3502 shost = lpfc_shost_from_vport(vports[i]);
3504 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED;
3505 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
3506 vports[i]->fc_flag &= ~FC_VFI_REGISTERED;
3509 shost = lpfc_shost_from_vport(vports[i]);
3511 &vports[i]->fc_nodes,
3523 lpfc_disc_state_machine(vports[i], ndlp,
3525 lpfc_disc_state_machine(vports[i], ndlp,
3548 lpfc_unreg_rpi(vports[i], ndlp);
3552 lpfc_destroy_vport_work_array(phba, vports);
3572 struct lpfc_vport **vports;
3587 vports = lpfc_create_vport_work_array(phba);
3588 if (vports != NULL)
3589 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++)
3590 lpfc_stop_vport_timers(vports[i]);
3591 lpfc_destroy_vport_work_array(phba, vports);
3600 vports = lpfc_create_vport_work_array(phba);
3601 if (vports != NULL)
3602 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3603 shost = lpfc_shost_from_vport(vports[i]);
3605 vports[i]->work_port_events = 0;
3606 vports[i]->fc_flag |= FC_OFFLINE_MODE;
3609 lpfc_destroy_vport_work_array(phba, vports);
4352 /* Template for all vports this physical port creates */
5396 struct lpfc_vport **vports;
5533 vports = lpfc_create_vport_work_array(phba);
5534 if (vports != NULL) {
5535 for (i = 0; i <= phba->max_vports && vports[i] != NULL;
5537 shost = lpfc_shost_from_vport(vports[i]);
5541 lpfc_destroy_vport_work_array(phba, vports);
5636 * lpfc_sli4_perform_all_vport_cvl - Perform clear virtual link on all vports
5639 * This routine is to perform Clear Virtual Link (CVL) on all vports in
5645 struct lpfc_vport **vports;
5648 vports = lpfc_create_vport_work_array(phba);
5649 if (vports)
5650 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++)
5651 lpfc_sli4_perform_vport_cvl(vports[i]);
5652 lpfc_destroy_vport_work_array(phba, vports);
5672 struct lpfc_vport **vports;
5805 * considered equalivant to receiving CVL to all vports.
5824 vports = lpfc_create_vport_work_array(phba);
5825 if (vports) {
5826 for (i = 0; i <= phba->max_vports && vports[i] != NULL;
5828 if ((!(vports[i]->fc_flag &
5830 (vports[i]->port_state > LPFC_FDISC)) {
5835 lpfc_destroy_vport_work_array(phba, vports);
12367 /* Check if there are static vports to be created. */
12409 struct lpfc_vport **vports;
12419 /* Release all the vports against this physical port */
12420 vports = lpfc_create_vport_work_array(phba);
12421 if (vports != NULL)
12422 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
12423 if (vports[i]->port_type == LPFC_PHYSICAL_PORT)
12425 fc_vport_terminate(vports[i]->fc_vport);
12427 lpfc_destroy_vport_work_array(phba, vports);
13218 /* Check if there are static vports to be created. */
13264 struct lpfc_vport **vports;
13276 /* Release all the vports against this physical port */
13277 vports = lpfc_create_vport_work_array(phba);
13278 if (vports != NULL)
13279 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
13280 if (vports[i]->port_type == LPFC_PHYSICAL_PORT)
13282 fc_vport_terminate(vports[i]->fc_vport);
13284 lpfc_destroy_vport_work_array(phba, vports);