Lines Matching defs:sh
1125 struct Scsi_Host *shost = ioc->sh;
1156 scsi_scan_target(&ioc->sh->shost_gendev, 1, disk, 0, 1);
1166 shost_printk(KERN_ERR, ioc->sh, MYIOC_s_FMT
1182 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
1279 shost_for_each_device(sdev, ioc->sh) {
1290 shost_for_each_device(sdev, ioc->sh)
1322 * if we get an ioc fault on bringup, ioc->sh will be NULL */
1324 ioc->sh) {
1325 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
1341 struct _MPT_SCSI_HOST *hd = shost_priv(ioc->sh);
1363 struct Scsi_Host *sh;
1415 sh = scsi_host_alloc(&mptspi_driver_template, sizeof(MPT_SCSI_HOST));
1417 if (!sh) {
1429 ioc->sh = sh;
1431 sh->io_port = 0;
1432 sh->n_io_port = 0;
1433 sh->irq = 0;
1436 sh->max_cmd_len = 16;
1448 sh->max_id = ioc->devices_per_bus;
1450 sh->max_lun = MPT_LAST_LUN + 1;
1455 sh->max_channel = 1;
1457 sh->max_channel = 0;
1458 sh->this_id = ioc->pfacts[0].PortSCSIID;
1462 sh->unique_id = ioc->id;
1484 if (numSGE < sh->sg_tablesize) {
1488 ioc->name, numSGE, sh->sg_tablesize));
1489 sh->sg_tablesize = numSGE;
1494 hd = shost_priv(sh);
1523 sh->transportt = mptspi_transport_template;
1525 error = scsi_add_host (sh, &ioc->pcidev->dev);
1540 scsi_scan_host(sh);