Lines Matching refs:mmc
80 struct mmc_host *mmc; /* MMC structure */ member
254 static void sdricoh_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdricoh_request() argument
256 struct sdricoh_host *host = mmc_priv(mmc); in sdricoh_request()
331 mmc_request_done(mmc, mrq); in sdricoh_request()
335 static void sdricoh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdricoh_set_ios() argument
337 struct sdricoh_host *host = mmc_priv(mmc); in sdricoh_set_ios()
356 static int sdricoh_get_ro(struct mmc_host *mmc) in sdricoh_get_ro() argument
358 struct sdricoh_host *host = mmc_priv(mmc); in sdricoh_get_ro()
383 struct mmc_host *mmc; in sdricoh_init_mmc() local
405 mmc = pcmcia_dev->priv = in sdricoh_init_mmc()
407 if (!mmc) { in sdricoh_init_mmc()
412 host = mmc_priv(mmc); in sdricoh_init_mmc()
418 mmc->ops = &sdricoh_ops; in sdricoh_init_mmc()
422 mmc->f_min = 450000; in sdricoh_init_mmc()
423 mmc->f_max = 24000000; in sdricoh_init_mmc()
424 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; in sdricoh_init_mmc()
425 mmc->caps |= MMC_CAP_4_BIT_DATA; in sdricoh_init_mmc()
427 mmc->max_seg_size = 1024 * 512; in sdricoh_init_mmc()
428 mmc->max_blk_size = 512; in sdricoh_init_mmc()
437 result = mmc_add_host(mmc); in sdricoh_init_mmc()
444 mmc_free_host(mmc); in sdricoh_init_mmc()
476 struct mmc_host *mmc = link->priv; in sdricoh_pcmcia_detach() local
481 if (mmc) { in sdricoh_pcmcia_detach()
482 struct sdricoh_host *host = mmc_priv(mmc); in sdricoh_pcmcia_detach()
483 mmc_remove_host(mmc); in sdricoh_pcmcia_detach()
486 mmc_free_host(mmc); in sdricoh_pcmcia_detach()
501 struct mmc_host *mmc = link->priv; in sdricoh_pcmcia_resume() local
503 sdricoh_reset(mmc_priv(mmc)); in sdricoh_pcmcia_resume()