Lines Matching refs:mmc

81 static void __toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)  in __toshsd_set_ios()  argument
83 struct toshsd_host *host = mmc_priv(mmc); in __toshsd_set_ios()
156 mmc_request_done(host->mmc, mrq); in toshsd_finish_request()
360 __toshsd_set_ios(host->mmc, &host->mmc->ios); in toshsd_irq()
374 mmc_detect_change(host->mmc, 1); in toshsd_irq()
499 static void toshsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in toshsd_request() argument
501 struct toshsd_host *host = mmc_priv(mmc); in toshsd_request()
507 mmc_request_done(mmc, mrq); in toshsd_request()
527 static void toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in toshsd_set_ios() argument
529 struct toshsd_host *host = mmc_priv(mmc); in toshsd_set_ios()
533 __toshsd_set_ios(mmc, ios); in toshsd_set_ios()
537 static int toshsd_get_ro(struct mmc_host *mmc) in toshsd_get_ro() argument
539 struct toshsd_host *host = mmc_priv(mmc); in toshsd_get_ro()
545 static int toshsd_get_cd(struct mmc_host *mmc) in toshsd_get_cd() argument
547 struct toshsd_host *host = mmc_priv(mmc); in toshsd_get_cd()
611 struct mmc_host *mmc; in toshsd_probe() local
618 mmc = mmc_alloc_host(sizeof(struct toshsd_host), &pdev->dev); in toshsd_probe()
619 if (!mmc) { in toshsd_probe()
624 host = mmc_priv(mmc); in toshsd_probe()
625 host->mmc = mmc; in toshsd_probe()
641 mmc->ops = &toshsd_ops; in toshsd_probe()
642 mmc->caps = MMC_CAP_4_BIT_DATA; in toshsd_probe()
643 mmc->ocr_avail = MMC_VDD_32_33; in toshsd_probe()
645 mmc->f_min = HCLK / 512; in toshsd_probe()
646 mmc->f_max = HCLK; in toshsd_probe()
657 mmc_add_host(mmc); in toshsd_probe()
671 mmc_free_host(mmc); in toshsd_probe()
682 mmc_remove_host(host->mmc); in toshsd_remove()
687 mmc_free_host(host->mmc); in toshsd_remove()