Home
last modified time | relevance | path

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

/linux/drivers/scsi/lpfc/
H A Dlpfc_hbadisc.c393 struct lpfc_vport **vports; in lpfc_check_inactive_vmid() local
396 vports = lpfc_create_vport_work_array(phba); in lpfc_check_inactive_vmid()
397 if (!vports) in lpfc_check_inactive_vmid()
401 if ((!vports[i]) && (i == 0)) in lpfc_check_inactive_vmid()
404 vport = vports[i]; in lpfc_check_inactive_vmid()
410 lpfc_destroy_vport_work_array(phba, vports); in lpfc_check_inactive_vmid()
619 struct lpfc_vport **vports; in lpfc_check_vmid_qfpa_issue() local
622 vports = lpfc_create_vport_work_array(phba); in lpfc_check_vmid_qfpa_issue()
623 if (!vports) in lpfc_check_vmid_qfpa_issue()
627 if ((!vports[i]) && (i == 0)) in lpfc_check_vmid_qfpa_issue()
[all …]
H A Dlpfc_vport.c788 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local
790 vports = kcalloc(phba->max_vports + 1, sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array()
792 if (vports == NULL) in lpfc_create_vport_work_array()
805 vports[index++] = port_iterator; in lpfc_create_vport_work_array()
808 return vports; in lpfc_create_vport_work_array()
812 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument
815 if (vports == NULL) in lpfc_destroy_vport_work_array()
817 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array()
818 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array()
819 kfree(vports); in lpfc_destroy_vport_work_array()
H A Dlpfc_init.c887 struct lpfc_vport **vports; in lpfc_hba_down_prep() local
899 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep()
900 if (vports != NULL) in lpfc_hba_down_prep()
902 vports[i] != NULL; i++) in lpfc_hba_down_prep()
903 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
904 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep()
1511 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local
1523 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler()
1524 if (vports != NULL) in lpfc_hb_timeout_handler()
1525 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
[all …]
H A Dlpfc_nportdisc.c834 struct lpfc_vport **vports; in lpfc_rcv_logo() local
867 vports = lpfc_create_vport_work_array(phba); in lpfc_rcv_logo()
868 if (vports) { in lpfc_rcv_logo()
869 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_rcv_logo()
872 &vports[i]->fc_flag) && in lpfc_rcv_logo()
873 vports[i]->port_state > LPFC_FDISC) { in lpfc_rcv_logo()
878 lpfc_destroy_vport_work_array(phba, vports); in lpfc_rcv_logo()
H A Dlpfc_bsg.c1662 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local
1679 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter()
1680 if (vports) { in lpfc_bsg_diag_mode_enter()
1681 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter()
1682 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter()
1685 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter()
1718 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local
1721 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit()
1722 if (vports) { in lpfc_bsg_diag_mode_exit()
1723 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()
[all …]
H A Dlpfc_ct.c2205 struct lpfc_vport **vports; in lpfc_fdmi_rprt_defer() local
2211 vports = lpfc_create_vport_work_array(phba); in lpfc_fdmi_rprt_defer()
2212 if (vports) { in lpfc_fdmi_rprt_defer()
2213 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_fdmi_rprt_defer()
2214 vport = vports[i]; in lpfc_fdmi_rprt_defer()
2225 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fdmi_rprt_defer()
H A Dlpfc_els.c11216 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local
11226 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer()
11228 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer()
11229 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer()
11230 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer()
11232 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer()
11233 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer()
11235 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
H A Dlpfc_sli.c18657 struct lpfc_vport **vports; in lpfc_fc_frame_to_vport() local
18667 vports = lpfc_create_vport_work_array(phba); in lpfc_fc_frame_to_vport()
18668 if (vports != NULL) { in lpfc_fc_frame_to_vport()
18669 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_fc_frame_to_vport()
18671 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport()
18672 vports[i]->fc_myDID == did) { in lpfc_fc_frame_to_vport()
18673 vport = vports[i]; in lpfc_fc_frame_to_vport()
18678 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fc_frame_to_vport()
/linux/drivers/scsi/libfc/
H A Dfc_npiv.c35 list_add_tail(&vn_port->list, &n_port->vports); in libfc_vport_create()
61 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vport_id_lookup()
141 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vports_linkchange()
/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema.c110 struct xarray vports; member
151 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter()
210 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport()
874 xa_for_each(&port->vports, index, adapter) { in opa_vnic_event()
902 xa_for_each(&port->vports, index, adapter) in vema_unregister()
909 xa_destroy(&port->vports); in vema_unregister()
946 xa_init(&port->vports); in vema_register()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport()
1847 err = xa_insert(&esw->vports, vport_num, vport, GFP_KERNEL); in mlx5_esw_vport_alloc()
1862 xa_erase(&esw->vports, vport->vport); in mlx5_esw_vport_free()
1873 xa_destroy(&esw->vports); in mlx5_esw_vports_cleanup()
1885 xa_init(&esw->vports); in mlx5_esw_vports_init()
1892 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init()
1898 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_VF); in mlx5_esw_vports_init()
1899 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init()
1909 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init()
1920 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init()
[all …]
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_idc.c299 struct idpf_vport *vport = adapter->vports[i]; in idpf_idc_vport_dev_up()
323 struct idpf_vport *vport = adapter->vports[i]; in idpf_idc_vport_dev_down()
/linux/include/scsi/
H A Dlibfc.h718 struct list_head vports; member
892 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c950 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
1173 list_for_each_entry_safe(blport, tmp, &hba->vports, list) { in bnx2fc_free_vport()
1193 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1416 INIT_LIST_HEAD(&hba->vports); in bnx2fc_hba_create()
1572 list_add_tail(&blport->list, &hba->vports); in bnx2fc_if_create()
1870 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
H A Dbnx2fc.h246 struct list_head vports; member
H A Dbnx2fc_hwi.c520 list_for_each_entry(blport, &hba->vports, list) { in is_valid_lport()
/linux/drivers/scsi/fcoe/
H A Dfcoe_transport.c269 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
H A Dfcoe_ctlr.c1458 list_for_each_entry(vn_port, &lport->vports, list) in fcoe_ctlr_recv_clr_vlink()
1859 list_for_each_entry(vport, &fip->lp->vports, list) { in fcoe_ctlr_timer_work()
H A Dfcoe.c2707 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fcoe_vport_remove()
/linux/drivers/scsi/
H A Dscsi_transport_fc.c438 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup()
2377 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete()
2881 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fc_remove_host()
3881 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
/linux/Documentation/networking/
H A Dopenvswitch.rst14 bridges), each of which can have multiple "vports" (analogous to ports
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_types.h899 struct mlx5dr_vports vports; member
/linux/drivers/scsi/qedf/
H A Dqedf_main.c1107 list_for_each_entry(tmp_lport, &base_lport->vports, list) { in qedf_xmit()