Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/drivers/scsi/lpfc/
Dlpfc_vport.c795 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local
797 vports = kzalloc((phba->max_vports + 1) * sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array()
799 if (vports == NULL) in lpfc_create_vport_work_array()
811 vports[index++] = port_iterator; in lpfc_create_vport_work_array()
814 return vports; in lpfc_create_vport_work_array()
818 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument
821 if (vports == NULL) in lpfc_destroy_vport_work_array()
823 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array()
824 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array()
825 kfree(vports); in lpfc_destroy_vport_work_array()
Dlpfc_hbadisc.c632 struct lpfc_vport **vports; in lpfc_work_done() local
675 vports = lpfc_create_vport_work_array(phba); in lpfc_work_done()
676 if (vports != NULL) in lpfc_work_done()
682 if (vports[i] == NULL && i == 0) in lpfc_work_done()
685 vport = vports[i]; in lpfc_work_done()
709 lpfc_destroy_vport_work_array(phba, vports); in lpfc_work_done()
904 struct lpfc_vport **vports; in lpfc_linkdown() local
923 vports = lpfc_create_vport_work_array(phba); in lpfc_linkdown()
924 if (vports != NULL) in lpfc_linkdown()
925 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_linkdown()
[all …]
Dlpfc_init.c800 struct lpfc_vport **vports; in lpfc_hba_down_prep() local
812 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep()
813 if (vports != NULL) in lpfc_hba_down_prep()
815 vports[i] != NULL; i++) in lpfc_hba_down_prep()
816 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
817 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep()
1176 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local
1183 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler()
1184 if (vports != NULL) in lpfc_hb_timeout_handler()
1185 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_hb_timeout_handler()
[all …]
Dlpfc_attr.c3384 struct lpfc_vport **vports; in lpfc_stat_data_ctrl_store() local
3424 vports = lpfc_create_vport_work_array(phba); in lpfc_stat_data_ctrl_store()
3425 if (vports == NULL) in lpfc_stat_data_ctrl_store()
3428 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
3429 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
3432 vports[i]->stat_data_blocked = 1; in lpfc_stat_data_ctrl_store()
3433 if (vports[i]->stat_data_enabled) in lpfc_stat_data_ctrl_store()
3434 lpfc_vport_reset_stat_data(vports[i]); in lpfc_stat_data_ctrl_store()
3443 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
3444 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_bsg.c1684 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local
1703 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter()
1704 if (vports) { in lpfc_bsg_diag_mode_enter()
1705 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter()
1706 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter()
1709 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter()
1734 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local
1737 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit()
1738 if (vports) { in lpfc_bsg_diag_mode_exit()
1739 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()
[all …]
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_els.c7378 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local
7388 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer()
7390 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer()
7391 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer()
7392 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer()
7394 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer()
7395 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer()
7397 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
Dlpfc_sli.c14722 struct lpfc_vport **vports; in lpfc_fc_frame_to_vport() local
14735 vports = lpfc_create_vport_work_array(phba); in lpfc_fc_frame_to_vport()
14736 if (vports != NULL) in lpfc_fc_frame_to_vport()
14737 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_fc_frame_to_vport()
14739 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport()
14740 vports[i]->fc_myDID == did) { in lpfc_fc_frame_to_vport()
14741 vport = vports[i]; in lpfc_fc_frame_to_vport()
14745 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fc_frame_to_vport()
/linux-4.1.27/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.1.27/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.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c903 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
1113 list_for_each_entry_safe(blport, tmp, &hba->vports, list) { in bnx2fc_free_vport()
1133 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1355 INIT_LIST_HEAD(&hba->vports); in bnx2fc_hba_create()
1508 list_add_tail(&blport->list, &hba->vports); in bnx2fc_if_create()
1810 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.1.27/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.c2223 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fcoe_destroy_work()
/linux-4.1.27/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.1.27/Documentation/networking/
Dopenvswitch.txt11 bridges), each of which can have multiple "vports" (analogous to ports