• Home
  • Raw
  • Download

Lines Matching refs:mmc

65 	struct mmc_host			*mmc;  member
80 static int mxs_mmc_get_ro(struct mmc_host *mmc) in mxs_mmc_get_ro() argument
82 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_get_ro()
96 static int mxs_mmc_get_cd(struct mmc_host *mmc) in mxs_mmc_get_cd() argument
98 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_get_cd()
160 dma_unmap_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_request_done()
179 mmc_request_done(host->mmc, mrq); in mxs_mmc_request_done()
206 mmc_signal_sdio_irq(host->mmc); in mxs_mmc_irq_handler()
238 dma_map_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_prep_dma()
255 dma_unmap_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_prep_dma()
292 dev_warn(mmc_dev(host->mmc), in mxs_mmc_bc()
334 dev_warn(mmc_dev(host->mmc), in mxs_mmc_ac()
464 dev_warn(mmc_dev(host->mmc), in mxs_mmc_adtc()
487 dev_warn(mmc_dev(host->mmc), in mxs_mmc_start_cmd()
493 static void mxs_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in mxs_mmc_request() argument
495 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_request()
502 static void mxs_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mxs_mmc_set_ios() argument
504 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_set_ios()
517 static void mxs_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) in mxs_mmc_enable_sdio_irq() argument
519 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_enable_sdio_irq()
543 mmc_signal_sdio_irq(host->mmc); in mxs_mmc_enable_sdio_irq()
581 struct mmc_host *mmc; in mxs_mmc_probe() local
595 mmc = mmc_alloc_host(sizeof(struct mxs_mmc_host), &pdev->dev); in mxs_mmc_probe()
596 if (!mmc) in mxs_mmc_probe()
599 host = mmc_priv(mmc); in mxs_mmc_probe()
610 host->mmc = mmc; in mxs_mmc_probe()
640 dev_err(mmc_dev(host->mmc), in mxs_mmc_probe()
646 mmc->ops = &mxs_mmc_ops; in mxs_mmc_probe()
647 mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED | in mxs_mmc_probe()
652 mmc->caps |= MMC_CAP_4_BIT_DATA; in mxs_mmc_probe()
654 mmc->caps |= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA; in mxs_mmc_probe()
658 mmc->caps |= MMC_CAP_NONREMOVABLE; in mxs_mmc_probe()
665 mmc->f_min = 400000; in mxs_mmc_probe()
666 mmc->f_max = 288000000; in mxs_mmc_probe()
667 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; in mxs_mmc_probe()
669 mmc->max_segs = 52; in mxs_mmc_probe()
670 mmc->max_blk_size = 1 << 0xf; in mxs_mmc_probe()
671 mmc->max_blk_count = (ssp_is_old(ssp)) ? 0xff : 0xffffff; in mxs_mmc_probe()
672 mmc->max_req_size = (ssp_is_old(ssp)) ? 0xffff : 0xffffffff; in mxs_mmc_probe()
673 mmc->max_seg_size = dma_get_max_seg_size(ssp->dmach->device->dev); in mxs_mmc_probe()
675 platform_set_drvdata(pdev, mmc); in mxs_mmc_probe()
684 ret = mmc_add_host(mmc); in mxs_mmc_probe()
688 dev_info(mmc_dev(host->mmc), "initialized\n"); in mxs_mmc_probe()
699 mmc_free_host(mmc); in mxs_mmc_probe()
705 struct mmc_host *mmc = platform_get_drvdata(pdev); in mxs_mmc_remove() local
706 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_remove()
709 mmc_remove_host(mmc); in mxs_mmc_remove()
719 mmc_free_host(mmc); in mxs_mmc_remove()
727 struct mmc_host *mmc = dev_get_drvdata(dev); in mxs_mmc_suspend() local
728 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_suspend()
732 ret = mmc_suspend_host(mmc); in mxs_mmc_suspend()
741 struct mmc_host *mmc = dev_get_drvdata(dev); in mxs_mmc_resume() local
742 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_resume()
748 ret = mmc_resume_host(mmc); in mxs_mmc_resume()