Lines Matching defs:vports
368 struct lpfc_vport **vports;
371 vports = lpfc_create_vport_work_array(phba);
372 if (!vports)
376 if ((!vports[i]) && (i == 0))
379 vport = vports[i];
385 lpfc_destroy_vport_work_array(phba, vports);
605 struct lpfc_vport **vports;
608 vports = lpfc_create_vport_work_array(phba);
609 if (!vports)
613 if ((!vports[i]) && (i == 0))
616 vport = vports[i];
625 lpfc_destroy_vport_work_array(phba, vports);
931 struct lpfc_vport **vports;
998 vports = lpfc_create_vport_work_array(phba);
999 if (vports != NULL)
1002 * We could have no vports in array if unloading, so if
1005 if (vports[i] == NULL && i == 0)
1008 vport = vports[i];
1032 lpfc_destroy_vport_work_array(phba, vports);
1244 struct lpfc_vport **vports;
1280 vports = lpfc_create_vport_work_array(phba);
1281 if (vports != NULL) {
1282 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
1284 lpfc_linkdown_port(vports[i]);
1286 vports[i]->fc_myDID = 0;
1293 lpfc_nvme_update_localport(vports[i]);
1297 lpfc_destroy_vport_work_array(phba, vports);
1402 struct lpfc_vport **vports;
1412 vports = lpfc_create_vport_work_array(phba);
1413 if (vports != NULL)
1414 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++)
1415 lpfc_linkup_port(vports[i]);
1416 lpfc_destroy_vport_work_array(phba, vports);
3303 * lpfc_start_fdiscs - send fdiscs for each vports on this port.
3306 * This function loops through the list of vports on the @phba and issues an
3312 struct lpfc_vport **vports;
3315 vports = lpfc_create_vport_work_array(phba);
3316 if (vports != NULL) {
3317 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
3318 if (vports[i]->port_type == LPFC_PHYSICAL_PORT)
3321 if (vports[i]->vpi > phba->max_vpi) {
3322 lpfc_vport_set_state(vports[i],
3327 lpfc_vport_set_state(vports[i],
3331 if (vports[i]->fc_flag & FC_VPORT_NEEDS_INIT_VPI) {
3332 lpfc_issue_init_vpi(vports[i]);
3336 lpfc_initial_fdisc(vports[i]);
3338 lpfc_vport_set_state(vports[i],
3340 lpfc_printf_vlog(vports[i], KERN_ERR,
3347 lpfc_destroy_vport_work_array(phba, vports);
4043 * lpfc_create_static_vport - Read HBA config region to create static vports.
4047 * the list of static vports to be created. The function create vports
5425 struct lpfc_vport **vports;
5430 vports = lpfc_create_vport_work_array(phba);
5431 if (!vports) {
5436 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
5437 shost = lpfc_shost_from_vport(vports[i]);
5439 list_for_each_entry(ndlp, &vports[i]->fc_nodes, nlp_listp) {
5443 lpfc_unreg_rpi(vports[i], ndlp);
5449 lpfc_destroy_vport_work_array(phba, vports);
6431 * DPRT -> RPRT (vports)
6742 * will all vports to check if there is any node with
6750 struct lpfc_vport **vports;
6755 vports = lpfc_create_vport_work_array(phba);
6758 if (!vports)
6761 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
6762 shost = lpfc_shost_from_vport(vports[i]);
6770 if (!(vports[i]->fc_flag & FC_VPORT_CVL_RCVD)) {
6775 list_for_each_entry(ndlp, &vports[i]->fc_nodes, nlp_listp) {
6794 lpfc_destroy_vport_work_array(phba, vports);
6857 struct lpfc_vport **vports;
6870 vports = lpfc_create_vport_work_array(phba);
6871 if (vports && (phba->sli3_options & LPFC_SLI3_NPIV_ENABLED))
6872 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) {
6874 ndlp = lpfc_findnode_did(vports[i], Fabric_DID);
6876 lpfc_cancel_retry_delay_tmo(vports[i], ndlp);
6877 lpfc_cleanup_pending_mbox(vports[i]);
6879 lpfc_sli4_unreg_all_rpis(vports[i]);
6880 lpfc_mbx_unreg_vpi(vports[i]);
6881 shost = lpfc_shost_from_vport(vports[i]);
6883 vports[i]->fc_flag |= FC_VPORT_NEEDS_INIT_VPI;
6884 vports[i]->vpi_state &= ~LPFC_VPI_REGISTERED;
6887 lpfc_destroy_vport_work_array(phba, vports);