Lines Matching refs:vports
2592 struct lpfc_vport **vports; in lpfc_stat_data_ctrl_store() local
2632 vports = lpfc_create_vport_work_array(phba); in lpfc_stat_data_ctrl_store()
2633 if (vports == NULL) in lpfc_stat_data_ctrl_store()
2636 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
2637 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
2640 vports[i]->stat_data_blocked = 1; in lpfc_stat_data_ctrl_store()
2641 if (vports[i]->stat_data_enabled) in lpfc_stat_data_ctrl_store()
2642 lpfc_vport_reset_stat_data(vports[i]); in lpfc_stat_data_ctrl_store()
2651 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
2652 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
2656 vports[i]->stat_data_blocked = 0; in lpfc_stat_data_ctrl_store()
2659 lpfc_destroy_vport_work_array(phba, vports); in lpfc_stat_data_ctrl_store()
2664 vports = lpfc_create_vport_work_array(phba); in lpfc_stat_data_ctrl_store()
2665 if (vports == NULL) in lpfc_stat_data_ctrl_store()
2668 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
2669 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
2671 vports[i]->stat_data_blocked = 1; in lpfc_stat_data_ctrl_store()
2674 vports[i]->stat_data_blocked = 0; in lpfc_stat_data_ctrl_store()
2677 lpfc_destroy_vport_work_array(phba, vports); in lpfc_stat_data_ctrl_store()