Lines Matching refs:dev

6 static void pci_free_resources(struct pci_dev *dev)  in pci_free_resources()  argument
10 pci_dev_for_each_resource(dev, res) { in pci_free_resources()
16 static void pci_stop_dev(struct pci_dev *dev) in pci_stop_dev() argument
18 pci_pme_active(dev, false); in pci_stop_dev()
20 if (pci_dev_is_added(dev)) { in pci_stop_dev()
22 device_release_driver(&dev->dev); in pci_stop_dev()
23 pci_proc_detach_device(dev); in pci_stop_dev()
24 pci_remove_sysfs_dev_files(dev); in pci_stop_dev()
25 of_pci_remove_node(dev); in pci_stop_dev()
27 pci_dev_assign_added(dev, false); in pci_stop_dev()
31 static void pci_destroy_dev(struct pci_dev *dev) in pci_destroy_dev() argument
33 if (!dev->dev.kobj.parent) in pci_destroy_dev()
36 device_del(&dev->dev); in pci_destroy_dev()
39 list_del(&dev->bus_list); in pci_destroy_dev()
42 pci_doe_destroy(dev); in pci_destroy_dev()
43 pcie_aspm_exit_link_state(dev); in pci_destroy_dev()
44 pci_bridge_d3_update(dev); in pci_destroy_dev()
45 pci_free_resources(dev); in pci_destroy_dev()
46 put_device(&dev->dev); in pci_destroy_dev()
63 device_unregister(&bus->dev); in pci_remove_bus()
67 static void pci_stop_bus_device(struct pci_dev *dev) in pci_stop_bus_device() argument
69 struct pci_bus *bus = dev->subordinate; in pci_stop_bus_device()
84 pci_stop_dev(dev); in pci_stop_bus_device()
87 static void pci_remove_bus_device(struct pci_dev *dev) in pci_remove_bus_device() argument
89 struct pci_bus *bus = dev->subordinate; in pci_remove_bus_device()
98 dev->subordinate = NULL; in pci_remove_bus_device()
101 pci_destroy_dev(dev); in pci_remove_bus_device()
116 void pci_stop_and_remove_bus_device(struct pci_dev *dev) in pci_stop_and_remove_bus_device() argument
118 pci_stop_bus_device(dev); in pci_stop_and_remove_bus_device()
119 pci_remove_bus_device(dev); in pci_stop_and_remove_bus_device()
123 void pci_stop_and_remove_bus_device_locked(struct pci_dev *dev) in pci_stop_and_remove_bus_device_locked() argument
126 pci_stop_and_remove_bus_device(dev); in pci_stop_and_remove_bus_device_locked()
145 device_release_driver(&host_bridge->dev); in pci_stop_root_bus()
165 pci_bus_release_domain_nr(bus, host_bridge->dev.parent); in pci_remove_root_bus()
172 device_del(&host_bridge->dev); in pci_remove_root_bus()