Lines Matching refs:mmc

135 mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)  in mxsmmc_send_cmd()  argument
137 struct mxsmmc_priv *priv = mmc->priv; in mxsmmc_send_cmd()
144 debug("MMC%d: CMD%d\n", mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd()
159 printf("MMC%d: Bus busy timeout!\n", mmc->block_dev.devnum); in mxsmmc_send_cmd()
165 printf("MMC%d: No card detected!\n", mmc->block_dev.devnum); in mxsmmc_send_cmd()
202 priv->mmc_is_wp(mmc->block_dev.devnum)) { in mxsmmc_send_cmd()
204 mmc->block_dev.devnum); in mxsmmc_send_cmd()
245 mmc->block_dev.devnum, cmd->cmdidx); in mxsmmc_send_cmd()
252 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
259 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
281 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
288 mmc->block_dev.devnum); in mxsmmc_send_cmd()
299 mmc->block_dev.devnum, cmd->cmdidx, reg); in mxsmmc_send_cmd()
306 static int mxsmmc_set_ios(struct mmc *mmc) in mxsmmc_set_ios() argument
308 struct mxsmmc_priv *priv = mmc->priv; in mxsmmc_set_ios()
312 if (mmc->clock) in mxsmmc_set_ios()
313 mxs_set_ssp_busclock(priv->id, mmc->clock / 1000); in mxsmmc_set_ios()
315 switch (mmc->bus_width) { in mxsmmc_set_ios()
332 mmc->block_dev.devnum, mmc->bus_width); in mxsmmc_set_ios()
337 static int mxsmmc_init(struct mmc *mmc) in mxsmmc_init() argument
339 struct mxsmmc_priv *priv = mmc->priv; in mxsmmc_init()
376 struct mmc *mmc = NULL; in mxsmmc_initialize() local
421 mmc = mmc_create(&priv->cfg, priv); in mxsmmc_initialize()
422 if (mmc == NULL) { in mxsmmc_initialize()