Lines Matching refs:shost
254 static int aac_queuecommand(struct Scsi_Host *shost, in aac_queuecommand() argument
270 static const char *aac_info(struct Scsi_Host *shost) in aac_info() argument
272 struct aac_dev *dev = (struct aac_dev *)shost->hostdata; in aac_info()
1127 struct Scsi_Host *shost; in aac_probe_one() local
1165 shost = scsi_host_alloc(&aac_driver_template, sizeof(struct aac_dev)); in aac_probe_one()
1166 if (!shost) in aac_probe_one()
1169 shost->irq = pdev->irq; in aac_probe_one()
1170 shost->unique_id = unique_id; in aac_probe_one()
1171 shost->max_cmd_len = 16; in aac_probe_one()
1172 shost->use_cmd_list = 1; in aac_probe_one()
1174 aac = (struct aac_dev *)shost->hostdata; in aac_probe_one()
1176 aac->scsi_host_ptr = shost; in aac_probe_one()
1179 aac->id = shost->unique_id; in aac_probe_one()
1183 aac->fibs = kzalloc(sizeof(struct fib) * (shost->can_queue + AAC_NUM_MGT_FIB), GFP_KERNEL); in aac_probe_one()
1239 (shost->sg_tablesize > 34)) { in aac_probe_one()
1240 shost->sg_tablesize = 34; in aac_probe_one()
1241 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1245 (shost->sg_tablesize > 17)) { in aac_probe_one()
1246 shost->sg_tablesize = 17; in aac_probe_one()
1247 shost->max_sectors = (shost->sg_tablesize * 8) + 112; in aac_probe_one()
1252 (shost->max_sectors << 9) : 65536); in aac_probe_one()
1270 shost->max_channel = aac->maximum_num_channels; in aac_probe_one()
1272 shost->max_channel = 0; in aac_probe_one()
1278 shost->max_id = aac->maximum_num_containers; in aac_probe_one()
1279 if (shost->max_id < aac->maximum_num_physicals) in aac_probe_one()
1280 shost->max_id = aac->maximum_num_physicals; in aac_probe_one()
1281 if (shost->max_id < MAXIMUM_NUM_CONTAINERS) in aac_probe_one()
1282 shost->max_id = MAXIMUM_NUM_CONTAINERS; in aac_probe_one()
1284 shost->this_id = shost->max_id; in aac_probe_one()
1290 shost->max_lun = AAC_MAX_LUN; in aac_probe_one()
1292 pci_set_drvdata(pdev, shost); in aac_probe_one()
1294 error = scsi_add_host(shost, &pdev->dev); in aac_probe_one()
1297 scsi_scan_host(shost); in aac_probe_one()
1313 scsi_host_put(shost); in aac_probe_one()
1428 struct Scsi_Host *shost = pci_get_drvdata(pdev); in aac_suspend() local
1429 struct aac_dev *aac = (struct aac_dev *)shost->hostdata; in aac_suspend()
1431 scsi_block_requests(shost); in aac_suspend()
1436 pci_set_drvdata(pdev, shost); in aac_suspend()
1446 struct Scsi_Host *shost = pci_get_drvdata(pdev); in aac_resume() local
1447 struct aac_dev *aac = (struct aac_dev *)shost->hostdata; in aac_resume()
1466 scsi_unblock_requests(shost); in aac_resume()
1472 scsi_host_put(shost); in aac_resume()
1480 struct Scsi_Host *shost = pci_get_drvdata(dev); in aac_shutdown() local
1481 scsi_block_requests(shost); in aac_shutdown()
1482 __aac_shutdown((struct aac_dev *)shost->hostdata); in aac_shutdown()
1487 struct Scsi_Host *shost = pci_get_drvdata(pdev); in aac_remove_one() local
1488 struct aac_dev *aac = (struct aac_dev *)shost->hostdata; in aac_remove_one()
1490 scsi_remove_host(shost); in aac_remove_one()
1504 scsi_host_put(shost); in aac_remove_one()