Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/scsi/libfc/
Dfc_npiv.c47 list_add_tail(&vn_port->list, &n_port->vports); in libfc_vport_create()
73 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vport_id_lookup()
153 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vports_linkchange()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_vport.c796 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local
798 vports = kzalloc((phba->max_vports + 1) * sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array()
800 if (vports == NULL) in lpfc_create_vport_work_array()
812 vports[index++] = port_iterator; in lpfc_create_vport_work_array()
815 return vports; in lpfc_create_vport_work_array()
819 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument
822 if (vports == NULL) in lpfc_destroy_vport_work_array()
824 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array()
825 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array()
826 kfree(vports); in lpfc_destroy_vport_work_array()
Dlpfc_hbadisc.c607 struct lpfc_vport **vports; in lpfc_work_done() local
650 vports = lpfc_create_vport_work_array(phba); in lpfc_work_done()
651 if (vports != NULL) in lpfc_work_done()
657 if (vports[i] == NULL && i == 0) in lpfc_work_done()
660 vport = vports[i]; in lpfc_work_done()
684 lpfc_destroy_vport_work_array(phba, vports); in lpfc_work_done()
878 struct lpfc_vport **vports; in lpfc_linkdown() local
897 vports = lpfc_create_vport_work_array(phba); in lpfc_linkdown()
898 if (vports != NULL) in lpfc_linkdown()
899 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_linkdown()
[all …]
Dlpfc_init.c802 struct lpfc_vport **vports; in lpfc_hba_down_prep() local
814 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep()
815 if (vports != NULL) in lpfc_hba_down_prep()
817 vports[i] != NULL; i++) in lpfc_hba_down_prep()
818 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
819 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep()
1178 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local
1185 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler()
1186 if (vports != NULL) in lpfc_hb_timeout_handler()
1187 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_hb_timeout_handler()
[all …]
Dlpfc_attr.c3383 struct lpfc_vport **vports; in lpfc_stat_data_ctrl_store() local
3423 vports = lpfc_create_vport_work_array(phba); in lpfc_stat_data_ctrl_store()
3424 if (vports == NULL) in lpfc_stat_data_ctrl_store()
3427 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
3428 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
3431 vports[i]->stat_data_blocked = 1; in lpfc_stat_data_ctrl_store()
3432 if (vports[i]->stat_data_enabled) in lpfc_stat_data_ctrl_store()
3433 lpfc_vport_reset_stat_data(vports[i]); in lpfc_stat_data_ctrl_store()
3442 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
3443 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
[all …]
Dlpfc_nportdisc.c629 struct lpfc_vport **vports; in lpfc_rcv_logo() local
650 vports = lpfc_create_vport_work_array(phba); in lpfc_rcv_logo()
651 if (vports) { in lpfc_rcv_logo()
652 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_rcv_logo()
654 if ((!(vports[i]->fc_flag & in lpfc_rcv_logo()
656 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_rcv_logo()
661 lpfc_destroy_vport_work_array(phba, vports); in lpfc_rcv_logo()
Dlpfc_scsi.c299 struct lpfc_vport **vports; in lpfc_ramp_down_queue_handler() local
317 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_down_queue_handler()
318 if (vports != NULL) in lpfc_ramp_down_queue_handler()
319 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_down_queue_handler()
320 shost = lpfc_shost_from_vport(vports[i]); in lpfc_ramp_down_queue_handler()
333 lpfc_destroy_vport_work_array(phba, vports); in lpfc_ramp_down_queue_handler()
349 struct lpfc_vport **vports; in lpfc_scsi_dev_block() local
355 vports = lpfc_create_vport_work_array(phba); in lpfc_scsi_dev_block()
356 if (vports != NULL) in lpfc_scsi_dev_block()
357 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_scsi_dev_block()
[all …]
Dlpfc_bsg.c1682 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local
1701 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter()
1702 if (vports) { in lpfc_bsg_diag_mode_enter()
1703 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter()
1704 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter()
1707 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter()
1732 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local
1735 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit()
1736 if (vports) { in lpfc_bsg_diag_mode_exit()
1737 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()
[all …]
Dlpfc_els.c8002 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local
8012 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer()
8014 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer()
8015 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer()
8016 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer()
8018 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer()
8019 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer()
8021 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
Dlpfc_sli.c14698 struct lpfc_vport **vports; in lpfc_fc_frame_to_vport() local
14711 vports = lpfc_create_vport_work_array(phba); in lpfc_fc_frame_to_vport()
14712 if (vports != NULL) in lpfc_fc_frame_to_vport()
14713 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_fc_frame_to_vport()
14715 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport()
14716 vports[i]->fc_myDID == did) { in lpfc_fc_frame_to_vport()
14717 vport = vports[i]; in lpfc_fc_frame_to_vport()
14721 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fc_frame_to_vport()
/linux-4.4.14/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-4.4.14/include/scsi/
Dlibfc.h874 struct list_head vports; member
1041 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
Dscsi_transport_fc.h532 struct list_head vports; member
606 (((struct fc_host_attrs *)(x)->shost_data)->vports)
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c902 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
1112 list_for_each_entry_safe(blport, tmp, &hba->vports, list) { in bnx2fc_free_vport()
1132 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1354 INIT_LIST_HEAD(&hba->vports); in bnx2fc_hba_create()
1507 list_add_tail(&blport->list, &hba->vports); in bnx2fc_if_create()
1809 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
Dbnx2fc.h246 struct list_head vports; member
Dbnx2fc_hwi.c519 list_for_each_entry(blport, &hba->vports, list) { in is_valid_lport()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_transport.c257 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
Dfcoe_ctlr.c1439 list_for_each_entry(vn_port, &lport->vports, list) in fcoe_ctlr_recv_clr_vlink()
1833 list_for_each_entry(vport, &fip->lp->vports, list) { in fcoe_ctlr_timer_work()
Dfcoe.c2221 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fcoe_destroy_work()
/linux-4.4.14/drivers/scsi/
Dscsi_transport_fc.c435 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup()
1930 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete()
2449 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) in fc_remove_host()
3385 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
/linux-4.4.14/Documentation/networking/
Dopenvswitch.txt11 bridges), each of which can have multiple "vports" (analogous to ports