Lines Matching refs:pwrctrl

17 	struct pci_pwrctrl *pwrctrl = container_of(nb, struct pci_pwrctrl, nb);  in pci_pwrctrl_notify()  local
20 if (dev_fwnode(dev) != dev_fwnode(pwrctrl->dev)) in pci_pwrctrl_notify()
43 struct pci_pwrctrl *pwrctrl = container_of(work, in rescan_work_func() local
47 pci_rescan_bus(to_pci_host_bridge(pwrctrl->dev->parent)->bus); in rescan_work_func()
57 void pci_pwrctrl_init(struct pci_pwrctrl *pwrctrl, struct device *dev) in pci_pwrctrl_init() argument
59 pwrctrl->dev = dev; in pci_pwrctrl_init()
60 INIT_WORK(&pwrctrl->work, rescan_work_func); in pci_pwrctrl_init()
78 int pci_pwrctrl_device_set_ready(struct pci_pwrctrl *pwrctrl) in pci_pwrctrl_device_set_ready() argument
82 if (!pwrctrl->dev) in pci_pwrctrl_device_set_ready()
85 pwrctrl->nb.notifier_call = pci_pwrctrl_notify; in pci_pwrctrl_device_set_ready()
86 ret = bus_register_notifier(&pci_bus_type, &pwrctrl->nb); in pci_pwrctrl_device_set_ready()
90 schedule_work(&pwrctrl->work); in pci_pwrctrl_device_set_ready()
102 void pci_pwrctrl_device_unset_ready(struct pci_pwrctrl *pwrctrl) in pci_pwrctrl_device_unset_ready() argument
104 cancel_work_sync(&pwrctrl->work); in pci_pwrctrl_device_unset_ready()
112 bus_unregister_notifier(&pci_bus_type, &pwrctrl->nb); in pci_pwrctrl_device_unset_ready()
118 struct pci_pwrctrl *pwrctrl = data; in devm_pci_pwrctrl_device_unset_ready() local
120 pci_pwrctrl_device_unset_ready(pwrctrl); in devm_pci_pwrctrl_device_unset_ready()
134 struct pci_pwrctrl *pwrctrl) in devm_pci_pwrctrl_device_set_ready() argument
138 ret = pci_pwrctrl_device_set_ready(pwrctrl); in devm_pci_pwrctrl_device_set_ready()
144 pwrctrl); in devm_pci_pwrctrl_device_set_ready()