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);
840 spin_lock_irqsave(hba->host->host_lock, flags);
842 spin_unlock_irqrestore(hba->host->host_lock, flags);
849 struct Scsi_Host *host = scp->device->host;
850 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1000 struct Scsi_Host *host = scp->device->host;
1001 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1020 host->host_no, scp->device->channel,
1069 static const char *hptiop_info(struct Scsi_Host *host)
1086 printk(KERN_ERR "scsi%d: reset failed\n", hba->host->host_no);
1093 hba->host->host_no);
1101 struct hptiop_hba * hba = (struct hptiop_hba *)scp->device->host->hostdata;
1104 scp->device->host->host_no, -1, -1);
1112 struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata;
1128 struct Scsi_Host *host = class_to_shost(dev);
1129 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1279 struct Scsi_Host *host = NULL;
1319 host = scsi_host_alloc(&driver_template, sizeof(struct hptiop_hba));
1320 if (!host) {
1321 printk(KERN_ERR "hptiop: fail to alloc scsi host\n");
1325 hba = (struct hptiop_hba *)host->hostdata;
1330 hba->host = host;
1340 host->max_lun = 128;
1341 host->max_channel = 0;
1342 host->io_port = 0;
1343 host->n_io_port = 0;
1344 host->irq = pcidev->irq;
1351 hba->host->host_no);
1358 hba->host->host_no);
1365 hba->host->host_no);
1381 hba->host->host_no);
1386 hba->host->host_no);
1395 host->max_sectors = le32_to_cpu(iop_config.data_transfer_length) >> 9;
1396 host->max_id = le32_to_cpu(iop_config.max_devices);
1397 host->sg_tablesize = le32_to_cpu(iop_config.max_sg_count);
1398 host->can_queue = le32_to_cpu(iop_config.max_requests);
1399 host->cmd_per_lun = le32_to_cpu(iop_config.max_requests);
1400 host->max_cmd_len = 16;
1408 set_config.iop_id = cpu_to_le32(host->host_no);
1409 set_config.vbus_id = cpu_to_le16(host->host_no);
1414 hba->host->host_no);
1418 pci_set_drvdata(pcidev, host);
1423 hba->host->host_no, pcidev->irq);
1441 hba->host->host_no);
1465 if (scsi_add_host(host, &pcidev->dev)) {
1467 hba->host->host_no);
1471 scsi_scan_host(host);
1473 dprintk("scsi%d: hptiop_probe successfully\n", hba->host->host_no);
1495 scsi_host_put(host);
1503 dprintk("scsi%d: hptiop_probe fail\n", host ? host->host_no : 0);
1509 struct Scsi_Host *host = pci_get_drvdata(pcidev);
1510 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1517 hba->host->host_no);
1552 struct Scsi_Host *host = pci_get_drvdata(pcidev);
1553 struct hptiop_hba *hba = (struct hptiop_hba *)host->hostdata;
1556 dprintk("scsi%d: hptiop_remove\n", hba->host->host_no);
1558 scsi_remove_host(host);
1582 scsi_host_put(host);