Lines Matching refs:dev
35 void pcibios_name_device(struct pci_dev *dev)
42 dn = pci_device_to_OF_node(dev);
48 if (loc_len < sizeof(dev->dev.name)) {
49 memmove(dev->dev.name+loc_len+1, dev->dev.name,
50 sizeof(dev->dev.name)-loc_len-1);
51 memcpy(dev->dev.name, loc_code, loc_len);
52 dev->dev.name[loc_len] = ' ';
53 dev->dev.name[sizeof(dev->dev.name)-1] = '\0';
86 static void fixup_winbond_82c105(struct pci_dev* dev) in fixup_winbond_82c105() argument
95 pci_read_config_dword(dev, 0x40, ®); in fixup_winbond_82c105()
97 pci_write_config_dword(dev, 0x40, reg | (1<<11)); in fixup_winbond_82c105()
101 if (dev->resource[i].flags & IORESOURCE_IO in fixup_winbond_82c105()
102 && dev->bus->number == 0 && dev->devfn == 0x81) in fixup_winbond_82c105()
103 dev->resource[i].flags &= ~IORESOURCE_IO; in fixup_winbond_82c105()
104 if (dev->resource[i].start == 0 && dev->resource[i].end) { in fixup_winbond_82c105()
105 dev->resource[i].flags = 0; in fixup_winbond_82c105()
106 dev->resource[i].end = 0; in fixup_winbond_82c105()