| /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 …]
|
| H A D | dr_dbg.c | 937 xa_for_each(&caps->vports.vports_caps_xa, vports_num, vport_caps) in dr_dump_domain_info_caps() 952 xa_for_each(&caps->vports.vports_caps_xa, i, vport_caps) { in dr_dump_domain_info_caps() 953 vport_caps = xa_load(&caps->vports.vports_caps_xa, i); in dr_dump_domain_info_caps()
|
| /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/drivers/scsi/lpfc/ |
| H A D | lpfc_vport.c | 788 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local 790 vports = kzalloc_objs(struct lpfc_vport *, phba->max_vports + 1); in lpfc_create_vport_work_array() 791 if (vports == NULL) in lpfc_create_vport_work_array() 804 vports[index++] = port_iterator; in lpfc_create_vport_work_array() 807 return vports; in lpfc_create_vport_work_array() 811 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument 814 if (vports == NULL) in lpfc_destroy_vport_work_array() 816 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array() 817 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array() 818 kfree(vports); in lpfc_destroy_vport_work_array()
|
| H A D | lpfc_init.c | 890 struct lpfc_vport **vports; in lpfc_hba_down_prep() local 902 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep() 903 if (vports != NULL) in lpfc_hba_down_prep() 905 vports[i] != NULL; i++) in lpfc_hba_down_prep() 906 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep() 907 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep() 1513 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local 1525 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler() 1526 if (vports != NULL) in lpfc_hb_timeout_handler() 1527 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler() [all …]
|
| H A D | lpfc_scsi.c | 167 struct lpfc_vport **vports; in lpfc_ramp_down_queue_handler() local 184 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_down_queue_handler() 185 if (vports != NULL) in lpfc_ramp_down_queue_handler() 186 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_down_queue_handler() 187 shost = lpfc_shost_from_vport(vports[i]); in lpfc_ramp_down_queue_handler() 197 lpfc_destroy_vport_work_array(phba, vports); in lpfc_ramp_down_queue_handler() 212 struct lpfc_vport **vports; in lpfc_scsi_dev_block() local 218 vports = lpfc_create_vport_work_array(phba); in lpfc_scsi_dev_block() 219 if (vports != NULL) in lpfc_scsi_dev_block() 220 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_scsi_dev_block() [all …]
|
| H A D | lpfc_bsg.c | 1660 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local 1677 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter() 1678 if (vports) { in lpfc_bsg_diag_mode_enter() 1679 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter() 1680 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter() 1683 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter() 1716 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local 1719 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit() 1720 if (vports) { in lpfc_bsg_diag_mode_exit() 1721 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit() [all …]
|
| H A D | lpfc_ct.c | 2186 struct lpfc_vport **vports; in lpfc_fdmi_rprt_defer() local 2192 vports = lpfc_create_vport_work_array(phba); in lpfc_fdmi_rprt_defer() 2193 if (vports) { in lpfc_fdmi_rprt_defer() 2194 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_fdmi_rprt_defer() 2195 vport = vports[i]; in lpfc_fdmi_rprt_defer() 2206 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fdmi_rprt_defer()
|
| H A D | lpfc_sli.c | 18661 struct lpfc_vport **vports; in lpfc_fc_frame_to_vport() local 18671 vports = lpfc_create_vport_work_array(phba); in lpfc_fc_frame_to_vport() 18672 if (vports != NULL) { in lpfc_fc_frame_to_vport() 18673 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_fc_frame_to_vport() 18675 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport() 18676 vports[i]->fc_myDID == did) { in lpfc_fc_frame_to_vport() 18677 vport = vports[i]; in lpfc_fc_frame_to_vport() 18682 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fc_frame_to_vport()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch.h | 300 } vports; member 398 struct xarray vports; member 769 xa_for_each(&((esw)->vports), index, vport) 776 mlx5_esw_for_each_entry_marked(&((esw)->vports), index, vport, last, filter) 790 xa_for_each_range(&((esw)->vports), \ 803 ((vport) = xa_load(&(esw)->vports, \
|
| H A D | eswitch.c | 114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport() 855 if (xa_get_mark(&esw->vports, vport_num, MLX5_ESW_VPT_SF)) in esw_vport_to_func_type() 857 if (xa_get_mark(&esw->vports, vport_num, MLX5_ESW_VPT_VF)) in esw_vport_to_func_type() 2235 err = xa_insert(&esw->vports, vport_num, vport, GFP_KERNEL); in mlx5_esw_vport_alloc() 2250 xa_erase(&esw->vports, vport->vport); in mlx5_esw_vport_free() 2361 xa_destroy(&esw->vports); in mlx5_esw_vports_cleanup() 2372 xa_init(&esw->vports); in mlx5_esw_vports_init() 2383 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init() 2389 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_VF); in mlx5_esw_vports_init() 2390 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_lib.c | 792 struct idpf_vport *vport = adapter->vports[i]; in idpf_attach_and_open() 957 if (!adapter->vports[i]) in idpf_get_free_slot() 1151 adapter->vports[i] = NULL; in idpf_vport_dealloc() 1310 adapter->vports[idx] = vport; in idpf_vport_alloc() 1359 struct idpf_vport *vport = adapter->vports[i]; in idpf_statistics_task() 1751 if (adapter->vports[index]) in idpf_init_task() 1752 idpf_vport_dealloc(adapter->vports[index]); in idpf_init_task() 1847 if (!adapter->vports) in idpf_deinit_task() 1853 if (adapter->vports[i]) in idpf_deinit_task() 1854 idpf_vport_dealloc(adapter->vports[i]); in idpf_deinit_task()
|
| H A D | idpf.h | 608 for (struct idpf_vport **__##iter = &(adapter)->vports[0], \ 611 iter = (++__##iter) < &(adapter)->vports[(adapter)->max_vports] ? \ 699 struct idpf_vport **vports; member
|
| H A D | idpf_idc.c | 305 struct idpf_vport *vport = adapter->vports[i]; in idpf_idc_vport_dev_up() 329 struct idpf_vport *vport = adapter->vports[i]; in idpf_idc_vport_dev_down()
|
| H A D | idpf_virtchnl.c | 27 return adapter->vports[i]; in idpf_vid_to_vport() 3090 adapter->vports = kzalloc_objs(*adapter->vports, num_max_vports); in idpf_vc_core_init() 3091 if (!adapter->vports) { in idpf_vc_core_init() 3164 kfree(adapter->vports); in idpf_vc_core_init() 3165 adapter->vports = NULL; in idpf_vc_core_init() 3224 kfree(adapter->vports); in idpf_vc_core_deinit() 3225 adapter->vports = NULL; in idpf_vc_core_deinit()
|
| /linux/drivers/scsi/ |
| H A D | scsi_transport_fc.c | 439 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup() 2423 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete() 2928 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fc_remove_host() 3928 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
|
| /linux/Documentation/networking/devlink/ |
| H A D | mlx5.rst | 117 An experimental mode where a single E-Switch is used and all the vports
|
| /linux/drivers/scsi/fcoe/ |
| H A D | fcoe_ctlr.c | 1457 list_for_each_entry(vn_port, &lport->vports, list) in fcoe_ctlr_recv_clr_vlink() 1858 list_for_each_entry(vport, &fip->lp->vports, list) { in fcoe_ctlr_timer_work()
|
| /linux/drivers/scsi/bnx2fc/ |
| H A D | bnx2fc_hwi.c | 520 list_for_each_entry(blport, &hba->vports, list) { in is_valid_lport()
|
| /linux/drivers/scsi/qedf/ |
| H A D | qedf_main.c | 1107 list_for_each_entry(tmp_lport, &base_lport->vports, list) { in qedf_xmit()
|