Lines Matching defs:pci_dev

39 	struct pci_dev *pdev;						\
58 struct pci_dev *pdev = to_pci_dev(dev);
66 struct pci_dev *pdev = to_pci_dev(dev);
131 struct pci_dev *pci_dev = to_pci_dev(dev);
137 if (pci_dev->subordinate)
143 struct resource *res = &pci_dev->resource[i];
144 pci_resource_to_user(pci_dev, i, res, &start, &end);
157 struct pci_dev *pdev = to_pci_dev(dev);
167 struct pci_dev *pdev = to_pci_dev(dev);
176 struct pci_dev *pci_dev = to_pci_dev(dev);
181 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat);
194 struct pci_dev *pci_dev = to_pci_dev(dev);
198 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat);
211 struct pci_dev *pci_dev = to_pci_dev(dev);
215 err = pci_read_config_byte(pci_dev, PCI_SECONDARY_BUS, &sec_bus);
227 struct pci_dev *pci_dev = to_pci_dev(dev);
231 err = pci_read_config_byte(pci_dev, PCI_SUBORDINATE_BUS, &sub_bus);
243 struct pci_dev *pci_dev = to_pci_dev(dev);
245 return sprintf(buf, "%u\n", pci_ari_enabled(pci_dev->bus));
252 struct pci_dev *pci_dev = to_pci_dev(dev);
255 pci_dev->vendor, pci_dev->device,
256 pci_dev->subsystem_vendor, pci_dev->subsystem_device,
257 (u8)(pci_dev->class >> 16), (u8)(pci_dev->class >> 8),
258 (u8)(pci_dev->class));
265 struct pci_dev *pdev = to_pci_dev(dev);
293 struct pci_dev *pdev;
305 struct pci_dev *pdev = to_pci_dev(dev);
340 struct pci_dev *pdev = to_pci_dev(dev);
357 struct pci_dev *pdev = to_pci_dev(dev);
368 struct pci_dev *pdev = to_pci_dev(dev);
438 struct pci_dev *pdev = to_pci_dev(dev);
496 struct pci_dev *pdev = to_pci_dev(dev);
513 struct pci_dev *pdev = to_pci_dev(dev);
523 struct pci_dev *pdev = to_pci_dev(dev);
537 struct pci_dev *pdev = to_pci_dev(dev);
570 struct pci_dev *pdev = to_pci_dev(dev);
644 struct pci_dev *pdev = to_pci_dev(dev);
645 struct pci_dev *vga_dev = vga_default_device();
660 struct pci_dev *dev = to_pci_dev(kobj_to_dev(kobj));
737 struct pci_dev *dev = to_pci_dev(kobj_to_dev(kobj));
969 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma,
1003 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj));
1042 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj));
1104 static void pci_remove_resource_files(struct pci_dev *pdev)
1125 static int pci_create_attr(struct pci_dev *pdev, int num, int write_combine)
1178 static int pci_create_resource_files(struct pci_dev *pdev)
1203 int __weak pci_create_resource_files(struct pci_dev *dev) { return 0; }
1204 void __weak pci_remove_resource_files(struct pci_dev *dev) { return; }
1222 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj));
1248 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj));
1295 struct pci_dev *pdev = to_pci_dev(dev);
1316 static int pci_create_capabilities_sysfs(struct pci_dev *dev)
1334 int __must_check pci_create_sysfs_dev_files(struct pci_dev *pdev)
1402 static void pci_remove_capabilities_sysfs(struct pci_dev *dev)
1417 void pci_remove_sysfs_dev_files(struct pci_dev *pdev)
1442 struct pci_dev *pdev = NULL;
1467 struct pci_dev *pdev = to_pci_dev(dev);
1486 struct pci_dev *pdev = to_pci_dev(dev);
1498 struct pci_dev *pdev = to_pci_dev(dev);
1510 struct pci_dev *pdev = to_pci_dev(dev);