Lines Matching defs:vports

625 	struct lpfc_vport **vports;
672 vports = lpfc_create_vport_work_array(phba);
673 if (vports != NULL)
676 * We could have no vports in array if unloading, so if
679 if (vports[i] == NULL && i == 0)
682 vport = vports[i];
704 lpfc_destroy_vport_work_array(phba, vports);
910 struct lpfc_vport **vports;
939 vports = lpfc_create_vport_work_array(phba);
940 if (vports != NULL) {
941 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
943 lpfc_linkdown_port(vports[i]);
945 vports[i]->fc_myDID = 0;
952 lpfc_nvme_update_localport(vports[i]);
956 lpfc_destroy_vport_work_array(phba, vports);
1058 struct lpfc_vport **vports;
1068 vports = lpfc_create_vport_work_array(phba);
1069 if (vports != NULL)
1070 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++)
1071 lpfc_linkup_port(vports[i]);
1072 lpfc_destroy_vport_work_array(phba, vports);
2966 * lpfc_start_fdiscs - send fdiscs for each vports on this port.
2969 * This function loops through the list of vports on the @phba and issues an
2975 struct lpfc_vport **vports;
2978 vports = lpfc_create_vport_work_array(phba);
2979 if (vports != NULL) {
2980 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
2981 if (vports[i]->port_type == LPFC_PHYSICAL_PORT)
2984 if (vports[i]->vpi > phba->max_vpi) {
2985 lpfc_vport_set_state(vports[i],
2990 lpfc_vport_set_state(vports[i],
2994 if (vports[i]->fc_flag & FC_VPORT_NEEDS_INIT_VPI) {
2995 lpfc_issue_init_vpi(vports[i]);
2999 lpfc_initial_fdisc(vports[i]);
3001 lpfc_vport_set_state(vports[i],
3003 lpfc_printf_vlog(vports[i], KERN_ERR,
3010 lpfc_destroy_vport_work_array(phba, vports);
3762 * lpfc_create_static_vport - Read HBA config region to create static vports.
3766 * the list of static vports to be created. The function create vports
5078 struct lpfc_vport **vports;
5083 vports = lpfc_create_vport_work_array(phba);
5084 if (!vports) {
5089 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
5090 shost = lpfc_shost_from_vport(vports[i]);
5092 list_for_each_entry(ndlp, &vports[i]->fc_nodes, nlp_listp) {
5096 lpfc_unreg_rpi(vports[i], ndlp);
5102 lpfc_destroy_vport_work_array(phba, vports);
6187 * DPRT -> RPRT (vports)
6560 * will all vports to check if there is any node with
6568 struct lpfc_vport **vports;
6573 vports = lpfc_create_vport_work_array(phba);
6576 if (!vports)
6579 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
6580 shost = lpfc_shost_from_vport(vports[i]);
6588 if (!(vports[i]->fc_flag & FC_VPORT_CVL_RCVD)) {
6593 list_for_each_entry(ndlp, &vports[i]->fc_nodes, nlp_listp) {
6612 lpfc_destroy_vport_work_array(phba, vports);
6675 struct lpfc_vport **vports;
6688 vports = lpfc_create_vport_work_array(phba);
6689 if (vports && (phba->sli3_options & LPFC_SLI3_NPIV_ENABLED))
6690 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
6692 ndlp = lpfc_findnode_did(vports[i], Fabric_DID);
6694 lpfc_cancel_retry_delay_tmo(vports[i], ndlp);
6695 lpfc_cleanup_pending_mbox(vports[i]);
6697 lpfc_sli4_unreg_all_rpis(vports[i]);
6698 lpfc_mbx_unreg_vpi(vports[i]);
6699 shost = lpfc_shost_from_vport(vports[i]);
6701 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI;
6702 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED;
6705 lpfc_destroy_vport_work_array(phba, vports);