Lines Matching refs:lp

173 	struct fc_lport *lp = shost_priv(shost);  in fnic_get_host_speed()  local
174 struct fnic *fnic = lport_priv(lp); in fnic_get_host_speed()
191 struct fc_lport *lp = shost_priv(host); in fnic_get_stats() local
192 struct fnic *fnic = lport_priv(lp); in fnic_get_stats()
193 struct fc_host_statistics *stats = &lp->host_stats; in fnic_get_stats()
304 struct fc_lport *lp = shost_priv(host); in fnic_reset_host_stats() local
305 struct fnic *fnic = lport_priv(lp); in fnic_reset_host_stats()
545 struct fc_lport *lp; in fnic_probe() local
556 lp = libfc_host_alloc(&fnic_host_template, sizeof(struct fnic)); in fnic_probe()
557 if (!lp) { in fnic_probe()
562 host = lp->host; in fnic_probe()
563 fnic = lport_priv(lp); in fnic_probe()
564 fnic->lport = lp; in fnic_probe()
565 fnic->ctlr.lp = lp; in fnic_probe()
827 err = scsi_add_host(lp->host, &pdev->dev); in fnic_probe()
836 lp->link_up = 0; in fnic_probe()
838 lp->max_retry_count = fnic->config.flogi_retries; in fnic_probe()
839 lp->max_rport_retry_count = fnic->config.plogi_retries; in fnic_probe()
840 lp->service_params = (FCP_SPPF_INIT_FCN | FCP_SPPF_RD_XRDY_DIS | in fnic_probe()
843 lp->service_params |= FCP_SPPF_RETRY; in fnic_probe()
845 lp->boot_time = jiffies; in fnic_probe()
846 lp->e_d_tov = fnic->config.ed_tov; in fnic_probe()
847 lp->r_a_tov = fnic->config.ra_tov; in fnic_probe()
848 lp->link_supported_speeds = FC_PORTSPEED_10GBIT; in fnic_probe()
849 fc_set_wwnn(lp, fnic->config.node_wwn); in fnic_probe()
850 fc_set_wwpn(lp, fnic->config.port_wwn); in fnic_probe()
852 fcoe_libfc_config(lp, &fnic->ctlr, &fnic_transport_template, 0); in fnic_probe()
854 if (!fc_exch_mgr_alloc(lp, FC_CLASS_3, FCPIO_HOST_EXCH_RANGE_START, in fnic_probe()
860 fc_lport_init_stats(lp); in fnic_probe()
863 fc_lport_config(lp); in fnic_probe()
865 if (fc_set_mfs(lp, fnic->config.maxdatafieldsize + in fnic_probe()
870 fc_host_maxframe_size(lp->host) = lp->mfs; in fnic_probe()
871 fc_host_dev_loss_tmo(lp->host) = fnic->config.port_down_timeout / 1000; in fnic_probe()
873 sprintf(fc_host_symbolic_name(lp->host), in fnic_probe()
893 fc_fabric_login(lp); in fnic_probe()
912 fc_exch_mgr_free(lp); in fnic_probe()
914 fc_remove_host(lp->host); in fnic_probe()
915 scsi_remove_host(lp->host); in fnic_probe()
942 scsi_host_put(lp->host); in fnic_probe()
950 struct fc_lport *lp = fnic->lport; in fnic_remove() local
993 fc_lport_destroy(lp); in fnic_remove()
1022 scsi_host_put(lp->host); in fnic_remove()