Lines Matching refs:mmc
16 #include <linux/mmc/host.h>
620 static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq)
622 struct tifm_sd *host = mmc_priv(mmc);
726 mmc_request_done(mmc, mrq);
733 struct mmc_host *mmc = tifm_get_drvdata(sock);
777 mmc_request_done(mmc, mrq);
792 static void tifm_sd_ios(struct mmc_host *mmc, struct mmc_ios *ios)
794 struct tifm_sd *host = mmc_priv(mmc);
859 static int tifm_sd_ro(struct mmc_host *mmc)
862 struct tifm_sd *host = mmc_priv(mmc);
945 struct mmc_host *mmc;
956 mmc = mmc_alloc_host(sizeof(struct tifm_sd), &sock->dev);
957 if (!mmc)
960 host = mmc_priv(mmc);
962 tifm_set_drvdata(sock, mmc);
970 mmc->ops = &tifm_sd_ops;
971 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
972 mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_MULTIWRITE;
973 mmc->f_min = 20000000 / 60;
974 mmc->f_max = 24000000;
976 mmc->max_blk_count = 2048;
977 mmc->max_hw_segs = mmc->max_blk_count;
978 mmc->max_blk_size = min(TIFM_MMCSD_MAX_BLOCK_SIZE, PAGE_SIZE);
979 mmc->max_seg_size = mmc->max_blk_count * mmc->max_blk_size;
980 mmc->max_req_size = mmc->max_seg_size;
981 mmc->max_phys_segs = mmc->max_hw_segs;
988 rc = mmc_add_host(mmc);
992 mmc_free_host(mmc);
998 struct mmc_host *mmc = tifm_get_drvdata(sock);
999 struct tifm_sd *host = mmc_priv(mmc);
1021 mmc_remove_host(mmc);
1024 mmc_free_host(mmc);
1036 struct mmc_host *mmc = tifm_get_drvdata(sock);
1037 struct tifm_sd *host = mmc_priv(mmc);
1046 rc = mmc_resume_host(mmc);