Home
last modified time | relevance | path

Searched refs:pwrctrl (Results 1 – 9 of 9) 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 Dgeneric.c18 struct pci_pwrctrl pwrctrl; member
25 static int slot_pwrctrl_power_on(struct pci_pwrctrl *pwrctrl) in slot_pwrctrl_power_on() argument
27 struct slot_pwrctrl *slot = container_of(pwrctrl, in slot_pwrctrl_power_on()
28 struct slot_pwrctrl, pwrctrl); in slot_pwrctrl_power_on()
38 dev_err(slot->pwrctrl.dev, "Failed to enable slot regulators\n"); in slot_pwrctrl_power_on()
45 static int slot_pwrctrl_power_off(struct pci_pwrctrl *pwrctrl) in slot_pwrctrl_power_off() argument
47 struct slot_pwrctrl *slot = container_of(pwrctrl, in slot_pwrctrl_power_off()
48 struct slot_pwrctrl, pwrctrl); in slot_pwrctrl_power_off()
100 slot->pwrctrl.power_on = slot_pwrctrl_power_on; in slot_pwrctrl_probe()
101 slot->pwrctrl.power_off = slot_pwrctrl_power_off; in slot_pwrctrl_probe()
[all …]
H A Dpci-pwrctrl-pwrseq.c16 struct pci_pwrctrl pwrctrl; member
54 static int pwrseq_pwrctrl_power_on(struct pci_pwrctrl *pwrctrl) in pwrseq_pwrctrl_power_on() argument
56 struct pwrseq_pwrctrl *pwrseq = container_of(pwrctrl, in pwrseq_pwrctrl_power_on()
57 struct pwrseq_pwrctrl, pwrctrl); in pwrseq_pwrctrl_power_on()
62 static int pwrseq_pwrctrl_power_off(struct pci_pwrctrl *pwrctrl) in pwrseq_pwrctrl_power_off() argument
64 struct pwrseq_pwrctrl *pwrseq = container_of(pwrctrl, in pwrseq_pwrctrl_power_off()
65 struct pwrseq_pwrctrl, pwrctrl); in pwrseq_pwrctrl_power_off()
96 pwrseq->pwrctrl.power_on = pwrseq_pwrctrl_power_on; in pwrseq_pwrctrl_probe()
97 pwrseq->pwrctrl.power_off = pwrseq_pwrctrl_power_off; in pwrseq_pwrctrl_probe()
99 pci_pwrctrl_init(&pwrseq->pwrctrl, dev); in pwrseq_pwrctrl_probe()
[all …]
H A Dpci-pwrctrl-tc9563.c107 struct pci_pwrctrl pwrctrl; member
319 struct device *dev = tc9563->pwrctrl.dev; in tc9563_pwrctrl_set_tx_amplitude()
360 struct device *dev = tc9563->pwrctrl.dev; in tc9563_pwrctrl_disable_dfe()
412 struct device *dev = tc9563->pwrctrl.dev; in tc9563_pwrctrl_set_nfts()
479 static int tc9563_pwrctrl_power_off(struct pci_pwrctrl *pwrctrl) in tc9563_pwrctrl_power_off() argument
481 struct tc9563_pwrctrl *tc9563 = container_of(pwrctrl, in tc9563_pwrctrl_power_off()
482 struct tc9563_pwrctrl, pwrctrl); in tc9563_pwrctrl_power_off()
491 static int tc9563_pwrctrl_power_on(struct pci_pwrctrl *pwrctrl) in tc9563_pwrctrl_power_on() argument
493 struct tc9563_pwrctrl *tc9563 = container_of(pwrctrl, in tc9563_pwrctrl_power_on()
494 struct tc9563_pwrctrl, pwrctrl); in tc9563_pwrctrl_power_on()
[all …]
/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/clk/meson/
H A Da9-aoclk.c114 static A9_AO_PCLK(pwrctrl, 7, CLK_IS_CRITICAL);
/linux/drivers/pci/
H A DKconfig278 source "drivers/pci/pwrctrl/Kconfig"
/linux/
H A DMAINTAINERS21102 F: drivers/pci/pwrctrl/*
21103 F: include/linux/pci-pwrctrl.h