Home
last modified time | relevance | path

Searched refs:vports (Results 1 – 16 of 16) sorted by relevance

/linux-2.6.39/drivers/scsi/libfc/
Dfc_npiv.c46 list_add_tail(&vn_port->list, &n_port->vports); in libfc_vport_create()
72 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vport_id_lookup()
152 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vports_linkchange()
/linux-2.6.39/drivers/scsi/lpfc/
Dlpfc_vport.c759 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local
761 vports = kzalloc((phba->max_vports + 1) * sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array()
763 if (vports == NULL) in lpfc_create_vport_work_array()
775 vports[index++] = port_iterator; in lpfc_create_vport_work_array()
778 return vports; in lpfc_create_vport_work_array()
782 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument
785 if (vports == NULL) in lpfc_destroy_vport_work_array()
787 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array()
788 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array()
789 kfree(vports); in lpfc_destroy_vport_work_array()
Dlpfc_hbadisc.c585 struct lpfc_vport **vports; in lpfc_work_done() local
628 vports = lpfc_create_vport_work_array(phba); in lpfc_work_done()
629 if (vports != NULL) in lpfc_work_done()
635 if (vports[i] == NULL && i == 0) in lpfc_work_done()
638 vport = vports[i]; in lpfc_work_done()
664 lpfc_destroy_vport_work_array(phba, vports); in lpfc_work_done()
855 struct lpfc_vport **vports; in lpfc_linkdown() local
874 vports = lpfc_create_vport_work_array(phba); in lpfc_linkdown()
875 if (vports != NULL) in lpfc_linkdown()
876 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_linkdown()
[all …]
Dlpfc_init.c745 struct lpfc_vport **vports; in lpfc_hba_down_prep() local
757 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep()
758 if (vports != NULL) in lpfc_hba_down_prep()
760 vports[i] != NULL; i++) in lpfc_hba_down_prep()
761 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
762 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep()
1014 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local
1021 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler()
1022 if (vports != NULL) in lpfc_hb_timeout_handler()
1023 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_hb_timeout_handler()
[all …]
Dlpfc_scsi.c378 struct lpfc_vport **vports; in lpfc_ramp_down_queue_handler() local
388 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_down_queue_handler()
389 if (vports != NULL) in lpfc_ramp_down_queue_handler()
390 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_down_queue_handler()
391 shost = lpfc_shost_from_vport(vports[i]); in lpfc_ramp_down_queue_handler()
405 lpfc_destroy_vport_work_array(phba, vports); in lpfc_ramp_down_queue_handler()
422 struct lpfc_vport **vports; in lpfc_ramp_up_queue_handler() local
427 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_up_queue_handler()
428 if (vports != NULL) in lpfc_ramp_up_queue_handler()
429 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_up_queue_handler()
[all …]
Dlpfc_attr.c2592 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()
[all …]
Dlpfc_nportdisc.c516 struct lpfc_vport **vports; in lpfc_rcv_logo() local
537 vports = lpfc_create_vport_work_array(phba); in lpfc_rcv_logo()
538 if (vports) { in lpfc_rcv_logo()
539 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_rcv_logo()
541 if ((!(vports[i]->fc_flag & in lpfc_rcv_logo()
543 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_rcv_logo()
548 lpfc_destroy_vport_work_array(phba, vports); in lpfc_rcv_logo()
Dlpfc_bsg.c1488 struct lpfc_vport **vports; in lpfc_bsg_diag_mode() local
1524 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode()
1525 if (vports) { in lpfc_bsg_diag_mode()
1526 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode()
1527 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode()
1531 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode()
1597 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode()
1598 if (vports) { in lpfc_bsg_diag_mode()
1599 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode()
1600 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode()
[all …]
Dlpfc_els.c6951 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local
6961 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer()
6963 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer()
6964 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer()
6965 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer()
6967 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer()
6968 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer()
6970 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
Dlpfc_sli.c11854 struct lpfc_vport **vports; in lpfc_fc_frame_to_vport() local
11861 vports = lpfc_create_vport_work_array(phba); in lpfc_fc_frame_to_vport()
11862 if (vports != NULL) in lpfc_fc_frame_to_vport()
11863 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_fc_frame_to_vport()
11865 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport()
11866 vports[i]->fc_myDID == did) { in lpfc_fc_frame_to_vport()
11867 vport = vports[i]; in lpfc_fc_frame_to_vport()
11871 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fc_frame_to_vport()
/linux-2.6.39/Documentation/scsi/
Dscsi_fc_transport.txt7 vports : 2.6.22
29 FC Virtual Ports (vports)
57 to create vports. The transport will create the vport object within the
65 vports. However, consideration was given to VF-based vports and it
71 if vports are to be associated with virtual machines, a XEN mgmt
85 The remainder of the tree under the vports scsi_host is the same
162 For the fc_host class object, the following attributes are added for vports:
165 Indicates the maximum number of NPIV-based vports that the
169 Indicates how many NPIV-based vports have been instantiated on the
293 The LLDD indicates support for vports by supplying a vport_create()
[all …]
/linux-2.6.39/include/scsi/
Dlibfc.h852 struct list_head vports; member
1018 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
Dscsi_transport_fc.h507 struct list_head vports; member
567 (((struct fc_host_attrs *)(x)->shost_data)->vports)
/linux-2.6.39/drivers/scsi/
Dscsi_transport_fc.c417 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup()
1892 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete()
2404 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) in fc_remove_host()
3347 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
/linux-2.6.39/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c835 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
1568 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
/linux-2.6.39/drivers/scsi/fcoe/
Dfcoe_ctlr.c1233 list_for_each_entry(vn_port, &lport->vports, list) { in fcoe_ctlr_recv_clr_vlink()
1632 list_for_each_entry(vport, &fip->lp->vports, list) { in fcoe_ctlr_timer_work()