Lines Matching full:pwrseq

16 #include "pwrseq.h"
26 np = of_parse_phandle(host->parent->of_node, "mmc-pwrseq", 0); in mmc_pwrseq_alloc()
37 host->pwrseq = p; in mmc_pwrseq_alloc()
46 if (!host->pwrseq) in mmc_pwrseq_alloc()
49 dev_info(host->parent, "allocated mmc-pwrseq\n"); 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()
75 pwrseq->ops->power_off(host); in mmc_pwrseq_power_off()
80 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_reset() local
82 if (pwrseq && pwrseq->ops->reset) in mmc_pwrseq_reset()
83 pwrseq->ops->reset(host); in mmc_pwrseq_reset()
88 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_free() local
90 if (pwrseq) { in mmc_pwrseq_free()
91 module_put(pwrseq->owner); in mmc_pwrseq_free()
92 host->pwrseq = NULL; in mmc_pwrseq_free()
96 int mmc_pwrseq_register(struct mmc_pwrseq *pwrseq) in mmc_pwrseq_register() argument
98 if (!pwrseq || !pwrseq->ops || !pwrseq->dev) in mmc_pwrseq_register()
102 list_add(&pwrseq->pwrseq_node, &pwrseq_list); in mmc_pwrseq_register()
109 void mmc_pwrseq_unregister(struct mmc_pwrseq *pwrseq) in mmc_pwrseq_unregister() argument
111 if (pwrseq) { in mmc_pwrseq_unregister()
113 list_del(&pwrseq->pwrseq_node); in mmc_pwrseq_unregister()