Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
Dmlx5hws_vport.c13 xa_init(&ctx->vports.vport_gvmi_xa); in mlx5hws_vport_init_vports()
19 ret = mlx5hws_cmd_query_gvmi(ctx->mdev, false, 0, &ctx->vports.esw_manager_gvmi); in mlx5hws_vport_init_vports()
23 ctx->vports.uplink_gvmi = 0; in mlx5hws_vport_init_vports()
30 xa_destroy(&ctx->vports.vport_gvmi_xa); in mlx5hws_vport_uninit_vports()
42 ret = xa_insert(&ctx->vports.vport_gvmi_xa, vport, in hws_vport_add_gvmi()
65 *vport_gvmi = ctx->vports.esw_manager_gvmi; in mlx5hws_vport_get_gvmi()
70 *vport_gvmi = ctx->vports.uplink_gvmi; in mlx5hws_vport_get_gvmi()
75 entry = xa_load(&ctx->vports.vport_gvmi_xa, vport); in mlx5hws_vport_get_gvmi()
Dmlx5hws_context.h53 struct mlx5hws_context_vports vports; member
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dvporttbl.c73 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_domain.c270 &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()
321 return &caps->vports.esw_manager_caps; in mlx5dr_domain_get_vport_cap()
324 return &caps->vports.uplink_caps; in mlx5dr_domain_get_vport_cap()
327 vport_caps = xa_load(&caps->vports.vports_caps_xa, vport); in mlx5dr_domain_get_vport_cap()
344 xa_for_each(&dmn->info.caps.vports.vports_caps_xa, i, vport_caps) { in dr_domain_clear_vports()
345 vport_caps = xa_erase(&dmn->info.caps.vports.vports_caps_xa, i); in dr_domain_clear_vports()
367 xa_init(&dmn->info.caps.vports.vports_caps_xa); in dr_domain_query_fdb_caps()
384 xa_destroy(&dmn->info.caps.vports.vports_caps_xa); in dr_domain_query_fdb_caps()
[all …]
Ddr_dbg.c936 xa_for_each(&caps->vports.vports_caps_xa, vports_num, vport_caps) in dr_dump_domain_info_caps()
951 xa_for_each(&caps->vports.vports_caps_xa, i, vport_caps) { in dr_dump_domain_info_caps()
952 vport_caps = xa_load(&caps->vports.vports_caps_xa, i); in dr_dump_domain_info_caps()
/linux-6.12.1/drivers/scsi/libfc/
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-6.12.1/drivers/scsi/lpfc/
Dlpfc_hbadisc.c373 struct lpfc_vport **vports; in lpfc_check_inactive_vmid() local
376 vports = lpfc_create_vport_work_array(phba); in lpfc_check_inactive_vmid()
377 if (!vports) in lpfc_check_inactive_vmid()
381 if ((!vports[i]) && (i == 0)) in lpfc_check_inactive_vmid()
384 vport = vports[i]; in lpfc_check_inactive_vmid()
390 lpfc_destroy_vport_work_array(phba, vports); in lpfc_check_inactive_vmid()
612 struct lpfc_vport **vports; in lpfc_check_vmid_qfpa_issue() local
615 vports = lpfc_create_vport_work_array(phba); in lpfc_check_vmid_qfpa_issue()
616 if (!vports) in lpfc_check_vmid_qfpa_issue()
620 if ((!vports[i]) && (i == 0)) in lpfc_check_vmid_qfpa_issue()
[all …]
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()
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 …]
Dlpfc_scsi.c166 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 …]
Dlpfc_bsg.c1648 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local
1665 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter()
1666 if (vports) { in lpfc_bsg_diag_mode_enter()
1667 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter()
1668 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter()
1671 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter()
1704 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local
1707 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit()
1708 if (vports) { in lpfc_bsg_diag_mode_exit()
1709 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()
[all …]
Dlpfc_nportdisc.c831 struct lpfc_vport **vports; in lpfc_rcv_logo() local
866 vports = lpfc_create_vport_work_array(phba); in lpfc_rcv_logo()
867 if (vports) { in lpfc_rcv_logo()
868 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_rcv_logo()
871 &vports[i]->fc_flag) && in lpfc_rcv_logo()
872 vports[i]->port_state > LPFC_FDISC) { in lpfc_rcv_logo()
877 lpfc_destroy_vport_work_array(phba, vports); in lpfc_rcv_logo()
Dlpfc_ct.c2175 struct lpfc_vport **vports; in lpfc_fdmi_rprt_defer() local
2181 vports = lpfc_create_vport_work_array(phba); in lpfc_fdmi_rprt_defer()
2182 if (vports) { in lpfc_fdmi_rprt_defer()
2183 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_fdmi_rprt_defer()
2184 vport = vports[i]; in lpfc_fdmi_rprt_defer()
2195 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fdmi_rprt_defer()
/linux-6.12.1/Documentation/scsi/
Dscsi_fc_transport.rst12 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-6.12.1/drivers/infiniband/ulp/opa_vnic/
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-6.12.1/drivers/net/ethernet/intel/idpf/
Didpf_lib.c842 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()
Didpf_virtchnl.c120 return adapter->vports[i]; in idpf_vid_to_vport()
2991 adapter->vports = kcalloc(num_max_vports, sizeof(*adapter->vports), in idpf_vc_core_init()
2993 if (!adapter->vports) in idpf_vc_core_init()
3045 kfree(adapter->vports); in idpf_vc_core_init()
3046 adapter->vports = NULL; in idpf_vc_core_init()
3092 kfree(adapter->vports); in idpf_vc_core_deinit()
3093 adapter->vports = NULL; in idpf_vc_core_deinit()
Didpf.h556 struct idpf_vport **vports; member
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h264 } vports; member
347 struct xarray vports; member
691 xa_for_each(&((esw)->vports), index, vport)
698 mlx5_esw_for_each_entry_marked(&((esw)->vports), index, vport, last, filter)
712 xa_for_each_range(&((esw)->vports), \
Deswitch.c114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport()
1706 err = xa_insert(&esw->vports, vport_num, vport, GFP_KERNEL); in mlx5_esw_vport_alloc()
1720 xa_erase(&esw->vports, vport->vport); in mlx5_esw_vport_free()
1731 xa_destroy(&esw->vports); in mlx5_esw_vports_cleanup()
1743 xa_init(&esw->vports); in mlx5_esw_vports_init()
1749 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init()
1756 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_VF); in mlx5_esw_vports_init()
1757 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init()
1765 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init()
1776 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init()
[all …]
/linux-6.12.1/include/scsi/
Dlibfc.h718 struct list_head vports; member
892 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
Dscsi_transport_fc.h571 struct list_head vports; member
646 (((struct fc_host_attrs *)(x)->shost_data)->vports)
/linux-6.12.1/drivers/scsi/bnx2fc/
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()
Dbnx2fc.h246 struct list_head vports; member
/linux-6.12.1/drivers/scsi/fcoe/
Dfcoe_transport.c269 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()

12