Lines Matching refs:device
122 #define SYM_SOFTC_PTR(cmd) sym_get_hcb(cmd->device->host)
195 * If the device reports a UNIT ATTENTION condition
211 * condition otherwise the device will always return
214 sym_reset_scsi_target(np, cmd->device->id);
282 struct scsi_device *sdev = cmd->device;
390 * panic on the first attempt to write to a SCSI device.
528 /* Avoid spinloop trying to handle interrupts on frozen device */
572 struct Scsi_Host *shost = cmd->device->host;
630 sts = sym_reset_scsi_target(np, cmd->device->id);
661 dev_warn(&cmd->device->sdev_gendev, "%s operation %s.\n", opname,
691 * Tune device queuing depth, according to various limits.
729 * Fail the device init if the device is flagged NOSCAN at BOOT in
731 * BIOS device numbering. Clearing the flag allows the user to
773 * Linux entry point for device queue sizing.
1160 seq_printf(m, "Chip " NAME53C "%s, device id 0x%x, "
1162 pdev->device, pdev->revision);
1187 static void sym_iounmap_device(struct sym_device *device)
1189 if (device->s.ioaddr)
1190 pci_iounmap(device->pdev, device->s.ioaddr);
1191 if (device->s.ramaddr)
1192 pci_iounmap(device->pdev, device->s.ramaddr);
1353 if (pdev->device == PCI_DEVICE_ID_NCR_53C896 && pdev->revision < 2)
1394 static int sym_check_supported(struct sym_device *device)
1397 struct pci_dev *pdev = device->pdev;
1414 * to our device structure so we can make it match the actual device
1417 chip = sym_lookup_chip_table(pdev->device, pdev->revision);
1419 dev_info(&pdev->dev, "device not supported\n");
1422 memcpy(&device->chip, chip, sizeof(device->chip));
1431 static int sym_check_raid(struct sym_device *device)
1435 if (!device->s.ramaddr)
1438 if (device->chip.features & FE_RAM8K)
1443 ram_val = readl(device->s.ramaddr + ram_size - 16);
1447 dev_info(&device->pdev->dev,
1452 static int sym_set_workarounds(struct sym_device *device)
1454 struct sym_chip *chip = &device->chip;
1455 struct pci_dev *pdev = device->pdev;
1463 if (pdev->device == PCI_DEVICE_ID_NCR_53C896 && pdev->revision < 0x4) {
1502 static int sym_iomap_device(struct sym_device *device)
1504 struct pci_dev *pdev = device->pdev;
1509 device->mmio_base = bus_addr.start;
1511 if (device->chip.features & FE_RAM) {
1520 device->ram_base = bus_addr.start;
1524 if (device->mmio_base)
1525 device->s.ioaddr = pci_iomap(pdev, 1,
1528 if (!device->s.ioaddr)
1529 device->s.ioaddr = pci_iomap(pdev, 0,
1531 if (!device->s.ioaddr) {
1535 if (device->ram_base) {
1536 device->s.ramaddr = pci_iomap(pdev, i,
1538 if (!device->s.ramaddr) {
1541 device->ram_base = 0;
1569 if (!memc || memc->vendor != 0x101a || memc->device == 0x0009) {
1683 do_disable_device = 0; /* Don't disable the device */
1734 * @pdev: pointer to PCI device
1755 * @pdev: pointer to PCI device
1769 * @pdev: pointer to PCI device
1772 * that, at this point, we already know that the device was
1781 chip = sym_lookup_chip_table(pdev->device, pdev->revision);
1796 * @pdev: pointer to PCI device
1841 * @pdev: pointer to PCI device