Lines Matching defs:shpnt

1305 static void atp870_init(struct Scsi_Host *shpnt)
1307 struct atp_unit *atpdev = shost_priv(shpnt);
1321 shpnt->io_port, shpnt->irq);
1323 atpdev->ioport[0] = shpnt->io_port;
1324 atpdev->pciport[0] = shpnt->io_port + 0x20;
1348 tscam(shpnt, wide_chip, scam_on);
1353 shpnt->max_id = wide_chip ? 16 : 8;
1354 shpnt->this_id = host_id;
1357 static void atp880_init(struct Scsi_Host *shpnt)
1359 struct atp_unit *atpdev = shost_priv(shpnt);
1366 atpdev->ioport[0] = shpnt->io_port + 0x40;
1367 atpdev->pciport[0] = shpnt->io_port + 0x28;
1373 shpnt->io_port, shpnt->irq);
1436 tscam(shpnt, true, atp_readb_base(atpdev, 0x22));
1439 shpnt->max_id = 16;
1440 shpnt->this_id = host_id;
1443 static void atp885_init(struct Scsi_Host *shpnt)
1445 struct atp_unit *atpdev = shost_priv(shpnt);
1453 shpnt->io_port, shpnt->irq);
1455 atpdev->ioport[0] = shpnt->io_port + 0x80;
1456 atpdev->ioport[1] = shpnt->io_port + 0xc0;
1457 atpdev->pciport[0] = shpnt->io_port + 0x40;
1458 atpdev->pciport[1] = shpnt->io_port + 0x50;
1548 shpnt->max_id = 16;
1549 shpnt->max_lun = (atpdev->global_map[0] & 0x07) + 1;
1550 shpnt->max_channel = 1;
1551 shpnt->this_id = atpdev->host_id[0];
1557 struct Scsi_Host *shpnt = NULL;
1582 shpnt = scsi_host_alloc(&atp870u_template, sizeof(struct atp_unit));
1583 if (!shpnt)
1586 atpdev = shost_priv(shpnt);
1588 atpdev->host = shpnt;
1592 shpnt->io_port = pci_resource_start(pdev, 0);
1593 shpnt->io_port &= 0xfffffff8;
1594 shpnt->n_io_port = pci_resource_len(pdev, 0);
1595 atpdev->baseport = shpnt->io_port;
1596 shpnt->unique_id = shpnt->io_port;
1597 shpnt->irq = pdev->irq;
1599 err = atp870u_init_tables(shpnt);
1606 atp880_init(shpnt);
1608 atp885_init(shpnt);
1610 atp870_init(shpnt);
1612 err = request_irq(shpnt->irq, atp870u_intr_handle, IRQF_SHARED, "atp870u", shpnt);
1614 dev_err(&pdev->dev, "Unable to allocate IRQ %d.\n", shpnt->irq);
1618 err = scsi_add_host(shpnt, &pdev->dev);
1621 scsi_scan_host(shpnt);
1626 free_irq(shpnt->irq, shpnt);
1628 atp870u_free_tables(shpnt);
1630 scsi_host_put(shpnt);