Lines Matching refs:mmc
621 static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) in tifm_sd_request() argument
623 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_request()
732 mmc_request_done(mmc, mrq); in tifm_sd_request()
739 struct mmc_host *mmc = tifm_get_drvdata(sock); in tifm_sd_end_cmd() local
783 mmc_request_done(mmc, mrq); in tifm_sd_end_cmd()
797 static void tifm_sd_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tifm_sd_ios() argument
799 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_ios()
864 static int tifm_sd_ro(struct mmc_host *mmc) in tifm_sd_ro() argument
867 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_ro()
949 struct mmc_host *mmc; in tifm_sd_probe() local
960 mmc = mmc_alloc_host(sizeof(struct tifm_sd), &sock->dev); in tifm_sd_probe()
961 if (!mmc) in tifm_sd_probe()
964 host = mmc_priv(mmc); in tifm_sd_probe()
965 tifm_set_drvdata(sock, mmc); in tifm_sd_probe()
973 mmc->ops = &tifm_sd_ops; in tifm_sd_probe()
974 mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34; in tifm_sd_probe()
975 mmc->caps = MMC_CAP_4_BIT_DATA; in tifm_sd_probe()
976 mmc->f_min = 20000000 / 60; in tifm_sd_probe()
977 mmc->f_max = 24000000; in tifm_sd_probe()
979 mmc->max_blk_count = 2048; in tifm_sd_probe()
980 mmc->max_segs = mmc->max_blk_count; in tifm_sd_probe()
981 mmc->max_blk_size = min(TIFM_MMCSD_MAX_BLOCK_SIZE, PAGE_SIZE); in tifm_sd_probe()
982 mmc->max_seg_size = mmc->max_blk_count * mmc->max_blk_size; in tifm_sd_probe()
983 mmc->max_req_size = mmc->max_seg_size; in tifm_sd_probe()
990 rc = mmc_add_host(mmc); in tifm_sd_probe()
994 mmc_free_host(mmc); in tifm_sd_probe()
1000 struct mmc_host *mmc = tifm_get_drvdata(sock); in tifm_sd_remove() local
1001 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_remove()
1023 mmc_remove_host(mmc); in tifm_sd_remove()
1026 mmc_free_host(mmc); in tifm_sd_remove()
1038 struct mmc_host *mmc = tifm_get_drvdata(sock); in tifm_sd_resume() local
1039 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_resume()