Lines Matching refs:mmc
52 struct mmc mmc; member
63 static inline int ftsdc010_send_cmd(struct mmc *mmc, struct mmc_cmd *mmc_cmd) in ftsdc010_send_cmd() argument
65 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_send_cmd()
133 static void ftsdc010_clkset(struct mmc *mmc, uint32_t rate) in ftsdc010_clkset() argument
135 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_clkset()
147 if (IS_SD(mmc)) { in ftsdc010_clkset()
183 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_request() local
186 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_request()
223 ret = ftsdc010_send_cmd(mmc, cmd); in ftsdc010_request()
286 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_set_ios() local
287 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_set_ios()
290 ftsdc010_clkset(mmc, mmc->clock); in ftsdc010_set_ios()
293 switch (mmc->bus_width) { in ftsdc010_set_ios()
310 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_cd() local
311 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_get_cd()
318 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_get_wp() local
319 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_get_wp()
329 static int ftsdc010_init(struct mmc *mmc) in ftsdc010_init() argument
331 struct ftsdc010_chip *chip = mmc->priv; in ftsdc010_init()
350 ftsdc010_clkset(mmc, 400000); in ftsdc010_init()
360 struct mmc *mmc = mmc_get_mmc_dev(dev); in ftsdc010_probe() local
361 return ftsdc010_init(mmc); in ftsdc010_probe()
451 chip->mmc = &plat->mmc; in ftsdc010_mmc_probe()
452 chip->mmc->priv = &priv->chip; in ftsdc010_mmc_probe()
453 chip->mmc->dev = dev; in ftsdc010_mmc_probe()
454 upriv->mmc = chip->mmc; in ftsdc010_mmc_probe()
462 return mmc_bind(dev, &plat->mmc, &plat->cfg); in ftsdc010_mmc_bind()