Lines Matching refs:sha
3256 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; in hisi_sas_shost_alloc_pci()
4765 struct sas_ha_struct *sha; in hisi_sas_v3_probe() local
4793 sha = SHOST_TO_SAS_HA(shost); in hisi_sas_v3_probe()
4795 dev_set_drvdata(dev, sha); in hisi_sas_v3_probe()
4813 sha->sas_phy = arr_phy; in hisi_sas_v3_probe()
4814 sha->sas_port = arr_port; in hisi_sas_v3_probe()
4815 sha->core.shost = shost; in hisi_sas_v3_probe()
4816 sha->lldd_ha = hisi_hba; in hisi_sas_v3_probe()
4826 sha->sas_ha_name = DRV_NAME; in hisi_sas_v3_probe()
4827 sha->dev = dev; in hisi_sas_v3_probe()
4828 sha->lldd_module = THIS_MODULE; in hisi_sas_v3_probe()
4829 sha->sas_addr = &hisi_hba->sas_addr[0]; in hisi_sas_v3_probe()
4830 sha->num_phys = hisi_hba->n_phy; in hisi_sas_v3_probe()
4833 sha->sas_phy[i] = &hisi_hba->phy[i].sas_phy; in hisi_sas_v3_probe()
4834 sha->sas_port[i] = &hisi_hba->port[i].sas_port; in hisi_sas_v3_probe()
4857 rc = sas_register_ha(sha); in hisi_sas_v3_probe()
4881 sas_unregister_ha(sha); in hisi_sas_v3_probe()
4912 struct sas_ha_struct *sha = dev_get_drvdata(dev); in hisi_sas_v3_remove() local
4913 struct hisi_hba *hisi_hba = sha->lldd_ha; in hisi_sas_v3_remove()
4914 struct Scsi_Host *shost = sha->core.shost; in hisi_sas_v3_remove()
4920 sas_unregister_ha(sha); in hisi_sas_v3_remove()
4922 sas_remove_host(sha->core.shost); in hisi_sas_v3_remove()
4932 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in hisi_sas_reset_prepare_v3_hw() local
4933 struct hisi_hba *hisi_hba = sha->lldd_ha; in hisi_sas_reset_prepare_v3_hw()
4949 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in hisi_sas_reset_done_v3_hw() local
4950 struct hisi_hba *hisi_hba = sha->lldd_ha; in hisi_sas_reset_done_v3_hw()
4979 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in _suspend_v3_hw() local
4980 struct hisi_hba *hisi_hba = sha->lldd_ha; in _suspend_v3_hw()
5012 sas_suspend_ha(sha); in _suspend_v3_hw()
5019 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in _resume_v3_hw() local
5020 struct hisi_hba *hisi_hba = sha->lldd_ha; in _resume_v3_hw()
5032 sas_prep_resume_ha(sha); in _resume_v3_hw()
5039 sas_resume_ha(sha); in _resume_v3_hw()
5048 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in suspend_v3_hw() local
5049 struct hisi_hba *hisi_hba = sha->lldd_ha; in suspend_v3_hw()
5064 struct sas_ha_struct *sha = pci_get_drvdata(pdev); in resume_v3_hw() local
5065 struct hisi_hba *hisi_hba = sha->lldd_ha; in resume_v3_hw()