Home
last modified time | relevance | path

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

12

/Linux-v5.4/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.4/drivers/scsi/lpfc/
Dlpfc_vport.c830 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local
832 vports = kcalloc(phba->max_vports + 1, sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array()
834 if (vports == NULL) in lpfc_create_vport_work_array()
846 vports[index++] = port_iterator; in lpfc_create_vport_work_array()
849 return vports; in lpfc_create_vport_work_array()
853 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument
856 if (vports == NULL) in lpfc_destroy_vport_work_array()
858 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array()
859 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array()
860 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()
886 struct lpfc_vport **vports; in lpfc_linkdown() local
915 vports = lpfc_create_vport_work_array(phba); in lpfc_linkdown()
916 if (vports != NULL) { in lpfc_linkdown()
917 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_linkdown()
[all …]
Dlpfc_init.c835 struct lpfc_vport **vports; in lpfc_hba_down_prep() local
847 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep()
848 if (vports != NULL) in lpfc_hba_down_prep()
850 vports[i] != NULL; i++) in lpfc_hba_down_prep()
851 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep()
852 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep()
1352 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local
1364 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler()
1365 if (vports != NULL) in lpfc_hb_timeout_handler()
1366 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler()
[all …]
Dlpfc_attr.c4192 struct lpfc_vport **vports; in lpfc_stat_data_ctrl_store() local
4232 vports = lpfc_create_vport_work_array(phba); in lpfc_stat_data_ctrl_store()
4233 if (vports == NULL) in lpfc_stat_data_ctrl_store()
4236 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
4237 v_shost = lpfc_shost_from_vport(vports[i]); in lpfc_stat_data_ctrl_store()
4240 vports[i]->stat_data_blocked = 1; in lpfc_stat_data_ctrl_store()
4241 if (vports[i]->stat_data_enabled) in lpfc_stat_data_ctrl_store()
4242 lpfc_vport_reset_stat_data(vports[i]); in lpfc_stat_data_ctrl_store()
4251 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_stat_data_ctrl_store()
4252 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.c649 struct lpfc_vport **vports; in lpfc_rcv_logo() local
670 vports = lpfc_create_vport_work_array(phba); in lpfc_rcv_logo()
671 if (vports) { in lpfc_rcv_logo()
672 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_rcv_logo()
674 if ((!(vports[i]->fc_flag & in lpfc_rcv_logo()
676 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_rcv_logo()
681 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.c9104 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local
9114 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer()
9116 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer()
9117 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer()
9118 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer()
9120 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer()
9121 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer()
9123 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
Dlpfc_sli.c16985 struct lpfc_vport **vports; in lpfc_fc_frame_to_vport() local
16995 vports = lpfc_create_vport_work_array(phba); in lpfc_fc_frame_to_vport()
16996 if (vports != NULL) { in lpfc_fc_frame_to_vport()
16997 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_fc_frame_to_vport()
16999 vports[i]->vfi == lpfc_fc_hdr_get_vfi(fc_hdr) && in lpfc_fc_frame_to_vport()
17000 vports[i]->fc_myDID == did) { in lpfc_fc_frame_to_vport()
17001 vport = vports[i]; in lpfc_fc_frame_to_vport()
17006 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fc_frame_to_vport()
/Linux-v5.4/Documentation/scsi/
Dscsi_fc_transport.txt7 vports : 2.6.22
29 FC Virtual Ports (vports)
57 to create vports. The transport will create the vport object within the
65 vports. However, consideration was given to VF-based vports and it
71 if vports are to be associated with virtual machines, a XEN mgmt
85 The remainder of the tree under the vports scsi_host is the same
162 For the fc_host class object, the following attributes are added for vports:
165 Indicates the maximum number of NPIV-based vports that the
169 Indicates how many NPIV-based vports have been instantiated on the
293 The LLDD indicates support for vports by supplying a vport_create()
[all …]
/Linux-v5.4/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c111 struct xarray vports; member
152 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter()
211 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport()
876 xa_for_each(&port->vports, index, adapter) { in opa_vnic_event()
904 xa_for_each(&port->vports, index, adapter) in vema_unregister()
911 xa_destroy(&port->vports); in vema_unregister()
948 xa_init(&port->vports); in vema_register()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.h226 struct mlx5_vport *vports; member
527 (vport) = &(esw)->vports[i], \
532 (vport) = &(esw)->vports[i], \
537 (vport) = &(esw)->vports[(i)], \
542 (vport) = &(esw)->vports[(i)], \
Deswitch.c80 return &esw->vports[idx]; in mlx5_eswitch_get_vport()
1989 esw->vports = kcalloc(total_vports, sizeof(struct mlx5_vport), in mlx5_eswitch_init()
1991 if (!esw->vports) { in mlx5_eswitch_init()
2027 kfree(esw->vports); in mlx5_eswitch_init()
2044 kfree(esw->vports); in mlx5_eswitch_cleanup()
Deswitch_offloads.c2013 vport = &esw->vports[j]; in esw_create_offloads_acl_tables()
/Linux-v5.4/include/scsi/
Dlibfc.h703 struct list_head vports; member
871 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
Dscsi_transport_fc.h525 struct list_head vports; member
599 (((struct fc_host_attrs *)(x)->shost_data)->vports)
/Linux-v5.4/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c954 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
1180 list_for_each_entry_safe(blport, tmp, &hba->vports, list) { in bnx2fc_free_vport()
1200 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy()
1423 INIT_LIST_HEAD(&hba->vports); in bnx2fc_hba_create()
1580 list_add_tail(&blport->list, &hba->vports); in bnx2fc_if_create()
1882 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.4/drivers/scsi/
Dscsi_transport_fc.c426 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup()
1920 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete()
2421 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fc_remove_host()
3379 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
/Linux-v5.4/drivers/scsi/fcoe/
Dfcoe_transport.c268 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
Dfcoe_ctlr.c1464 list_for_each_entry(vn_port, &lport->vports, list) in fcoe_ctlr_recv_clr_vlink()
1865 list_for_each_entry(vport, &fip->lp->vports, list) { in fcoe_ctlr_timer_work()
Dfcoe.c2741 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fcoe_vport_remove()
/Linux-v5.4/Documentation/networking/
Dopenvswitch.txt11 bridges), each of which can have multiple "vports" (analogous to ports

12