Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dvporttbl.c65 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup()
82 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
110 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get()
112 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
118 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get()
129 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
139 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
/Linux-v5.15/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-v5.15/drivers/scsi/lpfc/
Dlpfc_vport.c738 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local
740 vports = kcalloc(phba->max_vports + 1, sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array()
742 if (vports == NULL) in lpfc_create_vport_work_array()
755 vports[index++] = port_iterator; in lpfc_create_vport_work_array()
758 return vports; in lpfc_create_vport_work_array()
762 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument
765 if (vports == NULL) in lpfc_destroy_vport_work_array()
767 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array()
768 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array()
769 kfree(vports); in lpfc_destroy_vport_work_array()
Dlpfc_hbadisc.c323 struct lpfc_vport **vports; in lpfc_check_inactive_vmid() local
326 vports = lpfc_create_vport_work_array(phba); in lpfc_check_inactive_vmid()
327 if (!vports) in lpfc_check_inactive_vmid()
331 if ((!vports[i]) && (i == 0)) in lpfc_check_inactive_vmid()
334 vport = vports[i]; in lpfc_check_inactive_vmid()
340 lpfc_destroy_vport_work_array(phba, vports); in lpfc_check_inactive_vmid()
435 struct lpfc_vport **vports; in lpfc_check_vmid_qfpa_issue() local
438 vports = lpfc_create_vport_work_array(phba); in lpfc_check_vmid_qfpa_issue()
439 if (!vports) in lpfc_check_vmid_qfpa_issue()
443 if ((!vports[i]) && (i == 0)) in lpfc_check_vmid_qfpa_issue()
[all …]
Dlpfc_init.c828 struct lpfc_vport **vports; in lpfc_hba_down_prep() local
840 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep()
841 if (vports != NULL) in lpfc_hba_down_prep()
843 vports[i] != NULL; i++) in lpfc_hba_down_prep()
844 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
845 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep()
1459 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local
1471 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler()
1472 if (vports != NULL) in lpfc_hb_timeout_handler()
1473 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
[all …]
Dlpfc_scsi.c232 struct lpfc_vport **vports; in lpfc_ramp_down_queue_handler() local
250 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_down_queue_handler()
251 if (vports != NULL) in lpfc_ramp_down_queue_handler()
252 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_down_queue_handler()
253 shost = lpfc_shost_from_vport(vports[i]); in lpfc_ramp_down_queue_handler()
266 lpfc_destroy_vport_work_array(phba, vports); in lpfc_ramp_down_queue_handler()
282 struct lpfc_vport **vports; in lpfc_scsi_dev_block() local
288 vports = lpfc_create_vport_work_array(phba); in lpfc_scsi_dev_block()
289 if (vports != NULL) in lpfc_scsi_dev_block()
290 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_scsi_dev_block()
[all …]
Dlpfc_attr.c4342 struct lpfc_vport **vports; in lpfc_stat_data_ctrl_store() local
4382 vports = lpfc_create_vport_work_array(phba); in lpfc_stat_data_ctrl_store()
4383 if (vports == NULL) in lpfc_stat_data_ctrl_store()
4386 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
4387 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
4390 vports[i]->stat_data_blocked = 1; in lpfc_stat_data_ctrl_store()
4391 if (vports[i]->stat_data_enabled) in lpfc_stat_data_ctrl_store()
4392 lpfc_vport_reset_stat_data(vports[i]); in lpfc_stat_data_ctrl_store()
4401 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
4402 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
[all …]
Dlpfc_nportdisc.c777 struct lpfc_vport **vports; in lpfc_rcv_logo() local
813 vports = lpfc_create_vport_work_array(phba); in lpfc_rcv_logo()
814 if (vports) { in lpfc_rcv_logo()
815 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_rcv_logo()
817 if ((!(vports[i]->fc_flag & in lpfc_rcv_logo()
819 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_rcv_logo()
824 lpfc_destroy_vport_work_array(phba, vports); in lpfc_rcv_logo()
Dlpfc_bsg.c1688 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local
1705 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter()
1706 if (vports) { in lpfc_bsg_diag_mode_enter()
1707 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter()
1708 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter()
1711 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter()
1744 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local
1747 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit()
1748 if (vports) { in lpfc_bsg_diag_mode_exit()
1749 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()
[all …]
Dlpfc_els.c10574 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local
10584 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer()
10586 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer()
10587 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer()
10588 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer()
10590 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer()
10591 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer()
10593 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
/Linux-v5.15/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-v5.15/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c109 struct xarray vports; member
150 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter()
209 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport()
873 xa_for_each(&port->vports, index, adapter) { in opa_vnic_event()
901 xa_for_each(&port->vports, index, adapter) in vema_unregister()
908 xa_destroy(&port->vports); in vema_unregister()
945 xa_init(&port->vports); in vema_register()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c98 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport()
1439 err = xa_insert(&esw->vports, vport_num, vport, GFP_KERNEL); in mlx5_esw_vport_alloc()
1453 xa_erase(&esw->vports, vport->vport); in mlx5_esw_vport_free()
1464 xa_destroy(&esw->vports); in mlx5_esw_vports_cleanup()
1476 xa_init(&esw->vports); in mlx5_esw_vports_init()
1482 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init()
1489 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_VF); in mlx5_esw_vports_init()
1490 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init()
1498 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init()
1509 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init()
[all …]
Deswitch.h223 } vports; member
292 struct xarray vports; member
599 xa_for_each(&((esw)->vports), index, vport)
606 mlx5_esw_for_each_entry_marked(&((esw)->vports), index, vport, last, filter)
Deswitch_offloads.c2146 mark_set = xa_get_mark(&esw->vports, rep->vport, mark); in mlx5_esw_offloads_rep_mark_set()
2978 mutex_init(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init()
2979 hash_init(esw->fdb_table.offloads.vports.table); in esw_offloads_steering_init()
3022 mutex_destroy(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init()
3034 mutex_destroy(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_cleanup()
/Linux-v5.15/include/scsi/
Dlibfc.h703 struct list_head vports; member
871 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
Dscsi_transport_fc.h570 struct list_head vports; member
647 (((struct fc_host_attrs *)(x)->shost_data)->vports)
/Linux-v5.15/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c959 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
1184 list_for_each_entry_safe(blport, tmp, &hba->vports, list) { in bnx2fc_free_vport()
1204 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1427 INIT_LIST_HEAD(&hba->vports); in bnx2fc_hba_create()
1584 list_add_tail(&blport->list, &hba->vports); in bnx2fc_if_create()
1885 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
Dbnx2fc.h248 struct list_head vports; member
Dbnx2fc_hwi.c520 list_for_each_entry(blport, &hba->vports, list) { in is_valid_lport()
/Linux-v5.15/drivers/scsi/fcoe/
Dfcoe_transport.c269 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
Dfcoe_ctlr.c1466 list_for_each_entry(vn_port, &lport->vports, list) in fcoe_ctlr_recv_clr_vlink()
1867 list_for_each_entry(vport, &fip->lp->vports, list) { in fcoe_ctlr_timer_work()
Dfcoe.c2736 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fcoe_vport_remove()
/Linux-v5.15/drivers/scsi/
Dscsi_transport_fc.c437 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup()
2390 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete()
2893 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fc_remove_host()
3876 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
/Linux-v5.15/Documentation/networking/
Dopenvswitch.rst14 bridges), each of which can have multiple "vports" (analogous to ports

12