Lines Matching refs:vport
689 if (lport->vport) in bnx2fc_shost_config()
700 if (!lport->vport) in bnx2fc_shost_config()
769 if (!lport->vport) { in bnx2fc_net_config()
813 struct fc_lport *vport; in bnx2fc_indicate_netevent() local
902 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
903 fc_host_port_type(vport->host) = in bnx2fc_indicate_netevent()
1059 static int bnx2fc_vport_create(struct fc_vport *vport, bool disabled) in bnx2fc_vport_create() argument
1061 struct Scsi_Host *shost = vport_to_shost(vport); in bnx2fc_vport_create()
1070 rc = fcoe_validate_vport_create(vport); in bnx2fc_vport_create()
1072 fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf)); in bnx2fc_vport_create()
1086 vn_port = bnx2fc_if_create(interface, &vport->dev, 1); in bnx2fc_vport_create()
1097 fc_vport_set_state(vport, FC_VPORT_DISABLED); in bnx2fc_vport_create()
1121 static int bnx2fc_vport_destroy(struct fc_vport *vport) in bnx2fc_vport_destroy() argument
1123 struct Scsi_Host *shost = vport_to_shost(vport); in bnx2fc_vport_destroy()
1125 struct fc_lport *vn_port = vport->dd_data; in bnx2fc_vport_destroy()
1133 if (v_port->vport == vport) { in bnx2fc_vport_destroy()
1151 static int bnx2fc_vport_disable(struct fc_vport *vport, bool disable) in bnx2fc_vport_disable() argument
1153 struct fc_lport *lport = vport->dd_data; in bnx2fc_vport_disable()
1156 fc_vport_set_state(vport, FC_VPORT_DISABLED); in bnx2fc_vport_disable()
1427 struct fc_vport *vport = dev_to_vport(parent); in bnx2fc_if_create() local
1443 lport = libfc_vport_create(vport, sizeof(*port)); in bnx2fc_if_create()
1463 vport->node_name, vport->port_name); in bnx2fc_if_create()
1464 fc_set_wwnn(lport, vport->node_name); in bnx2fc_if_create()
1465 fc_set_wwpn(lport, vport->port_name); in bnx2fc_if_create()
1493 shost = vport_to_shost(vport); in bnx2fc_if_create()
1800 struct fc_lport *vport; in bnx2fc_stop() local
1809 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
1810 fc_host_port_type(vport->host) = in bnx2fc_stop()