/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | vporttbl.c | 73 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup() 90 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get() 119 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get() 121 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get() 127 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get() 138 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put() 149 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
H A D | dr_domain.c | 270 &dmn->info.caps.vports.esw_manager_caps); in dr_domain_query_esw_mgr() 275 dr_domain_fill_uplink_caps(dmn, &dmn->info.caps.vports.uplink_caps); in dr_domain_query_uplink() 295 ret = xa_insert(&caps->vports.vports_caps_xa, vport, in dr_domain_add_vport_cap() 323 return &caps->vports.esw_manager_caps; in mlx5dr_domain_get_vport_cap() 326 return &caps->vports.uplink_caps; in mlx5dr_domain_get_vport_cap() 329 vport_caps = xa_load(&caps->vports.vports_caps_xa, vport); in mlx5dr_domain_get_vport_cap() 346 xa_for_each(&dmn->info.caps.vports.vports_caps_xa, i, vport_caps) { in dr_domain_clear_vports() 347 vport_caps = xa_erase(&dmn->info.caps.vports.vports_caps_xa, i); in dr_domain_clear_vports() 369 xa_init(&dmn->info.caps.vports.vports_caps_xa); in dr_domain_query_fdb_caps() 386 xa_destroy(&dmn->info.caps.vports.vports_caps_xa); in dr_domain_query_fdb_caps() [all …]
|
/linux/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 384 struct lpfc_vport **vports; in lpfc_check_inactive_vmid() local 387 vports = lpfc_create_vport_work_array(phba); in lpfc_check_inactive_vmid() 388 if (!vports) in lpfc_check_inactive_vmid() 392 if ((!vports[i]) && (i == 0)) in lpfc_check_inactive_vmid() 395 vport = vports[i]; in lpfc_check_inactive_vmid() 401 lpfc_destroy_vport_work_array(phba, vports); in lpfc_check_inactive_vmid() 608 struct lpfc_vport **vports; in lpfc_check_vmid_qfpa_issue() local 611 vports = lpfc_create_vport_work_array(phba); in lpfc_check_vmid_qfpa_issue() 612 if (!vports) in lpfc_check_vmid_qfpa_issue() 616 if ((!vports[i]) && (i == 0)) in lpfc_check_vmid_qfpa_issue() [all …]
|
H A D | lpfc_vport.c | 788 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 D | lpfc_scsi.c | 166 struct lpfc_vport **vports; in lpfc_ramp_down_queue_handler() local 183 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_down_queue_handler() 184 if (vports != NULL) in lpfc_ramp_down_queue_handler() 185 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_down_queue_handler() 186 shost = lpfc_shost_from_vport(vports[i]); in lpfc_ramp_down_queue_handler() 196 lpfc_destroy_vport_work_array(phba, vports); in lpfc_ramp_down_queue_handler() 211 struct lpfc_vport **vports; in lpfc_scsi_dev_block() local 217 vports = lpfc_create_vport_work_array(phba); in lpfc_scsi_dev_block() 218 if (vports != NULL) in lpfc_scsi_dev_block() 219 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_scsi_dev_block() [all …]
|
H A D | lpfc_bsg.c | 1662 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 D | lpfc_ct.c | 2169 struct lpfc_vport **vports; in lpfc_fdmi_rprt_defer() local 2175 vports = lpfc_create_vport_work_array(phba); in lpfc_fdmi_rprt_defer() 2176 if (vports) { in lpfc_fdmi_rprt_defer() 2177 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_fdmi_rprt_defer() 2178 vport = vports[i]; in lpfc_fdmi_rprt_defer() 2189 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fdmi_rprt_defer()
|
H A D | lpfc_els.c | 11115 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local 11125 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer() 11127 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer() 11128 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer() 11129 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer() 11131 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer() 11132 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer() 11134 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
|
/linux/drivers/scsi/libfc/ |
H A D | fc_npiv.c | 35 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/Documentation/scsi/ |
H A D | scsi_fc_transport.rst | 12 vports : 2.6.22 36 FC Virtual Ports (vports) 64 to create vports. The transport will create the vport object within the 73 vports. However, consideration was given to VF-based vports and it 80 if vports are to be associated with virtual machines, a XEN mgmt 94 The remainder of the tree under the vports scsi_host is the same 182 For the fc_host class object, the following attributes are added for vports: 185 Indicates the maximum number of NPIV-based vports that the 189 Indicates how many NPIV-based vports have been instantiated on the 337 The LLDD indicates support for vports by supplying a vport_create() [all …]
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_vema.c | 110 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/intel/idpf/ |
H A D | idpf_lib.c | 842 if (!adapter->vports[i]) in idpf_get_free_slot() 1018 adapter->vports[i] = NULL; in idpf_vport_dealloc() 1153 adapter->vports[idx] = vport; in idpf_vport_alloc() 1190 struct idpf_vport *vport = adapter->vports[i]; in idpf_statistics_task() 1562 adapter->vports[index] = NULL; in idpf_init_task() 1566 if (adapter->vports[index]) in idpf_init_task() 1567 idpf_vport_dealloc(adapter->vports[index]); in idpf_init_task() 1653 if (!adapter->vports) in idpf_deinit_task() 1659 if (adapter->vports[i]) in idpf_deinit_task() 1660 idpf_vport_dealloc(adapter->vports[i]); in idpf_deinit_task()
|
H A D | idpf_virtchnl.c | 120 return adapter->vports[i]; in idpf_vid_to_vport() 2995 adapter->vports = kcalloc(num_max_vports, sizeof(*adapter->vports), in idpf_vc_core_init() 2997 if (!adapter->vports) in idpf_vc_core_init() 3049 kfree(adapter->vports); in idpf_vc_core_init() 3050 adapter->vports = NULL; in idpf_vc_core_init() 3105 kfree(adapter->vports); in idpf_vc_core_deinit() 3106 adapter->vports = NULL; in idpf_vc_core_deinit()
|
H A D | idpf.h | 556 struct idpf_vport **vports; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.h | 261 } vports; member 345 struct xarray vports; member 689 xa_for_each(&((esw)->vports), index, vport) 696 mlx5_esw_for_each_entry_marked(&((esw)->vports), index, vport, last, filter) 710 xa_for_each_range(&((esw)->vports), \
|
H A D | eswitch.c | 114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport() 1709 err = xa_insert(&esw->vports, vport_num, vport, GFP_KERNEL); in mlx5_esw_vport_alloc() 1723 xa_erase(&esw->vports, vport->vport); in mlx5_esw_vport_free() 1734 xa_destroy(&esw->vports); in mlx5_esw_vports_cleanup() 1746 xa_init(&esw->vports); in mlx5_esw_vports_init() 1752 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init() 1759 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_VF); in mlx5_esw_vports_init() 1760 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init() 1768 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init() 1779 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init() [all …]
|
H A D | eswitch_offloads.c | 3348 mutex_init(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init() 3349 hash_init(esw->fdb_table.offloads.vports.table); in esw_offloads_steering_init() 3404 mutex_destroy(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init() 3418 mutex_destroy(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_cleanup()
|
/linux/include/scsi/ |
H A D | libfc.h | 718 struct list_head vports; member 892 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
|
H A D | scsi_transport_fc.h | 571 struct list_head vports; member 646 (((struct fc_host_attrs *)(x)->shost_data)->vports)
|
/linux/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_fcoe.c | 950 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 D | bnx2fc.h | 246 struct list_head vports; member
|
/linux/drivers/scsi/fcoe/ |
H A D | fcoe_transport.c | 269 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
|
H A D | fcoe_ctlr.c | 1458 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()
|
/linux/drivers/scsi/ |
H A D | scsi_transport_fc.c | 438 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup() 2383 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete() 2885 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fc_remove_host() 3868 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
|
/linux/Documentation/networking/ |
H A D | openvswitch.rst | 14 bridges), each of which can have multiple "vports" (analogous to ports
|