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