Lines Matching refs:mmc
41 struct mmc mmc; member
83 struct mmc *mmc = &plat->mmc; local
87 static void mci_set_mode(struct mmc *mmc, u32 hz, u32 blklen)
89 struct atmel_mci_priv *priv = mmc->priv;
150 if (mmc->card_caps & mmc->cfg->host_caps & MMC_MODE_HS)
239 struct mmc *mmc = mmc_get_mmc_dev(dev); local
243 mci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
245 struct atmel_mci_priv *priv = mmc->priv;
263 writel(data->blocks | MMCI_BF(BLKLEN, mmc->read_bl_len),
304 sys_blocksize = mmc->read_bl_len;
308 sys_blocksize = mmc->write_bl_len;
380 struct mmc *mmc = mmc_get_mmc_dev(dev); local
384 static int mci_set_ios(struct mmc *mmc)
386 struct atmel_mci_priv *priv = mmc->priv;
389 int bus_width = mmc->bus_width;
395 mci_set_mode(dev, mmc->clock, MMC_DEFAULT_BLKLEN);
397 mci_set_mode(mmc, mmc->clock, MMC_DEFAULT_BLKLEN);
434 static int mci_init(struct mmc *mmc)
436 struct atmel_mci_priv *priv = mmc->priv;
455 mci_set_mode(mmc, CONFIG_SYS_MMC_CLK_OD, MMC_DEFAULT_BLKLEN);
475 struct mmc *mmc; local
511 mmc = mmc_create(cfg, priv);
513 if (mmc == NULL) {
591 struct mmc *mmc; local
602 mmc = &plat->mmc;
603 mmc->cfg = &plat->cfg;
604 mmc->dev = dev;
605 upriv->mmc = mmc;
616 return mmc_bind(dev, &plat->mmc, &plat->cfg);