Lines Matching defs:dev
15 static void quirk_sb1250_pci(struct pci_dev *dev)
17 pci_write_config_byte(dev, 0x40, 0xff);
37 static int sb1250_bus_dma_limit(struct pci_dev *dev, void *data)
43 exclude_this = exclude->set && (dev->bus->number >= exclude->start &&
44 dev->bus->number <= exclude->end);
45 ht_bridge = !exclude->set && (dev->vendor == PCI_VENDOR_ID_SIBYTE &&
46 dev->device == PCI_DEVICE_ID_BCM1250_HT);
49 dev_dbg(&dev->dev, "not disabling DAC for device");
51 exclude->start = dev->subordinate->number;
52 exclude->end = pci_bus_max_busnr(dev->subordinate);
54 dev_dbg(&dev->dev, "not disabling DAC for [bus %02x-%02x]",
57 dev_dbg(&dev->dev, "disabling DAC for device");
58 dev->dev.bus_dma_limit = DMA_BIT_MASK(32);
64 static void quirk_sb1250_pci_dac(struct pci_dev *dev)
68 pci_walk_bus(dev->bus, sb1250_bus_dma_limit, &exclude);
76 static void quirk_sb1250_ht(struct pci_dev *dev)
78 dev->class = PCI_CLASS_BRIDGE_PCI << 8;
86 static void quirk_sp1011(struct pci_dev *dev)
88 pci_write_config_byte(dev, 0x64, 0xff);