Lines Matching refs:vport

708 	if (!lport->vport) {
740 if (lport->vport)
753 if (!lport->vport)
787 if (lport->vport)
991 if (lport->vport)
1014 * Release the Scsi_Host for vport but hold on to
1017 if (lport->vport)
1085 * @npiv: Indicates if the port is a vport or not
1101 * parent is only a vport if npiv is 1,
1102 * but we'll only use vport in that case so go ahead and set it
1104 struct fc_vport *vport = dev_to_vport(parent);
1111 lport = libfc_vport_create(vport, sizeof(*port));
1141 FCOE_NETDEV_DBG(netdev, "Setting vport names, "
1143 vport->node_name, vport->port_name);
1144 fc_set_wwnn(lport, vport->node_name);
1145 fc_set_wwpn(lport, vport->port_name);
1188 shost = vport_to_shost(vport);
2215 struct fc_vport *vport;
2224 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) {
2225 if (vport->flags & (FC_VPORT_DEL | FC_VPORT_CREATING)) {
2228 vport->flags |= FC_VPORT_DELETING;
2230 &vport->vport_delete_work);
2812 * fcoe_vport_create() - create an fc_host/scsi_host for a vport
2813 * @vport: fc_vport object to create a new fc_host for
2818 static int fcoe_vport_create(struct fc_vport *vport, bool disabled)
2820 struct Scsi_Host *shost = vport_to_shost(vport);
2829 rc = fcoe_validate_vport_create(vport);
2831 fcoe_wwn_to_str(vport->port_name, buf, sizeof(buf));
2832 printk(KERN_ERR "fcoe: Failed to create vport, "
2840 vn_port = fcoe_if_create(fcoe, &vport->dev, 1);
2851 fc_vport_set_state(vport, FC_VPORT_DISABLED);
2861 * fcoe_vport_destroy() - destroy the fc_host/scsi_host for a vport
2862 * @vport: fc_vport object that is being destroyed
2866 static int fcoe_vport_destroy(struct fc_vport *vport)
2868 struct Scsi_Host *shost = vport_to_shost(vport);
2870 struct fc_lport *vn_port = vport->dd_data;
2884 * fcoe_vport_disable() - change vport state
2885 * @vport: vport to bring online/offline
2886 * @disable: should the vport be disabled?
2888 static int fcoe_vport_disable(struct fc_vport *vport, bool disable)
2890 struct fc_lport *lport = vport->dd_data;
2893 fc_vport_set_state(vport, FC_VPORT_DISABLED);
2905 * fcoe_vport_set_symbolic_name() - append vport string to symbolic name
2906 * @vport: fc_vport with a new symbolic name string
2912 static void fcoe_set_vport_symbolic_name(struct fc_vport *vport)
2914 struct fc_lport *lport = vport->dd_data;
2920 fcoe_netdev(lport)->name, vport->symbolic_name);