Lines Matching refs:host
22 struct mmc_pwrseq *(*alloc)(struct mmc_host *host, struct device *dev);
50 int mmc_pwrseq_alloc(struct mmc_host *host) in mmc_pwrseq_alloc() argument
58 np = of_parse_phandle(host->parent->of_node, "mmc-pwrseq", 0); in mmc_pwrseq_alloc()
74 pwrseq = match->alloc(host, &pdev->dev); in mmc_pwrseq_alloc()
80 host->pwrseq = pwrseq; in mmc_pwrseq_alloc()
81 dev_info(host->parent, "allocated mmc-pwrseq\n"); in mmc_pwrseq_alloc()
88 void mmc_pwrseq_pre_power_on(struct mmc_host *host) in mmc_pwrseq_pre_power_on() argument
90 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_pre_power_on()
93 pwrseq->ops->pre_power_on(host); in mmc_pwrseq_pre_power_on()
96 void mmc_pwrseq_post_power_on(struct mmc_host *host) in mmc_pwrseq_post_power_on() argument
98 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_post_power_on()
101 pwrseq->ops->post_power_on(host); in mmc_pwrseq_post_power_on()
104 void mmc_pwrseq_power_off(struct mmc_host *host) in mmc_pwrseq_power_off() argument
106 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_power_off()
109 pwrseq->ops->power_off(host); in mmc_pwrseq_power_off()
112 void mmc_pwrseq_free(struct mmc_host *host) in mmc_pwrseq_free() argument
114 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_free()
117 pwrseq->ops->free(host); in mmc_pwrseq_free()
119 host->pwrseq = NULL; in mmc_pwrseq_free()