Lines Matching refs:vports

885 	struct lpfc_vport **vports;
897 vports = lpfc_create_vport_work_array(phba);
898 if (vports != NULL)
900 vports[i] != NULL; i++)
901 lpfc_cleanup_discovery_resources(vports[i]);
902 lpfc_destroy_vport_work_array(phba, vports);
1516 struct lpfc_vport **vports;
1528 vports = lpfc_create_vport_work_array(phba);
1529 if (vports != NULL)
1530 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
1531 lpfc_rcv_seq_check_edtov(vports[i]);
1532 lpfc_fdmi_change_check(vports[i]);
1534 lpfc_destroy_vport_work_array(phba, vports);
3052 /* Just free up ndlp with Fabric_DID for vports */
3403 struct lpfc_vport **vports;
3409 vports = lpfc_create_vport_work_array(phba);
3410 if (vports == NULL)
3413 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3414 if (vports[i]->load_flag & FC_UNLOADING)
3418 &vports[i]->fc_nodes,
3434 lpfc_destroy_vport_work_array(phba, vports);
3692 struct lpfc_vport **vports;
3737 vports = lpfc_create_vport_work_array(phba);
3738 if (vports != NULL) {
3739 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3741 shost = lpfc_shost_from_vport(vports[i]);
3743 vports[i]->fc_flag &= ~FC_OFFLINE_MODE;
3745 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
3747 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI;
3749 (vports[i]->port_type !=
3751 vports[i]->vpi = 0;
3756 lpfc_destroy_vport_work_array(phba, vports);
3794 * unregistration login to all the nodes on all vports and flushes the mailbox
3802 struct lpfc_vport **vports;
3818 /* Issue an unreg_login to all nodes on all vports */
3819 vports = lpfc_create_vport_work_array(phba);
3820 if (vports != NULL) {
3821 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3822 if (vports[i]->load_flag & FC_UNLOADING)
3824 shost = lpfc_shost_from_vport(vports[i]);
3826 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED;
3827 vports[i]->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
3828 vports[i]->fc_flag &= ~FC_VFI_REGISTERED;
3831 shost = lpfc_shost_from_vport(vports[i]);
3833 &vports[i]->fc_nodes,
3846 lpfc_sli_rpi_release(vports[i],
3849 lpfc_unreg_rpi(vports[i], ndlp);
3857 lpfc_printf_vlog(vports[i], KERN_INFO,
3868 lpfc_disc_state_machine(vports[i], ndlp,
3883 (vports[i], ndlp,
3890 lpfc_destroy_vport_work_array(phba, vports);
3910 struct lpfc_vport **vports;
3925 vports = lpfc_create_vport_work_array(phba);
3926 if (vports != NULL)
3927 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++)
3928 lpfc_stop_vport_timers(vports[i]);
3929 lpfc_destroy_vport_work_array(phba, vports);
3938 vports = lpfc_create_vport_work_array(phba);
3939 if (vports != NULL)
3940 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3941 shost = lpfc_shost_from_vport(vports[i]);
3943 vports[i]->work_port_events = 0;
3944 vports[i]->fc_flag |= FC_OFFLINE_MODE;
3947 lpfc_destroy_vport_work_array(phba, vports);
6414 struct lpfc_vport **vports;
6557 vports = lpfc_create_vport_work_array(phba);
6558 if (vports != NULL) {
6559 for (i = 0; i <= phba->max_vports && vports[i] != NULL;
6561 shost = lpfc_shost_from_vport(vports[i]);
6565 lpfc_destroy_vport_work_array(phba, vports);
6700 * lpfc_sli4_perform_all_vport_cvl - Perform clear virtual link on all vports
6703 * This routine is to perform Clear Virtual Link (CVL) on all vports in
6709 struct lpfc_vport **vports;
6712 vports = lpfc_create_vport_work_array(phba);
6713 if (vports)
6714 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++)
6715 lpfc_sli4_perform_vport_cvl(vports[i]);
6716 lpfc_destroy_vport_work_array(phba, vports);
6735 struct lpfc_vport **vports;
6868 * considered equalivant to receiving CVL to all vports.
6887 vports = lpfc_create_vport_work_array(phba);
6888 if (vports) {
6889 for (i = 0; i <= phba->max_vports && vports[i] != NULL;
6891 if ((!(vports[i]->fc_flag &
6893 (vports[i]->port_state > LPFC_FDISC)) {
6898 lpfc_destroy_vport_work_array(phba, vports);
14074 /* Check if there are static vports to be created. */
14116 struct lpfc_vport **vports;
14126 /* Release all the vports against this physical port */
14127 vports = lpfc_create_vport_work_array(phba);
14128 if (vports != NULL)
14129 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
14130 if (vports[i]->port_type == LPFC_PHYSICAL_PORT)
14132 fc_vport_terminate(vports[i]->fc_vport);
14134 lpfc_destroy_vport_work_array(phba, vports);
14917 /* Check if there are static vports to be created. */
14960 struct lpfc_vport **vports;
14973 /* Release all the vports against this physical port */
14974 vports = lpfc_create_vport_work_array(phba);
14975 if (vports != NULL)
14976 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
14977 if (vports[i]->port_type == LPFC_PHYSICAL_PORT)
14979 fc_vport_terminate(vports[i]->fc_vport);
14981 lpfc_destroy_vport_work_array(phba, vports);