• Home
  • Raw
  • Download

Lines Matching refs:mmc

51 	struct mmc_host			*mmc;  member
62 static int mxs_mmc_get_cd(struct mmc_host *mmc) in mxs_mmc_get_cd() argument
64 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_get_cd()
71 ret = mmc_gpio_get_cd(mmc); in mxs_mmc_get_cd()
75 present = mmc->caps & MMC_CAP_NEEDS_POLL || in mxs_mmc_get_cd()
79 if (mmc->caps2 & MMC_CAP2_CD_ACTIVE_HIGH) in mxs_mmc_get_cd()
147 dma_unmap_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_request_done()
166 mmc_request_done(host->mmc, mrq); in mxs_mmc_request_done()
193 mmc_signal_sdio_irq(host->mmc); in mxs_mmc_irq_handler()
225 dma_map_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_prep_dma()
242 dma_unmap_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_prep_dma()
279 dev_warn(mmc_dev(host->mmc), in mxs_mmc_bc()
324 dev_warn(mmc_dev(host->mmc), in mxs_mmc_ac()
453 dev_warn(mmc_dev(host->mmc), in mxs_mmc_adtc()
476 dev_warn(mmc_dev(host->mmc), in mxs_mmc_start_cmd()
482 static void mxs_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in mxs_mmc_request() argument
484 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_request()
495 static void mxs_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mxs_mmc_set_ios() argument
497 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_set_ios()
510 static void mxs_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) in mxs_mmc_enable_sdio_irq() argument
512 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_enable_sdio_irq()
536 mmc_signal_sdio_irq(host->mmc); in mxs_mmc_enable_sdio_irq()
564 struct mmc_host *mmc; in mxs_mmc_probe() local
573 mmc = mmc_alloc_host(sizeof(struct mxs_mmc_host), &pdev->dev); in mxs_mmc_probe()
574 if (!mmc) in mxs_mmc_probe()
577 host = mmc_priv(mmc); in mxs_mmc_probe()
588 host->mmc = mmc; in mxs_mmc_probe()
623 dev_err(mmc_dev(host->mmc), in mxs_mmc_probe()
630 mmc->ops = &mxs_mmc_ops; in mxs_mmc_probe()
631 mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED | in mxs_mmc_probe()
636 mmc->f_min = 400000; in mxs_mmc_probe()
637 mmc->f_max = 288000000; in mxs_mmc_probe()
639 ret = mmc_of_parse(mmc); in mxs_mmc_probe()
643 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; in mxs_mmc_probe()
645 mmc->max_segs = 52; in mxs_mmc_probe()
646 mmc->max_blk_size = 1 << 0xf; in mxs_mmc_probe()
647 mmc->max_blk_count = (ssp_is_old(ssp)) ? 0xff : 0xffffff; in mxs_mmc_probe()
648 mmc->max_req_size = (ssp_is_old(ssp)) ? 0xffff : 0xffffffff; in mxs_mmc_probe()
649 mmc->max_seg_size = dma_get_max_seg_size(ssp->dmach->device->dev); in mxs_mmc_probe()
651 platform_set_drvdata(pdev, mmc); in mxs_mmc_probe()
660 ret = mmc_add_host(mmc); in mxs_mmc_probe()
664 dev_info(mmc_dev(host->mmc), "initialized\n"); in mxs_mmc_probe()
673 mmc_free_host(mmc); in mxs_mmc_probe()
679 struct mmc_host *mmc = platform_get_drvdata(pdev); in mxs_mmc_remove() local
680 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_remove()
683 mmc_remove_host(mmc); in mxs_mmc_remove()
690 mmc_free_host(mmc); in mxs_mmc_remove()
698 struct mmc_host *mmc = dev_get_drvdata(dev); in mxs_mmc_suspend() local
699 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_suspend()
708 struct mmc_host *mmc = dev_get_drvdata(dev); in mxs_mmc_resume() local
709 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_resume()