Lines Matching refs:mmc
38 struct mmc mmc; member
94 struct mmc *mmc = &plat->mmc; local
98 static void mci_set_mode(struct mmc *mmc, u32 hz, u32 blklen)
100 struct atmel_mci_priv *priv = mmc->priv;
156 if (mmc->card_caps & mmc->cfg->host_caps & MMC_MODE_HS)
248 mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
250 struct atmel_mci_priv *priv = mmc->priv;
375 struct mmc *mmc = mmc_get_mmc_dev(dev); local
379 static int mci_set_ios(struct mmc *mmc)
381 struct atmel_mci_priv *priv = mmc->priv;
384 int bus_width = mmc->bus_width;
390 mci_set_mode(dev, mmc->clock, MMC_DEFAULT_BLKLEN);
392 mci_set_mode(mmc, mmc->clock, MMC_DEFAULT_BLKLEN);
429 static int mci_init(struct mmc *mmc)
431 struct atmel_mci_priv *priv = mmc->priv;
450 mci_set_mode(mmc, CONFIG_SYS_MMC_CLK_OD, MMC_DEFAULT_BLKLEN);
470 struct mmc *mmc; local
506 mmc = mmc_create(cfg, priv);
508 if (mmc == NULL) {
586 struct mmc *mmc; local
597 mmc = &plat->mmc;
598 mmc->cfg = &plat->cfg;
599 mmc->dev = dev;
600 upriv->mmc = mmc;
611 return mmc_bind(dev, &plat->mmc, &plat->cfg);