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) {
1819 struct fc_lport *vn_port;
1840 vn_port = libfc_vport_create(vport, sizeof(struct qedf_ctx));
1841 if (!vn_port) {
1852 vport_qedf = lport_priv(vn_port);
1856 vport_qedf->lport = vn_port;
1865 rc = qedf_vport_libfc_config(vport, vn_port);
1872 fc_set_wwnn(vn_port, vport->node_name);
1873 fc_set_wwpn(vn_port, vport->port_name);
1874 vport_qedf->wwnn = vn_port->wwnn;
1875 vport_qedf->wwpn = vn_port->wwpn;
1877 vn_port->host->transportt = qedf_fc_vport_transport_template;
1878 vn_port->host->can_queue = FCOE_PARAMS_NUM_TASKS;
1879 vn_port->host->max_lun = qedf_max_lun;
1880 vn_port->host->sg_tablesize = QEDF_MAX_BDS_PER_CMD;
1881 vn_port->host->max_cmd_len = QEDF_MAX_CDB_LEN;
1883 rc = scsi_add_host(vn_port->host, &vport->dev);
1891 fc_host_dev_loss_tmo(vn_port->host) = qedf_dev_loss_tmo;
1894 memcpy(&vn_port->tt, &qedf_lport_template,
1896 fc_exch_init(vn_port);
1897 fc_elsct_init(vn_port);
1898 fc_lport_init(vn_port);
1899 fc_disc_init(vn_port);
1900 fc_disc_config(vn_port, vn_port);
1906 fc_exch_mgr_list_clone(n_port, vn_port);
1909 fc_set_mfs(vn_port, QEDF_MFS);
1911 fc_host_port_type(vn_port->host) = FC_PORTTYPE_UNKNOWN;
1916 vn_port->boot_time = jiffies;
1917 fc_fabric_login(vn_port);
1918 fc_vport_setlink(vn_port);
1923 snprintf(fc_host_symbolic_name(vn_port->host), 256,
1927 snprintf(fc_host_symbolic_name(vn_port->host), 256,
1931 fc_host_supported_speeds(vn_port->host) = n_port->link_supported_speeds;
1934 vn_port->link_speed = n_port->link_speed;
1937 fc_host_port_type(vn_port->host) = FC_PORTTYPE_NPIV;
1940 fc_host_maxframe_size(vn_port->host) = n_port->mfs;
1942 QEDF_INFO(&(base_qedf->dbg_ctx), QEDF_LOG_NPIV, "vn_port=%p.\n",
1943 vn_port);
1946 vport_qedf->dbg_ctx.host_no = vn_port->host->host_no;
1952 scsi_host_put(vn_port->host);
1960 struct fc_lport *vn_port = vport->dd_data;
1961 struct qedf_ctx *qedf = lport_priv(vn_port);
1972 list_del(&vn_port->list);
1975 fc_fabric_logoff(vn_port);
1976 fc_lport_destroy(vn_port);
1979 fc_remove_host(vn_port->host);
1980 scsi_remove_host(vn_port->host);
1983 * Only try to release the exchange manager if the vn_port
1986 if (vn_port->state == LPORT_ST_READY)
1987 fc_exch_mgr_free(vn_port);
1990 fc_lport_free_stats(vn_port);
1993 scsi_host_put(vn_port->host);
2468 struct fc_lport *vn_port;
2554 vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id));
2561 if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) {