Lines Matching refs:shpnt
1252 static void atp870_init(struct Scsi_Host *shpnt) in atp870_init() argument
1254 struct atp_unit *atpdev = shost_priv(shpnt); in atp870_init()
1267 shpnt->io_port, shpnt->irq); in atp870_init()
1269 atpdev->ioport[0] = shpnt->io_port; in atp870_init()
1270 atpdev->pciport[0] = shpnt->io_port + 0x20; in atp870_init()
1294 tscam(shpnt, wide_chip, scam_on); in atp870_init()
1299 shpnt->max_id = wide_chip ? 16 : 8; in atp870_init()
1300 shpnt->this_id = host_id; in atp870_init()
1303 static void atp880_init(struct Scsi_Host *shpnt) in atp880_init() argument
1305 struct atp_unit *atpdev = shost_priv(shpnt); in atp880_init()
1312 atpdev->ioport[0] = shpnt->io_port + 0x40; in atp880_init()
1313 atpdev->pciport[0] = shpnt->io_port + 0x28; in atp880_init()
1318 shpnt->io_port, shpnt->irq); in atp880_init()
1381 tscam(shpnt, true, atp_readb_base(atpdev, 0x22)); in atp880_init()
1384 shpnt->max_id = 16; in atp880_init()
1385 shpnt->this_id = host_id; in atp880_init()
1388 static void atp885_init(struct Scsi_Host *shpnt) in atp885_init() argument
1390 struct atp_unit *atpdev = shost_priv(shpnt); in atp885_init()
1397 shpnt->io_port, shpnt->irq); in atp885_init()
1399 atpdev->ioport[0] = shpnt->io_port + 0x80; in atp885_init()
1400 atpdev->ioport[1] = shpnt->io_port + 0xc0; in atp885_init()
1401 atpdev->pciport[0] = shpnt->io_port + 0x40; in atp885_init()
1402 atpdev->pciport[1] = shpnt->io_port + 0x50; in atp885_init()
1490 shpnt->max_id = 16; in atp885_init()
1491 shpnt->max_lun = (atpdev->global_map[0] & 0x07) + 1; in atp885_init()
1492 shpnt->max_channel = 1; in atp885_init()
1493 shpnt->this_id = atpdev->host_id[0]; in atp885_init()
1499 struct Scsi_Host *shpnt = NULL; in atp870u_probe() local
1524 shpnt = scsi_host_alloc(&atp870u_template, sizeof(struct atp_unit)); in atp870u_probe()
1525 if (!shpnt) in atp870u_probe()
1528 atpdev = shost_priv(shpnt); in atp870u_probe()
1530 atpdev->host = shpnt; in atp870u_probe()
1534 shpnt->io_port = pci_resource_start(pdev, 0); in atp870u_probe()
1535 shpnt->io_port &= 0xfffffff8; in atp870u_probe()
1536 shpnt->n_io_port = pci_resource_len(pdev, 0); in atp870u_probe()
1537 atpdev->baseport = shpnt->io_port; in atp870u_probe()
1538 shpnt->unique_id = shpnt->io_port; in atp870u_probe()
1539 shpnt->irq = pdev->irq; in atp870u_probe()
1541 err = atp870u_init_tables(shpnt); in atp870u_probe()
1548 atp880_init(shpnt); in atp870u_probe()
1550 atp885_init(shpnt); in atp870u_probe()
1552 atp870_init(shpnt); in atp870u_probe()
1554 err = request_irq(shpnt->irq, atp870u_intr_handle, IRQF_SHARED, "atp870u", shpnt); in atp870u_probe()
1556 dev_err(&pdev->dev, "Unable to allocate IRQ %d.\n", shpnt->irq); in atp870u_probe()
1560 err = scsi_add_host(shpnt, &pdev->dev); in atp870u_probe()
1563 scsi_scan_host(shpnt); in atp870u_probe()
1568 free_irq(shpnt->irq, shpnt); in atp870u_probe()
1570 atp870u_free_tables(shpnt); in atp870u_probe()
1572 scsi_host_put(shpnt); in atp870u_probe()