Lines Matching defs:shost
232 * @shost: Scsi host to queue command on
240 static int aac_queuecommand(struct Scsi_Host *shost,
250 * @shost: Scsi host to report on
255 static const char *aac_info(struct Scsi_Host *shost)
257 struct aac_dev *dev = (struct aac_dev *)shost->hostdata;
662 struct Scsi_Host *shost = aac->scsi_host_ptr;
666 scsi_host_busy_iter(shost, fib_count_iter, &fcnt);
1579 struct Scsi_Host *shost;
1637 shost = scsi_host_alloc(&aac_driver_template, sizeof(struct aac_dev));
1638 if (!shost) {
1643 shost->irq = pdev->irq;
1644 shost->unique_id = unique_id;
1645 shost->max_cmd_len = 16;
1650 aac = (struct aac_dev *)shost->hostdata;
1652 aac->scsi_host_ptr = shost;
1655 aac->id = shost->unique_id;
1662 aac->fibs = kcalloc(shost->can_queue + AAC_NUM_MGT_FIB,
1722 (shost->sg_tablesize > 34)) {
1723 shost->sg_tablesize = 34;
1724 shost->max_sectors = (shost->sg_tablesize * 8) + 112;
1728 (shost->sg_tablesize > 17)) {
1729 shost->sg_tablesize = 17;
1730 shost->max_sectors = (shost->sg_tablesize * 8) + 112;
1734 shost->max_segment_size = shost->max_sectors << 9;
1736 shost->max_segment_size = 65536;
1752 shost->max_channel = aac->maximum_num_channels;
1754 shost->max_channel = 0;
1760 shost->max_id = aac->maximum_num_containers;
1761 if (shost->max_id < aac->maximum_num_physicals)
1762 shost->max_id = aac->maximum_num_physicals;
1763 if (shost->max_id < MAXIMUM_NUM_CONTAINERS)
1764 shost->max_id = MAXIMUM_NUM_CONTAINERS;
1766 shost->this_id = shost->max_id;
1775 shost->max_lun = AAC_MAX_LUN;
1777 pci_set_drvdata(pdev, shost);
1779 error = scsi_add_host(shost, &pdev->dev);
1801 scsi_host_put(shost);
1861 struct Scsi_Host *shost = dev_get_drvdata(dev);
1862 struct aac_dev *aac = (struct aac_dev *)shost->hostdata;
1864 scsi_host_block(shost);
1875 struct Scsi_Host *shost = dev_get_drvdata(dev);
1876 struct aac_dev *aac = (struct aac_dev *)shost->hostdata;
1885 scsi_host_unblock(shost, SDEV_RUNNING);
1891 scsi_host_put(shost);
1897 struct Scsi_Host *shost = pci_get_drvdata(dev);
1899 scsi_host_block(shost);
1900 __aac_shutdown((struct aac_dev *)shost->hostdata);
1905 struct Scsi_Host *shost = pci_get_drvdata(pdev);
1906 struct aac_dev *aac = (struct aac_dev *)shost->hostdata;
1909 scsi_remove_host(shost);
1923 scsi_host_put(shost);
1934 struct Scsi_Host *shost = pci_get_drvdata(pdev);
1935 struct aac_dev *aac = shost_priv(shost);
1945 scsi_host_block(shost);
1947 scsi_host_complete_all_commands(shost, DID_NO_CONNECT);
1956 scsi_host_complete_all_commands(shost, DID_NO_CONNECT);
1996 struct Scsi_Host *shost = pci_get_drvdata(pdev);
1997 struct aac_dev *aac = (struct aac_dev *)shost_priv(shost);
2023 scsi_host_unblock(shost, SDEV_RUNNING);