Lines Matching defs:shost

420 	struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
476 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
477 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
478 fc_host_max_npiv_vports(shost) = phba->max_vpi;
1755 struct Scsi_Host *shost;
1759 shost = lpfc_shost_from_vport(phba->pport);
1760 fc_host_post_vendor_event(shost, fc_get_event_number(),
1784 struct Scsi_Host *shost;
1857 shost = lpfc_shost_from_vport(phba->pport);
1858 fc_host_post_vendor_event(shost, fc_get_event_number(),
1881 shost = lpfc_shost_from_vport(vport);
1882 fc_host_post_vendor_event(shost, fc_get_event_number(),
1982 struct Scsi_Host *shost;
2094 shost = lpfc_shost_from_vport(phba->pport);
2095 fc_host_post_vendor_event(shost, fc_get_event_number(),
2152 shost = lpfc_shost_from_vport(vport);
2153 fc_host_post_vendor_event(shost, fc_get_event_number(),
3791 struct Scsi_Host *shost;
3812 shost = lpfc_shost_from_vport(vports[i]);
3813 spin_lock_irq(shost->host_lock);
3815 spin_unlock_irq(shost->host_lock);
3896 struct Scsi_Host *shost;
3928 shost = lpfc_shost_from_vport(vports[i]);
3929 spin_lock_irq(shost->host_lock);
3931 spin_unlock_irq(shost->host_lock);
4683 * by the HBA. This routine also allocates a SCSI host data structure (shost)
4684 * and associates the FC port created before adding the shost into the SCSI
4695 struct Scsi_Host *shost = NULL;
4750 shost = scsi_host_alloc(template, sizeof(struct lpfc_vport));
4751 if (!shost)
4754 vport = (struct lpfc_vport *) shost->hostdata;
4772 shost->unique_id = instance;
4773 shost->max_id = LPFC_MAX_TARGET;
4774 shost->max_lun = vport->cfg_max_luns;
4775 shost->this_id = -1;
4777 shost->max_cmd_len = LPFC_FCP_CDB_LEN_32;
4779 shost->max_cmd_len = LPFC_FCP_CDB_LEN;
4786 shost->nr_hw_queues = min_t(int, 2 * num_possible_nodes(),
4789 shost->dma_boundary =
4795 shost->nr_hw_queues = 1;
4802 shost->can_queue = phba->cfg_hba_queue_depth - 10;
4804 shost->transportt = lpfc_vport_transport_template;
4807 shost->transportt = lpfc_transport_template;
4814 vport->port_type, shost->sg_tablesize,
4836 lpfc_setup_bg(phba, shost);
4838 error = scsi_add_host_with_dma(shost, dev, &phba->pcidev->dev);
4851 scsi_host_put(shost);
4866 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
4870 fc_remove_host(shost);
4871 scsi_remove_host(shost);
4902 * @shost: pointer to SCSI host data structure.
4915 int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
4917 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
4921 spin_lock_irq(shost->host_lock);
4956 spin_unlock_irq(shost->host_lock);
4960 static void lpfc_host_supported_speeds_set(struct Scsi_Host *shost)
4962 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
4965 fc_host_supported_speeds(shost) = 0;
4974 fc_host_supported_speeds(shost) |= FC_PORTSPEED_256GBIT;
4976 fc_host_supported_speeds(shost) |= FC_PORTSPEED_128GBIT;
4978 fc_host_supported_speeds(shost) |= FC_PORTSPEED_64GBIT;
4980 fc_host_supported_speeds(shost) |= FC_PORTSPEED_32GBIT;
4982 fc_host_supported_speeds(shost) |= FC_PORTSPEED_16GBIT;
4984 fc_host_supported_speeds(shost) |= FC_PORTSPEED_10GBIT;
4986 fc_host_supported_speeds(shost) |= FC_PORTSPEED_8GBIT;
4988 fc_host_supported_speeds(shost) |= FC_PORTSPEED_4GBIT;
4990 fc_host_supported_speeds(shost) |= FC_PORTSPEED_2GBIT;
4992 fc_host_supported_speeds(shost) |= FC_PORTSPEED_1GBIT;
4997 * @shost: pointer to SCSI host data structure.
5002 void lpfc_host_attrib_init(struct Scsi_Host *shost)
5004 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
5010 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
5011 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
5012 fc_host_supported_classes(shost) = FC_COS_CLASS3;
5014 memset(fc_host_supported_fc4s(shost), 0,
5015 sizeof(fc_host_supported_fc4s(shost)));
5016 fc_host_supported_fc4s(shost)[2] = 1;
5017 fc_host_supported_fc4s(shost)[7] = 1;
5019 lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
5020 sizeof fc_host_symbolic_name(shost));
5022 lpfc_host_supported_speeds_set(shost);
5024 fc_host_maxframe_size(shost) =
5028 fc_host_dev_loss_tmo(shost) = vport->cfg_devloss_tmo;
5031 memset(fc_host_active_fc4s(shost), 0,
5032 sizeof(fc_host_active_fc4s(shost)));
5033 fc_host_active_fc4s(shost)[2] = 1;
5034 fc_host_active_fc4s(shost)[7] = 1;
5036 fc_host_max_npiv_vports(shost) = phba->max_vpi;
6411 struct Scsi_Host *shost;
6438 shost = lpfc_shost_from_vport(phba->pport);
6439 fc_host_post_vendor_event(shost, fc_get_event_number(),
6454 shost = lpfc_shost_from_vport(phba->pport);
6455 fc_host_post_vendor_event(shost, fc_get_event_number(),
6559 shost = lpfc_shost_from_vport(vports[i]);
6560 lpfc_host_supported_speeds_set(shost);
6664 struct Scsi_Host *shost;
6690 shost = lpfc_shost_from_vport(vport);
6691 if (!shost)
9116 struct Scsi_Host *shost;
9129 shost = lpfc_shost_from_vport(vport);
9142 pci_set_drvdata(phba->pcidev, shost);
9174 * @shost: the shost to be used to detect Block guard settings.
9176 * This routine sets up the local Block guard protocol settings for @shost.
9180 lpfc_setup_bg(struct lpfc_hba *phba, struct Scsi_Host *shost)
9213 scsi_host_set_prot(shost, phba->cfg_prot_mask);
9214 scsi_host_set_guard(shost, phba->cfg_prot_guard);
9233 struct Scsi_Host *shost;
9243 shost = pci_get_drvdata(phba->pcidev);
9244 shost->can_queue = phba->cfg_hba_queue_depth - 10;
9246 lpfc_host_attrib_init(shost);
9249 spin_lock_irq(shost->host_lock);
9251 spin_unlock_irq(shost->host_lock);
9259 fc_host_post_vendor_event(shost, fc_get_event_number(),
13942 struct Scsi_Host *shost = NULL;
14014 shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */
14081 if (shost)
14082 scsi_host_put(shost);
14100 struct Scsi_Host *shost = pci_get_drvdata(pdev);
14101 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
14121 fc_remove_host(shost);
14122 scsi_remove_host(shost);
14157 scsi_host_put(shost);
14208 struct Scsi_Host *shost = dev_get_drvdata(dev_d);
14209 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
14247 struct Scsi_Host *shost = dev_get_drvdata(dev_d);
14248 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
14385 struct Scsi_Host *shost = pci_get_drvdata(pdev);
14386 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
14431 struct Scsi_Host *shost = pci_get_drvdata(pdev);
14432 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
14492 struct Scsi_Host *shost = pci_get_drvdata(pdev);
14493 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
14762 struct Scsi_Host *shost = NULL;
14853 shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */
14924 if (shost)
14925 scsi_host_put(shost);
14943 struct Scsi_Host *shost = pci_get_drvdata(pdev);
14944 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
14967 fc_remove_host(shost);
14968 scsi_remove_host(shost);
15007 scsi_host_put(shost);
15039 struct Scsi_Host *shost = dev_get_drvdata(dev_d);
15040 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15079 struct Scsi_Host *shost = dev_get_drvdata(dev_d);
15080 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15215 struct Scsi_Host *shost = pci_get_drvdata(pdev);
15216 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15272 struct Scsi_Host *shost = pci_get_drvdata(pdev);
15273 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15336 struct Scsi_Host *shost = pci_get_drvdata(pdev);
15337 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15402 struct Scsi_Host *shost = pci_get_drvdata(pdev);
15403 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15437 struct Scsi_Host *shost = dev_get_drvdata(dev);
15438 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15473 struct Scsi_Host *shost = dev_get_drvdata(dev);
15474 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15511 struct Scsi_Host *shost = pci_get_drvdata(pdev);
15512 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15552 struct Scsi_Host *shost = pci_get_drvdata(pdev);
15553 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;
15585 struct Scsi_Host *shost = pci_get_drvdata(pdev);
15586 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba;