• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/fcoe/

Lines Matching defs:vport

678 	if (!lport->vport) {
710 if (lport->vport)
723 if (!lport->vport)
932 * @npiv: Indicates if the port is a vport or not
946 * parent is only a vport if npiv is 1,
947 * but we'll only use vport in that case so go ahead and set it
949 struct fc_vport *vport = dev_to_vport(parent);
957 lport = libfc_vport_create(vport,
979 FCOE_NETDEV_DBG(netdev, "Setting vport names, "
981 vport->node_name, vport->port_name);
982 fc_set_wwnn(lport, vport->node_name);
983 fc_set_wwpn(lport, vport->port_name);
2586 * fcoe_vport_create() - create an fc_host/scsi_host for a vport
2587 * @vport: fc_vport object to create a new fc_host for
2592 static int fcoe_vport_create(struct fc_vport *vport, bool disabled)
2594 struct Scsi_Host *shost = vport_to_shost(vport);
2602 vn_port = fcoe_if_create(fcoe, &vport->dev, 1);
2612 fc_vport_set_state(vport, FC_VPORT_DISABLED);
2622 * fcoe_vport_destroy() - destroy the fc_host/scsi_host for a vport
2623 * @vport: fc_vport object that is being destroyed
2627 static int fcoe_vport_destroy(struct fc_vport *vport)
2629 struct Scsi_Host *shost = vport_to_shost(vport);
2631 struct fc_lport *vn_port = vport->dd_data;
2642 * fcoe_vport_disable() - change vport state
2643 * @vport: vport to bring online/offline
2644 * @disable: should the vport be disabled?
2646 static int fcoe_vport_disable(struct fc_vport *vport, bool disable)
2648 struct fc_lport *lport = vport->dd_data;
2651 fc_vport_set_state(vport, FC_VPORT_DISABLED);
2663 * fcoe_vport_set_symbolic_name() - append vport string to symbolic name
2664 * @vport: fc_vport with a new symbolic name string
2670 static void fcoe_set_vport_symbolic_name(struct fc_vport *vport)
2672 struct fc_lport *lport = vport->dd_data;
2678 fcoe_netdev(lport)->name, vport->symbolic_name);