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
903 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent()
904 fc_host_port_type(vport->host) = in bnx2fc_indicate_netevent()
1060 static int bnx2fc_vport_create(struct fc_vport *vport, bool disabled) in bnx2fc_vport_create() argument
1062 struct Scsi_Host *shost = vport_to_shost(vport); in bnx2fc_vport_create()
1071 rc = fcoe_validate_vport_create(vport); in bnx2fc_vport_create()
1073 fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf)); in bnx2fc_vport_create()
1087 vn_port = bnx2fc_if_create(interface, &vport->dev, 1); in bnx2fc_vport_create()
1098 fc_vport_set_state(vport, FC_VPORT_DISABLED); in bnx2fc_vport_create()
1122 static int bnx2fc_vport_destroy(struct fc_vport *vport) in bnx2fc_vport_destroy() argument
1124 struct Scsi_Host *shost = vport_to_shost(vport); in bnx2fc_vport_destroy()
1126 struct fc_lport *vn_port = vport->dd_data; in bnx2fc_vport_destroy()
1134 if (v_port->vport == vport) { in bnx2fc_vport_destroy()
1152 static int bnx2fc_vport_disable(struct fc_vport *vport, bool disable) in bnx2fc_vport_disable() argument
1154 struct fc_lport *lport = vport->dd_data; in bnx2fc_vport_disable()
1157 fc_vport_set_state(vport, FC_VPORT_DISABLED); in bnx2fc_vport_disable()
1428 struct fc_vport *vport = dev_to_vport(parent); in bnx2fc_if_create() local
1444 lport = libfc_vport_create(vport, sizeof(*port)); in bnx2fc_if_create()
1464 vport->node_name, vport->port_name); in bnx2fc_if_create()
1465 fc_set_wwnn(lport, vport->node_name); in bnx2fc_if_create()
1466 fc_set_wwpn(lport, vport->port_name); in bnx2fc_if_create()
1494 shost = vport_to_shost(vport); in bnx2fc_if_create()
1801 struct fc_lport *vport; in bnx2fc_stop() local
1810 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
1811 fc_host_port_type(vport->host) = in bnx2fc_stop()