Home
last modified time | relevance | path

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

12

/Linux-v5.10/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.10/drivers/scsi/lpfc/
Dlpfc_vport.c820 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local
822 vports = kcalloc(phba->max_vports + 1, sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array()
824 if (vports == NULL) in lpfc_create_vport_work_array()
837 vports[index++] = port_iterator; in lpfc_create_vport_work_array()
840 return vports; in lpfc_create_vport_work_array()
844 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument
847 if (vports == NULL) in lpfc_destroy_vport_work_array()
849 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array()
850 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array()
851 kfree(vports); in lpfc_destroy_vport_work_array()
Dlpfc_hbadisc.c616 struct lpfc_vport **vports; in lpfc_work_done() local
657 vports = lpfc_create_vport_work_array(phba); in lpfc_work_done()
658 if (vports != NULL) in lpfc_work_done()
664 if (vports[i] == NULL && i == 0) in lpfc_work_done()
667 vport = vports[i]; in lpfc_work_done()
689 lpfc_destroy_vport_work_array(phba, vports); in lpfc_work_done()
895 struct lpfc_vport **vports; in lpfc_linkdown() local
924 vports = lpfc_create_vport_work_array(phba); in lpfc_linkdown()
925 if (vports != NULL) { in lpfc_linkdown()
926 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_linkdown()
[all …]
Dlpfc_init.c826 struct lpfc_vport **vports; in lpfc_hba_down_prep() local
838 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep()
839 if (vports != NULL) in lpfc_hba_down_prep()
841 vports[i] != NULL; i++) in lpfc_hba_down_prep()
842 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
843 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep()
1402 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local
1414 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler()
1415 if (vports != NULL) in lpfc_hb_timeout_handler()
1416 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
[all …]
Dlpfc_attr.c4155 struct lpfc_vport **vports; in lpfc_stat_data_ctrl_store() local
4195 vports = lpfc_create_vport_work_array(phba); in lpfc_stat_data_ctrl_store()
4196 if (vports == NULL) in lpfc_stat_data_ctrl_store()
4199 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
4200 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
4203 vports[i]->stat_data_blocked = 1; in lpfc_stat_data_ctrl_store()
4204 if (vports[i]->stat_data_enabled) in lpfc_stat_data_ctrl_store()
4205 lpfc_vport_reset_stat_data(vports[i]); in lpfc_stat_data_ctrl_store()
4214 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
4215 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
[all …]
Dlpfc_scsi.c245 struct lpfc_vport **vports; in lpfc_ramp_down_queue_handler() local
263 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_down_queue_handler()
264 if (vports != NULL) in lpfc_ramp_down_queue_handler()
265 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_down_queue_handler()
266 shost = lpfc_shost_from_vport(vports[i]); in lpfc_ramp_down_queue_handler()
279 lpfc_destroy_vport_work_array(phba, vports); in lpfc_ramp_down_queue_handler()
295 struct lpfc_vport **vports; in lpfc_scsi_dev_block() local
301 vports = lpfc_create_vport_work_array(phba); in lpfc_scsi_dev_block()
302 if (vports != NULL) in lpfc_scsi_dev_block()
303 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_scsi_dev_block()
[all …]
Dlpfc_nportdisc.c839 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()
870 if ((!(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_bsg.c1704 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local
1721 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter()
1722 if (vports) { in lpfc_bsg_diag_mode_enter()
1723 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter()
1724 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter()
1727 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter()
1760 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local
1763 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit()
1764 if (vports) { in lpfc_bsg_diag_mode_exit()
1765 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit()
[all …]
Dlpfc_els.c9251 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local
9261 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer()
9263 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer()
9264 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer()
9265 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer()
9267 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer()
9268 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer()
9270 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
Dlpfc_sli.c17473 struct lpfc_vport **vports; in lpfc_fc_frame_to_vport() local
17483 vports = lpfc_create_vport_work_array(phba); in lpfc_fc_frame_to_vport()
17484 if (vports != NULL) { in lpfc_fc_frame_to_vport()
17485 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_fc_frame_to_vport()
17487 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport()
17488 vports[i]->fc_myDID == did) { in lpfc_fc_frame_to_vport()
17489 vport = vports[i]; in lpfc_fc_frame_to_vport()
17494 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fc_frame_to_vport()
/Linux-v5.10/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.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h190 } vports; member
253 struct mlx5_vport *vports; member
567 (vport) = &(esw)->vports[i], \
572 (vport) = &(esw)->vports[i], \
577 (vport) = &(esw)->vports[(i)], \
582 (vport) = &(esw)->vports[(i)], \
Deswitch_offloads.c120 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup()
134 mutex_lock(&esw->fdb_table.offloads.vports.lock); in esw_vport_tbl_put()
144 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in esw_vport_tbl_put()
157 mutex_lock(&esw->fdb_table.offloads.vports.lock); in esw_vport_tbl_get()
185 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in esw_vport_tbl_get()
187 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in esw_vport_tbl_get()
193 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in esw_vport_tbl_get()
2178 mutex_init(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init()
2179 hash_init(esw->fdb_table.offloads.vports.table); in esw_offloads_steering_init()
2212 mutex_destroy(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init()
[all …]
Deswitch.c106 return &esw->vports[idx]; in mlx5_eswitch_get_vport()
1753 esw->vports = kcalloc(total_vports, sizeof(struct mlx5_vport), in mlx5_eswitch_init()
1755 if (!esw->vports) { in mlx5_eswitch_init()
1794 kfree(esw->vports); in mlx5_eswitch_init()
1815 kfree(esw->vports); in mlx5_eswitch_cleanup()
/Linux-v5.10/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.10/include/scsi/
Dlibfc.h703 struct list_head vports; member
871 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
Dscsi_transport_fc.h526 struct list_head vports; member
600 (((struct fc_host_attrs *)(x)->shost_data)->vports)
/Linux-v5.10/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c957 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
1182 list_for_each_entry_safe(blport, tmp, &hba->vports, list) { in bnx2fc_free_vport()
1202 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1425 INIT_LIST_HEAD(&hba->vports); in bnx2fc_hba_create()
1582 list_add_tail(&blport->list, &hba->vports); in bnx2fc_if_create()
1883 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
Dbnx2fc.h249 struct list_head vports; member
Dbnx2fc_hwi.c520 list_for_each_entry(blport, &hba->vports, list) { in is_valid_lport()
/Linux-v5.10/drivers/scsi/
Dscsi_transport_fc.c427 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup()
1921 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete()
2422 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fc_remove_host()
3380 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
/Linux-v5.10/drivers/scsi/fcoe/
Dfcoe_transport.c268 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.c2739 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fcoe_vport_remove()
/Linux-v5.10/Documentation/networking/
Dopenvswitch.rst14 bridges), each of which can have multiple "vports" (analogous to ports

12