Lines Matching refs:device
122 #define SYM_SOFTC_PTR(cmd) sym_get_hcb(cmd->device->host)
198 * If the device reports a UNIT ATTENTION condition
214 * condition otherwise the device will always return
217 sym_reset_scsi_target(np, cmd->device->id);
285 struct scsi_device *sdev = cmd->device;
393 * panic on the first attempt to write to a SCSI device.
533 /* Avoid spinloop trying to handle interrupts on frozen device */
577 struct Scsi_Host *shost = cmd->device->host;
635 sts = sym_reset_scsi_target(np, cmd->device->id);
666 dev_warn(&cmd->device->sdev_gendev, "%s operation %s.\n", opname,
696 * Tune device queuing depth, according to various limits.
734 * Fail the device init if the device is flagged NOSCAN at BOOT in
736 * BIOS device numbering. Clearing the flag allows the user to
778 * Linux entry point for device queue sizing.
1165 seq_printf(m, "Chip " NAME53C "%s, device id 0x%x, "
1167 pdev->device, pdev->revision);
1192 static void sym_iounmap_device(struct sym_device *device)
1194 if (device->s.ioaddr)
1195 pci_iounmap(device->pdev, device->s.ioaddr);
1196 if (device->s.ramaddr)
1197 pci_iounmap(device->pdev, device->s.ramaddr);
1358 if (pdev->device == PCI_DEVICE_ID_NCR_53C896 && pdev->revision < 2)
1399 static int sym_check_supported(struct sym_device *device)
1402 struct pci_dev *pdev = device->pdev;
1419 * to our device structure so we can make it match the actual device
1422 chip = sym_lookup_chip_table(pdev->device, pdev->revision);
1424 dev_info(&pdev->dev, "device not supported\n");
1427 memcpy(&device->chip, chip, sizeof(device->chip));
1436 static int sym_check_raid(struct sym_device *device)
1440 if (!device->s.ramaddr)
1443 if (device->chip.features & FE_RAM8K)
1448 ram_val = readl(device->s.ramaddr + ram_size - 16);
1452 dev_info(&device->pdev->dev,
1457 static int sym_set_workarounds(struct sym_device *device)
1459 struct sym_chip *chip = &device->chip;
1460 struct pci_dev *pdev = device->pdev;
1468 if (pdev->device == PCI_DEVICE_ID_NCR_53C896 && pdev->revision < 0x4) {
1507 static int sym_iomap_device(struct sym_device *device)
1509 struct pci_dev *pdev = device->pdev;
1514 device->mmio_base = bus_addr.start;
1516 if (device->chip.features & FE_RAM) {
1525 device->ram_base = bus_addr.start;
1529 if (device->mmio_base)
1530 device->s.ioaddr = pci_iomap(pdev, 1,
1533 if (!device->s.ioaddr)
1534 device->s.ioaddr = pci_iomap(pdev, 0,
1536 if (!device->s.ioaddr) {
1540 if (device->ram_base) {
1541 device->s.ramaddr = pci_iomap(pdev, i,
1543 if (!device->s.ramaddr) {
1546 device->ram_base = 0;
1574 if (!memc || memc->vendor != 0x101a || memc->device == 0x0009) {
1687 do_disable_device = 0; /* Don't disable the device */
1738 * @pdev: pointer to PCI device
1759 * @pdev: pointer to PCI device
1773 * @pdev: pointer to PCI device
1776 * that, at this point, we already know that the device was
1785 chip = sym_lookup_chip_table(pdev->device, pdev->revision);
1800 * @pdev: pointer to PCI device
1845 * @pdev: pointer to PCI device