• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mmc/host/

Lines Matching defs:mmc

2  *  cb710/mmc.c
14 #include "cb710-mmc.h"
28 static void cb710_mmc_set_clock(struct mmc_host *mmc, int hz)
30 struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
447 static int cb710_mmc_command(struct mmc_host *mmc, struct mmc_command *cmd)
449 struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
450 struct cb710_mmc_reader *reader = mmc_priv(mmc);
487 static void cb710_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
489 struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
490 struct cb710_mmc_reader *reader = mmc_priv(mmc);
498 if (!cb710_mmc_command(mmc, mrq->cmd) && mrq->stop)
499 cb710_mmc_command(mmc, mrq->stop);
569 static void cb710_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
571 struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
572 struct cb710_mmc_reader *reader = mmc_priv(mmc);
575 cb710_mmc_set_clock(mmc, ios->clock);
614 static int cb710_mmc_get_ro(struct mmc_host *mmc)
616 struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
624 struct mmc_host *mmc = cb710_slot_to_mmc(slot);
625 struct cb710_mmc_reader *reader = mmc_priv(mmc);
643 mmc_detect_change(mmc, HZ/5);
656 struct mmc_host *mmc = (void *)data;
657 struct cb710_mmc_reader *reader = mmc_priv(mmc);
661 mmc_request_done(mmc, mrq);
675 struct mmc_host *mmc = cb710_slot_to_mmc(slot);
678 err = mmc_suspend_host(mmc);
689 struct mmc_host *mmc = cb710_slot_to_mmc(slot);
693 return mmc_resume_host(mmc);
702 struct mmc_host *mmc;
707 mmc = mmc_alloc_host(sizeof(*reader), cb710_slot_dev(slot));
708 if (!mmc)
711 dev_set_drvdata(&pdev->dev, mmc);
719 mmc->ops = &cb710_mmc_host;
720 mmc->f_max = val;
721 mmc->f_min = val >> cb710_clock_divider_log2[CB710_MAX_DIVIDER_IDX];
722 mmc->ocr_avail = MMC_VDD_32_33|MMC_VDD_33_34;
723 mmc->caps = MMC_CAP_4_BIT_DATA;
725 reader = mmc_priv(mmc);
728 cb710_mmc_finish_request_tasklet, (unsigned long)mmc);
735 err = mmc_add_host(mmc);
740 mmc_hostname(mmc));
749 mmc_free_host(mmc);
756 struct mmc_host *mmc = cb710_slot_to_mmc(slot);
757 struct cb710_mmc_reader *reader = mmc_priv(mmc);
761 mmc_remove_host(mmc);
773 mmc_free_host(mmc);
778 .driver.name = "cb710-mmc",
803 MODULE_ALIAS("platform:cb710-mmc");