Lines Matching defs:host
388 spin_lock_irq(hba->host->host_lock);
390 spin_unlock_irq(hba->host->host_lock);
579 hba->host->host_no);
595 hba->host->host_no);
605 hba->host->host_no);
839 spin_lock_irqsave(hba->host->host_lock, flags);
841 spin_unlock_irqrestore(hba->host->host_lock, flags);
848 struct Scsi_Host *host = scp->device->host;
849 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
998 struct Scsi_Host *host = scp->device->host;
999 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1015 host->host_no, scp->device->channel,
1061 static const char *hptiop_info(struct Scsi_Host *host)
1078 printk(KERN_ERR "scsi%d: reset failed\n", hba->host->host_no);
1085 hba->host->host_no);
1093 struct hptiop_hba * hba = (struct hptiop_hba *)scp->device->host->hostdata;
1096 scp->device->host->host_no, -1, -1);
1104 struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata;
1120 struct Scsi_Host *host = class_to_shost(dev);
1121 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1274 struct Scsi_Host *host = NULL;
1314 host = scsi_host_alloc(&driver_template, sizeof(struct hptiop_hba));
1315 if (!host) {
1316 printk(KERN_ERR "hptiop: fail to alloc scsi host\n");
1320 hba = (struct hptiop_hba *)host->hostdata;
1325 hba->host = host;
1335 host->max_lun = 128;
1336 host->max_channel = 0;
1337 host->io_port = 0;
1338 host->n_io_port = 0;
1339 host->irq = pcidev->irq;
1346 hba->host->host_no);
1353 hba->host->host_no);
1360 hba->host->host_no);
1376 hba->host->host_no);
1381 hba->host->host_no);
1390 host->max_sectors = le32_to_cpu(iop_config.data_transfer_length) >> 9;
1391 host->max_id = le32_to_cpu(iop_config.max_devices);
1392 host->sg_tablesize = le32_to_cpu(iop_config.max_sg_count);
1393 host->can_queue = le32_to_cpu(iop_config.max_requests);
1394 host->cmd_per_lun = le32_to_cpu(iop_config.max_requests);
1395 host->max_cmd_len = 16;
1403 set_config.iop_id = cpu_to_le32(host->host_no);
1404 set_config.vbus_id = cpu_to_le16(host->host_no);
1409 hba->host->host_no);
1413 pci_set_drvdata(pcidev, host);
1418 hba->host->host_no, pcidev->irq);
1436 hba->host->host_no);
1460 if (scsi_add_host(host, &pcidev->dev)) {
1462 hba->host->host_no);
1466 scsi_scan_host(host);
1468 dprintk("scsi%d: hptiop_probe successfully\n", hba->host->host_no);
1490 scsi_host_put(host);
1498 dprintk("scsi%d: hptiop_probe fail\n", host ? host->host_no : 0);
1504 struct Scsi_Host *host = pci_get_drvdata(pcidev);
1505 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1512 hba->host->host_no);
1547 struct Scsi_Host *host = pci_get_drvdata(pcidev);
1548 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1551 dprintk("scsi%d: hptiop_remove\n", hba->host->host_no);
1553 scsi_remove_host(host);
1577 scsi_host_put(host);