Lines Matching refs:pwrctrl
19 struct pci_pwrctrl pwrctrl; member
26 static int slot_pwrctrl_power_on(struct pci_pwrctrl *pwrctrl) in slot_pwrctrl_power_on() argument
28 struct slot_pwrctrl *slot = container_of(pwrctrl, in slot_pwrctrl_power_on()
29 struct slot_pwrctrl, pwrctrl); in slot_pwrctrl_power_on()
39 dev_err(slot->pwrctrl.dev, "Failed to enable slot regulators\n"); in slot_pwrctrl_power_on()
46 static int slot_pwrctrl_power_off(struct pci_pwrctrl *pwrctrl) in slot_pwrctrl_power_off() argument
48 struct slot_pwrctrl *slot = container_of(pwrctrl, in slot_pwrctrl_power_off()
49 struct slot_pwrctrl, pwrctrl); in slot_pwrctrl_power_off()
104 slot->pwrctrl.power_on = slot_pwrctrl_power_on; in slot_pwrctrl_probe()
105 slot->pwrctrl.power_off = slot_pwrctrl_power_off; in slot_pwrctrl_probe()
111 pci_pwrctrl_init(&slot->pwrctrl, dev); in slot_pwrctrl_probe()
113 ret = devm_pci_pwrctrl_device_set_ready(dev, &slot->pwrctrl); in slot_pwrctrl_probe()