Lines Matching defs:shpnt

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