Home
last modified time | relevance | path

Searched refs:pwrctrl (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/pci/pwrctrl/
H A Dcore.c25 struct pci_pwrctrl *pwrctrl = container_of(nb, struct pci_pwrctrl, nb); in pci_pwrctrl_notify() local
28 if (dev_fwnode(dev) != dev_fwnode(pwrctrl->dev)) in pci_pwrctrl_notify()
55 void pci_pwrctrl_init(struct pci_pwrctrl *pwrctrl, struct device *dev) in pci_pwrctrl_init() argument
57 pwrctrl->dev = dev; in pci_pwrctrl_init()
58 dev_set_drvdata(dev, pwrctrl); in pci_pwrctrl_init()
76 int pci_pwrctrl_device_set_ready(struct pci_pwrctrl *pwrctrl) in pci_pwrctrl_device_set_ready() argument
80 if (!pwrctrl->dev) in pci_pwrctrl_device_set_ready()
83 pwrctrl->nb.notifier_call = pci_pwrctrl_notify; in pci_pwrctrl_device_set_ready()
84 ret = bus_register_notifier(&pci_bus_type, &pwrctrl->nb); in pci_pwrctrl_device_set_ready()
98 void pci_pwrctrl_device_unset_ready(struct pci_pwrctrl *pwrctrl) in pci_pwrctrl_device_unset_ready() argument
[all …]
H A Dslot.c19 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()
[all …]
H A Dpci-pwrctrl-pwrseq.c17 struct pci_pwrctrl pwrctrl; member
55 static int pwrseq_pwrctrl_power_on(struct pci_pwrctrl *pwrctrl) in pwrseq_pwrctrl_power_on() argument
57 struct pwrseq_pwrctrl *pwrseq = container_of(pwrctrl, in pwrseq_pwrctrl_power_on()
58 struct pwrseq_pwrctrl, pwrctrl); in pwrseq_pwrctrl_power_on()
63 static int pwrseq_pwrctrl_power_off(struct pci_pwrctrl *pwrctrl) in pwrseq_pwrctrl_power_off() argument
65 struct pwrseq_pwrctrl *pwrseq = container_of(pwrctrl, in pwrseq_pwrctrl_power_off()
66 struct pwrseq_pwrctrl, pwrctrl); in pwrseq_pwrctrl_power_off()
97 pwrseq->pwrctrl.power_on = pwrseq_pwrctrl_power_on; in pwrseq_pwrctrl_probe()
98 pwrseq->pwrctrl.power_off = pwrseq_pwrctrl_power_off; in pwrseq_pwrctrl_probe()
100 pci_pwrctrl_init(&pwrseq->pwrctrl, dev); in pwrseq_pwrctrl_probe()
[all …]
H A DMakefile3 obj-$(CONFIG_PCI_PWRCTRL) += pci-pwrctrl-core.o
4 pci-pwrctrl-core-y := core.o
6 obj-$(CONFIG_PCI_PWRCTRL_PWRSEQ) += pci-pwrctrl-pwrseq.o
8 obj-$(CONFIG_PCI_PWRCTRL_SLOT) += pci-pwrctrl-slot.o
9 pci-pwrctrl-slot-y := slot.o
11 obj-$(CONFIG_PCI_PWRCTRL_TC9563) += pci-pwrctrl-tc9563.o
H A Dpci-pwrctrl-tc9563.c109 struct pci_pwrctrl pwrctrl; member
453 static int tc9563_pwrctrl_power_off(struct pci_pwrctrl *pwrctrl) in tc9563_pwrctrl_power_off() argument
455 struct tc9563_pwrctrl *tc9563 = container_of(pwrctrl, in tc9563_pwrctrl_power_off()
456 struct tc9563_pwrctrl, pwrctrl); in tc9563_pwrctrl_power_off()
465 static int tc9563_pwrctrl_power_on(struct pci_pwrctrl *pwrctrl) in tc9563_pwrctrl_power_on() argument
467 struct tc9563_pwrctrl *tc9563 = container_of(pwrctrl, in tc9563_pwrctrl_power_on()
468 struct tc9563_pwrctrl, pwrctrl); in tc9563_pwrctrl_power_on()
469 struct device *dev = tc9563->pwrctrl.dev; in tc9563_pwrctrl_power_on()
530 tc9563_pwrctrl_power_off(&tc9563->pwrctrl); in tc9563_pwrctrl_power_on()
580 pci_pwrctrl_init(&tc9563->pwrctrl, dev); in tc9563_pwrctrl_probe()
[all …]
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_pwrctrl.c676 static inline void register_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag) in register_task_alive() argument
678 pwrctrl->alives |= tag; in register_task_alive()
681 static inline void unregister_task_alive(struct pwrctrl_priv *pwrctrl, u32 tag) in unregister_task_alive() argument
683 pwrctrl->alives &= ~tag; in unregister_task_alive()
705 struct pwrctrl_priv *pwrctrl; in rtw_register_task_alive() local
709 pwrctrl = adapter_to_pwrctl(padapter); in rtw_register_task_alive()
712 mutex_lock(&pwrctrl->lock); in rtw_register_task_alive()
714 register_task_alive(pwrctrl, task); in rtw_register_task_alive()
716 if (pwrctrl->fw_current_in_ps_mode) { in rtw_register_task_alive()
717 if (pwrctrl->cpwm < pslv) { in rtw_register_task_alive()
[all …]
/linux/include/linux/
H A Dpci-pwrctrl.h43 int (*power_on)(struct pci_pwrctrl *pwrctrl);
44 int (*power_off)(struct pci_pwrctrl *pwrctrl);
52 void pci_pwrctrl_init(struct pci_pwrctrl *pwrctrl, struct device *dev);
53 int pci_pwrctrl_device_set_ready(struct pci_pwrctrl *pwrctrl);
54 void pci_pwrctrl_device_unset_ready(struct pci_pwrctrl *pwrctrl);
56 struct pci_pwrctrl *pwrctrl);
/linux/drivers/net/wireless/ath/ath9k/
H A Deeprom_4k.c1010 u32 pwrctrl, mask, clr; in ath9k_hw_4k_set_board_values() local
1013 pwrctrl = mask * bb_desired_scale; in ath9k_hw_4k_set_board_values()
1016 REG_RMW(ah, AR_PHY_TX_PWRCTRL8, pwrctrl, clr); in ath9k_hw_4k_set_board_values()
1017 REG_RMW(ah, AR_PHY_TX_PWRCTRL10, pwrctrl, clr); in ath9k_hw_4k_set_board_values()
1018 REG_RMW(ah, AR_PHY_CH0_TX_PWRCTRL12, pwrctrl, clr); in ath9k_hw_4k_set_board_values()
1021 pwrctrl = mask * bb_desired_scale; in ath9k_hw_4k_set_board_values()
1023 REG_RMW(ah, AR_PHY_TX_PWRCTRL9, pwrctrl, clr); in ath9k_hw_4k_set_board_values()
1026 pwrctrl = mask * bb_desired_scale; in ath9k_hw_4k_set_board_values()
1028 REG_RMW(ah, AR_PHY_CH0_TX_PWRCTRL11, pwrctrl, clr); in ath9k_hw_4k_set_board_values()
1029 REG_RMW(ah, AR_PHY_CH0_TX_PWRCTRL13, pwrctrl, clr); in ath9k_hw_4k_set_board_values()
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dste,abx500.txt209 function = "pwrctrl";
223 function = "pwrctrl";
/linux/drivers/pci/
H A DMakefile12 obj-$(CONFIG_PCI) += pwrctrl/
H A DKconfig341 source "drivers/pci/pwrctrl/Kconfig"
/linux/
H A DMAINTAINERS20416 F: drivers/pci/pwrctrl/*
20417 F: include/linux/pci-pwrctrl.h