Lines Matching defs:vn_port
1072 struct fc_lport *vn_port = NULL;
1090 vn_port = base_lport;
1097 vn_port = tmp_lport;
1102 if (vn_port && ntoh24(fh->fh_d_id) != FC_FID_FLOGI) {
1822 struct fc_lport *vn_port;
1843 vn_port = libfc_vport_create(vport, sizeof(struct qedf_ctx));
1844 if (!vn_port) {
1855 vport_qedf = lport_priv(vn_port);
1859 vport_qedf->lport = vn_port;
1868 rc = qedf_vport_libfc_config(vport, vn_port);
1875 fc_set_wwnn(vn_port, vport->node_name);
1876 fc_set_wwpn(vn_port, vport->port_name);
1877 vport_qedf->wwnn = vn_port->wwnn;
1878 vport_qedf->wwpn = vn_port->wwpn;
1880 vn_port->host->transportt = qedf_fc_vport_transport_template;
1881 vn_port->host->can_queue = FCOE_PARAMS_NUM_TASKS;
1882 vn_port->host->max_lun = qedf_max_lun;
1883 vn_port->host->sg_tablesize = QEDF_MAX_BDS_PER_CMD;
1884 vn_port->host->max_cmd_len = QEDF_MAX_CDB_LEN;
1885 vn_port->host->max_id = QEDF_MAX_SESSIONS;
1887 rc = scsi_add_host(vn_port->host, &vport->dev);
1895 fc_host_dev_loss_tmo(vn_port->host) = qedf_dev_loss_tmo;
1898 memcpy(&vn_port->tt, &qedf_lport_template,
1900 fc_exch_init(vn_port);
1901 fc_elsct_init(vn_port);
1902 fc_lport_init(vn_port);
1903 fc_disc_init(vn_port);
1904 fc_disc_config(vn_port, vn_port);
1910 fc_exch_mgr_list_clone(n_port, vn_port);
1913 fc_set_mfs(vn_port, QEDF_MFS);
1915 fc_host_port_type(vn_port->host) = FC_PORTTYPE_UNKNOWN;
1920 vn_port->boot_time = jiffies;
1921 fc_fabric_login(vn_port);
1922 fc_vport_setlink(vn_port);
1927 snprintf(fc_host_symbolic_name(vn_port->host), 256,
1931 snprintf(fc_host_symbolic_name(vn_port->host), 256,
1935 fc_host_supported_speeds(vn_port->host) = n_port->link_supported_speeds;
1938 vn_port->link_speed = n_port->link_speed;
1941 fc_host_port_type(vn_port->host) = FC_PORTTYPE_NPIV;
1944 fc_host_maxframe_size(vn_port->host) = n_port->mfs;
1946 QEDF_INFO(&(base_qedf->dbg_ctx), QEDF_LOG_NPIV, "vn_port=%p.\n",
1947 vn_port);
1950 vport_qedf->dbg_ctx.host_no = vn_port->host->host_no;
1956 scsi_host_put(vn_port->host);
1964 struct fc_lport *vn_port = vport->dd_data;
1965 struct qedf_ctx *qedf = lport_priv(vn_port);
1976 list_del(&vn_port->list);
1979 fc_fabric_logoff(vn_port);
1980 fc_lport_destroy(vn_port);
1983 fc_remove_host(vn_port->host);
1984 scsi_remove_host(vn_port->host);
1987 * Only try to release the exchange manager if the vn_port
1990 if (vn_port->state == LPORT_ST_READY)
1991 fc_exch_mgr_free(vn_port);
1994 fc_lport_free_stats(vn_port);
1997 scsi_host_put(vn_port->host);
2470 struct fc_lport *vn_port;
2556 vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id));
2563 if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) {