• Home
  • Raw
  • Download

Lines Matching refs:mmc

28 static void cb710_mmc_select_clock_divider(struct mmc_host *mmc, int hz)  in cb710_mmc_select_clock_divider()  argument
30 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_select_clock_divider()
444 static int cb710_mmc_command(struct mmc_host *mmc, struct mmc_command *cmd) in cb710_mmc_command() argument
446 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_command()
447 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_command()
484 static void cb710_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in cb710_mmc_request() argument
486 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_request()
487 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_request()
494 if (!cb710_mmc_command(mmc, mrq->cmd) && mrq->stop) in cb710_mmc_request()
495 cb710_mmc_command(mmc, mrq->stop); in cb710_mmc_request()
561 static void cb710_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in cb710_mmc_set_ios() argument
563 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_set_ios()
564 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_set_ios()
567 cb710_mmc_select_clock_divider(mmc, ios->clock); in cb710_mmc_set_ios()
600 static int cb710_mmc_get_ro(struct mmc_host *mmc) in cb710_mmc_get_ro() argument
602 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_get_ro()
608 static int cb710_mmc_get_cd(struct mmc_host *mmc) in cb710_mmc_get_cd() argument
610 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_get_cd()
618 struct mmc_host *mmc = cb710_slot_to_mmc(slot); in cb710_mmc_irq_handler() local
619 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_irq_handler()
637 mmc_detect_change(mmc, HZ/5); in cb710_mmc_irq_handler()
650 struct mmc_host *mmc = (void *)data; in cb710_mmc_finish_request_tasklet() local
651 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_finish_request_tasklet()
655 mmc_request_done(mmc, mrq); in cb710_mmc_finish_request_tasklet()
670 struct mmc_host *mmc = cb710_slot_to_mmc(slot); in cb710_mmc_suspend() local
673 err = mmc_suspend_host(mmc); in cb710_mmc_suspend()
684 struct mmc_host *mmc = cb710_slot_to_mmc(slot); in cb710_mmc_resume() local
688 return mmc_resume_host(mmc); in cb710_mmc_resume()
697 struct mmc_host *mmc; in cb710_mmc_init() local
702 mmc = mmc_alloc_host(sizeof(*reader), cb710_slot_dev(slot)); in cb710_mmc_init()
703 if (!mmc) in cb710_mmc_init()
706 dev_set_drvdata(&pdev->dev, mmc); in cb710_mmc_init()
714 mmc->ops = &cb710_mmc_host; in cb710_mmc_init()
715 mmc->f_max = val; in cb710_mmc_init()
716 mmc->f_min = val >> cb710_clock_divider_log2[CB710_MAX_DIVIDER_IDX]; in cb710_mmc_init()
717 mmc->ocr_avail = MMC_VDD_32_33|MMC_VDD_33_34; in cb710_mmc_init()
718 mmc->caps = MMC_CAP_4_BIT_DATA; in cb710_mmc_init()
720 reader = mmc_priv(mmc); in cb710_mmc_init()
723 cb710_mmc_finish_request_tasklet, (unsigned long)mmc); in cb710_mmc_init()
730 err = mmc_add_host(mmc); in cb710_mmc_init()
735 mmc_hostname(mmc)); in cb710_mmc_init()
745 mmc_free_host(mmc); in cb710_mmc_init()
752 struct mmc_host *mmc = cb710_slot_to_mmc(slot); in cb710_mmc_exit() local
753 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_exit()
757 mmc_remove_host(mmc); in cb710_mmc_exit()
769 mmc_free_host(mmc); in cb710_mmc_exit()