Lines Matching refs:shost

136 	sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata;  in pm8001_phy_init()
162 if (pm8001_ha->shost) in pm8001_free()
163 scsi_host_put(pm8001_ha->shost); in pm8001_free()
454 struct Scsi_Host *shost) in pm8001_pci_alloc() argument
458 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_pci_alloc()
471 pm8001_ha->shost = shost; in pm8001_pci_alloc()
539 static int pm8001_prep_sas_ha_init(struct Scsi_Host *shost, in pm8001_prep_sas_ha_init() argument
545 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_prep_sas_ha_init()
563 shost->transportt = pm8001_stt; in pm8001_prep_sas_ha_init()
564 shost->max_id = PM8001_MAX_DEVICES; in pm8001_prep_sas_ha_init()
565 shost->max_lun = 8; in pm8001_prep_sas_ha_init()
566 shost->max_channel = 0; in pm8001_prep_sas_ha_init()
567 shost->unique_id = pm8001_id; in pm8001_prep_sas_ha_init()
568 shost->max_cmd_len = 16; in pm8001_prep_sas_ha_init()
569 shost->can_queue = PM8001_CAN_QUEUE; in pm8001_prep_sas_ha_init()
570 shost->cmd_per_lun = 32; in pm8001_prep_sas_ha_init()
585 static void pm8001_post_sas_ha_init(struct Scsi_Host *shost, in pm8001_post_sas_ha_init() argument
590 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_post_sas_ha_init()
603 sha->core.shost = shost; in pm8001_post_sas_ha_init()
807 DRV_NAME, SHOST_TO_SAS_HA(pm8001_ha->shost)); in pm8001_request_irq()
827 struct Scsi_Host *shost = NULL; in pm8001_pci_probe() local
851 shost = scsi_host_alloc(&pm8001_sht, sizeof(void *)); in pm8001_pci_probe()
852 if (!shost) { in pm8001_pci_probe()
857 SHOST_TO_SAS_HA(shost) = in pm8001_pci_probe()
859 if (!SHOST_TO_SAS_HA(shost)) { in pm8001_pci_probe()
864 rc = pm8001_prep_sas_ha_init(shost, chip); in pm8001_pci_probe()
869 pci_set_drvdata(pdev, SHOST_TO_SAS_HA(shost)); in pm8001_pci_probe()
871 pm8001_ha = pm8001_pci_alloc(pdev, ent, shost); in pm8001_pci_probe()
885 rc = scsi_add_host(shost, &pdev->dev); in pm8001_pci_probe()
911 pm8001_post_sas_ha_init(shost, chip); in pm8001_pci_probe()
912 rc = sas_register_ha(SHOST_TO_SAS_HA(shost)); in pm8001_pci_probe()
915 scsi_scan_host(pm8001_ha->shost); in pm8001_pci_probe()
919 scsi_remove_host(pm8001_ha->shost); in pm8001_pci_probe()
923 kfree(SHOST_TO_SAS_HA(shost)); in pm8001_pci_probe()
925 kfree(shost); in pm8001_pci_probe()
941 sas_remove_host(pm8001_ha->shost); in pm8001_pci_remove()
943 scsi_remove_host(pm8001_ha->shost); in pm8001_pci_remove()
989 scsi_block_requests(pm8001_ha->shost); in pm8001_pci_suspend()
1100 scsi_remove_host(pm8001_ha->shost); in pm8001_pci_resume()