Home
last modified time | relevance | path

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

/drivers/mmc/core/
Dpwrseq_simple.c26 struct mmc_pwrseq pwrseq; member
34 #define to_pwrseq_simple(p) container_of(p, struct mmc_pwrseq_simple, pwrseq)
36 static void mmc_pwrseq_simple_set_gpios_value(struct mmc_pwrseq_simple *pwrseq, in mmc_pwrseq_simple_set_gpios_value() argument
39 struct gpio_descs *reset_gpios = pwrseq->reset_gpios; in mmc_pwrseq_simple_set_gpios_value()
63 struct mmc_pwrseq_simple *pwrseq = to_pwrseq_simple(host->pwrseq); in mmc_pwrseq_simple_pre_power_on() local
65 if (!IS_ERR(pwrseq->ext_clk) && !pwrseq->clk_enabled) { in mmc_pwrseq_simple_pre_power_on()
66 clk_prepare_enable(pwrseq->ext_clk); in mmc_pwrseq_simple_pre_power_on()
67 pwrseq->clk_enabled = true; in mmc_pwrseq_simple_pre_power_on()
70 mmc_pwrseq_simple_set_gpios_value(pwrseq, 1); in mmc_pwrseq_simple_pre_power_on()
75 struct mmc_pwrseq_simple *pwrseq = to_pwrseq_simple(host->pwrseq); in mmc_pwrseq_simple_post_power_on() local
[all …]
Dpwrseq_sd8787.c28 struct mmc_pwrseq pwrseq; member
33 #define to_pwrseq_sd8787(p) container_of(p, struct mmc_pwrseq_sd8787, pwrseq)
37 struct mmc_pwrseq_sd8787 *pwrseq = to_pwrseq_sd8787(host->pwrseq); in mmc_pwrseq_sd8787_pre_power_on() local
39 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_sd8787_pre_power_on()
42 gpiod_set_value_cansleep(pwrseq->pwrdn_gpio, 1); in mmc_pwrseq_sd8787_pre_power_on()
47 struct mmc_pwrseq_sd8787 *pwrseq = to_pwrseq_sd8787(host->pwrseq); in mmc_pwrseq_sd8787_power_off() local
49 gpiod_set_value_cansleep(pwrseq->pwrdn_gpio, 0); in mmc_pwrseq_sd8787_power_off()
50 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_sd8787_power_off()
55 struct mmc_pwrseq_sd8787 *pwrseq = to_pwrseq_sd8787(host->pwrseq); in mmc_pwrseq_wilc1000_pre_power_on() local
58 gpiod_set_value_cansleep(pwrseq->pwrdn_gpio, 1); in mmc_pwrseq_wilc1000_pre_power_on()
[all …]
Dpwrseq.c37 host->pwrseq = p; in mmc_pwrseq_alloc()
46 if (!host->pwrseq) in mmc_pwrseq_alloc()
56 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_pre_power_on() local
58 if (pwrseq && pwrseq->ops->pre_power_on) in mmc_pwrseq_pre_power_on()
59 pwrseq->ops->pre_power_on(host); in mmc_pwrseq_pre_power_on()
64 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_post_power_on() local
66 if (pwrseq && pwrseq->ops->post_power_on) in mmc_pwrseq_post_power_on()
67 pwrseq->ops->post_power_on(host); in mmc_pwrseq_post_power_on()
72 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_power_off() local
74 if (pwrseq && pwrseq->ops->power_off) in mmc_pwrseq_power_off()
[all …]
Dpwrseq_emmc.c25 struct mmc_pwrseq pwrseq; member
30 #define to_pwrseq_emmc(p) container_of(p, struct mmc_pwrseq_emmc, pwrseq)
34 struct mmc_pwrseq_emmc *pwrseq = to_pwrseq_emmc(host->pwrseq); in mmc_pwrseq_emmc_reset() local
36 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset()
38 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset()
45 struct mmc_pwrseq_emmc *pwrseq = container_of(this, in mmc_pwrseq_emmc_reset_nb() local
47 gpiod_set_value(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset_nb()
49 gpiod_set_value(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset_nb()
61 struct mmc_pwrseq_emmc *pwrseq; in mmc_pwrseq_emmc_probe() local
64 pwrseq = devm_kzalloc(dev, sizeof(*pwrseq), GFP_KERNEL); in mmc_pwrseq_emmc_probe()
[all …]
Dpwrseq.h32 int mmc_pwrseq_register(struct mmc_pwrseq *pwrseq);
33 void mmc_pwrseq_unregister(struct mmc_pwrseq *pwrseq);
44 static inline int mmc_pwrseq_register(struct mmc_pwrseq *pwrseq) in mmc_pwrseq_register() argument
48 static inline void mmc_pwrseq_unregister(struct mmc_pwrseq *pwrseq) {} in mmc_pwrseq_unregister() argument
DKconfig10 This selects Hardware reset support aka pwrseq-emmc for eMMC
31 This selects simple hardware reset support aka pwrseq-simple for MMC
DMakefile12 mmc_core-$(CONFIG_OF) += pwrseq.o
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
DMakefile8 pwrseq.o \
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
DMakefile8 pwrseq.o \
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
DMakefile8 pwrseq.o \
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
DMakefile8 pwrseq.o \
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
DMakefile10 pwrseq.o \