Lines Matching refs:shost
137 sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata; in pm8001_phy_init()
163 if (pm8001_ha->shost) in pm8001_free()
164 scsi_host_put(pm8001_ha->shost); in pm8001_free()
455 struct Scsi_Host *shost) in pm8001_pci_alloc() argument
459 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_pci_alloc()
472 pm8001_ha->shost = shost; in pm8001_pci_alloc()
541 static int pm8001_prep_sas_ha_init(struct Scsi_Host *shost, in pm8001_prep_sas_ha_init() argument
547 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_prep_sas_ha_init()
565 shost->transportt = pm8001_stt; in pm8001_prep_sas_ha_init()
566 shost->max_id = PM8001_MAX_DEVICES; in pm8001_prep_sas_ha_init()
567 shost->max_lun = 8; in pm8001_prep_sas_ha_init()
568 shost->max_channel = 0; in pm8001_prep_sas_ha_init()
569 shost->unique_id = pm8001_id; in pm8001_prep_sas_ha_init()
570 shost->max_cmd_len = 16; in pm8001_prep_sas_ha_init()
571 shost->can_queue = PM8001_CAN_QUEUE; in pm8001_prep_sas_ha_init()
572 shost->cmd_per_lun = 32; in pm8001_prep_sas_ha_init()
587 static void pm8001_post_sas_ha_init(struct Scsi_Host *shost, in pm8001_post_sas_ha_init() argument
592 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_post_sas_ha_init()
605 sha->core.shost = shost; in pm8001_post_sas_ha_init()
968 DRV_NAME, SHOST_TO_SAS_HA(pm8001_ha->shost)); in pm8001_request_irq()
988 struct Scsi_Host *shost = NULL; in pm8001_pci_probe() local
1012 shost = scsi_host_alloc(&pm8001_sht, sizeof(void *)); in pm8001_pci_probe()
1013 if (!shost) { in pm8001_pci_probe()
1018 SHOST_TO_SAS_HA(shost) = in pm8001_pci_probe()
1020 if (!SHOST_TO_SAS_HA(shost)) { in pm8001_pci_probe()
1025 rc = pm8001_prep_sas_ha_init(shost, chip); in pm8001_pci_probe()
1030 pci_set_drvdata(pdev, SHOST_TO_SAS_HA(shost)); in pm8001_pci_probe()
1032 pm8001_ha = pm8001_pci_alloc(pdev, ent, shost); in pm8001_pci_probe()
1046 rc = scsi_add_host(shost, &pdev->dev); in pm8001_pci_probe()
1069 pm8001_post_sas_ha_init(shost, chip); in pm8001_pci_probe()
1070 rc = sas_register_ha(SHOST_TO_SAS_HA(shost)); in pm8001_pci_probe()
1073 scsi_scan_host(pm8001_ha->shost); in pm8001_pci_probe()
1077 scsi_remove_host(pm8001_ha->shost); in pm8001_pci_probe()
1081 kfree(SHOST_TO_SAS_HA(shost)); in pm8001_pci_probe()
1083 kfree(shost); in pm8001_pci_probe()
1098 scsi_remove_host(pm8001_ha->shost); in pm8001_pci_remove()
1100 sas_remove_host(pm8001_ha->shost); in pm8001_pci_remove()
1148 scsi_block_requests(pm8001_ha->shost); in pm8001_pci_suspend()
1274 scsi_remove_host(pm8001_ha->shost); in pm8001_pci_resume()