mmc               141 arch/alpha/include/asm/mmu_context.h 	unsigned long mmc;
mmc               149 arch/alpha/include/asm/mmu_context.h 	mmc = next_mm->context[cpu];
mmc               150 arch/alpha/include/asm/mmu_context.h 	if ((mmc ^ asn) & ~HARDWARE_ASN_MASK) {
mmc               151 arch/alpha/include/asm/mmu_context.h 		mmc = __get_new_mm_context(next_mm, cpu);
mmc               152 arch/alpha/include/asm/mmu_context.h 		next_mm->context[cpu] = mmc;
mmc               162 arch/alpha/include/asm/mmu_context.h 	task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK;
mmc                92 arch/alpha/include/asm/tlbflush.h 	unsigned long *mmc = &mm->context[smp_processor_id()];
mmc                95 arch/alpha/include/asm/tlbflush.h 	if (*mmc) *mmc = 0;
mmc                43 arch/alpha/mm/fault.c 	unsigned long mmc;
mmc                46 arch/alpha/mm/fault.c 	mmc = __get_new_mm_context(next_mm, smp_processor_id());
mmc                47 arch/alpha/mm/fault.c 	next_mm->context[smp_processor_id()] = mmc;
mmc                50 arch/alpha/mm/fault.c 	pcb->asn = mmc & HARDWARE_ASN_MASK;
mmc                30 arch/arm/mach-omap2/hsmmc.c 					struct omap_hsmmc_platform_data *mmc)
mmc                38 arch/arm/mach-omap2/hsmmc.c 	snprintf(hc_name, (HSMMC_NAME_LEN + 1), "mmc%islot%i", c->mmc, 1);
mmc                39 arch/arm/mach-omap2/hsmmc.c 	mmc->name = hc_name;
mmc                40 arch/arm/mach-omap2/hsmmc.c 	mmc->caps = c->caps;
mmc                41 arch/arm/mach-omap2/hsmmc.c 	mmc->reg_offset = 0;
mmc                58 arch/arm/mach-omap2/hsmmc.c 	for (; c->mmc; c++) {
mmc               166 arch/arm/mach-omap2/hsmmc.c 	for (; controllers->mmc; controllers++)
mmc               167 arch/arm/mach-omap2/hsmmc.c 		omap_hsmmc_init_one(controllers, controllers->mmc);
mmc                 9 arch/arm/mach-omap2/hsmmc.h 	u8	mmc;		/* controller 1/2/3 */
mmc               710 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t mmc:3;
mmc               718 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t mmc:3;
mmc               253 drivers/clk/mvebu/armada-37xx-periph.c PERIPH_CLK_FULL_DD(mmc, 2, 0, DIV_SEL2, DIV_SEL2, 16, 13);
mmc               272 drivers/clk/mvebu/armada-37xx-periph.c 	REF_CLK_FULL_DD(mmc),
mmc               174 drivers/clk/sunxi/clk-mod0.c 	struct clk *mmc, *mmc_parent, *clk = hw->clk;
mmc               188 drivers/clk/sunxi/clk-mod0.c 	mmc = clk_get_parent(clk);
mmc               189 drivers/clk/sunxi/clk-mod0.c 	if (!mmc)
mmc               193 drivers/clk/sunxi/clk-mod0.c 	mmc_rate = clk_get_rate(mmc);
mmc               198 drivers/clk/sunxi/clk-mod0.c 	mmc_parent = clk_get_parent(mmc);
mmc               216 drivers/clk/sunxi/clk-mod0.c 	struct clk *mmc, *mmc_parent, *clk = hw->clk;
mmc               224 drivers/clk/sunxi/clk-mod0.c 	mmc = clk_get_parent(clk);
mmc               225 drivers/clk/sunxi/clk-mod0.c 	if (!mmc)
mmc               229 drivers/clk/sunxi/clk-mod0.c 	mmc_rate = clk_get_rate(mmc);
mmc               234 drivers/clk/sunxi/clk-mod0.c 	mmc_parent = clk_get_parent(mmc);
mmc                80 drivers/mfd/t7l66xb.c static int t7l66xb_mmc_enable(struct platform_device *mmc)
mmc                82 drivers/mfd/t7l66xb.c 	struct t7l66xb *t7l66xb = dev_get_drvdata(mmc->dev.parent);
mmc               105 drivers/mfd/t7l66xb.c static int t7l66xb_mmc_disable(struct platform_device *mmc)
mmc               107 drivers/mfd/t7l66xb.c 	struct t7l66xb *t7l66xb = dev_get_drvdata(mmc->dev.parent);
mmc               124 drivers/mfd/t7l66xb.c static void t7l66xb_mmc_pwr(struct platform_device *mmc, int state)
mmc               126 drivers/mfd/t7l66xb.c 	struct t7l66xb *t7l66xb = dev_get_drvdata(mmc->dev.parent);
mmc               131 drivers/mfd/t7l66xb.c static void t7l66xb_mmc_clk_div(struct platform_device *mmc, int state)
mmc               133 drivers/mfd/t7l66xb.c 	struct t7l66xb *t7l66xb = dev_get_drvdata(mmc->dev.parent);
mmc                77 drivers/mfd/tc6387xb.c static void tc6387xb_mmc_pwr(struct platform_device *mmc, int state)
mmc                79 drivers/mfd/tc6387xb.c 	struct tc6387xb *tc6387xb = dev_get_drvdata(mmc->dev.parent);
mmc                84 drivers/mfd/tc6387xb.c static void tc6387xb_mmc_clk_div(struct platform_device *mmc, int state)
mmc                86 drivers/mfd/tc6387xb.c 	struct tc6387xb *tc6387xb = dev_get_drvdata(mmc->dev.parent);
mmc                92 drivers/mfd/tc6387xb.c static int tc6387xb_mmc_enable(struct platform_device *mmc)
mmc                94 drivers/mfd/tc6387xb.c 	struct tc6387xb *tc6387xb = dev_get_drvdata(mmc->dev.parent);
mmc               104 drivers/mfd/tc6387xb.c static int tc6387xb_mmc_disable(struct platform_device *mmc)
mmc               106 drivers/mfd/tc6387xb.c 	struct tc6387xb *tc6387xb = dev_get_drvdata(mmc->dev.parent);
mmc               346 drivers/mfd/tc6393xb.c static int tc6393xb_mmc_enable(struct platform_device *mmc)
mmc               348 drivers/mfd/tc6393xb.c 	struct tc6393xb *tc6393xb = dev_get_drvdata(mmc->dev.parent);
mmc               356 drivers/mfd/tc6393xb.c static int tc6393xb_mmc_resume(struct platform_device *mmc)
mmc               358 drivers/mfd/tc6393xb.c 	struct tc6393xb *tc6393xb = dev_get_drvdata(mmc->dev.parent);
mmc               366 drivers/mfd/tc6393xb.c static void tc6393xb_mmc_pwr(struct platform_device *mmc, int state)
mmc               368 drivers/mfd/tc6393xb.c 	struct tc6393xb *tc6393xb = dev_get_drvdata(mmc->dev.parent);
mmc               373 drivers/mfd/tc6393xb.c static void tc6393xb_mmc_clk_div(struct platform_device *mmc, int state)
mmc               375 drivers/mfd/tc6393xb.c 	struct tc6393xb *tc6393xb = dev_get_drvdata(mmc->dev.parent);
mmc               106 drivers/mmc/core/regulator.c int mmc_regulator_set_ocr(struct mmc_host *mmc,
mmc               117 drivers/mmc/core/regulator.c 		if (result == 0 && !mmc->regulator_enabled) {
mmc               120 drivers/mmc/core/regulator.c 				mmc->regulator_enabled = true;
mmc               122 drivers/mmc/core/regulator.c 	} else if (mmc->regulator_enabled) {
mmc               125 drivers/mmc/core/regulator.c 			mmc->regulator_enabled = false;
mmc               129 drivers/mmc/core/regulator.c 		dev_err(mmc_dev(mmc),
mmc               167 drivers/mmc/core/regulator.c int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               169 drivers/mmc/core/regulator.c 	struct device *dev = mmc_dev(mmc);
mmc               173 drivers/mmc/core/regulator.c 	if (IS_ERR(mmc->supply.vqmmc))
mmc               178 drivers/mmc/core/regulator.c 		return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc,
mmc               181 drivers/mmc/core/regulator.c 		return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc,
mmc               184 drivers/mmc/core/regulator.c 		ret = mmc_ocrbitnum_to_vdd(mmc->ios.vdd, &volt, &max_uV);
mmc               201 drivers/mmc/core/regulator.c 		if (!mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc,
mmc               205 drivers/mmc/core/regulator.c 		return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc,
mmc               232 drivers/mmc/core/regulator.c int mmc_regulator_get_supply(struct mmc_host *mmc)
mmc               234 drivers/mmc/core/regulator.c 	struct device *dev = mmc_dev(mmc);
mmc               237 drivers/mmc/core/regulator.c 	mmc->supply.vmmc = devm_regulator_get_optional(dev, "vmmc");
mmc               238 drivers/mmc/core/regulator.c 	mmc->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc");
mmc               240 drivers/mmc/core/regulator.c 	if (IS_ERR(mmc->supply.vmmc)) {
mmc               241 drivers/mmc/core/regulator.c 		if (PTR_ERR(mmc->supply.vmmc) == -EPROBE_DEFER)
mmc               245 drivers/mmc/core/regulator.c 		ret = mmc_regulator_get_ocrmask(mmc->supply.vmmc);
mmc               247 drivers/mmc/core/regulator.c 			mmc->ocr_avail = ret;
mmc               252 drivers/mmc/core/regulator.c 	if (IS_ERR(mmc->supply.vqmmc)) {
mmc               253 drivers/mmc/core/regulator.c 		if (PTR_ERR(mmc->supply.vqmmc) == -EPROBE_DEFER)
mmc               692 drivers/mmc/host/alcor.c static void alcor_set_timing(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               694 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               705 drivers/mmc/host/alcor.c static void alcor_set_bus_width(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               707 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               720 drivers/mmc/host/alcor.c static int alcor_card_busy(struct mmc_host *mmc)
mmc               722 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               732 drivers/mmc/host/alcor.c static int alcor_get_cd(struct mmc_host *mmc)
mmc               734 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               744 drivers/mmc/host/alcor.c static int alcor_get_ro(struct mmc_host *mmc)
mmc               746 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               756 drivers/mmc/host/alcor.c static void alcor_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               758 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               765 drivers/mmc/host/alcor.c 	if (alcor_get_cd(mmc))
mmc               775 drivers/mmc/host/alcor.c static void alcor_pre_req(struct mmc_host *mmc,
mmc               778 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               825 drivers/mmc/host/alcor.c static void alcor_post_req(struct mmc_host *mmc,
mmc               829 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               845 drivers/mmc/host/alcor.c static void alcor_set_power_mode(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               847 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               906 drivers/mmc/host/alcor.c static void alcor_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               908 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc               916 drivers/mmc/host/alcor.c 		alcor_set_power_mode(mmc, ios);
mmc               919 drivers/mmc/host/alcor.c 		alcor_set_timing(mmc, ios);
mmc               920 drivers/mmc/host/alcor.c 		alcor_set_bus_width(mmc, ios);
mmc               927 drivers/mmc/host/alcor.c static int alcor_signal_voltage_switch(struct mmc_host *mmc,
mmc               930 drivers/mmc/host/alcor.c 	struct alcor_sdmmc_host *host = mmc_priv(mmc);
mmc              1050 drivers/mmc/host/alcor.c 	struct mmc_host *mmc = mmc_from_priv(host);
mmc              1052 drivers/mmc/host/alcor.c 	mmc->f_min = AU6601_MIN_CLOCK;
mmc              1053 drivers/mmc/host/alcor.c 	mmc->f_max = AU6601_MAX_CLOCK;
mmc              1054 drivers/mmc/host/alcor.c 	mmc->ocr_avail = MMC_VDD_33_34;
mmc              1055 drivers/mmc/host/alcor.c 	mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED
mmc              1058 drivers/mmc/host/alcor.c 	mmc->caps2 = MMC_CAP2_NO_SDIO;
mmc              1059 drivers/mmc/host/alcor.c 	mmc->ops = &alcor_sdc_ops;
mmc              1072 drivers/mmc/host/alcor.c 	mmc->max_segs = AU6601_MAX_DMA_SEGMENTS;
mmc              1073 drivers/mmc/host/alcor.c 	mmc->max_seg_size = AU6601_MAX_DMA_BLOCK_SIZE;
mmc              1074 drivers/mmc/host/alcor.c 	mmc->max_blk_count = 240;
mmc              1075 drivers/mmc/host/alcor.c 	mmc->max_req_size = mmc->max_blk_count * mmc->max_blk_size;
mmc              1076 drivers/mmc/host/alcor.c 	dma_set_max_seg_size(host->dev, mmc->max_seg_size);
mmc              1082 drivers/mmc/host/alcor.c 	struct mmc_host *mmc;
mmc              1086 drivers/mmc/host/alcor.c 	mmc = mmc_alloc_host(sizeof(*host), &pdev->dev);
mmc              1087 drivers/mmc/host/alcor.c 	if (!mmc) {
mmc              1092 drivers/mmc/host/alcor.c 	host = mmc_priv(mmc);
mmc              1117 drivers/mmc/host/alcor.c 	mmc_add_host(mmc);
mmc              1121 drivers/mmc/host/alcor.c 	mmc_free_host(mmc);
mmc              1128 drivers/mmc/host/alcor.c 	struct mmc_host *mmc = mmc_from_priv(host);
mmc              1134 drivers/mmc/host/alcor.c 	mmc_remove_host(mmc);
mmc              1135 drivers/mmc/host/alcor.c 	mmc_free_host(mmc);
mmc               398 drivers/mmc/host/android-goldfish.c static void goldfish_mmc_request(struct mmc_host *mmc, struct mmc_request *req)
mmc               400 drivers/mmc/host/android-goldfish.c 	struct goldfish_mmc_host *host = mmc_priv(mmc);
mmc               417 drivers/mmc/host/android-goldfish.c static void goldfish_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               419 drivers/mmc/host/android-goldfish.c 	struct goldfish_mmc_host *host = mmc_priv(mmc);
mmc               425 drivers/mmc/host/android-goldfish.c static int goldfish_mmc_get_ro(struct mmc_host *mmc)
mmc               428 drivers/mmc/host/android-goldfish.c 	struct goldfish_mmc_host *host = mmc_priv(mmc);
mmc               442 drivers/mmc/host/android-goldfish.c 	struct mmc_host *mmc;
mmc               454 drivers/mmc/host/android-goldfish.c 	mmc = mmc_alloc_host(sizeof(struct goldfish_mmc_host), &pdev->dev);
mmc               455 drivers/mmc/host/android-goldfish.c 	if (mmc == NULL) {
mmc               460 drivers/mmc/host/android-goldfish.c 	host = mmc_priv(mmc);
mmc               480 drivers/mmc/host/android-goldfish.c 	mmc->ops = &goldfish_mmc_ops;
mmc               481 drivers/mmc/host/android-goldfish.c 	mmc->f_min = 400000;
mmc               482 drivers/mmc/host/android-goldfish.c 	mmc->f_max = 24000000;
mmc               483 drivers/mmc/host/android-goldfish.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               484 drivers/mmc/host/android-goldfish.c 	mmc->caps = MMC_CAP_4_BIT_DATA;
mmc               490 drivers/mmc/host/android-goldfish.c 	mmc->max_segs = 32;
mmc               491 drivers/mmc/host/android-goldfish.c 	mmc->max_blk_size = 2048;	/* MMC_BLOCK_LENGTH is 11 bits (+1) */
mmc               492 drivers/mmc/host/android-goldfish.c 	mmc->max_blk_count = 2048;	/* MMC_BLOCK_COUNT is 11 bits (+1) */
mmc               493 drivers/mmc/host/android-goldfish.c 	mmc->max_req_size = BUFFER_SIZE;
mmc               494 drivers/mmc/host/android-goldfish.c 	mmc->max_seg_size = mmc->max_req_size;
mmc               507 drivers/mmc/host/android-goldfish.c 		dev_warn(mmc_dev(mmc), "Unable to create sysfs attributes\n");
mmc               514 drivers/mmc/host/android-goldfish.c 	mmc_add_host(mmc);
mmc               523 drivers/mmc/host/android-goldfish.c 	mmc_free_host(mmc);
mmc               531 drivers/mmc/host/android-goldfish.c 	struct mmc_host *mmc = mmc_from_priv(host);
mmc               535 drivers/mmc/host/android-goldfish.c 	mmc_remove_host(mmc);
mmc               539 drivers/mmc/host/android-goldfish.c 	mmc_free_host(mmc);
mmc               373 drivers/mmc/host/atmel-mci.c 	struct mmc_host		*mmc;
mmc               576 drivers/mmc/host/atmel-mci.c 	struct mmc_host		*mmc = slot->mmc;
mmc               580 drivers/mmc/host/atmel-mci.c 	root = mmc->debugfs_root;
mmc               753 drivers/mmc/host/atmel-mci.c 	dev_vdbg(&slot->mmc->class_dev, "setting timeout to %u cycles\n",
mmc               761 drivers/mmc/host/atmel-mci.c static u32 atmci_prepare_command(struct mmc_host *mmc,
mmc               785 drivers/mmc/host/atmel-mci.c 	if (mmc->ios.bus_mode == MMC_BUSMODE_OPENDRAIN)
mmc              1260 drivers/mmc/host/atmel-mci.c 		dev_dbg(&slot->mmc->class_dev, "WARNING: IMR=0x%08x\n",
mmc              1277 drivers/mmc/host/atmel-mci.c 		dev_vdbg(&slot->mmc->class_dev, "BLKR=0x%08x\n",
mmc              1285 drivers/mmc/host/atmel-mci.c 	cmdflags = atmci_prepare_command(slot->mmc, cmd);
mmc              1303 drivers/mmc/host/atmel-mci.c 		host->stop_cmdr = atmci_prepare_command(slot->mmc, mrq->stop);
mmc              1324 drivers/mmc/host/atmel-mci.c 	dev_vdbg(&slot->mmc->class_dev, "queue request: state=%d\n",
mmc              1339 drivers/mmc/host/atmel-mci.c static void atmci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1341 drivers/mmc/host/atmel-mci.c 	struct atmel_mci_slot	*slot = mmc_priv(mmc);
mmc              1358 drivers/mmc/host/atmel-mci.c 		mmc_request_done(mmc, mrq);
mmc              1366 drivers/mmc/host/atmel-mci.c 		mmc_request_done(mmc, mrq);
mmc              1372 drivers/mmc/host/atmel-mci.c static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1374 drivers/mmc/host/atmel-mci.c 	struct atmel_mci_slot	*slot = mmc_priv(mmc);
mmc              1418 drivers/mmc/host/atmel-mci.c 				dev_warn(&mmc->class_dev,
mmc              1423 drivers/mmc/host/atmel-mci.c 				dev_warn(&mmc->class_dev,
mmc              1433 drivers/mmc/host/atmel-mci.c 				dev_warn(&mmc->class_dev,
mmc              1489 drivers/mmc/host/atmel-mci.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1490 drivers/mmc/host/atmel-mci.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc              1494 drivers/mmc/host/atmel-mci.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1495 drivers/mmc/host/atmel-mci.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
mmc              1502 drivers/mmc/host/atmel-mci.c static int atmci_get_ro(struct mmc_host *mmc)
mmc              1505 drivers/mmc/host/atmel-mci.c 	struct atmel_mci_slot	*slot = mmc_priv(mmc);
mmc              1509 drivers/mmc/host/atmel-mci.c 		dev_dbg(&mmc->class_dev, "card is %s\n",
mmc              1516 drivers/mmc/host/atmel-mci.c static int atmci_get_cd(struct mmc_host *mmc)
mmc              1519 drivers/mmc/host/atmel-mci.c 	struct atmel_mci_slot	*slot = mmc_priv(mmc);
mmc              1524 drivers/mmc/host/atmel-mci.c 		dev_dbg(&mmc->class_dev, "card is %spresent\n",
mmc              1531 drivers/mmc/host/atmel-mci.c static void atmci_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc              1533 drivers/mmc/host/atmel-mci.c 	struct atmel_mci_slot	*slot = mmc_priv(mmc);
mmc              1556 drivers/mmc/host/atmel-mci.c 	struct mmc_host		*prev_mmc = host->cur_slot->mmc;
mmc              1578 drivers/mmc/host/atmel-mci.c 				mmc_hostname(slot->mmc));
mmc              1640 drivers/mmc/host/atmel-mci.c 	dev_vdbg(&slot->mmc->class_dev, "detect change: %d (was %d)\n",
mmc              1647 drivers/mmc/host/atmel-mci.c 		dev_dbg(&slot->mmc->class_dev, "card %s\n",
mmc              1706 drivers/mmc/host/atmel-mci.c 				mmc_request_done(slot->mmc, mrq);
mmc              1712 drivers/mmc/host/atmel-mci.c 		mmc_detect_change(slot->mmc, 0);
mmc              2065 drivers/mmc/host/atmel-mci.c 			mmc_signal_sdio_irq(slot->mmc);
mmc              2218 drivers/mmc/host/atmel-mci.c 	struct mmc_host			*mmc;
mmc              2221 drivers/mmc/host/atmel-mci.c 	mmc = mmc_alloc_host(sizeof(struct atmel_mci_slot), &host->pdev->dev);
mmc              2222 drivers/mmc/host/atmel-mci.c 	if (!mmc)
mmc              2225 drivers/mmc/host/atmel-mci.c 	slot = mmc_priv(mmc);
mmc              2226 drivers/mmc/host/atmel-mci.c 	slot->mmc = mmc;
mmc              2234 drivers/mmc/host/atmel-mci.c 	dev_dbg(&mmc->class_dev,
mmc              2241 drivers/mmc/host/atmel-mci.c 	mmc->ops = &atmci_ops;
mmc              2242 drivers/mmc/host/atmel-mci.c 	mmc->f_min = DIV_ROUND_UP(host->bus_hz, 512);
mmc              2243 drivers/mmc/host/atmel-mci.c 	mmc->f_max = host->bus_hz / 2;
mmc              2244 drivers/mmc/host/atmel-mci.c 	mmc->ocr_avail	= MMC_VDD_32_33 | MMC_VDD_33_34;
mmc              2246 drivers/mmc/host/atmel-mci.c 		mmc->caps |= MMC_CAP_SDIO_IRQ;
mmc              2248 drivers/mmc/host/atmel-mci.c 		mmc->caps |= MMC_CAP_SD_HIGHSPEED;
mmc              2255 drivers/mmc/host/atmel-mci.c 		mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc              2257 drivers/mmc/host/atmel-mci.c 			mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc              2261 drivers/mmc/host/atmel-mci.c 		mmc->max_segs = 256;
mmc              2262 drivers/mmc/host/atmel-mci.c 		mmc->max_blk_size = 4095;
mmc              2263 drivers/mmc/host/atmel-mci.c 		mmc->max_blk_count = 256;
mmc              2264 drivers/mmc/host/atmel-mci.c 		mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc              2265 drivers/mmc/host/atmel-mci.c 		mmc->max_seg_size = mmc->max_blk_size * mmc->max_segs;
mmc              2267 drivers/mmc/host/atmel-mci.c 		mmc->max_segs = 64;
mmc              2268 drivers/mmc/host/atmel-mci.c 		mmc->max_req_size = 32768 * 512;
mmc              2269 drivers/mmc/host/atmel-mci.c 		mmc->max_blk_size = 32768;
mmc              2270 drivers/mmc/host/atmel-mci.c 		mmc->max_blk_count = 512;
mmc              2278 drivers/mmc/host/atmel-mci.c 			dev_dbg(&mmc->class_dev, "no detect pin available\n");
mmc              2288 drivers/mmc/host/atmel-mci.c 			mmc->caps |= MMC_CAP_NONREMOVABLE;
mmc              2290 drivers/mmc/host/atmel-mci.c 			mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              2296 drivers/mmc/host/atmel-mci.c 			dev_dbg(&mmc->class_dev, "no WP pin available\n");
mmc              2302 drivers/mmc/host/atmel-mci.c 	mmc_regulator_get_supply(mmc);
mmc              2303 drivers/mmc/host/atmel-mci.c 	mmc_add_host(mmc);
mmc              2315 drivers/mmc/host/atmel-mci.c 			dev_dbg(&mmc->class_dev,
mmc              2335 drivers/mmc/host/atmel-mci.c 	mmc_remove_host(slot->mmc);
mmc              2345 drivers/mmc/host/atmel-mci.c 	mmc_free_host(slot->mmc);
mmc              2541 drivers/mmc/host/atmel-mci.c 			host->buf_size = host->slot[0]->mmc->max_req_size;
mmc              2549 drivers/mmc/host/atmel-mci.c 			if (host->slot[1]->mmc->max_req_size > host->buf_size)
mmc              2551 drivers/mmc/host/atmel-mci.c 					host->slot[1]->mmc->max_req_size;
mmc                89 drivers/mmc/host/au1xmmc.c 	struct mmc_host *mmc;
mmc               214 drivers/mmc/host/au1xmmc.c 		host->platdata->set_power(host->mmc, state);
mmc               217 drivers/mmc/host/au1xmmc.c static int au1xmmc_card_inserted(struct mmc_host *mmc)
mmc               219 drivers/mmc/host/au1xmmc.c 	struct au1xmmc_host *host = mmc_priv(mmc);
mmc               222 drivers/mmc/host/au1xmmc.c 		return !!host->platdata->card_inserted(host->mmc);
mmc               227 drivers/mmc/host/au1xmmc.c static int au1xmmc_card_readonly(struct mmc_host *mmc)
mmc               229 drivers/mmc/host/au1xmmc.c 	struct au1xmmc_host *host = mmc_priv(mmc);
mmc               232 drivers/mmc/host/au1xmmc.c 		return !!host->platdata->card_readonly(mmc);
mmc               253 drivers/mmc/host/au1xmmc.c 	mmc_request_done(host->mmc, mrq);
mmc               352 drivers/mmc/host/au1xmmc.c 	dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir);
mmc               632 drivers/mmc/host/au1xmmc.c 	host->dma.len = dma_map_sg(mmc_dev(host->mmc), data->sg,
mmc               684 drivers/mmc/host/au1xmmc.c 	dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc               690 drivers/mmc/host/au1xmmc.c static void au1xmmc_request(struct mmc_host* mmc, struct mmc_request* mrq)
mmc               692 drivers/mmc/host/au1xmmc.c 	struct au1xmmc_host *host = mmc_priv(mmc);
mmc               702 drivers/mmc/host/au1xmmc.c 	if (0 == au1xmmc_card_inserted(mmc)) {
mmc               756 drivers/mmc/host/au1xmmc.c static void au1xmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               758 drivers/mmc/host/au1xmmc.c 	struct au1xmmc_host *host = mmc_priv(mmc);
mmc               804 drivers/mmc/host/au1xmmc.c 		mmc_signal_sdio_irq(host->mmc);
mmc               930 drivers/mmc/host/au1xmmc.c static void au1xmmc_enable_sdio_irq(struct mmc_host *mmc, int en)
mmc               932 drivers/mmc/host/au1xmmc.c 	struct au1xmmc_host *host = mmc_priv(mmc);
mmc               950 drivers/mmc/host/au1xmmc.c 	struct mmc_host *mmc;
mmc               955 drivers/mmc/host/au1xmmc.c 	mmc = mmc_alloc_host(sizeof(struct au1xmmc_host), &pdev->dev);
mmc               956 drivers/mmc/host/au1xmmc.c 	if (!mmc) {
mmc               962 drivers/mmc/host/au1xmmc.c 	host = mmc_priv(mmc);
mmc               963 drivers/mmc/host/au1xmmc.c 	host->mmc = mmc;
mmc               994 drivers/mmc/host/au1xmmc.c 	mmc->ops = &au1xmmc_ops;
mmc               996 drivers/mmc/host/au1xmmc.c 	mmc->f_min =   450000;
mmc               997 drivers/mmc/host/au1xmmc.c 	mmc->f_max = 24000000;
mmc               999 drivers/mmc/host/au1xmmc.c 	mmc->max_blk_size = 2048;
mmc              1000 drivers/mmc/host/au1xmmc.c 	mmc->max_blk_count = 512;
mmc              1002 drivers/mmc/host/au1xmmc.c 	mmc->ocr_avail = AU1XMMC_OCR;
mmc              1003 drivers/mmc/host/au1xmmc.c 	mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SDIO_IRQ;
mmc              1004 drivers/mmc/host/au1xmmc.c 	mmc->max_segs = AU1XMMC_DESCRIPTOR_COUNT;
mmc              1010 drivers/mmc/host/au1xmmc.c 		mmc->max_seg_size = AU1100_MMC_DESCRIPTOR_SIZE;
mmc              1013 drivers/mmc/host/au1xmmc.c 		mmc->max_seg_size = AU1200_MMC_DESCRIPTOR_SIZE;
mmc              1017 drivers/mmc/host/au1xmmc.c 		mmc->max_seg_size = AU1200_MMC_DESCRIPTOR_SIZE;
mmc              1018 drivers/mmc/host/au1xmmc.c 		mmc->f_max = 52000000;
mmc              1020 drivers/mmc/host/au1xmmc.c 			mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc              1047 drivers/mmc/host/au1xmmc.c 		ret = host->platdata->cd_setup(mmc, 1);
mmc              1050 drivers/mmc/host/au1xmmc.c 			mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              1053 drivers/mmc/host/au1xmmc.c 		mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              1057 drivers/mmc/host/au1xmmc.c 		mmc->caps &= ~(host->platdata->mask_host_caps);
mmc              1074 drivers/mmc/host/au1xmmc.c 		led->name = mmc_hostname(mmc);
mmc              1076 drivers/mmc/host/au1xmmc.c 		led->default_trigger = mmc_hostname(mmc);
mmc              1077 drivers/mmc/host/au1xmmc.c 		ret = led_classdev_register(mmc_dev(mmc), led);
mmc              1085 drivers/mmc/host/au1xmmc.c 	ret = mmc_add_host(mmc);
mmc              1117 drivers/mmc/host/au1xmmc.c 	    !(mmc->caps & MMC_CAP_NEEDS_POLL))
mmc              1118 drivers/mmc/host/au1xmmc.c 		host->platdata->cd_setup(mmc, 0);
mmc              1130 drivers/mmc/host/au1xmmc.c 	mmc_free_host(mmc);
mmc              1140 drivers/mmc/host/au1xmmc.c 		mmc_remove_host(host->mmc);
mmc              1148 drivers/mmc/host/au1xmmc.c 		    !(host->mmc->caps & MMC_CAP_NEEDS_POLL))
mmc              1149 drivers/mmc/host/au1xmmc.c 			host->platdata->cd_setup(host->mmc, 0);
mmc              1172 drivers/mmc/host/au1xmmc.c 		mmc_free_host(host->mmc);
mmc               271 drivers/mmc/host/bcm2835.c static void bcm2835_reset(struct mmc_host *mmc)
mmc               273 drivers/mmc/host/bcm2835.c 	struct bcm2835_host *host = mmc_priv(mmc);
mmc              1102 drivers/mmc/host/bcm2835.c 	struct mmc_host *mmc = mmc_from_priv(host);
mmc              1146 drivers/mmc/host/bcm2835.c 	mmc->actual_clock = clock;
mmc              1151 drivers/mmc/host/bcm2835.c 		((mmc->caps & MMC_CAP_4_BIT_DATA) ? 8 : 32);
mmc              1157 drivers/mmc/host/bcm2835.c 	writel(mmc->actual_clock / 2, host->ioaddr + SDTOUT);
mmc              1160 drivers/mmc/host/bcm2835.c static void bcm2835_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1162 drivers/mmc/host/bcm2835.c 	struct bcm2835_host *host = mmc_priv(mmc);
mmc              1183 drivers/mmc/host/bcm2835.c 		mmc_request_done(mmc, mrq);
mmc              1233 drivers/mmc/host/bcm2835.c static void bcm2835_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1235 drivers/mmc/host/bcm2835.c 	struct bcm2835_host *host = mmc_priv(mmc);
mmc              1267 drivers/mmc/host/bcm2835.c 	struct mmc_host *mmc = mmc_from_priv(host);
mmc              1272 drivers/mmc/host/bcm2835.c 	if (!mmc->f_max || mmc->f_max > host->max_clk)
mmc              1273 drivers/mmc/host/bcm2835.c 		mmc->f_max = host->max_clk;
mmc              1274 drivers/mmc/host/bcm2835.c 	mmc->f_min = host->max_clk / SDCDIV_MAX_CDIV;
mmc              1276 drivers/mmc/host/bcm2835.c 	mmc->max_busy_timeout = ~0 / (mmc->f_max / 1000);
mmc              1279 drivers/mmc/host/bcm2835.c 		mmc->f_max, mmc->f_min, mmc->max_busy_timeout);
mmc              1282 drivers/mmc/host/bcm2835.c 	mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
mmc              1316 drivers/mmc/host/bcm2835.c 	mmc->max_segs = 128;
mmc              1317 drivers/mmc/host/bcm2835.c 	mmc->max_req_size = min_t(size_t, 524288, dma_max_mapping_size(dev));
mmc              1318 drivers/mmc/host/bcm2835.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1319 drivers/mmc/host/bcm2835.c 	mmc->max_blk_size = 1024;
mmc              1320 drivers/mmc/host/bcm2835.c 	mmc->max_blk_count =  65535;
mmc              1323 drivers/mmc/host/bcm2835.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc              1335 drivers/mmc/host/bcm2835.c 				   0, mmc_hostname(mmc), host);
mmc              1341 drivers/mmc/host/bcm2835.c 	ret = mmc_add_host(mmc);
mmc              1362 drivers/mmc/host/bcm2835.c 	struct mmc_host *mmc;
mmc              1367 drivers/mmc/host/bcm2835.c 	mmc = mmc_alloc_host(sizeof(*host), dev);
mmc              1368 drivers/mmc/host/bcm2835.c 	if (!mmc)
mmc              1371 drivers/mmc/host/bcm2835.c 	mmc->ops = &bcm2835_ops;
mmc              1372 drivers/mmc/host/bcm2835.c 	host = mmc_priv(mmc);
mmc              1416 drivers/mmc/host/bcm2835.c 	ret = mmc_of_parse(mmc);
mmc              1434 drivers/mmc/host/bcm2835.c 	mmc_free_host(mmc);
mmc              1442 drivers/mmc/host/bcm2835.c 	struct mmc_host *mmc = mmc_from_priv(host);
mmc              1444 drivers/mmc/host/bcm2835.c 	mmc_remove_host(mmc);
mmc              1456 drivers/mmc/host/bcm2835.c 	mmc_free_host(mmc);
mmc               626 drivers/mmc/host/cavium.c static u64 prepare_ext_dma(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               628 drivers/mmc/host/cavium.c 	struct cvm_mmc_slot *slot = mmc_priv(mmc);
mmc               633 drivers/mmc/host/cavium.c 			     mmc_card_is_blockaddr(mmc->card) ? 1 : 0) |
mmc               640 drivers/mmc/host/cavium.c 	if (mmc_card_mmc(mmc->card) || (mmc_card_sd(mmc->card) &&
mmc               641 drivers/mmc/host/cavium.c 	    (mmc->card->scr.cmds & SD_SCR_CMD23_SUPPORT)))
mmc               650 drivers/mmc/host/cavium.c static void cvm_mmc_dma_request(struct mmc_host *mmc,
mmc               653 drivers/mmc/host/cavium.c 	struct cvm_mmc_slot *slot = mmc_priv(mmc);
mmc               660 drivers/mmc/host/cavium.c 		dev_err(&mmc->card->dev,
mmc               676 drivers/mmc/host/cavium.c 	emm_dma = prepare_ext_dma(mmc, mrq);
mmc               695 drivers/mmc/host/cavium.c 	if (mmc_card_sd(mmc->card))
mmc               752 drivers/mmc/host/cavium.c static void cvm_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               754 drivers/mmc/host/cavium.c 	struct cvm_mmc_slot *slot = mmc_priv(mmc);
mmc               774 drivers/mmc/host/cavium.c 		return cvm_mmc_dma_request(mmc, mrq);
mmc               824 drivers/mmc/host/cavium.c static void cvm_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               826 drivers/mmc/host/cavium.c 	struct cvm_mmc_slot *slot = mmc_priv(mmc);
mmc               843 drivers/mmc/host/cavium.c 		else if (!IS_ERR(mmc->supply.vmmc))
mmc               844 drivers/mmc/host/cavium.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc               850 drivers/mmc/host/cavium.c 		else if (!IS_ERR(mmc->supply.vmmc))
mmc               851 drivers/mmc/host/cavium.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
mmc               908 drivers/mmc/host/cavium.c 	struct mmc_host *mmc = slot->mmc;
mmc               910 drivers/mmc/host/cavium.c 	clock = min(clock, mmc->f_max);
mmc               911 drivers/mmc/host/cavium.c 	clock = max(clock, mmc->f_min);
mmc               926 drivers/mmc/host/cavium.c 	cvm_mmc_set_clock(slot, slot->mmc->f_min);
mmc               955 drivers/mmc/host/cavium.c 	struct mmc_host *mmc = slot->mmc;
mmc               970 drivers/mmc/host/cavium.c 	ret = mmc_regulator_get_supply(mmc);
mmc               977 drivers/mmc/host/cavium.c 	if (IS_ERR(mmc->supply.vmmc))
mmc               978 drivers/mmc/host/cavium.c 		mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               981 drivers/mmc/host/cavium.c 	ret = mmc_of_parse(mmc);
mmc               986 drivers/mmc/host/cavium.c 	if (!(mmc->caps & (MMC_CAP_8_BIT_DATA | MMC_CAP_4_BIT_DATA))) {
mmc               989 drivers/mmc/host/cavium.c 			mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_4_BIT_DATA;
mmc               991 drivers/mmc/host/cavium.c 			mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc               995 drivers/mmc/host/cavium.c 	if (!mmc->f_max)
mmc               996 drivers/mmc/host/cavium.c 		of_property_read_u32(node, "spi-max-frequency", &mmc->f_max);
mmc               997 drivers/mmc/host/cavium.c 	if (!mmc->f_max || mmc->f_max > 52000000)
mmc               998 drivers/mmc/host/cavium.c 		mmc->f_max = 52000000;
mmc               999 drivers/mmc/host/cavium.c 	mmc->f_min = 400000;
mmc              1014 drivers/mmc/host/cavium.c 	struct mmc_host *mmc;
mmc              1017 drivers/mmc/host/cavium.c 	mmc = mmc_alloc_host(sizeof(struct cvm_mmc_slot), dev);
mmc              1018 drivers/mmc/host/cavium.c 	if (!mmc)
mmc              1021 drivers/mmc/host/cavium.c 	slot = mmc_priv(mmc);
mmc              1022 drivers/mmc/host/cavium.c 	slot->mmc = mmc;
mmc              1031 drivers/mmc/host/cavium.c 	mmc->ops = &cvm_mmc_ops;
mmc              1040 drivers/mmc/host/cavium.c 	mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
mmc              1045 drivers/mmc/host/cavium.c 		mmc->max_segs = 16;
mmc              1047 drivers/mmc/host/cavium.c 		mmc->max_segs = 1;
mmc              1050 drivers/mmc/host/cavium.c 	mmc->max_seg_size = min_t(unsigned int, 8 * 1024 * 1024,
mmc              1052 drivers/mmc/host/cavium.c 	mmc->max_req_size = mmc->max_seg_size;
mmc              1054 drivers/mmc/host/cavium.c 	mmc->max_blk_size = 512;
mmc              1056 drivers/mmc/host/cavium.c 	mmc->max_blk_count = 32767;
mmc              1058 drivers/mmc/host/cavium.c 	slot->clock = mmc->f_min;
mmc              1068 drivers/mmc/host/cavium.c 	ret = mmc_add_host(mmc);
mmc              1077 drivers/mmc/host/cavium.c 	mmc_free_host(slot->mmc);
mmc              1083 drivers/mmc/host/cavium.c 	mmc_remove_host(slot->mmc);
mmc              1085 drivers/mmc/host/cavium.c 	mmc_free_host(slot->mmc);
mmc                95 drivers/mmc/host/cavium.h 	struct mmc_host *mmc;		/* slot-level mmc_core object */
mmc                25 drivers/mmc/host/cb710-mmc.c static void cb710_mmc_select_clock_divider(struct mmc_host *mmc, int hz)
mmc                27 drivers/mmc/host/cb710-mmc.c 	struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
mmc               441 drivers/mmc/host/cb710-mmc.c static int cb710_mmc_command(struct mmc_host *mmc, struct mmc_command *cmd)
mmc               443 drivers/mmc/host/cb710-mmc.c 	struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
mmc               444 drivers/mmc/host/cb710-mmc.c 	struct cb710_mmc_reader *reader = mmc_priv(mmc);
mmc               481 drivers/mmc/host/cb710-mmc.c static void cb710_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               483 drivers/mmc/host/cb710-mmc.c 	struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
mmc               484 drivers/mmc/host/cb710-mmc.c 	struct cb710_mmc_reader *reader = mmc_priv(mmc);
mmc               491 drivers/mmc/host/cb710-mmc.c 	if (!cb710_mmc_command(mmc, mrq->cmd) && mrq->stop)
mmc               492 drivers/mmc/host/cb710-mmc.c 		cb710_mmc_command(mmc, mrq->stop);
mmc               558 drivers/mmc/host/cb710-mmc.c static void cb710_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               560 drivers/mmc/host/cb710-mmc.c 	struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
mmc               561 drivers/mmc/host/cb710-mmc.c 	struct cb710_mmc_reader *reader = mmc_priv(mmc);
mmc               564 drivers/mmc/host/cb710-mmc.c 	cb710_mmc_select_clock_divider(mmc, ios->clock);
mmc               599 drivers/mmc/host/cb710-mmc.c static int cb710_mmc_get_ro(struct mmc_host *mmc)
mmc               601 drivers/mmc/host/cb710-mmc.c 	struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
mmc               607 drivers/mmc/host/cb710-mmc.c static int cb710_mmc_get_cd(struct mmc_host *mmc)
mmc               609 drivers/mmc/host/cb710-mmc.c 	struct cb710_slot *slot = cb710_mmc_to_slot(mmc);
mmc               617 drivers/mmc/host/cb710-mmc.c 	struct mmc_host *mmc = cb710_slot_to_mmc(slot);
mmc               618 drivers/mmc/host/cb710-mmc.c 	struct cb710_mmc_reader *reader = mmc_priv(mmc);
mmc               636 drivers/mmc/host/cb710-mmc.c 			mmc_detect_change(mmc, HZ/5);
mmc               649 drivers/mmc/host/cb710-mmc.c 	struct mmc_host *mmc = (void *)data;
mmc               650 drivers/mmc/host/cb710-mmc.c 	struct cb710_mmc_reader *reader = mmc_priv(mmc);
mmc               654 drivers/mmc/host/cb710-mmc.c 	mmc_request_done(mmc, mrq);
mmc               688 drivers/mmc/host/cb710-mmc.c 	struct mmc_host *mmc;
mmc               693 drivers/mmc/host/cb710-mmc.c 	mmc = mmc_alloc_host(sizeof(*reader), cb710_slot_dev(slot));
mmc               694 drivers/mmc/host/cb710-mmc.c 	if (!mmc)
mmc               697 drivers/mmc/host/cb710-mmc.c 	platform_set_drvdata(pdev, mmc);
mmc               705 drivers/mmc/host/cb710-mmc.c 	mmc->ops = &cb710_mmc_host;
mmc               706 drivers/mmc/host/cb710-mmc.c 	mmc->f_max = val;
mmc               707 drivers/mmc/host/cb710-mmc.c 	mmc->f_min = val >> cb710_clock_divider_log2[CB710_MAX_DIVIDER_IDX];
mmc               708 drivers/mmc/host/cb710-mmc.c 	mmc->ocr_avail = MMC_VDD_32_33|MMC_VDD_33_34;
mmc               709 drivers/mmc/host/cb710-mmc.c 	mmc->caps = MMC_CAP_4_BIT_DATA;
mmc               711 drivers/mmc/host/cb710-mmc.c 	reader = mmc_priv(mmc);
mmc               714 drivers/mmc/host/cb710-mmc.c 		cb710_mmc_finish_request_tasklet, (unsigned long)mmc);
mmc               721 drivers/mmc/host/cb710-mmc.c 	err = mmc_add_host(mmc);
mmc               726 drivers/mmc/host/cb710-mmc.c 		mmc_hostname(mmc));
mmc               736 drivers/mmc/host/cb710-mmc.c 	mmc_free_host(mmc);
mmc               743 drivers/mmc/host/cb710-mmc.c 	struct mmc_host *mmc = cb710_slot_to_mmc(slot);
mmc               744 drivers/mmc/host/cb710-mmc.c 	struct cb710_mmc_reader *reader = mmc_priv(mmc);
mmc               748 drivers/mmc/host/cb710-mmc.c 	mmc_remove_host(mmc);
mmc               760 drivers/mmc/host/cb710-mmc.c 	mmc_free_host(mmc);
mmc                27 drivers/mmc/host/cb710-mmc.h static inline struct cb710_slot *cb710_mmc_to_slot(struct mmc_host *mmc)
mmc                29 drivers/mmc/host/cb710-mmc.h 	struct platform_device *pdev = to_platform_device(mmc_dev(mmc));
mmc                50 drivers/mmc/host/cqhci.c 		(cq_host->mmc->max_segs * tag *
mmc                57 drivers/mmc/host/cqhci.c 		(cq_host->trans_desc_len * cq_host->mmc->max_segs * tag);
mmc                72 drivers/mmc/host/cqhci.c 	if (tag == DCMD_SLOT && (cq_host->mmc->caps2 & MMC_CAP2_CQE_DCMD)) {
mmc                99 drivers/mmc/host/cqhci.c 	pr_err("%s: " DRV_NAME ": " f, mmc_hostname(mmc), ## x)
mmc               103 drivers/mmc/host/cqhci.c 	struct mmc_host *mmc = cq_host->mmc;
mmc               142 drivers/mmc/host/cqhci.c 		cq_host->ops->dumpregs(mmc);
mmc               196 drivers/mmc/host/cqhci.c 	cq_host->data_size = cq_host->trans_desc_len * cq_host->mmc->max_segs *
mmc               197 drivers/mmc/host/cqhci.c 		cq_host->mmc->cqe_qdepth;
mmc               200 drivers/mmc/host/cqhci.c 		 mmc_hostname(cq_host->mmc), cq_host->desc_size, cq_host->data_size,
mmc               209 drivers/mmc/host/cqhci.c 	cq_host->desc_base = dmam_alloc_coherent(mmc_dev(cq_host->mmc),
mmc               216 drivers/mmc/host/cqhci.c 	cq_host->trans_desc_base = dmam_alloc_coherent(mmc_dev(cq_host->mmc),
mmc               221 drivers/mmc/host/cqhci.c 		dmam_free_coherent(mmc_dev(cq_host->mmc), cq_host->desc_size,
mmc               230 drivers/mmc/host/cqhci.c 		 mmc_hostname(cq_host->mmc), cq_host->desc_base, cq_host->trans_desc_base,
mmc               242 drivers/mmc/host/cqhci.c 	struct mmc_host *mmc = cq_host->mmc;
mmc               255 drivers/mmc/host/cqhci.c 	if (mmc->caps2 & MMC_CAP2_CQE_DCMD)
mmc               276 drivers/mmc/host/cqhci.c 	mmc->cqe_on = true;
mmc               279 drivers/mmc/host/cqhci.c 		cq_host->ops->enable(mmc);
mmc               297 drivers/mmc/host/cqhci.c 	cq_host->mmc->cqe_on = false;
mmc               302 drivers/mmc/host/cqhci.c int cqhci_suspend(struct mmc_host *mmc)
mmc               304 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               313 drivers/mmc/host/cqhci.c int cqhci_resume(struct mmc_host *mmc)
mmc               320 drivers/mmc/host/cqhci.c static int cqhci_enable(struct mmc_host *mmc, struct mmc_card *card)
mmc               322 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               352 drivers/mmc/host/cqhci.c static void cqhci_off(struct mmc_host *mmc)
mmc               354 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               358 drivers/mmc/host/cqhci.c 	if (!cq_host->enabled || !mmc->cqe_on || cq_host->recovery_halt)
mmc               362 drivers/mmc/host/cqhci.c 		cq_host->ops->disable(mmc, false);
mmc               369 drivers/mmc/host/cqhci.c 		pr_err("%s: cqhci: CQE stuck on\n", mmc_hostname(mmc));
mmc               371 drivers/mmc/host/cqhci.c 		pr_debug("%s: cqhci: CQE off\n", mmc_hostname(mmc));
mmc               373 drivers/mmc/host/cqhci.c 	mmc->cqe_on = false;
mmc               376 drivers/mmc/host/cqhci.c static void cqhci_disable(struct mmc_host *mmc)
mmc               378 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               383 drivers/mmc/host/cqhci.c 	cqhci_off(mmc);
mmc               387 drivers/mmc/host/cqhci.c 	dmam_free_coherent(mmc_dev(mmc), cq_host->data_size,
mmc               391 drivers/mmc/host/cqhci.c 	dmam_free_coherent(mmc_dev(mmc), cq_host->desc_size,
mmc               498 drivers/mmc/host/cqhci.c static void cqhci_prep_dcmd_desc(struct mmc_host *mmc,
mmc               506 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               532 drivers/mmc/host/cqhci.c 		cq_host->ops->update_dcmd_desc(mmc, mrq, &data);
mmc               536 drivers/mmc/host/cqhci.c 		 mmc_hostname(mmc), mrq->cmd->opcode, timing, resp_type);
mmc               558 drivers/mmc/host/cqhci.c static int cqhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               564 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               568 drivers/mmc/host/cqhci.c 		pr_err("%s: cqhci: not enabled\n", mmc_hostname(mmc));
mmc               576 drivers/mmc/host/cqhci.c 	if (!mmc->cqe_on) {
mmc               578 drivers/mmc/host/cqhci.c 		mmc->cqe_on = true;
mmc               579 drivers/mmc/host/cqhci.c 		pr_debug("%s: cqhci: CQE on\n", mmc_hostname(mmc));
mmc               582 drivers/mmc/host/cqhci.c 			       mmc_hostname(mmc));
mmc               585 drivers/mmc/host/cqhci.c 			cq_host->ops->enable(mmc);
mmc               595 drivers/mmc/host/cqhci.c 			       mmc_hostname(mmc), err);
mmc               599 drivers/mmc/host/cqhci.c 		cqhci_prep_dcmd_desc(mmc, mrq);
mmc               618 drivers/mmc/host/cqhci.c 			 mmc_hostname(mmc), tag);
mmc               623 drivers/mmc/host/cqhci.c 		cqhci_post_req(mmc, mrq);
mmc               628 drivers/mmc/host/cqhci.c static void cqhci_recovery_needed(struct mmc_host *mmc, struct mmc_request *mrq,
mmc               631 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               635 drivers/mmc/host/cqhci.c 		pr_debug("%s: cqhci: recovery needed\n", mmc_hostname(mmc));
mmc               656 drivers/mmc/host/cqhci.c static void cqhci_error_irq(struct mmc_host *mmc, u32 status, int cmd_error,
mmc               659 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               669 drivers/mmc/host/cqhci.c 		 mmc_hostname(mmc), status, cmd_error, data_error, terri);
mmc               677 drivers/mmc/host/cqhci.c 			  mmc_hostname(mmc), status, cmd_error, data_error,
mmc               687 drivers/mmc/host/cqhci.c 			cqhci_recovery_needed(mmc, slot->mrq, true);
mmc               696 drivers/mmc/host/cqhci.c 			cqhci_recovery_needed(mmc, slot->mrq, true);
mmc               710 drivers/mmc/host/cqhci.c 			cqhci_recovery_needed(mmc, slot->mrq, true);
mmc               719 drivers/mmc/host/cqhci.c static void cqhci_finish_mrq(struct mmc_host *mmc, unsigned int tag)
mmc               721 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               728 drivers/mmc/host/cqhci.c 			  mmc_hostname(mmc), tag);
mmc               750 drivers/mmc/host/cqhci.c 	mmc_cqe_request_done(mmc, mrq);
mmc               753 drivers/mmc/host/cqhci.c irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int cmd_error,
mmc               758 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               763 drivers/mmc/host/cqhci.c 	pr_debug("%s: cqhci: IRQ status: 0x%08x\n", mmc_hostname(mmc), status);
mmc               766 drivers/mmc/host/cqhci.c 		cqhci_error_irq(mmc, status, cmd_error, data_error);
mmc               773 drivers/mmc/host/cqhci.c 			 mmc_hostname(mmc), comp_status);
mmc               780 drivers/mmc/host/cqhci.c 				 mmc_hostname(mmc), tag);
mmc               781 drivers/mmc/host/cqhci.c 			cqhci_finish_mrq(mmc, tag);
mmc               816 drivers/mmc/host/cqhci.c static int cqhci_wait_for_idle(struct mmc_host *mmc)
mmc               818 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               826 drivers/mmc/host/cqhci.c static bool cqhci_timeout(struct mmc_host *mmc, struct mmc_request *mrq,
mmc               829 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               839 drivers/mmc/host/cqhci.c 		cqhci_recovery_needed(mmc, mrq, false);
mmc               846 drivers/mmc/host/cqhci.c 		       mmc_hostname(mmc), tag);
mmc               858 drivers/mmc/host/cqhci.c static bool cqhci_clear_all_tasks(struct mmc_host *mmc, unsigned int timeout)
mmc               860 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               879 drivers/mmc/host/cqhci.c 			 mmc_hostname(mmc));
mmc               889 drivers/mmc/host/cqhci.c static bool cqhci_halt(struct mmc_host *mmc, unsigned int timeout)
mmc               891 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               912 drivers/mmc/host/cqhci.c 		pr_debug("%s: cqhci: Failed to halt\n", mmc_hostname(mmc));
mmc               925 drivers/mmc/host/cqhci.c static void cqhci_recovery_start(struct mmc_host *mmc)
mmc               927 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc               929 drivers/mmc/host/cqhci.c 	pr_debug("%s: cqhci: %s\n", mmc_hostname(mmc), __func__);
mmc               933 drivers/mmc/host/cqhci.c 	cqhci_halt(mmc, CQHCI_START_HALT_TIMEOUT);
mmc               936 drivers/mmc/host/cqhci.c 		cq_host->ops->disable(mmc, true);
mmc               938 drivers/mmc/host/cqhci.c 	mmc->cqe_on = false;
mmc               977 drivers/mmc/host/cqhci.c 	mmc_cqe_request_done(cq_host->mmc, mrq);
mmc               998 drivers/mmc/host/cqhci.c static void cqhci_recovery_finish(struct mmc_host *mmc)
mmc              1000 drivers/mmc/host/cqhci.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc              1005 drivers/mmc/host/cqhci.c 	pr_debug("%s: cqhci: %s\n", mmc_hostname(mmc), __func__);
mmc              1009 drivers/mmc/host/cqhci.c 	ok = cqhci_halt(mmc, CQHCI_FINISH_HALT_TIMEOUT);
mmc              1011 drivers/mmc/host/cqhci.c 	if (!cqhci_clear_all_tasks(mmc, CQHCI_CLEAR_TIMEOUT))
mmc              1021 drivers/mmc/host/cqhci.c 		pr_debug("%s: cqhci: disable / re-enable\n", mmc_hostname(mmc));
mmc              1028 drivers/mmc/host/cqhci.c 		ok = cqhci_halt(mmc, CQHCI_FINISH_HALT_TIMEOUT);
mmc              1029 drivers/mmc/host/cqhci.c 		if (!cqhci_clear_all_tasks(mmc, CQHCI_CLEAR_TIMEOUT))
mmc              1041 drivers/mmc/host/cqhci.c 	mmc->cqe_on = false;
mmc              1051 drivers/mmc/host/cqhci.c 	pr_debug("%s: cqhci: recovery done\n", mmc_hostname(mmc));
mmc              1107 drivers/mmc/host/cqhci.c int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc,
mmc              1113 drivers/mmc/host/cqhci.c 	cq_host->mmc = mmc;
mmc              1114 drivers/mmc/host/cqhci.c 	cq_host->mmc->cqe_private = cq_host;
mmc              1119 drivers/mmc/host/cqhci.c 	mmc->cqe_ops = &cqhci_cqe_ops;
mmc              1121 drivers/mmc/host/cqhci.c 	mmc->cqe_qdepth = NUM_SLOTS;
mmc              1122 drivers/mmc/host/cqhci.c 	if (mmc->caps2 & MMC_CAP2_CQE_DCMD)
mmc              1123 drivers/mmc/host/cqhci.c 		mmc->cqe_qdepth -= 1;
mmc              1125 drivers/mmc/host/cqhci.c 	cq_host->slot = devm_kcalloc(mmc_dev(mmc), cq_host->num_slots,
mmc              1138 drivers/mmc/host/cqhci.c 		mmc_hostname(mmc), cqhci_ver_major(cq_host),
mmc              1145 drivers/mmc/host/cqhci.c 	       mmc_hostname(mmc), cqhci_ver_major(cq_host),
mmc               149 drivers/mmc/host/cqhci.h 	struct mmc_host *mmc;
mmc               202 drivers/mmc/host/cqhci.h 	void (*dumpregs)(struct mmc_host *mmc);
mmc               205 drivers/mmc/host/cqhci.h 	void (*enable)(struct mmc_host *mmc);
mmc               206 drivers/mmc/host/cqhci.h 	void (*disable)(struct mmc_host *mmc, bool recovery);
mmc               207 drivers/mmc/host/cqhci.h 	void (*update_dcmd_desc)(struct mmc_host *mmc, struct mmc_request *mrq,
mmc               229 drivers/mmc/host/cqhci.h irqreturn_t cqhci_irq(struct mmc_host *mmc, u32 intmask, int cmd_error,
mmc               231 drivers/mmc/host/cqhci.h int cqhci_init(struct cqhci_host *cq_host, struct mmc_host *mmc, bool dma64);
mmc               233 drivers/mmc/host/cqhci.h int cqhci_suspend(struct mmc_host *mmc);
mmc               234 drivers/mmc/host/cqhci.h int cqhci_resume(struct mmc_host *mmc);
mmc               171 drivers/mmc/host/davinci_mmc.c 	struct mmc_host *mmc;
mmc               274 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "CMD%d, arg 0x%08x%s\n",
mmc               315 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc), "unknown resp_type %04x\n",
mmc               424 drivers/mmc/host/davinci_mmc.c 			dev_dbg(mmc_dev(host->mmc),
mmc               446 drivers/mmc/host/davinci_mmc.c 			dev_dbg(mmc_dev(host->mmc),
mmc               467 drivers/mmc/host/davinci_mmc.c 	host->sg_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc               473 drivers/mmc/host/davinci_mmc.c 			dma_unmap_sg(mmc_dev(host->mmc),
mmc               497 drivers/mmc/host/davinci_mmc.c 	host->dma_tx = dma_request_chan(mmc_dev(host->mmc), "tx");
mmc               499 drivers/mmc/host/davinci_mmc.c 		dev_err(mmc_dev(host->mmc), "Can't get dma_tx channel\n");
mmc               503 drivers/mmc/host/davinci_mmc.c 	host->dma_rx = dma_request_chan(mmc_dev(host->mmc), "rx");
mmc               505 drivers/mmc/host/davinci_mmc.c 		dev_err(mmc_dev(host->mmc), "Can't get dma_rx channel\n");
mmc               533 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "%s, %d blocks of %d bytes\n",
mmc               536 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "  DTO %d cycles + %d ns\n",
mmc               585 drivers/mmc/host/davinci_mmc.c static void mmc_davinci_request(struct mmc_host *mmc, struct mmc_request *req)
mmc               587 drivers/mmc/host/davinci_mmc.c 	struct mmc_davinci_host *host = mmc_priv(mmc);
mmc               601 drivers/mmc/host/davinci_mmc.c 		dev_err(mmc_dev(host->mmc), "still BUSY? bad ... \n");
mmc               603 drivers/mmc/host/davinci_mmc.c 		mmc_request_done(mmc, req);
mmc               640 drivers/mmc/host/davinci_mmc.c static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               644 drivers/mmc/host/davinci_mmc.c 	struct mmc_davinci_host *host = mmc_priv(mmc);
mmc               686 drivers/mmc/host/davinci_mmc.c static void mmc_davinci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               688 drivers/mmc/host/davinci_mmc.c 	struct mmc_davinci_host *host = mmc_priv(mmc);
mmc               689 drivers/mmc/host/davinci_mmc.c 	struct platform_device *pdev = to_platform_device(mmc->parent);
mmc               692 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc),
mmc               710 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc), "Enabling 8 bit mode\n");
mmc               716 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc), "Enabling 4 bit mode\n");
mmc               727 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc), "Enabling 1 bit mode\n");
mmc               739 drivers/mmc/host/davinci_mmc.c 	calculate_clk_divider(mmc, ios);
mmc               759 drivers/mmc/host/davinci_mmc.c 			dev_warn(mmc_dev(host->mmc), "powerup timeout\n");
mmc               770 drivers/mmc/host/davinci_mmc.c 	if (host->mmc->caps & MMC_CAP_SDIO_IRQ) {
mmc               779 drivers/mmc/host/davinci_mmc.c 			mmc_signal_sdio_irq(host->mmc);
mmc               786 drivers/mmc/host/davinci_mmc.c 		dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc               793 drivers/mmc/host/davinci_mmc.c 		mmc_request_done(host->mmc, data->mrq);
mmc               821 drivers/mmc/host/davinci_mmc.c 		mmc_request_done(host->mmc, cmd->mrq);
mmc               856 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc),
mmc               859 drivers/mmc/host/davinci_mmc.c 		mmc_signal_sdio_irq(host->mmc);
mmc               874 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc),
mmc               932 drivers/mmc/host/davinci_mmc.c 			dev_err(mmc_dev(host->mmc),
mmc               942 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc),
mmc               966 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc), "data %s %s error\n",
mmc               976 drivers/mmc/host/davinci_mmc.c 			dev_dbg(mmc_dev(host->mmc),
mmc               990 drivers/mmc/host/davinci_mmc.c 		dev_dbg(mmc_dev(host->mmc), "Command CRC error\n");
mmc              1009 drivers/mmc/host/davinci_mmc.c static int mmc_davinci_get_cd(struct mmc_host *mmc)
mmc              1011 drivers/mmc/host/davinci_mmc.c 	struct platform_device *pdev = to_platform_device(mmc->parent);
mmc              1017 drivers/mmc/host/davinci_mmc.c 	return mmc_gpio_get_cd(mmc);
mmc              1020 drivers/mmc/host/davinci_mmc.c static int mmc_davinci_get_ro(struct mmc_host *mmc)
mmc              1022 drivers/mmc/host/davinci_mmc.c 	struct platform_device *pdev = to_platform_device(mmc->parent);
mmc              1028 drivers/mmc/host/davinci_mmc.c 	return mmc_gpio_get_ro(mmc);
mmc              1031 drivers/mmc/host/davinci_mmc.c static void mmc_davinci_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc              1033 drivers/mmc/host/davinci_mmc.c 	struct mmc_davinci_host *host = mmc_priv(mmc);
mmc              1038 drivers/mmc/host/davinci_mmc.c 			mmc_signal_sdio_irq(host->mmc);
mmc              1067 drivers/mmc/host/davinci_mmc.c 	struct mmc_host *mmc;
mmc              1071 drivers/mmc/host/davinci_mmc.c 	mmc = host->mmc;
mmc              1075 drivers/mmc/host/davinci_mmc.c 		spin_lock_irqsave(&mmc->lock, flags);
mmc              1077 drivers/mmc/host/davinci_mmc.c 		calculate_clk_divider(mmc, &mmc->ios);
mmc              1078 drivers/mmc/host/davinci_mmc.c 		spin_unlock_irqrestore(&mmc->lock, flags);
mmc              1146 drivers/mmc/host/davinci_mmc.c static int mmc_davinci_parse_pdata(struct mmc_host *mmc)
mmc              1148 drivers/mmc/host/davinci_mmc.c 	struct platform_device *pdev = to_platform_device(mmc->parent);
mmc              1156 drivers/mmc/host/davinci_mmc.c 	host = mmc_priv(mmc);
mmc              1164 drivers/mmc/host/davinci_mmc.c 		mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc              1167 drivers/mmc/host/davinci_mmc.c 		mmc->caps |= (MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA);
mmc              1169 drivers/mmc/host/davinci_mmc.c 	mmc->f_min = 312500;
mmc              1170 drivers/mmc/host/davinci_mmc.c 	mmc->f_max = 25000000;
mmc              1172 drivers/mmc/host/davinci_mmc.c 		mmc->f_max = pdata->max_freq;
mmc              1174 drivers/mmc/host/davinci_mmc.c 		mmc->caps |= pdata->caps;
mmc              1177 drivers/mmc/host/davinci_mmc.c 	ret = mmc_gpiod_request_cd(mmc, "cd", 0, false, 0, NULL);
mmc              1181 drivers/mmc/host/davinci_mmc.c 		mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              1183 drivers/mmc/host/davinci_mmc.c 	ret = mmc_gpiod_request_ro(mmc, "wp", 0, 0, NULL);
mmc              1194 drivers/mmc/host/davinci_mmc.c 	struct mmc_host *mmc = NULL;
mmc              1213 drivers/mmc/host/davinci_mmc.c 	mmc = mmc_alloc_host(sizeof(struct mmc_davinci_host), &pdev->dev);
mmc              1214 drivers/mmc/host/davinci_mmc.c 	if (!mmc)
mmc              1217 drivers/mmc/host/davinci_mmc.c 	host = mmc_priv(mmc);
mmc              1218 drivers/mmc/host/davinci_mmc.c 	host->mmc = mmc;	/* Important */
mmc              1241 drivers/mmc/host/davinci_mmc.c 		ret = mmc_of_parse(mmc);
mmc              1249 drivers/mmc/host/davinci_mmc.c 		ret = mmc_davinci_parse_pdata(mmc);
mmc              1273 drivers/mmc/host/davinci_mmc.c 	mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
mmc              1279 drivers/mmc/host/davinci_mmc.c 	mmc->ops = &mmc_davinci_ops;
mmc              1280 drivers/mmc/host/davinci_mmc.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc              1286 drivers/mmc/host/davinci_mmc.c 	mmc->max_segs		= MAX_NR_SG;
mmc              1289 drivers/mmc/host/davinci_mmc.c 	mmc->max_seg_size	= MAX_CCNT * rw_threshold;
mmc              1292 drivers/mmc/host/davinci_mmc.c 	mmc->max_blk_size	= 4095;  /* BLEN is 12 bits */
mmc              1293 drivers/mmc/host/davinci_mmc.c 	mmc->max_blk_count	= 65535; /* NBLK is 16 bits */
mmc              1294 drivers/mmc/host/davinci_mmc.c 	mmc->max_req_size	= mmc->max_blk_size * mmc->max_blk_count;
mmc              1296 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "max_segs=%d\n", mmc->max_segs);
mmc              1297 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "max_blk_size=%d\n", mmc->max_blk_size);
mmc              1298 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "max_req_size=%d\n", mmc->max_req_size);
mmc              1299 drivers/mmc/host/davinci_mmc.c 	dev_dbg(mmc_dev(host->mmc), "max_seg_size=%d\n", mmc->max_seg_size);
mmc              1309 drivers/mmc/host/davinci_mmc.c 	ret = mmc_add_host(mmc);
mmc              1314 drivers/mmc/host/davinci_mmc.c 			       mmc_hostname(mmc), host);
mmc              1321 drivers/mmc/host/davinci_mmc.c 				       mmc_hostname(mmc), host);
mmc              1323 drivers/mmc/host/davinci_mmc.c 			mmc->caps |= MMC_CAP_SDIO_IRQ;
mmc              1326 drivers/mmc/host/davinci_mmc.c 	rename_region(mem, mmc_hostname(mmc));
mmc              1328 drivers/mmc/host/davinci_mmc.c 	dev_info(mmc_dev(host->mmc), "Using %s, %d-bit mode\n",
mmc              1330 drivers/mmc/host/davinci_mmc.c 		(mmc->caps & MMC_CAP_4_BIT_DATA) ? 4 : 1);
mmc              1335 drivers/mmc/host/davinci_mmc.c 	mmc_remove_host(mmc);
mmc              1346 drivers/mmc/host/davinci_mmc.c 	mmc_free_host(mmc);
mmc              1355 drivers/mmc/host/davinci_mmc.c 	mmc_remove_host(host->mmc);
mmc              1359 drivers/mmc/host/davinci_mmc.c 	mmc_free_host(host->mmc);
mmc               473 drivers/mmc/host/dw_mmc-exynos.c 	struct mmc_host *mmc = slot->mmc;
mmc               484 drivers/mmc/host/dw_mmc-exynos.c 		if (!mmc_send_tuning(mmc, opcode, NULL))
mmc                81 drivers/mmc/host/dw_mmc-hi3798cv200.c 		err = mmc_send_tuning(slot->mmc, opcode, NULL);
mmc               141 drivers/mmc/host/dw_mmc-k3.c static int dw_mci_hi6220_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               143 drivers/mmc/host/dw_mmc-k3.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc               175 drivers/mmc/host/dw_mmc-k3.c 	if (IS_ERR_OR_NULL(mmc->supply.vqmmc))
mmc               178 drivers/mmc/host/dw_mmc-k3.c 	ret = regulator_set_voltage(mmc->supply.vqmmc, min_uv, max_uv);
mmc               371 drivers/mmc/host/dw_mmc-k3.c 	struct mmc_host *mmc = slot->mmc;
mmc               380 drivers/mmc/host/dw_mmc-k3.c 		dw_mci_hs_set_timing(host, mmc->ios.timing, smpl_phase);
mmc               382 drivers/mmc/host/dw_mmc-k3.c 		if (!mmc_send_tuning(mmc, opcode, NULL))
mmc               394 drivers/mmc/host/dw_mmc-k3.c 	dw_mci_hs_set_timing(host, mmc->ios.timing, best_clksmpl);
mmc               401 drivers/mmc/host/dw_mmc-k3.c static int dw_mci_hi3660_switch_voltage(struct mmc_host *mmc,
mmc               405 drivers/mmc/host/dw_mmc-k3.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc               425 drivers/mmc/host/dw_mmc-k3.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc               426 drivers/mmc/host/dw_mmc-k3.c 		ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc               139 drivers/mmc/host/dw_mmc-rockchip.c 	struct mmc_host *mmc = slot->mmc;
mmc               168 drivers/mmc/host/dw_mmc-rockchip.c 		v = !mmc_send_tuning(mmc, opcode, NULL);
mmc                91 drivers/mmc/host/dw_mmc-zx.c 	struct mmc_host *mmc = slot->mmc;
mmc                96 drivers/mmc/host/dw_mmc-zx.c 		if (!ret && mmc_send_tuning(mmc, opcode, NULL)) {
mmc               169 drivers/mmc/host/dw_mmc.c 	struct mmc_host	*mmc = slot->mmc;
mmc               173 drivers/mmc/host/dw_mmc.c 	root = mmc->debugfs_root;
mmc               243 drivers/mmc/host/dw_mmc.c 		dev_err(&slot->mmc->class_dev,
mmc               248 drivers/mmc/host/dw_mmc.c static u32 dw_mci_prepare_command(struct mmc_host *mmc, struct mmc_command *cmd)
mmc               250 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc               479 drivers/mmc/host/dw_mmc.c 		dma_sync_sg_for_cpu(mmc_dev(host->slot->mmc),
mmc               821 drivers/mmc/host/dw_mmc.c 		dma_sync_sg_for_device(mmc_dev(host->slot->mmc), sgl,
mmc               906 drivers/mmc/host/dw_mmc.c static void dw_mci_pre_req(struct mmc_host *mmc,
mmc               909 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc               923 drivers/mmc/host/dw_mmc.c static void dw_mci_post_req(struct mmc_host *mmc,
mmc               927 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc               941 drivers/mmc/host/dw_mmc.c static int dw_mci_get_cd(struct mmc_host *mmc)
mmc               944 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc               946 drivers/mmc/host/dw_mmc.c 	int gpio_cd = mmc_gpio_get_cd(mmc);
mmc               949 drivers/mmc/host/dw_mmc.c 	if (((mmc->caps & MMC_CAP_NEEDS_POLL)
mmc               950 drivers/mmc/host/dw_mmc.c 				|| !mmc_card_is_removable(mmc))) {
mmc               954 drivers/mmc/host/dw_mmc.c 			if (mmc->caps & MMC_CAP_NEEDS_POLL) {
mmc               955 drivers/mmc/host/dw_mmc.c 				dev_info(&mmc->class_dev,
mmc               958 drivers/mmc/host/dw_mmc.c 				dev_info(&mmc->class_dev,
mmc               973 drivers/mmc/host/dw_mmc.c 		dev_dbg(&mmc->class_dev, "card is present\n");
mmc               976 drivers/mmc/host/dw_mmc.c 		dev_dbg(&mmc->class_dev, "card is not present\n");
mmc              1208 drivers/mmc/host/dw_mmc.c 	slot->mmc->actual_clock = 0;
mmc              1229 drivers/mmc/host/dw_mmc.c 				dev_info(&slot->mmc->class_dev,
mmc              1239 drivers/mmc/host/dw_mmc.c 			if (slot->mmc->caps & MMC_CAP_NEEDS_POLL &&
mmc              1240 drivers/mmc/host/dw_mmc.c 					slot->mmc->f_min == clock)
mmc              1268 drivers/mmc/host/dw_mmc.c 		slot->mmc->actual_clock = div ? ((host->bus_hz / div) >> 1) :
mmc              1303 drivers/mmc/host/dw_mmc.c 	cmdflags = dw_mci_prepare_command(slot->mmc, cmd);
mmc              1353 drivers/mmc/host/dw_mmc.c 	dev_vdbg(&slot->mmc->class_dev, "queue request: state=%d\n",
mmc              1359 drivers/mmc/host/dw_mmc.c 		dev_warn(&slot->mmc->class_dev,
mmc              1377 drivers/mmc/host/dw_mmc.c static void dw_mci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1379 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1390 drivers/mmc/host/dw_mmc.c 	if (!dw_mci_get_cd(mmc)) {
mmc              1392 drivers/mmc/host/dw_mmc.c 		mmc_request_done(mmc, mrq);
mmc              1403 drivers/mmc/host/dw_mmc.c static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1405 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1446 drivers/mmc/host/dw_mmc.c 		if (!IS_ERR(mmc->supply.vmmc)) {
mmc              1447 drivers/mmc/host/dw_mmc.c 			ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc,
mmc              1463 drivers/mmc/host/dw_mmc.c 			if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              1464 drivers/mmc/host/dw_mmc.c 				ret = regulator_enable(mmc->supply.vqmmc);
mmc              1489 drivers/mmc/host/dw_mmc.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1490 drivers/mmc/host/dw_mmc.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc              1492 drivers/mmc/host/dw_mmc.c 		if (!IS_ERR(mmc->supply.vqmmc) && slot->host->vqmmc_enabled)
mmc              1493 drivers/mmc/host/dw_mmc.c 			regulator_disable(mmc->supply.vqmmc);
mmc              1508 drivers/mmc/host/dw_mmc.c static int dw_mci_card_busy(struct mmc_host *mmc)
mmc              1510 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1522 drivers/mmc/host/dw_mmc.c static int dw_mci_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1524 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1532 drivers/mmc/host/dw_mmc.c 		return drv_data->switch_voltage(mmc, ios);
mmc              1545 drivers/mmc/host/dw_mmc.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              1546 drivers/mmc/host/dw_mmc.c 		ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc              1549 drivers/mmc/host/dw_mmc.c 			dev_dbg(&mmc->class_dev,
mmc              1560 drivers/mmc/host/dw_mmc.c static int dw_mci_get_ro(struct mmc_host *mmc)
mmc              1563 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1564 drivers/mmc/host/dw_mmc.c 	int gpio_ro = mmc_gpio_get_ro(mmc);
mmc              1573 drivers/mmc/host/dw_mmc.c 	dev_dbg(&mmc->class_dev, "card is %s\n",
mmc              1579 drivers/mmc/host/dw_mmc.c static void dw_mci_hw_reset(struct mmc_host *mmc)
mmc              1581 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1607 drivers/mmc/host/dw_mmc.c static void dw_mci_init_card(struct mmc_host *mmc, struct mmc_card *card)
mmc              1609 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1617 drivers/mmc/host/dw_mmc.c 	if (mmc->caps & MMC_CAP_SDIO_IRQ) {
mmc              1660 drivers/mmc/host/dw_mmc.c static void dw_mci_enable_sdio_irq(struct mmc_host *mmc, int enb)
mmc              1662 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1674 drivers/mmc/host/dw_mmc.c static void dw_mci_ack_sdio_irq(struct mmc_host *mmc)
mmc              1676 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1681 drivers/mmc/host/dw_mmc.c static int dw_mci_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc              1683 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1693 drivers/mmc/host/dw_mmc.c static int dw_mci_prepare_hs400_tuning(struct mmc_host *mmc,
mmc              1696 drivers/mmc/host/dw_mmc.c 	struct dw_mci_slot *slot = mmc_priv(mmc);
mmc              1795 drivers/mmc/host/dw_mmc.c 	struct mmc_host	*prev_mmc = host->slot->mmc;
mmc              1806 drivers/mmc/host/dw_mmc.c 			 mmc_hostname(slot->mmc));
mmc              2608 drivers/mmc/host/dw_mmc.c 	if (slot->mmc->ops->card_event)
mmc              2609 drivers/mmc/host/dw_mmc.c 		slot->mmc->ops->card_event(slot->mmc);
mmc              2610 drivers/mmc/host/dw_mmc.c 	mmc_detect_change(slot->mmc,
mmc              2711 drivers/mmc/host/dw_mmc.c 			sdio_signal_irq(slot->mmc);
mmc              2747 drivers/mmc/host/dw_mmc.c 	struct mmc_host *mmc = slot->mmc;
mmc              2751 drivers/mmc/host/dw_mmc.c 		mmc->caps = host->pdata->caps;
mmc              2757 drivers/mmc/host/dw_mmc.c 	mmc->caps |= MMC_CAP_ERASE;
mmc              2760 drivers/mmc/host/dw_mmc.c 		mmc->pm_caps = host->pdata->pm_caps;
mmc              2776 drivers/mmc/host/dw_mmc.c 		mmc->caps |= drv_data->caps[ctrl_id];
mmc              2780 drivers/mmc/host/dw_mmc.c 		mmc->caps2 = host->pdata->caps2;
mmc              2782 drivers/mmc/host/dw_mmc.c 	mmc->f_min = DW_MCI_FREQ_MIN;
mmc              2783 drivers/mmc/host/dw_mmc.c 	if (!mmc->f_max)
mmc              2784 drivers/mmc/host/dw_mmc.c 		mmc->f_max = DW_MCI_FREQ_MAX;
mmc              2787 drivers/mmc/host/dw_mmc.c 	if (mmc->caps & MMC_CAP_SDIO_IRQ)
mmc              2788 drivers/mmc/host/dw_mmc.c 		mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD;
mmc              2795 drivers/mmc/host/dw_mmc.c 	struct mmc_host *mmc;
mmc              2799 drivers/mmc/host/dw_mmc.c 	mmc = mmc_alloc_host(sizeof(struct dw_mci_slot), host->dev);
mmc              2800 drivers/mmc/host/dw_mmc.c 	if (!mmc)
mmc              2803 drivers/mmc/host/dw_mmc.c 	slot = mmc_priv(mmc);
mmc              2806 drivers/mmc/host/dw_mmc.c 	slot->mmc = mmc;
mmc              2810 drivers/mmc/host/dw_mmc.c 	mmc->ops = &dw_mci_ops;
mmc              2813 drivers/mmc/host/dw_mmc.c 	ret = mmc_regulator_get_supply(mmc);
mmc              2817 drivers/mmc/host/dw_mmc.c 	if (!mmc->ocr_avail)
mmc              2818 drivers/mmc/host/dw_mmc.c 		mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc              2820 drivers/mmc/host/dw_mmc.c 	ret = mmc_of_parse(mmc);
mmc              2830 drivers/mmc/host/dw_mmc.c 		mmc->max_segs = host->ring_size;
mmc              2831 drivers/mmc/host/dw_mmc.c 		mmc->max_blk_size = 65535;
mmc              2832 drivers/mmc/host/dw_mmc.c 		mmc->max_seg_size = 0x1000;
mmc              2833 drivers/mmc/host/dw_mmc.c 		mmc->max_req_size = mmc->max_seg_size * host->ring_size;
mmc              2834 drivers/mmc/host/dw_mmc.c 		mmc->max_blk_count = mmc->max_req_size / 512;
mmc              2836 drivers/mmc/host/dw_mmc.c 		mmc->max_segs = 64;
mmc              2837 drivers/mmc/host/dw_mmc.c 		mmc->max_blk_size = 65535;
mmc              2838 drivers/mmc/host/dw_mmc.c 		mmc->max_blk_count = 65535;
mmc              2839 drivers/mmc/host/dw_mmc.c 		mmc->max_req_size =
mmc              2840 drivers/mmc/host/dw_mmc.c 				mmc->max_blk_size * mmc->max_blk_count;
mmc              2841 drivers/mmc/host/dw_mmc.c 		mmc->max_seg_size = mmc->max_req_size;
mmc              2844 drivers/mmc/host/dw_mmc.c 		mmc->max_segs = 64;
mmc              2845 drivers/mmc/host/dw_mmc.c 		mmc->max_blk_size = 65535; /* BLKSIZ is 16 bits */
mmc              2846 drivers/mmc/host/dw_mmc.c 		mmc->max_blk_count = 512;
mmc              2847 drivers/mmc/host/dw_mmc.c 		mmc->max_req_size = mmc->max_blk_size *
mmc              2848 drivers/mmc/host/dw_mmc.c 				    mmc->max_blk_count;
mmc              2849 drivers/mmc/host/dw_mmc.c 		mmc->max_seg_size = mmc->max_req_size;
mmc              2852 drivers/mmc/host/dw_mmc.c 	dw_mci_get_cd(mmc);
mmc              2854 drivers/mmc/host/dw_mmc.c 	ret = mmc_add_host(mmc);
mmc              2865 drivers/mmc/host/dw_mmc.c 	mmc_free_host(mmc);
mmc              2872 drivers/mmc/host/dw_mmc.c 	mmc_remove_host(slot->mmc);
mmc              2874 drivers/mmc/host/dw_mmc.c 	mmc_free_host(slot->mmc);
mmc              3149 drivers/mmc/host/dw_mmc.c 	if (host->slot->mmc->caps & MMC_CAP_NEEDS_POLL)
mmc              3152 drivers/mmc/host/dw_mmc.c 	if (mmc_gpio_get_cd(host->slot->mmc) < 0) {
mmc              3406 drivers/mmc/host/dw_mmc.c 	    (mmc_can_gpio_cd(host->slot->mmc) ||
mmc              3407 drivers/mmc/host/dw_mmc.c 	     !mmc_card_is_removable(host->slot->mmc)))
mmc              3420 drivers/mmc/host/dw_mmc.c 	    (mmc_can_gpio_cd(host->slot->mmc) ||
mmc              3421 drivers/mmc/host/dw_mmc.c 	     !mmc_card_is_removable(host->slot->mmc))) {
mmc              3457 drivers/mmc/host/dw_mmc.c 	if (host->slot->mmc->pm_flags & MMC_PM_KEEP_POWER)
mmc              3458 drivers/mmc/host/dw_mmc.c 		dw_mci_set_ios(host->slot->mmc, &host->slot->mmc->ios);
mmc              3464 drivers/mmc/host/dw_mmc.c 	if (sdio_irq_claimed(host->slot->mmc))
mmc              3474 drivers/mmc/host/dw_mmc.c 	    (mmc_can_gpio_cd(host->slot->mmc) ||
mmc              3475 drivers/mmc/host/dw_mmc.c 	     !mmc_card_is_removable(host->slot->mmc)))
mmc               521 drivers/mmc/host/dw_mmc.h 	struct mmc_host		*mmc;
mmc               564 drivers/mmc/host/dw_mmc.h 	int		(*switch_voltage)(struct mmc_host *mmc,
mmc               136 drivers/mmc/host/jz4740_mmc.c 	struct mmc_host *mmc;
mmc               214 drivers/mmc/host/jz4740_mmc.c 	host->dma_tx = dma_request_chan(mmc_dev(host->mmc), "tx");
mmc               216 drivers/mmc/host/jz4740_mmc.c 		dev_err(mmc_dev(host->mmc), "Failed to get dma_tx channel\n");
mmc               220 drivers/mmc/host/jz4740_mmc.c 	host->dma_rx = dma_request_chan(mmc_dev(host->mmc), "rx");
mmc               222 drivers/mmc/host/jz4740_mmc.c 		dev_err(mmc_dev(host->mmc), "Failed to get dma_rx channel\n");
mmc               266 drivers/mmc/host/jz4740_mmc.c 		dev_err(mmc_dev(host->mmc),
mmc               307 drivers/mmc/host/jz4740_mmc.c 		dev_err(mmc_dev(host->mmc),
mmc               324 drivers/mmc/host/jz4740_mmc.c static void jz4740_mmc_pre_request(struct mmc_host *mmc,
mmc               327 drivers/mmc/host/jz4740_mmc.c 	struct jz4740_mmc_host *host = mmc_priv(mmc);
mmc               338 drivers/mmc/host/jz4740_mmc.c static void jz4740_mmc_post_request(struct mmc_host *mmc,
mmc               342 drivers/mmc/host/jz4740_mmc.c 	struct jz4740_mmc_host *host = mmc_priv(mmc);
mmc               417 drivers/mmc/host/jz4740_mmc.c 	mmc_request_done(host->mmc, req);
mmc               810 drivers/mmc/host/jz4740_mmc.c 		mmc_signal_sdio_irq(host->mmc);
mmc               845 drivers/mmc/host/jz4740_mmc.c 	clk_set_rate(host->clk, host->mmc->f_max);
mmc               858 drivers/mmc/host/jz4740_mmc.c static void jz4740_mmc_request(struct mmc_host *mmc, struct mmc_request *req)
mmc               860 drivers/mmc/host/jz4740_mmc.c 	struct jz4740_mmc_host *host = mmc_priv(mmc);
mmc               873 drivers/mmc/host/jz4740_mmc.c static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               875 drivers/mmc/host/jz4740_mmc.c 	struct jz4740_mmc_host *host = mmc_priv(mmc);
mmc               882 drivers/mmc/host/jz4740_mmc.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc               883 drivers/mmc/host/jz4740_mmc.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
mmc               890 drivers/mmc/host/jz4740_mmc.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc               891 drivers/mmc/host/jz4740_mmc.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc               908 drivers/mmc/host/jz4740_mmc.c static void jz4740_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               910 drivers/mmc/host/jz4740_mmc.c 	struct jz4740_mmc_host *host = mmc_priv(mmc);
mmc               935 drivers/mmc/host/jz4740_mmc.c 	struct mmc_host *mmc;
mmc               939 drivers/mmc/host/jz4740_mmc.c 	mmc = mmc_alloc_host(sizeof(struct jz4740_mmc_host), &pdev->dev);
mmc               940 drivers/mmc/host/jz4740_mmc.c 	if (!mmc) {
mmc               945 drivers/mmc/host/jz4740_mmc.c 	host = mmc_priv(mmc);
mmc               955 drivers/mmc/host/jz4740_mmc.c 	ret = mmc_of_parse(mmc);
mmc               963 drivers/mmc/host/jz4740_mmc.c 	mmc_regulator_get_supply(mmc);
mmc               986 drivers/mmc/host/jz4740_mmc.c 	mmc->ops = &jz4740_mmc_ops;
mmc               987 drivers/mmc/host/jz4740_mmc.c 	if (!mmc->f_max)
mmc               988 drivers/mmc/host/jz4740_mmc.c 		mmc->f_max = JZ_MMC_CLK_RATE;
mmc               989 drivers/mmc/host/jz4740_mmc.c 	mmc->f_min = mmc->f_max / 128;
mmc               990 drivers/mmc/host/jz4740_mmc.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               992 drivers/mmc/host/jz4740_mmc.c 	mmc->max_blk_size = (1 << 10) - 1;
mmc               993 drivers/mmc/host/jz4740_mmc.c 	mmc->max_blk_count = (1 << 15) - 1;
mmc               994 drivers/mmc/host/jz4740_mmc.c 	mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc               996 drivers/mmc/host/jz4740_mmc.c 	mmc->max_segs = 128;
mmc               997 drivers/mmc/host/jz4740_mmc.c 	mmc->max_seg_size = mmc->max_req_size;
mmc               999 drivers/mmc/host/jz4740_mmc.c 	host->mmc = mmc;
mmc              1022 drivers/mmc/host/jz4740_mmc.c 	ret = mmc_add_host(mmc);
mmc              1032 drivers/mmc/host/jz4740_mmc.c 		 (mmc->caps & MMC_CAP_4_BIT_DATA) ? 4 : 1);
mmc              1042 drivers/mmc/host/jz4740_mmc.c 	mmc_free_host(mmc);
mmc              1055 drivers/mmc/host/jz4740_mmc.c 	mmc_remove_host(host->mmc);
mmc              1062 drivers/mmc/host/jz4740_mmc.c 	mmc_free_host(host->mmc);
mmc               151 drivers/mmc/host/meson-gx-mmc.c 	struct	mmc_host	*mmc;
mmc               224 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_get_transfer_mode(struct mmc_host *mmc,
mmc               227 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               273 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               280 drivers/mmc/host/meson-gx-mmc.c 	meson_mmc_get_transfer_mode(mmc, mrq);
mmc               286 drivers/mmc/host/meson-gx-mmc.c 	data->sg_count = dma_map_sg(mmc_dev(mmc), data->sg, data->sg_len,
mmc               289 drivers/mmc/host/meson-gx-mmc.c 		dev_err(mmc_dev(mmc), "dma_map_sg failed");
mmc               292 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq,
mmc               298 drivers/mmc/host/meson-gx-mmc.c 		dma_unmap_sg(mmc_dev(mmc), data->sg, data->sg_len,
mmc               341 drivers/mmc/host/meson-gx-mmc.c 	struct mmc_host *mmc = host->mmc;
mmc               352 drivers/mmc/host/meson-gx-mmc.c 	mmc->actual_clock = 0;
mmc               381 drivers/mmc/host/meson-gx-mmc.c 	mmc->actual_clock = clk_get_rate(host->mmc_clk);
mmc               386 drivers/mmc/host/meson-gx-mmc.c 		mmc->actual_clock >>= 1;
mmc               389 drivers/mmc/host/meson-gx-mmc.c 	dev_dbg(host->dev, "clk rate: %u Hz\n", mmc->actual_clock);
mmc               390 drivers/mmc/host/meson-gx-mmc.c 	if (rate != mmc->actual_clock)
mmc               484 drivers/mmc/host/meson-gx-mmc.c 	host->mmc->f_min = clk_round_rate(host->mmc_clk, 400000);
mmc               485 drivers/mmc/host/meson-gx-mmc.c 	ret = clk_set_rate(host->mmc_clk, host->mmc->f_min);
mmc               511 drivers/mmc/host/meson-gx-mmc.c static int meson_mmc_resampling_tuning(struct mmc_host *mmc, u32 opcode)
mmc               513 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               525 drivers/mmc/host/meson-gx-mmc.c 	if (mmc->doing_retune)
mmc               535 drivers/mmc/host/meson-gx-mmc.c 		ret = mmc_send_tuning(mmc, opcode, NULL);
mmc               537 drivers/mmc/host/meson-gx-mmc.c 			dev_dbg(mmc_dev(mmc), "resampling delay: %u\n",
mmc               579 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               581 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               591 drivers/mmc/host/meson-gx-mmc.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc               592 drivers/mmc/host/meson-gx-mmc.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc               594 drivers/mmc/host/meson-gx-mmc.c 		if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) {
mmc               595 drivers/mmc/host/meson-gx-mmc.c 			regulator_disable(mmc->supply.vqmmc);
mmc               602 drivers/mmc/host/meson-gx-mmc.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc               603 drivers/mmc/host/meson-gx-mmc.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
mmc               608 drivers/mmc/host/meson-gx-mmc.c 		if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) {
mmc               609 drivers/mmc/host/meson-gx-mmc.c 			int ret = regulator_enable(mmc->supply.vqmmc);
mmc               651 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_request_done(struct mmc_host *mmc,
mmc               654 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               657 drivers/mmc/host/meson-gx-mmc.c 	mmc_request_done(host->mmc, mrq);
mmc               660 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_set_blksz(struct mmc_host *mmc, unsigned int blksz)
mmc               662 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               702 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_desc_chain_transfer(struct mmc_host *mmc, u32 cmd_cfg)
mmc               704 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               716 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_set_blksz(mmc, data->blksz);
mmc               740 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_start_cmd(struct mmc_host *mmc, struct mmc_command *cmd)
mmc               742 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               766 drivers/mmc/host/meson-gx-mmc.c 			meson_mmc_desc_chain_transfer(mmc, cmd_cfg);
mmc               774 drivers/mmc/host/meson-gx-mmc.c 			meson_mmc_set_blksz(mmc, data->blksz);
mmc               803 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               805 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               810 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_get_transfer_mode(mmc, mrq);
mmc               816 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_pre_req(mmc, mrq);
mmc               821 drivers/mmc/host/meson-gx-mmc.c 	meson_mmc_start_cmd(mmc, mrq->sbc ?: mrq->cmd);
mmc               824 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_post_req(mmc, mrq, 0);
mmc               827 drivers/mmc/host/meson-gx-mmc.c static void meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd)
mmc               829 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc               883 drivers/mmc/host/meson-gx-mmc.c 	meson_mmc_read_resp(host->mmc, cmd);
mmc               910 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_request_done(host->mmc, cmd->mrq);
mmc               944 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_request_done(host->mmc, cmd->mrq);
mmc               959 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_start_cmd(host->mmc, next_cmd);
mmc               961 drivers/mmc/host/meson-gx-mmc.c 		meson_mmc_request_done(host->mmc, cmd->mrq);
mmc               970 drivers/mmc/host/meson-gx-mmc.c static int meson_mmc_get_cd(struct mmc_host *mmc)
mmc               972 drivers/mmc/host/meson-gx-mmc.c 	int status = mmc_gpio_get_cd(mmc);
mmc               995 drivers/mmc/host/meson-gx-mmc.c static int meson_mmc_card_busy(struct mmc_host *mmc)
mmc               997 drivers/mmc/host/meson-gx-mmc.c 	struct meson_host *host = mmc_priv(mmc);
mmc              1006 drivers/mmc/host/meson-gx-mmc.c static int meson_mmc_voltage_switch(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1009 drivers/mmc/host/meson-gx-mmc.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              1017 drivers/mmc/host/meson-gx-mmc.c 		return mmc_regulator_set_vqmmc(mmc, ios);
mmc              1042 drivers/mmc/host/meson-gx-mmc.c 	struct mmc_host *mmc;
mmc              1045 drivers/mmc/host/meson-gx-mmc.c 	mmc = mmc_alloc_host(sizeof(struct meson_host), &pdev->dev);
mmc              1046 drivers/mmc/host/meson-gx-mmc.c 	if (!mmc)
mmc              1048 drivers/mmc/host/meson-gx-mmc.c 	host = mmc_priv(mmc);
mmc              1049 drivers/mmc/host/meson-gx-mmc.c 	host->mmc = mmc;
mmc              1059 drivers/mmc/host/meson-gx-mmc.c 	ret = mmc_regulator_get_supply(mmc);
mmc              1063 drivers/mmc/host/meson-gx-mmc.c 	ret = mmc_of_parse(mmc);
mmc              1152 drivers/mmc/host/meson-gx-mmc.c 	mmc->caps |= MMC_CAP_CMD23;
mmc              1155 drivers/mmc/host/meson-gx-mmc.c 		mmc->max_segs = SD_EMMC_SRAM_DATA_BUF_LEN / mmc->max_blk_size;
mmc              1156 drivers/mmc/host/meson-gx-mmc.c 		mmc->max_blk_count = mmc->max_segs;
mmc              1158 drivers/mmc/host/meson-gx-mmc.c 		mmc->max_blk_count = CMD_CFG_LENGTH_MASK;
mmc              1159 drivers/mmc/host/meson-gx-mmc.c 		mmc->max_segs = SD_EMMC_DESC_BUF_LEN /
mmc              1162 drivers/mmc/host/meson-gx-mmc.c 	mmc->max_req_size = mmc->max_blk_count * mmc->max_blk_size;
mmc              1163 drivers/mmc/host/meson-gx-mmc.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1170 drivers/mmc/host/meson-gx-mmc.c 	mmc->caps2 &= ~MMC_CAP2_HS400;
mmc              1184 drivers/mmc/host/meson-gx-mmc.c 		host->bounce_buf_size = mmc->max_req_size;
mmc              1203 drivers/mmc/host/meson-gx-mmc.c 	mmc->ops = &meson_mmc_ops;
mmc              1204 drivers/mmc/host/meson-gx-mmc.c 	mmc_add_host(mmc);
mmc              1219 drivers/mmc/host/meson-gx-mmc.c 	mmc_free_host(mmc);
mmc              1227 drivers/mmc/host/meson-gx-mmc.c 	mmc_remove_host(host->mmc);
mmc              1243 drivers/mmc/host/meson-gx-mmc.c 	mmc_free_host(host->mmc);
mmc               118 drivers/mmc/host/meson-mx-sdio.c 	struct mmc_host			*mmc;
mmc               125 drivers/mmc/host/meson-mx-sdio.c static void meson_mx_mmc_mask_bits(struct mmc_host *mmc, char reg, u32 mask,
mmc               128 drivers/mmc/host/meson-mx-sdio.c 	struct meson_mx_mmc_host *host = mmc_priv(mmc);
mmc               155 drivers/mmc/host/meson-mx-sdio.c static void meson_mx_mmc_start_cmd(struct mmc_host *mmc,
mmc               158 drivers/mmc/host/meson-mx-sdio.c 	struct meson_mx_mmc_host *host = mmc_priv(mmc);
mmc               197 drivers/mmc/host/meson-mx-sdio.c 		if (mmc->ios.bus_width == MMC_BUS_WIDTH_4)
mmc               225 drivers/mmc/host/meson-mx-sdio.c 	meson_mx_mmc_mask_bits(mmc, MESON_MX_SDIO_IRQC,
mmc               230 drivers/mmc/host/meson-mx-sdio.c 	meson_mx_mmc_mask_bits(mmc, MESON_MX_SDIO_IRQS,
mmc               252 drivers/mmc/host/meson-mx-sdio.c 	mmc_request_done(host->mmc, mrq);
mmc               255 drivers/mmc/host/meson-mx-sdio.c static void meson_mx_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               257 drivers/mmc/host/meson-mx-sdio.c 	struct meson_mx_mmc_host *host = mmc_priv(mmc);
mmc               263 drivers/mmc/host/meson-mx-sdio.c 		meson_mx_mmc_mask_bits(mmc, MESON_MX_SDIO_CONF,
mmc               268 drivers/mmc/host/meson-mx-sdio.c 		meson_mx_mmc_mask_bits(mmc, MESON_MX_SDIO_CONF,
mmc               275 drivers/mmc/host/meson-mx-sdio.c 		dev_err(mmc_dev(mmc), "unsupported bus width: %d\n",
mmc               283 drivers/mmc/host/meson-mx-sdio.c 		dev_warn(mmc_dev(mmc),
mmc               289 drivers/mmc/host/meson-mx-sdio.c 	mmc->actual_clock = clk_get_rate(host->cfg_div_clk);
mmc               296 drivers/mmc/host/meson-mx-sdio.c 		if (!IS_ERR(mmc->supply.vmmc)) {
mmc               297 drivers/mmc/host/meson-mx-sdio.c 			host->error = mmc_regulator_set_ocr(mmc,
mmc               298 drivers/mmc/host/meson-mx-sdio.c 							    mmc->supply.vmmc,
mmc               307 drivers/mmc/host/meson-mx-sdio.c static int meson_mx_mmc_map_dma(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               318 drivers/mmc/host/meson-mx-sdio.c 		dev_err(mmc_dev(mmc),
mmc               324 drivers/mmc/host/meson-mx-sdio.c 	dma_len = dma_map_sg(mmc_dev(mmc), data->sg, data->sg_len,
mmc               327 drivers/mmc/host/meson-mx-sdio.c 		dev_err(mmc_dev(mmc), "dma_map_sg failed\n");
mmc               334 drivers/mmc/host/meson-mx-sdio.c static void meson_mx_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               336 drivers/mmc/host/meson-mx-sdio.c 	struct meson_mx_mmc_host *host = mmc_priv(mmc);
mmc               340 drivers/mmc/host/meson-mx-sdio.c 		host->error = meson_mx_mmc_map_dma(mmc, mrq);
mmc               344 drivers/mmc/host/meson-mx-sdio.c 		mmc_request_done(mmc, mrq);
mmc               355 drivers/mmc/host/meson-mx-sdio.c 		meson_mx_mmc_start_cmd(mmc, mrq->sbc);
mmc               357 drivers/mmc/host/meson-mx-sdio.c 		meson_mx_mmc_start_cmd(mmc, mrq->cmd);
mmc               360 drivers/mmc/host/meson-mx-sdio.c static void meson_mx_mmc_read_response(struct mmc_host *mmc,
mmc               363 drivers/mmc/host/meson-mx-sdio.c 	struct meson_mx_mmc_host *host = mmc_priv(mmc);
mmc               399 drivers/mmc/host/meson-mx-sdio.c 	meson_mx_mmc_read_response(host->mmc, cmd);
mmc               450 drivers/mmc/host/meson-mx-sdio.c 		dma_unmap_sg(mmc_dev(host->mmc), cmd->data->sg,
mmc               459 drivers/mmc/host/meson-mx-sdio.c 		meson_mx_mmc_start_cmd(host->mmc, next_cmd);
mmc               488 drivers/mmc/host/meson-mx-sdio.c 	dev_dbg(mmc_dev(host->mmc),
mmc               529 drivers/mmc/host/meson-mx-sdio.c 	struct mmc_host *mmc = host->mmc;
mmc               530 drivers/mmc/host/meson-mx-sdio.c 	struct device *slot_dev = mmc_dev(mmc);
mmc               545 drivers/mmc/host/meson-mx-sdio.c 	ret = mmc_regulator_get_supply(mmc);
mmc               549 drivers/mmc/host/meson-mx-sdio.c 	mmc->max_req_size = MESON_MX_SDIO_BOUNCE_REQ_SIZE;
mmc               550 drivers/mmc/host/meson-mx-sdio.c 	mmc->max_seg_size = mmc->max_req_size;
mmc               551 drivers/mmc/host/meson-mx-sdio.c 	mmc->max_blk_count =
mmc               554 drivers/mmc/host/meson-mx-sdio.c 	mmc->max_blk_size = FIELD_GET(MESON_MX_SDIO_EXT_DATA_RW_NUMBER_MASK,
mmc               556 drivers/mmc/host/meson-mx-sdio.c 	mmc->max_blk_size -= (4 * MESON_MX_SDIO_RESPONSE_CRC16_BITS);
mmc               557 drivers/mmc/host/meson-mx-sdio.c 	mmc->max_blk_size /= BITS_PER_BYTE;
mmc               560 drivers/mmc/host/meson-mx-sdio.c 	mmc->f_min = clk_round_rate(host->cfg_div_clk, 1);
mmc               561 drivers/mmc/host/meson-mx-sdio.c 	mmc->f_max = clk_round_rate(host->cfg_div_clk,
mmc               564 drivers/mmc/host/meson-mx-sdio.c 	mmc->caps |= MMC_CAP_ERASE | MMC_CAP_CMD23 | MMC_CAP_WAIT_WHILE_BUSY;
mmc               565 drivers/mmc/host/meson-mx-sdio.c 	mmc->ops = &meson_mx_mmc_ops;
mmc               567 drivers/mmc/host/meson-mx-sdio.c 	ret = mmc_of_parse(mmc);
mmc               571 drivers/mmc/host/meson-mx-sdio.c 	ret = mmc_add_host(mmc);
mmc               630 drivers/mmc/host/meson-mx-sdio.c 	struct mmc_host *mmc;
mmc               642 drivers/mmc/host/meson-mx-sdio.c 	mmc = mmc_alloc_host(sizeof(*host), &slot_pdev->dev);
mmc               643 drivers/mmc/host/meson-mx-sdio.c 	if (!mmc) {
mmc               648 drivers/mmc/host/meson-mx-sdio.c 	host = mmc_priv(mmc);
mmc               649 drivers/mmc/host/meson-mx-sdio.c 	host->mmc = mmc;
mmc               720 drivers/mmc/host/meson-mx-sdio.c 	mmc_free_host(mmc);
mmc               729 drivers/mmc/host/meson-mx-sdio.c 	struct device *slot_dev = mmc_dev(host->mmc);
mmc               733 drivers/mmc/host/meson-mx-sdio.c 	mmc_remove_host(host->mmc);
mmc               740 drivers/mmc/host/meson-mx-sdio.c 	mmc_free_host(host->mmc);
mmc               112 drivers/mmc/host/mmc_spi.c 	struct mmc_host		*mmc;
mmc               663 drivers/mmc/host/mmc_spi.c 	if (host->mmc->use_spi_crc)
mmc               840 drivers/mmc/host/mmc_spi.c 	if (host->mmc->use_spi_crc) {
mmc              1035 drivers/mmc/host/mmc_spi.c static void mmc_spi_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1037 drivers/mmc/host/mmc_spi.c 	struct mmc_spi_host	*host = mmc_priv(mmc);
mmc              1064 drivers/mmc/host/mmc_spi.c 			mmc_request_done(host->mmc, mrq);
mmc              1105 drivers/mmc/host/mmc_spi.c 	mmc_request_done(host->mmc, mrq);
mmc              1171 drivers/mmc/host/mmc_spi.c static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1173 drivers/mmc/host/mmc_spi.c 	struct mmc_spi_host *host = mmc_priv(mmc);
mmc              1274 drivers/mmc/host/mmc_spi.c mmc_spi_detect_irq(int irq, void *mmc)
mmc              1276 drivers/mmc/host/mmc_spi.c 	struct mmc_spi_host *host = mmc_priv(mmc);
mmc              1279 drivers/mmc/host/mmc_spi.c 	mmc_detect_change(mmc, msecs_to_jiffies(delay_msec));
mmc              1286 drivers/mmc/host/mmc_spi.c 	struct mmc_host		*mmc;
mmc              1327 drivers/mmc/host/mmc_spi.c 	mmc = mmc_alloc_host(sizeof(*host), &spi->dev);
mmc              1328 drivers/mmc/host/mmc_spi.c 	if (!mmc)
mmc              1331 drivers/mmc/host/mmc_spi.c 	mmc->ops = &mmc_spi_ops;
mmc              1332 drivers/mmc/host/mmc_spi.c 	mmc->max_blk_size = MMC_SPI_BLOCKSIZE;
mmc              1333 drivers/mmc/host/mmc_spi.c 	mmc->max_segs = MMC_SPI_BLOCKSATONCE;
mmc              1334 drivers/mmc/host/mmc_spi.c 	mmc->max_req_size = MMC_SPI_BLOCKSATONCE * MMC_SPI_BLOCKSIZE;
mmc              1335 drivers/mmc/host/mmc_spi.c 	mmc->max_blk_count = MMC_SPI_BLOCKSATONCE;
mmc              1337 drivers/mmc/host/mmc_spi.c 	mmc->caps = MMC_CAP_SPI;
mmc              1347 drivers/mmc/host/mmc_spi.c 	mmc->f_min = 400000;
mmc              1348 drivers/mmc/host/mmc_spi.c 	mmc->f_max = spi->max_speed_hz;
mmc              1350 drivers/mmc/host/mmc_spi.c 	host = mmc_priv(mmc);
mmc              1351 drivers/mmc/host/mmc_spi.c 	host->mmc = mmc;
mmc              1361 drivers/mmc/host/mmc_spi.c 		mmc->ocr_avail = host->pdata->ocr_mask;
mmc              1362 drivers/mmc/host/mmc_spi.c 	if (!mmc->ocr_avail) {
mmc              1364 drivers/mmc/host/mmc_spi.c 		mmc->ocr_avail = MMC_VDD_32_33|MMC_VDD_33_34;
mmc              1372 drivers/mmc/host/mmc_spi.c 	dev_set_drvdata(&spi->dev, mmc);
mmc              1410 drivers/mmc/host/mmc_spi.c 		status = host->pdata->init(&spi->dev, mmc_spi_detect_irq, mmc);
mmc              1417 drivers/mmc/host/mmc_spi.c 		mmc->caps |= host->pdata->caps;
mmc              1418 drivers/mmc/host/mmc_spi.c 		mmc->caps2 |= host->pdata->caps2;
mmc              1421 drivers/mmc/host/mmc_spi.c 	status = mmc_add_host(mmc);
mmc              1429 drivers/mmc/host/mmc_spi.c 	status = mmc_gpiod_request_cd(mmc, NULL, 0, false, 1, NULL);
mmc              1438 drivers/mmc/host/mmc_spi.c 		mmc->caps &= ~MMC_CAP_NEEDS_POLL;
mmc              1439 drivers/mmc/host/mmc_spi.c 		mmc_gpiod_request_cd_irq(mmc);
mmc              1441 drivers/mmc/host/mmc_spi.c 	mmc_detect_change(mmc, 0);
mmc              1444 drivers/mmc/host/mmc_spi.c 	status = mmc_gpiod_request_ro(mmc, NULL, 1, 0, NULL);
mmc              1451 drivers/mmc/host/mmc_spi.c 			dev_name(&mmc->class_dev),
mmc              1456 drivers/mmc/host/mmc_spi.c 			(mmc->caps & MMC_CAP_NEEDS_POLL)
mmc              1461 drivers/mmc/host/mmc_spi.c 	mmc_remove_host(mmc);
mmc              1474 drivers/mmc/host/mmc_spi.c 	mmc_free_host(mmc);
mmc              1485 drivers/mmc/host/mmc_spi.c 	struct mmc_host		*mmc = dev_get_drvdata(&spi->dev);
mmc              1486 drivers/mmc/host/mmc_spi.c 	struct mmc_spi_host	*host = mmc_priv(mmc);
mmc              1490 drivers/mmc/host/mmc_spi.c 		host->pdata->exit(&spi->dev, mmc);
mmc              1492 drivers/mmc/host/mmc_spi.c 	mmc_remove_host(mmc);
mmc              1504 drivers/mmc/host/mmc_spi.c 	spi->max_speed_hz = mmc->f_max;
mmc              1505 drivers/mmc/host/mmc_spi.c 	mmc_free_host(mmc);
mmc               295 drivers/mmc/host/mmci.c static int mmci_card_busy(struct mmc_host *mmc)
mmc               297 drivers/mmc/host/mmci.c 	struct mmci_host *host = mmc_priv(mmc);
mmc               408 drivers/mmc/host/mmci.c 	host->mmc->actual_clock = host->cclk;
mmc               410 drivers/mmc/host/mmci.c 	if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4)
mmc               412 drivers/mmc/host/mmci.c 	if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8)
mmc               415 drivers/mmc/host/mmci.c 	if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 ||
mmc               416 drivers/mmc/host/mmci.c 	    host->mmc->ios.timing == MMC_TIMING_MMC_DDR52)
mmc               454 drivers/mmc/host/mmci.c 		dev_err(mmc_dev(host->mmc),
mmc               514 drivers/mmc/host/mmci.c 	dev_vdbg(mmc_dev(host->mmc),
mmc               561 drivers/mmc/host/mmci.c 	mmc_request_done(host->mmc, mrq);
mmc               637 drivers/mmc/host/mmci.c 	dmae = devm_kzalloc(mmc_dev(host->mmc), sizeof(*dmae), GFP_KERNEL);
mmc               643 drivers/mmc/host/mmci.c 	dmae->rx_channel = dma_request_slave_channel(mmc_dev(host->mmc),
mmc               645 drivers/mmc/host/mmci.c 	dmae->tx_channel = dma_request_slave_channel(mmc_dev(host->mmc),
mmc               666 drivers/mmc/host/mmci.c 	dev_info(mmc_dev(host->mmc), "DMA channels RX %s, TX %s\n",
mmc               677 drivers/mmc/host/mmci.c 		if (max_seg_size < host->mmc->max_seg_size)
mmc               678 drivers/mmc/host/mmci.c 			host->mmc->max_seg_size = max_seg_size;
mmc               684 drivers/mmc/host/mmci.c 		if (max_seg_size < host->mmc->max_seg_size)
mmc               685 drivers/mmc/host/mmci.c 			host->mmc->max_seg_size = max_seg_size;
mmc               732 drivers/mmc/host/mmci.c 	dev_err(mmc_dev(host->mmc), "error during DMA transfer!\n");
mmc               778 drivers/mmc/host/mmci.c 		dev_err(mmc_dev(host->mmc), "buggy DMA detected. Taking evasive action.\n");
mmc               962 drivers/mmc/host/mmci.c static void mmci_pre_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               964 drivers/mmc/host/mmci.c 	struct mmci_host *host = mmc_priv(mmc);
mmc               978 drivers/mmc/host/mmci.c static void mmci_post_request(struct mmc_host *mmc, struct mmc_request *mrq,
mmc               981 drivers/mmc/host/mmci.c 	struct mmci_host *host = mmc_priv(mmc);
mmc               997 drivers/mmc/host/mmci.c 	dev_dbg(mmc_dev(host->mmc), "blksz %04x blks %04x flags %08x\n",
mmc              1016 drivers/mmc/host/mmci.c 	if (host->mmc->card && mmc_card_sdio(host->mmc->card)) {
mmc              1037 drivers/mmc/host/mmci.c 	if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 ||
mmc              1038 drivers/mmc/host/mmci.c 	    host->mmc->ios.timing == MMC_TIMING_MMC_DDR52)
mmc              1079 drivers/mmc/host/mmci.c 	dev_dbg(mmc_dev(host->mmc), "op %02x arg %08x flags %08x\n",
mmc              1153 drivers/mmc/host/mmci.c 		dev_dbg(mmc_dev(host->mmc), "MCI ERROR IRQ, status 0x%08x at 0x%08x\n",
mmc              1176 drivers/mmc/host/mmci.c 		dev_err(mmc_dev(host->mmc), "stray MCI_DATABLOCKEND interrupt\n");
mmc              1435 drivers/mmc/host/mmci.c 	dev_dbg(mmc_dev(host->mmc), "irq1 (pio) %08x\n", status);
mmc              1529 drivers/mmc/host/mmci.c 		dev_dbg(mmc_dev(host->mmc), "irq0 (data+cmd) %08x\n", status);
mmc              1554 drivers/mmc/host/mmci.c static void mmci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1556 drivers/mmc/host/mmci.c 	struct mmci_host *host = mmc_priv(mmc);
mmc              1563 drivers/mmc/host/mmci.c 		mmc_request_done(mmc, mrq);
mmc              1586 drivers/mmc/host/mmci.c static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1588 drivers/mmc/host/mmci.c 	struct mmci_host *host = mmc_priv(mmc);
mmc              1595 drivers/mmc/host/mmci.c 		host->plat->ios_handler(mmc_dev(mmc), ios))
mmc              1596 drivers/mmc/host/mmci.c 			dev_err(mmc_dev(mmc), "platform ios_handler failed\n");
mmc              1600 drivers/mmc/host/mmci.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1601 drivers/mmc/host/mmci.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc              1603 drivers/mmc/host/mmci.c 		if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) {
mmc              1604 drivers/mmc/host/mmci.c 			regulator_disable(mmc->supply.vqmmc);
mmc              1610 drivers/mmc/host/mmci.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1611 drivers/mmc/host/mmci.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
mmc              1622 drivers/mmc/host/mmci.c 		if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) {
mmc              1623 drivers/mmc/host/mmci.c 			ret = regulator_enable(mmc->supply.vqmmc);
mmc              1625 drivers/mmc/host/mmci.c 				dev_err(mmc_dev(mmc),
mmc              1676 drivers/mmc/host/mmci.c 			dev_err(mmc_dev(host->mmc),
mmc              1700 drivers/mmc/host/mmci.c static int mmci_get_cd(struct mmc_host *mmc)
mmc              1702 drivers/mmc/host/mmci.c 	struct mmci_host *host = mmc_priv(mmc);
mmc              1704 drivers/mmc/host/mmci.c 	unsigned int status = mmc_gpio_get_cd(mmc);
mmc              1710 drivers/mmc/host/mmci.c 		status = plat->status(mmc_dev(host->mmc));
mmc              1715 drivers/mmc/host/mmci.c static int mmci_sig_volt_switch(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1719 drivers/mmc/host/mmci.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              1723 drivers/mmc/host/mmci.c 			ret = regulator_set_voltage(mmc->supply.vqmmc,
mmc              1727 drivers/mmc/host/mmci.c 			ret = regulator_set_voltage(mmc->supply.vqmmc,
mmc              1731 drivers/mmc/host/mmci.c 			ret = regulator_set_voltage(mmc->supply.vqmmc,
mmc              1737 drivers/mmc/host/mmci.c 			dev_warn(mmc_dev(mmc), "Voltage switch failed\n");
mmc              1753 drivers/mmc/host/mmci.c static int mmci_of_parse(struct device_node *np, struct mmc_host *mmc)
mmc              1755 drivers/mmc/host/mmci.c 	struct mmci_host *host = mmc_priv(mmc);
mmc              1756 drivers/mmc/host/mmci.c 	int ret = mmc_of_parse(mmc);
mmc              1781 drivers/mmc/host/mmci.c 		mmc->caps |= MMC_CAP_MMC_HIGHSPEED;
mmc              1783 drivers/mmc/host/mmci.c 		mmc->caps |= MMC_CAP_SD_HIGHSPEED;
mmc              1795 drivers/mmc/host/mmci.c 	struct mmc_host *mmc;
mmc              1810 drivers/mmc/host/mmci.c 	mmc = mmc_alloc_host(sizeof(struct mmci_host), &dev->dev);
mmc              1811 drivers/mmc/host/mmci.c 	if (!mmc)
mmc              1814 drivers/mmc/host/mmci.c 	ret = mmci_of_parse(np, mmc);
mmc              1818 drivers/mmc/host/mmci.c 	host = mmc_priv(mmc);
mmc              1819 drivers/mmc/host/mmci.c 	host->mmc = mmc;
mmc              1836 drivers/mmc/host/mmci.c 			dev_err(mmc_dev(mmc), "Can't select default pins\n");
mmc              1844 drivers/mmc/host/mmci.c 			dev_err(mmc_dev(mmc), "Can't select opendrain pins\n");
mmc              1852 drivers/mmc/host/mmci.c 	dev_dbg(mmc_dev(mmc), "designer ID = 0x%02x\n", host->hw_designer);
mmc              1853 drivers/mmc/host/mmci.c 	dev_dbg(mmc_dev(mmc), "revision = 0x%01x\n", host->hw_revision);
mmc              1883 drivers/mmc/host/mmci.c 		dev_dbg(mmc_dev(mmc), "eventual mclk rate: %u Hz\n",
mmc              1904 drivers/mmc/host/mmci.c 		mmc->f_min = DIV_ROUND_UP(host->mclk, 257);
mmc              1906 drivers/mmc/host/mmci.c 		mmc->f_min = DIV_ROUND_UP(host->mclk, 2046);
mmc              1908 drivers/mmc/host/mmci.c 		mmc->f_min = clk_round_rate(host->clk, 100000);
mmc              1910 drivers/mmc/host/mmci.c 		mmc->f_min = DIV_ROUND_UP(host->mclk, 512);
mmc              1917 drivers/mmc/host/mmci.c 	if (mmc->f_max)
mmc              1918 drivers/mmc/host/mmci.c 		mmc->f_max = variant->explicit_mclk_control ?
mmc              1919 drivers/mmc/host/mmci.c 				min(variant->f_max, mmc->f_max) :
mmc              1920 drivers/mmc/host/mmci.c 				min(host->mclk, mmc->f_max);
mmc              1922 drivers/mmc/host/mmci.c 		mmc->f_max = variant->explicit_mclk_control ?
mmc              1926 drivers/mmc/host/mmci.c 	dev_dbg(mmc_dev(mmc), "clocking block at %u Hz\n", mmc->f_max);
mmc              1935 drivers/mmc/host/mmci.c 	ret = mmc_regulator_get_supply(mmc);
mmc              1939 drivers/mmc/host/mmci.c 	if (!mmc->ocr_avail)
mmc              1940 drivers/mmc/host/mmci.c 		mmc->ocr_avail = plat->ocr_mask;
mmc              1942 drivers/mmc/host/mmci.c 		dev_warn(mmc_dev(mmc), "Platform OCR mask is ignored\n");
mmc              1945 drivers/mmc/host/mmci.c 	mmc->caps |= MMC_CAP_CMD23;
mmc              1959 drivers/mmc/host/mmci.c 		mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
mmc              1960 drivers/mmc/host/mmci.c 		mmc->max_busy_timeout = 0;
mmc              1968 drivers/mmc/host/mmci.c 	mmc->ops = &mmci_ops;
mmc              1971 drivers/mmc/host/mmci.c 	mmc->pm_caps |= MMC_PM_KEEP_POWER;
mmc              1976 drivers/mmc/host/mmci.c 	mmc->max_segs = NR_SG;
mmc              1983 drivers/mmc/host/mmci.c 	mmc->max_req_size = (1 << variant->datalength_bits) - 1;
mmc              1989 drivers/mmc/host/mmci.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1994 drivers/mmc/host/mmci.c 	mmc->max_blk_size = 1 << variant->datactrl_blocksz;
mmc              2000 drivers/mmc/host/mmci.c 	mmc->max_blk_count = mmc->max_req_size >> variant->datactrl_blocksz;
mmc              2019 drivers/mmc/host/mmci.c 		ret = mmc_gpiod_request_cd(mmc, "cd", 0, false, 0, NULL);
mmc              2023 drivers/mmc/host/mmci.c 		ret = mmc_gpiod_request_ro(mmc, "wp", 0, 0, NULL);
mmc              2044 drivers/mmc/host/mmci.c 	amba_set_drvdata(dev, mmc);
mmc              2047 drivers/mmc/host/mmci.c 		 mmc_hostname(mmc), amba_part(dev), amba_manf(dev),
mmc              2056 drivers/mmc/host/mmci.c 	mmc_add_host(mmc);
mmc              2064 drivers/mmc/host/mmci.c 	mmc_free_host(mmc);
mmc              2070 drivers/mmc/host/mmci.c 	struct mmc_host *mmc = amba_get_drvdata(dev);
mmc              2072 drivers/mmc/host/mmci.c 	if (mmc) {
mmc              2073 drivers/mmc/host/mmci.c 		struct mmci_host *host = mmc_priv(mmc);
mmc              2082 drivers/mmc/host/mmci.c 		mmc_remove_host(mmc);
mmc              2094 drivers/mmc/host/mmci.c 		mmc_free_host(mmc);
mmc              2139 drivers/mmc/host/mmci.c 	struct mmc_host *mmc = amba_get_drvdata(adev);
mmc              2141 drivers/mmc/host/mmci.c 	if (mmc) {
mmc              2142 drivers/mmc/host/mmci.c 		struct mmci_host *host = mmc_priv(mmc);
mmc              2154 drivers/mmc/host/mmci.c 	struct mmc_host *mmc = amba_get_drvdata(adev);
mmc              2156 drivers/mmc/host/mmci.c 	if (mmc) {
mmc              2157 drivers/mmc/host/mmci.c 		struct mmci_host *host = mmc_priv(mmc);
mmc               378 drivers/mmc/host/mmci.h 	struct mmc_host		*mmc;
mmc               124 drivers/mmc/host/mmci_qcom_dml.c 	struct device_node *np = host->mmc->parent->of_node;
mmc                41 drivers/mmc/host/mmci_stm32_sdmmc.c 			dev_err(mmc_dev(host->mmc),
mmc                49 drivers/mmc/host/mmci_stm32_sdmmc.c 		dev_err(mmc_dev(host->mmc),
mmc                63 drivers/mmc/host/mmci_stm32_sdmmc.c 	n_elem = dma_map_sg(mmc_dev(host->mmc),
mmc                69 drivers/mmc/host/mmci_stm32_sdmmc.c 		dev_err(mmc_dev(host->mmc), "dma_map_sg failed\n");
mmc                89 drivers/mmc/host/mmci_stm32_sdmmc.c 	dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc                97 drivers/mmc/host/mmci_stm32_sdmmc.c 	idma = devm_kzalloc(mmc_dev(host->mmc), sizeof(*idma), GFP_KERNEL);
mmc               104 drivers/mmc/host/mmci_stm32_sdmmc.c 		idma->sg_cpu = dmam_alloc_coherent(mmc_dev(host->mmc),
mmc               108 drivers/mmc/host/mmci_stm32_sdmmc.c 			dev_err(mmc_dev(host->mmc),
mmc               112 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->max_segs = SDMMC_LLI_BUF_LEN /
mmc               114 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->max_seg_size = host->variant->stm32_idmabsize_mask;
mmc               116 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->max_segs = 1;
mmc               117 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->max_seg_size = host->mmc->max_req_size;
mmc               174 drivers/mmc/host/mmci_stm32_sdmmc.c 	if (host->mmc->ios.timing == MMC_TIMING_MMC_DDR52 ||
mmc               175 drivers/mmc/host/mmci_stm32_sdmmc.c 	    host->mmc->ios.timing == MMC_TIMING_UHS_DDR50)
mmc               203 drivers/mmc/host/mmci_stm32_sdmmc.c 	if (host->mmc->ios.power_mode == MMC_POWER_ON)
mmc               204 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->actual_clock = host->cclk;
mmc               206 drivers/mmc/host/mmci_stm32_sdmmc.c 		host->mmc->actual_clock = 0;
mmc               208 drivers/mmc/host/mmci_stm32_sdmmc.c 	if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4)
mmc               210 drivers/mmc/host/mmci_stm32_sdmmc.c 	if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8)
mmc               221 drivers/mmc/host/mmci_stm32_sdmmc.c 	if (host->mmc->ios.timing >= MMC_TIMING_UHS_SDR50) {
mmc               223 drivers/mmc/host/mmci_stm32_sdmmc.c 		if (host->mmc->ios.timing == MMC_TIMING_UHS_SDR104) {
mmc               234 drivers/mmc/host/mmci_stm32_sdmmc.c 	struct mmc_ios ios = host->mmc->ios;
mmc               277 drivers/mmc/host/mmci_stm32_sdmmc.c 	if (host->mmc->card && mmc_card_sdio(host->mmc->card) &&
mmc               132 drivers/mmc/host/moxart-mmc.c 	struct mmc_host			*mmc;
mmc               198 drivers/mmc/host/moxart-mmc.c 		dev_err(mmc_dev(host->mmc), "timed out waiting for status\n");
mmc               284 drivers/mmc/host/moxart-mmc.c 		dev_err(mmc_dev(host->mmc), "dma_map_sg returned zero length\n");
mmc               395 drivers/mmc/host/moxart-mmc.c static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               397 drivers/mmc/host/moxart-mmc.c 	struct moxart_host *host = mmc_priv(mmc);
mmc               441 drivers/mmc/host/moxart-mmc.c 			dev_err(mmc_dev(host->mmc), "card removed\n");
mmc               461 drivers/mmc/host/moxart-mmc.c 	mmc_request_done(host->mmc, mrq);
mmc               482 drivers/mmc/host/moxart-mmc.c 		mmc_detect_change(host->mmc, 0);
mmc               492 drivers/mmc/host/moxart-mmc.c static void moxart_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               494 drivers/mmc/host/moxart-mmc.c 	struct moxart_host *host = mmc_priv(mmc);
mmc               542 drivers/mmc/host/moxart-mmc.c static int moxart_get_ro(struct mmc_host *mmc)
mmc               544 drivers/mmc/host/moxart-mmc.c 	struct moxart_host *host = mmc_priv(mmc);
mmc               560 drivers/mmc/host/moxart-mmc.c 	struct mmc_host *mmc;
mmc               568 drivers/mmc/host/moxart-mmc.c 	mmc = mmc_alloc_host(sizeof(struct moxart_host), dev);
mmc               569 drivers/mmc/host/moxart-mmc.c 	if (!mmc) {
mmc               600 drivers/mmc/host/moxart-mmc.c 	ret = mmc_of_parse(mmc);
mmc               604 drivers/mmc/host/moxart-mmc.c 	host = mmc_priv(mmc);
mmc               605 drivers/mmc/host/moxart-mmc.c 	host->mmc = mmc;
mmc               616 drivers/mmc/host/moxart-mmc.c 	mmc->ops = &moxart_ops;
mmc               617 drivers/mmc/host/moxart-mmc.c 	mmc->f_max = DIV_ROUND_CLOSEST(host->sysclk, 2);
mmc               618 drivers/mmc/host/moxart-mmc.c 	mmc->f_min = DIV_ROUND_CLOSEST(host->sysclk, CLK_DIV_MASK * 2);
mmc               619 drivers/mmc/host/moxart-mmc.c 	mmc->ocr_avail = 0xffff00;	/* Support 2.0v - 3.6v power. */
mmc               650 drivers/mmc/host/moxart-mmc.c 		mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc               653 drivers/mmc/host/moxart-mmc.c 		mmc->caps |= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA;
mmc               672 drivers/mmc/host/moxart-mmc.c 	dev_set_drvdata(dev, mmc);
mmc               673 drivers/mmc/host/moxart-mmc.c 	mmc_add_host(mmc);
mmc               680 drivers/mmc/host/moxart-mmc.c 	if (mmc)
mmc               681 drivers/mmc/host/moxart-mmc.c 		mmc_free_host(mmc);
mmc               687 drivers/mmc/host/moxart-mmc.c 	struct mmc_host *mmc = dev_get_drvdata(&pdev->dev);
mmc               688 drivers/mmc/host/moxart-mmc.c 	struct moxart_host *host = mmc_priv(mmc);
mmc               692 drivers/mmc/host/moxart-mmc.c 	if (mmc) {
mmc               697 drivers/mmc/host/moxart-mmc.c 		mmc_remove_host(mmc);
mmc               698 drivers/mmc/host/moxart-mmc.c 		mmc_free_host(mmc);
mmc               392 drivers/mmc/host/mtk-sd.c 	struct mmc_host *mmc;	/* mmc structure */
mmc               710 drivers/mmc/host/mtk-sd.c 	if (host->mmc->actual_clock == 0) {
mmc               713 drivers/mmc/host/mtk-sd.c 		clk_ns  = 1000000000UL / host->mmc->actual_clock;
mmc               760 drivers/mmc/host/mtk-sd.c 		host->mmc->actual_clock = 0;
mmc               839 drivers/mmc/host/mtk-sd.c 	host->mmc->actual_clock = sclk;
mmc               850 drivers/mmc/host/mtk-sd.c 	if (host->mmc->actual_clock <= 52000000) {
mmc               881 drivers/mmc/host/mtk-sd.c 	dev_dbg(host->dev, "sclk: %d, timing: %d\n", host->mmc->actual_clock,
mmc               942 drivers/mmc/host/mtk-sd.c 			if (mmc_card_mmc(host->mmc->card) && mrq->sbc &&
mmc              1037 drivers/mmc/host/mtk-sd.c 	mmc_request_done(host->mmc, mrq);
mmc              1193 drivers/mmc/host/mtk-sd.c static void msdc_ops_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1195 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1208 drivers/mmc/host/mtk-sd.c 	if (mrq->sbc && (!mmc_card_mmc(mmc->card) ||
mmc              1215 drivers/mmc/host/mtk-sd.c static void msdc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1217 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1227 drivers/mmc/host/mtk-sd.c static void msdc_post_req(struct mmc_host *mmc, struct mmc_request *mrq,
mmc              1230 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1330 drivers/mmc/host/mtk-sd.c static int msdc_ops_switch_volt(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1332 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1335 drivers/mmc/host/mtk-sd.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              1342 drivers/mmc/host/mtk-sd.c 		ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc              1357 drivers/mmc/host/mtk-sd.c static int msdc_card_busy(struct mmc_host *mmc)
mmc              1359 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1402 drivers/mmc/host/mtk-sd.c static void msdc_enable_sdio_irq(struct mmc_host *mmc, int enb)
mmc              1405 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1442 drivers/mmc/host/mtk-sd.c 			sdio_signal_irq(host->mmc);
mmc              1446 drivers/mmc/host/mtk-sd.c 				mmc_detect_change(host->mmc, msecs_to_jiffies(20));
mmc              1655 drivers/mmc/host/mtk-sd.c static void msdc_ops_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1657 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1665 drivers/mmc/host/mtk-sd.c 		if (!IS_ERR(mmc->supply.vmmc)) {
mmc              1667 drivers/mmc/host/mtk-sd.c 			ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc,
mmc              1676 drivers/mmc/host/mtk-sd.c 		if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) {
mmc              1677 drivers/mmc/host/mtk-sd.c 			ret = regulator_enable(mmc->supply.vqmmc);
mmc              1685 drivers/mmc/host/mtk-sd.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1686 drivers/mmc/host/mtk-sd.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc              1688 drivers/mmc/host/mtk-sd.c 		if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) {
mmc              1689 drivers/mmc/host/mtk-sd.c 			regulator_disable(mmc->supply.vqmmc);
mmc              1780 drivers/mmc/host/mtk-sd.c static int msdc_tune_response(struct mmc_host *mmc, u32 opcode)
mmc              1782 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1792 drivers/mmc/host/mtk-sd.c 	if (mmc->ios.timing == MMC_TIMING_MMC_HS200 ||
mmc              1793 drivers/mmc/host/mtk-sd.c 	    mmc->ios.timing == MMC_TIMING_UHS_SDR104)
mmc              1807 drivers/mmc/host/mtk-sd.c 			mmc_send_tuning(mmc, opcode, &cmd_err);
mmc              1831 drivers/mmc/host/mtk-sd.c 			mmc_send_tuning(mmc, opcode, &cmd_err);
mmc              1861 drivers/mmc/host/mtk-sd.c 		mmc_send_tuning(mmc, opcode, &cmd_err);
mmc              1874 drivers/mmc/host/mtk-sd.c static int hs400_tune_response(struct mmc_host *mmc, u32 opcode)
mmc              1876 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1887 drivers/mmc/host/mtk-sd.c 	if (mmc->ios.timing == MMC_TIMING_MMC_HS200 ||
mmc              1888 drivers/mmc/host/mtk-sd.c 	    mmc->ios.timing == MMC_TIMING_UHS_SDR104)
mmc              1906 drivers/mmc/host/mtk-sd.c 			mmc_send_tuning(mmc, opcode, &cmd_err);
mmc              1924 drivers/mmc/host/mtk-sd.c static int msdc_tune_data(struct mmc_host *mmc, u32 opcode)
mmc              1926 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1938 drivers/mmc/host/mtk-sd.c 		ret = mmc_send_tuning(mmc, opcode, NULL);
mmc              1952 drivers/mmc/host/mtk-sd.c 		ret = mmc_send_tuning(mmc, opcode, NULL);
mmc              1979 drivers/mmc/host/mtk-sd.c static int msdc_tune_together(struct mmc_host *mmc, u32 opcode)
mmc              1981 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              1996 drivers/mmc/host/mtk-sd.c 		ret = mmc_send_tuning(mmc, opcode, NULL);
mmc              2012 drivers/mmc/host/mtk-sd.c 		ret = mmc_send_tuning(mmc, opcode, NULL);
mmc              2039 drivers/mmc/host/mtk-sd.c static int msdc_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc              2041 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              2046 drivers/mmc/host/mtk-sd.c 		ret = msdc_tune_together(mmc, opcode);
mmc              2056 drivers/mmc/host/mtk-sd.c 		ret = hs400_tune_response(mmc, opcode);
mmc              2058 drivers/mmc/host/mtk-sd.c 		ret = msdc_tune_response(mmc, opcode);
mmc              2064 drivers/mmc/host/mtk-sd.c 		ret = msdc_tune_data(mmc, opcode);
mmc              2082 drivers/mmc/host/mtk-sd.c static int msdc_prepare_hs400_tuning(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              2084 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              2100 drivers/mmc/host/mtk-sd.c static void msdc_hw_reset(struct mmc_host *mmc)
mmc              2102 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              2109 drivers/mmc/host/mtk-sd.c static void msdc_ack_sdio_irq(struct mmc_host *mmc)
mmc              2112 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              2119 drivers/mmc/host/mtk-sd.c static int msdc_get_cd(struct mmc_host *mmc)
mmc              2121 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              2124 drivers/mmc/host/mtk-sd.c 	if (mmc->caps & MMC_CAP_NONREMOVABLE)
mmc              2128 drivers/mmc/host/mtk-sd.c 		return mmc_gpio_get_cd(mmc);
mmc              2131 drivers/mmc/host/mtk-sd.c 	if (mmc->caps2 & MMC_CAP2_CD_ACTIVE_HIGH)
mmc              2177 drivers/mmc/host/mtk-sd.c 	struct mmc_host *mmc;
mmc              2188 drivers/mmc/host/mtk-sd.c 	mmc = mmc_alloc_host(sizeof(struct msdc_host), &pdev->dev);
mmc              2189 drivers/mmc/host/mtk-sd.c 	if (!mmc)
mmc              2192 drivers/mmc/host/mtk-sd.c 	host = mmc_priv(mmc);
mmc              2193 drivers/mmc/host/mtk-sd.c 	ret = mmc_of_parse(mmc);
mmc              2211 drivers/mmc/host/mtk-sd.c 	ret = mmc_regulator_get_supply(mmc);
mmc              2266 drivers/mmc/host/mtk-sd.c 	host->mmc = mmc;
mmc              2269 drivers/mmc/host/mtk-sd.c 	mmc->ops = &mt_msdc_ops;
mmc              2271 drivers/mmc/host/mtk-sd.c 		mmc->f_min = DIV_ROUND_UP(host->src_clk_freq, 4 * 255);
mmc              2273 drivers/mmc/host/mtk-sd.c 		mmc->f_min = DIV_ROUND_UP(host->src_clk_freq, 4 * 4095);
mmc              2275 drivers/mmc/host/mtk-sd.c 	if (!(mmc->caps & MMC_CAP_NONREMOVABLE) &&
mmc              2276 drivers/mmc/host/mtk-sd.c 	    !mmc_can_gpio_cd(mmc) &&
mmc              2285 drivers/mmc/host/mtk-sd.c 	if (mmc->caps & MMC_CAP_SDIO_IRQ)
mmc              2286 drivers/mmc/host/mtk-sd.c 		mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD;
mmc              2288 drivers/mmc/host/mtk-sd.c 	mmc->caps |= MMC_CAP_ERASE | MMC_CAP_CMD23;
mmc              2290 drivers/mmc/host/mtk-sd.c 	mmc->max_segs = MAX_BD_NUM;
mmc              2292 drivers/mmc/host/mtk-sd.c 		mmc->max_seg_size = BDMA_DESC_BUFLEN_EXT;
mmc              2294 drivers/mmc/host/mtk-sd.c 		mmc->max_seg_size = BDMA_DESC_BUFLEN;
mmc              2295 drivers/mmc/host/mtk-sd.c 	mmc->max_blk_size = 2048;
mmc              2296 drivers/mmc/host/mtk-sd.c 	mmc->max_req_size = 512 * 1024;
mmc              2297 drivers/mmc/host/mtk-sd.c 	mmc->max_blk_count = mmc->max_req_size / 512;
mmc              2302 drivers/mmc/host/mtk-sd.c 	mmc_dev(mmc)->dma_mask = &host->dma_mask;
mmc              2319 drivers/mmc/host/mtk-sd.c 	platform_set_drvdata(pdev, mmc);
mmc              2332 drivers/mmc/host/mtk-sd.c 	ret = mmc_add_host(mmc);
mmc              2354 drivers/mmc/host/mtk-sd.c 	mmc_free_host(mmc);
mmc              2361 drivers/mmc/host/mtk-sd.c 	struct mmc_host *mmc;
mmc              2364 drivers/mmc/host/mtk-sd.c 	mmc = platform_get_drvdata(pdev);
mmc              2365 drivers/mmc/host/mtk-sd.c 	host = mmc_priv(mmc);
mmc              2370 drivers/mmc/host/mtk-sd.c 	mmc_remove_host(host->mmc);
mmc              2382 drivers/mmc/host/mtk-sd.c 	mmc_free_host(host->mmc);
mmc              2441 drivers/mmc/host/mtk-sd.c 	if (sdio_irq_claimed(host->mmc))
mmc              2447 drivers/mmc/host/mtk-sd.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc              2448 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc              2457 drivers/mmc/host/mtk-sd.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc              2458 drivers/mmc/host/mtk-sd.c 	struct msdc_host *host = mmc_priv(mmc);
mmc                48 drivers/mmc/host/mvsdio.c 	struct mmc_host *mmc;
mmc               126 drivers/mmc/host/mvsdio.c 		host->sg_frags = dma_map_sg(mmc_dev(host->mmc),
mmc               136 drivers/mmc/host/mvsdio.c static void mvsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               138 drivers/mmc/host/mvsdio.c 	struct mvsd_host *host = mmc_priv(mmc);
mmc               295 drivers/mmc/host/mvsdio.c 		dma_unmap_sg(mmc_dev(host->mmc), data->sg, host->sg_frags,
mmc               492 drivers/mmc/host/mvsdio.c 		mmc_request_done(host->mmc, mrq);
mmc               498 drivers/mmc/host/mvsdio.c 		mmc_signal_sdio_irq(host->mmc);
mmc               548 drivers/mmc/host/mvsdio.c 		mmc_request_done(host->mmc, mrq);
mmc               551 drivers/mmc/host/mvsdio.c static void mvsd_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               553 drivers/mmc/host/mvsdio.c 	struct mvsd_host *host = mmc_priv(mmc);
mmc               598 drivers/mmc/host/mvsdio.c static void mvsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               600 drivers/mmc/host/mvsdio.c 	struct mvsd_host *host = mmc_priv(mmc);
mmc               696 drivers/mmc/host/mvsdio.c 	struct mmc_host *mmc = NULL;
mmc               711 drivers/mmc/host/mvsdio.c 	mmc = mmc_alloc_host(sizeof(struct mvsd_host), &pdev->dev);
mmc               712 drivers/mmc/host/mvsdio.c 	if (!mmc) {
mmc               717 drivers/mmc/host/mvsdio.c 	host = mmc_priv(mmc);
mmc               718 drivers/mmc/host/mvsdio.c 	host->mmc = mmc;
mmc               736 drivers/mmc/host/mvsdio.c 	mmc->ops = &mvsd_ops;
mmc               738 drivers/mmc/host/mvsdio.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               740 drivers/mmc/host/mvsdio.c 	mmc->f_min = DIV_ROUND_UP(host->base_clock, MVSD_BASE_DIV_MAX);
mmc               741 drivers/mmc/host/mvsdio.c 	mmc->f_max = MVSD_CLOCKRATE_MAX;
mmc               743 drivers/mmc/host/mvsdio.c 	mmc->max_blk_size = 2048;
mmc               744 drivers/mmc/host/mvsdio.c 	mmc->max_blk_count = 65535;
mmc               746 drivers/mmc/host/mvsdio.c 	mmc->max_segs = 1;
mmc               747 drivers/mmc/host/mvsdio.c 	mmc->max_seg_size = mmc->max_blk_size * mmc->max_blk_count;
mmc               748 drivers/mmc/host/mvsdio.c 	mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc               751 drivers/mmc/host/mvsdio.c 	ret = mmc_of_parse(mmc);
mmc               755 drivers/mmc/host/mvsdio.c 		mmc->f_max = maxfreq;
mmc               757 drivers/mmc/host/mvsdio.c 	mmc->caps |= MMC_CAP_ERASE;
mmc               781 drivers/mmc/host/mvsdio.c 	platform_set_drvdata(pdev, mmc);
mmc               782 drivers/mmc/host/mvsdio.c 	ret = mmc_add_host(mmc);
mmc               786 drivers/mmc/host/mvsdio.c 	if (!(mmc->caps & MMC_CAP_NEEDS_POLL))
mmc               794 drivers/mmc/host/mvsdio.c 	if (mmc) {
mmc               797 drivers/mmc/host/mvsdio.c 		mmc_free_host(mmc);
mmc               805 drivers/mmc/host/mvsdio.c 	struct mmc_host *mmc = platform_get_drvdata(pdev);
mmc               807 drivers/mmc/host/mvsdio.c 	struct mvsd_host *host = mmc_priv(mmc);
mmc               809 drivers/mmc/host/mvsdio.c 	mmc_remove_host(mmc);
mmc               815 drivers/mmc/host/mvsdio.c 	mmc_free_host(mmc);
mmc               121 drivers/mmc/host/mxcmmc.c 	struct mmc_host		*mmc;
mmc               238 drivers/mmc/host/mxcmmc.c 	if (!IS_ERR(host->mmc->supply.vmmc)) {
mmc               240 drivers/mmc/host/mxcmmc.c 			mmc_regulator_set_ocr(host->mmc,
mmc               241 drivers/mmc/host/mxcmmc.c 					      host->mmc->supply.vmmc, vdd);
mmc               243 drivers/mmc/host/mxcmmc.c 			mmc_regulator_set_ocr(host->mmc,
mmc               244 drivers/mmc/host/mxcmmc.c 					      host->mmc->supply.vmmc, 0);
mmc               248 drivers/mmc/host/mxcmmc.c 		host->pdata->setpower(mmc_dev(host->mmc), vdd);
mmc               260 drivers/mmc/host/mxcmmc.c 	dev_dbg(mmc_dev(host->mmc), "mxcmci_softreset\n");
mmc               369 drivers/mmc/host/mxcmmc.c 	dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat);
mmc               397 drivers/mmc/host/mxcmmc.c 		dev_err(mmc_dev(host->mmc), "unhandled response type 0x%x\n",
mmc               443 drivers/mmc/host/mxcmmc.c 	mmc_request_done(host->mmc, req);
mmc               458 drivers/mmc/host/mxcmmc.c 		dev_dbg(mmc_dev(host->mmc), "request failed. status: 0x%08x\n",
mmc               461 drivers/mmc/host/mxcmmc.c 			dev_err(mmc_dev(host->mmc), "%s: -EILSEQ\n", __func__);
mmc               466 drivers/mmc/host/mxcmmc.c 				dev_err(mmc_dev(host->mmc),
mmc               470 drivers/mmc/host/mxcmmc.c 				dev_err(mmc_dev(host->mmc),
mmc               475 drivers/mmc/host/mxcmmc.c 			dev_err(mmc_dev(host->mmc),
mmc               479 drivers/mmc/host/mxcmmc.c 			dev_err(mmc_dev(host->mmc), "%s: -EIO\n", __func__);
mmc               503 drivers/mmc/host/mxcmmc.c 		dev_dbg(mmc_dev(host->mmc), "CMD TIMEOUT\n");
mmc               506 drivers/mmc/host/mxcmmc.c 		dev_dbg(mmc_dev(host->mmc), "cmd crc error\n");
mmc               726 drivers/mmc/host/mxcmmc.c 	dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat);
mmc               737 drivers/mmc/host/mxcmmc.c 		mmc_signal_sdio_irq(host->mmc);
mmc               750 drivers/mmc/host/mxcmmc.c 		mmc_detect_change(host->mmc, msecs_to_jiffies(200));
mmc               755 drivers/mmc/host/mxcmmc.c static void mxcmci_request(struct mmc_host *mmc, struct mmc_request *req)
mmc               757 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc               819 drivers/mmc/host/mxcmmc.c 	dev_dbg(mmc_dev(host->mmc), "scaler: %d divider: %d in: %d out: %d\n",
mmc               823 drivers/mmc/host/mxcmmc.c static int mxcmci_setup_dma(struct mmc_host *mmc)
mmc               825 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc               839 drivers/mmc/host/mxcmmc.c static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               841 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc               855 drivers/mmc/host/mxcmmc.c 		ret = mxcmci_setup_dma(mmc);
mmc               857 drivers/mmc/host/mxcmmc.c 			dev_err(mmc_dev(host->mmc),
mmc               890 drivers/mmc/host/mxcmmc.c 	struct mmc_host *mmc = data;
mmc               892 drivers/mmc/host/mxcmmc.c 	dev_dbg(mmc_dev(mmc), "%s\n", __func__);
mmc               894 drivers/mmc/host/mxcmmc.c 	mmc_detect_change(mmc, msecs_to_jiffies(250));
mmc               898 drivers/mmc/host/mxcmmc.c static int mxcmci_get_ro(struct mmc_host *mmc)
mmc               900 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc               903 drivers/mmc/host/mxcmmc.c 		return !!host->pdata->get_ro(mmc_dev(mmc));
mmc               909 drivers/mmc/host/mxcmmc.c 	return mmc_gpio_get_ro(mmc);
mmc               912 drivers/mmc/host/mxcmmc.c static void mxcmci_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               914 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc               968 drivers/mmc/host/mxcmmc.c 		dev_err(mmc_dev(host->mmc),
mmc               972 drivers/mmc/host/mxcmmc.c 		dev_err(mmc_dev(host->mmc),
mmc               985 drivers/mmc/host/mxcmmc.c 	mmc_request_done(host->mmc, req);
mmc               998 drivers/mmc/host/mxcmmc.c 	struct mmc_host *mmc;
mmc              1016 drivers/mmc/host/mxcmmc.c 	mmc = mmc_alloc_host(sizeof(*host), &pdev->dev);
mmc              1017 drivers/mmc/host/mxcmmc.c 	if (!mmc)
mmc              1020 drivers/mmc/host/mxcmmc.c 	host = mmc_priv(mmc);
mmc              1030 drivers/mmc/host/mxcmmc.c 	ret = mmc_of_parse(mmc);
mmc              1033 drivers/mmc/host/mxcmmc.c 	mmc->ops = &mxcmci_ops;
mmc              1037 drivers/mmc/host/mxcmmc.c 		mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SDIO_IRQ;
mmc              1039 drivers/mmc/host/mxcmmc.c 		mmc->caps |= MMC_CAP_SDIO_IRQ;
mmc              1042 drivers/mmc/host/mxcmmc.c 	mmc->max_blk_size = 2048;
mmc              1043 drivers/mmc/host/mxcmmc.c 	mmc->max_blk_count = 65535;
mmc              1044 drivers/mmc/host/mxcmmc.c 	mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc              1045 drivers/mmc/host/mxcmmc.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1056 drivers/mmc/host/mxcmmc.c 		mmc->max_segs = 64;
mmc              1058 drivers/mmc/host/mxcmmc.c 	host->mmc = mmc;
mmc              1064 drivers/mmc/host/mxcmmc.c 	else if (mmc_card_is_removable(mmc)
mmc              1068 drivers/mmc/host/mxcmmc.c 	ret = mmc_regulator_get_supply(mmc);
mmc              1072 drivers/mmc/host/mxcmmc.c 	if (!mmc->ocr_avail) {
mmc              1074 drivers/mmc/host/mxcmmc.c 			mmc->ocr_avail = pdata->ocr_avail;
mmc              1076 drivers/mmc/host/mxcmmc.c 			mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc              1110 drivers/mmc/host/mxcmmc.c 		dev_err(mmc_dev(host->mmc), "wrong rev.no. 0x%08x. aborting.\n",
mmc              1115 drivers/mmc/host/mxcmmc.c 	mmc->f_min = clk_get_rate(host->clk_per) >> 16;
mmc              1116 drivers/mmc/host/mxcmmc.c 	mmc->f_max = clk_get_rate(host->clk_per) >> 1;
mmc              1138 drivers/mmc/host/mxcmmc.c 		mmc->max_seg_size = dma_get_max_seg_size(
mmc              1141 drivers/mmc/host/mxcmmc.c 		dev_info(mmc_dev(host->mmc), "dma not available. Using PIO\n");
mmc              1150 drivers/mmc/host/mxcmmc.c 	platform_set_drvdata(pdev, mmc);
mmc              1154 drivers/mmc/host/mxcmmc.c 				host->mmc);
mmc              1161 drivers/mmc/host/mxcmmc.c 	mmc_add_host(mmc);
mmc              1175 drivers/mmc/host/mxcmmc.c 	mmc_free_host(mmc);
mmc              1182 drivers/mmc/host/mxcmmc.c 	struct mmc_host *mmc = platform_get_drvdata(pdev);
mmc              1183 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc              1185 drivers/mmc/host/mxcmmc.c 	mmc_remove_host(mmc);
mmc              1188 drivers/mmc/host/mxcmmc.c 		host->pdata->exit(&pdev->dev, mmc);
mmc              1196 drivers/mmc/host/mxcmmc.c 	mmc_free_host(mmc);
mmc              1204 drivers/mmc/host/mxcmmc.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc              1205 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc              1214 drivers/mmc/host/mxcmmc.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc              1215 drivers/mmc/host/mxcmmc.c 	struct mxcmci_host *host = mmc_priv(mmc);
mmc                51 drivers/mmc/host/mxs-mmc.c 	struct mmc_host			*mmc;
mmc                62 drivers/mmc/host/mxs-mmc.c static int mxs_mmc_get_cd(struct mmc_host *mmc)
mmc                64 drivers/mmc/host/mxs-mmc.c 	struct mxs_mmc_host *host = mmc_priv(mmc);
mmc                71 drivers/mmc/host/mxs-mmc.c 	ret = mmc_gpio_get_cd(mmc);
mmc                75 drivers/mmc/host/mxs-mmc.c 	present = mmc->caps & MMC_CAP_NEEDS_POLL ||
mmc                79 drivers/mmc/host/mxs-mmc.c 	if (mmc->caps2 & MMC_CAP2_CD_ACTIVE_HIGH)
mmc               147 drivers/mmc/host/mxs-mmc.c 		dma_unmap_sg(mmc_dev(host->mmc), data->sg,
mmc               166 drivers/mmc/host/mxs-mmc.c 	mmc_request_done(host->mmc, mrq);
mmc               193 drivers/mmc/host/mxs-mmc.c 		mmc_signal_sdio_irq(host->mmc);
mmc               225 drivers/mmc/host/mxs-mmc.c 		dma_map_sg(mmc_dev(host->mmc), data->sg,
mmc               242 drivers/mmc/host/mxs-mmc.c 			dma_unmap_sg(mmc_dev(host->mmc), data->sg,
mmc               279 drivers/mmc/host/mxs-mmc.c 	dev_warn(mmc_dev(host->mmc),
mmc               324 drivers/mmc/host/mxs-mmc.c 	dev_warn(mmc_dev(host->mmc),
mmc               453 drivers/mmc/host/mxs-mmc.c 	dev_warn(mmc_dev(host->mmc),
mmc               476 drivers/mmc/host/mxs-mmc.c 		dev_warn(mmc_dev(host->mmc),
mmc               482 drivers/mmc/host/mxs-mmc.c static void mxs_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               484 drivers/mmc/host/mxs-mmc.c 	struct mxs_mmc_host *host = mmc_priv(mmc);
mmc               495 drivers/mmc/host/mxs-mmc.c static void mxs_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               497 drivers/mmc/host/mxs-mmc.c 	struct mxs_mmc_host *host = mmc_priv(mmc);
mmc               510 drivers/mmc/host/mxs-mmc.c static void mxs_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               512 drivers/mmc/host/mxs-mmc.c 	struct mxs_mmc_host *host = mmc_priv(mmc);
mmc               536 drivers/mmc/host/mxs-mmc.c 		mmc_signal_sdio_irq(host->mmc);
mmc               574 drivers/mmc/host/mxs-mmc.c 	struct mmc_host *mmc;
mmc               583 drivers/mmc/host/mxs-mmc.c 	mmc = mmc_alloc_host(sizeof(struct mxs_mmc_host), &pdev->dev);
mmc               584 drivers/mmc/host/mxs-mmc.c 	if (!mmc)
mmc               587 drivers/mmc/host/mxs-mmc.c 	host = mmc_priv(mmc);
mmc               598 drivers/mmc/host/mxs-mmc.c 	host->mmc = mmc;
mmc               628 drivers/mmc/host/mxs-mmc.c 		dev_err(mmc_dev(host->mmc),
mmc               635 drivers/mmc/host/mxs-mmc.c 	mmc->ops = &mxs_mmc_ops;
mmc               636 drivers/mmc/host/mxs-mmc.c 	mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
mmc               642 drivers/mmc/host/mxs-mmc.c 	mmc->f_min = 400000;
mmc               643 drivers/mmc/host/mxs-mmc.c 	mmc->f_max = 288000000;
mmc               645 drivers/mmc/host/mxs-mmc.c 	ret = mmc_of_parse(mmc);
mmc               649 drivers/mmc/host/mxs-mmc.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               651 drivers/mmc/host/mxs-mmc.c 	mmc->max_segs = 52;
mmc               652 drivers/mmc/host/mxs-mmc.c 	mmc->max_blk_size = 1 << 0xf;
mmc               653 drivers/mmc/host/mxs-mmc.c 	mmc->max_blk_count = (ssp_is_old(ssp)) ? 0xff : 0xffffff;
mmc               654 drivers/mmc/host/mxs-mmc.c 	mmc->max_req_size = (ssp_is_old(ssp)) ? 0xffff : 0xffffffff;
mmc               655 drivers/mmc/host/mxs-mmc.c 	mmc->max_seg_size = dma_get_max_seg_size(ssp->dmach->device->dev);
mmc               657 drivers/mmc/host/mxs-mmc.c 	platform_set_drvdata(pdev, mmc);
mmc               666 drivers/mmc/host/mxs-mmc.c 	ret = mmc_add_host(mmc);
mmc               670 drivers/mmc/host/mxs-mmc.c 	dev_info(mmc_dev(host->mmc), "initialized\n");
mmc               679 drivers/mmc/host/mxs-mmc.c 	mmc_free_host(mmc);
mmc               685 drivers/mmc/host/mxs-mmc.c 	struct mmc_host *mmc = platform_get_drvdata(pdev);
mmc               686 drivers/mmc/host/mxs-mmc.c 	struct mxs_mmc_host *host = mmc_priv(mmc);
mmc               689 drivers/mmc/host/mxs-mmc.c 	mmc_remove_host(mmc);
mmc               696 drivers/mmc/host/mxs-mmc.c 	mmc_free_host(mmc);
mmc               704 drivers/mmc/host/mxs-mmc.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc               705 drivers/mmc/host/mxs-mmc.c 	struct mxs_mmc_host *host = mmc_priv(mmc);
mmc               714 drivers/mmc/host/mxs-mmc.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc               715 drivers/mmc/host/mxs-mmc.c 	struct mxs_mmc_host *host = mmc_priv(mmc);
mmc                40 drivers/mmc/host/of_mmc_spi.c 			   irqreturn_t (*irqhandler)(int, void *), void *mmc)
mmc                45 drivers/mmc/host/of_mmc_spi.c 					IRQF_ONESHOT, dev_name(dev), mmc);
mmc                48 drivers/mmc/host/of_mmc_spi.c static void of_mmc_spi_exit(struct device *dev, void *mmc)
mmc                52 drivers/mmc/host/of_mmc_spi.c 	free_irq(oms->detect_irq, mmc);
mmc               113 drivers/mmc/host/omap.c 	struct mmc_host		*mmc;
mmc               122 drivers/mmc/host/omap.c 	struct mmc_host *	mmc;
mmc               205 drivers/mmc/host/omap.c 	while (host->mmc != NULL) {
mmc               207 drivers/mmc/host/omap.c 		wait_event(host->slot_wq, host->mmc == NULL);
mmc               210 drivers/mmc/host/omap.c 	host->mmc = slot->mmc;
mmc               220 drivers/mmc/host/omap.c 			host->pdata->switch_slot(mmc_dev(slot->mmc), slot->id);
mmc               261 drivers/mmc/host/omap.c 	BUG_ON(slot == NULL || host->mmc == NULL);
mmc               286 drivers/mmc/host/omap.c 		host->mmc = new_slot->mmc;
mmc               292 drivers/mmc/host/omap.c 	host->mmc = NULL;
mmc               301 drivers/mmc/host/omap.c 		return slot->pdata->get_cover_state(mmc_dev(slot->mmc),
mmc               310 drivers/mmc/host/omap.c 	struct mmc_host *mmc = container_of(dev, struct mmc_host, class_dev);
mmc               311 drivers/mmc/host/omap.c 	struct mmc_omap_slot *slot = mmc_priv(mmc);
mmc               323 drivers/mmc/host/omap.c 	struct mmc_host *mmc = container_of(dev, struct mmc_host, class_dev);
mmc               324 drivers/mmc/host/omap.c 	struct mmc_omap_slot *slot = mmc_priv(mmc);
mmc               360 drivers/mmc/host/omap.c 		dev_err(mmc_dev(host->mmc), "Invalid response type: %04x\n", mmc_resp_type(cmd));
mmc               406 drivers/mmc/host/omap.c 	struct device *dev = mmc_dev(host->mmc);
mmc               456 drivers/mmc/host/omap.c 		struct mmc_host *mmc;
mmc               459 drivers/mmc/host/omap.c 		mmc = host->mmc;
mmc               461 drivers/mmc/host/omap.c 		mmc_request_done(mmc, data->mrq);
mmc               579 drivers/mmc/host/omap.c 		struct mmc_host *mmc;
mmc               584 drivers/mmc/host/omap.c 		mmc = host->mmc;
mmc               586 drivers/mmc/host/omap.c 		mmc_request_done(mmc, cmd->mrq);
mmc               600 drivers/mmc/host/omap.c 	dev_dbg(mmc_dev(host->mmc), "Aborting stuck command CMD%d\n",
mmc               608 drivers/mmc/host/omap.c 		struct mmc_host    *mmc;
mmc               615 drivers/mmc/host/omap.c 		mmc = host->mmc;
mmc               617 drivers/mmc/host/omap.c 		mmc_request_done(mmc, cmd->mrq);
mmc               710 drivers/mmc/host/omap.c 	dev_vdbg(mmc_dev(host->mmc), "%s\n", res);
mmc               729 drivers/mmc/host/omap.c 		dev_info(mmc_dev(host->slots[0]->mmc),
mmc               751 drivers/mmc/host/omap.c 		dev_dbg(mmc_dev(host->mmc), "MMC IRQ %04x (CMD %d): ",
mmc               767 drivers/mmc/host/omap.c 			dev_dbg(mmc_dev(host->mmc), "data timeout (CMD%d)\n",
mmc               778 drivers/mmc/host/omap.c 				dev_dbg(mmc_dev(host->mmc),
mmc               783 drivers/mmc/host/omap.c 				dev_dbg(mmc_dev(host->mmc), "data CRC error\n");
mmc               794 drivers/mmc/host/omap.c 					dev_err(mmc_dev(host->mmc),
mmc               805 drivers/mmc/host/omap.c 				dev_err(mmc_dev(host->mmc),
mmc               812 drivers/mmc/host/omap.c 				dev_err(mmc_dev(host->mmc),
mmc               817 drivers/mmc/host/omap.c 			dev_dbg(mmc_dev(host->mmc),
mmc               869 drivers/mmc/host/omap.c 		sysfs_notify(&slot->mmc->class_dev.kobj, NULL, "cover_switch");
mmc               886 drivers/mmc/host/omap.c 	mmc_detect_change(slot->mmc, 0);
mmc               894 drivers/mmc/host/omap.c 	if (slot->mmc->card == NULL)
mmc              1083 drivers/mmc/host/omap.c static void mmc_omap_request(struct mmc_host *mmc, struct mmc_request *req)
mmc              1085 drivers/mmc/host/omap.c 	struct mmc_omap_slot *slot = mmc_priv(mmc);
mmc              1090 drivers/mmc/host/omap.c 	if (host->mmc != NULL) {
mmc              1096 drivers/mmc/host/omap.c 		host->mmc = mmc;
mmc              1110 drivers/mmc/host/omap.c 		slot->pdata->set_power(mmc_dev(slot->mmc), slot->id, power_on,
mmc              1125 drivers/mmc/host/omap.c static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1127 drivers/mmc/host/omap.c 	struct mmc_omap_slot *slot = mmc_priv(mmc);
mmc              1153 drivers/mmc/host/omap.c static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1155 drivers/mmc/host/omap.c 	struct mmc_omap_slot *slot = mmc_priv(mmc);
mmc              1162 drivers/mmc/host/omap.c 	dsor = mmc_omap_calc_divisor(mmc, ios);
mmc              1190 drivers/mmc/host/omap.c 			slot->pdata->set_bus_mode(mmc_dev(mmc), slot->id,
mmc              1229 drivers/mmc/host/omap.c 	struct mmc_host *mmc;
mmc              1232 drivers/mmc/host/omap.c 	mmc = mmc_alloc_host(sizeof(struct mmc_omap_slot), host->dev);
mmc              1233 drivers/mmc/host/omap.c 	if (mmc == NULL)
mmc              1236 drivers/mmc/host/omap.c 	slot = mmc_priv(mmc);
mmc              1238 drivers/mmc/host/omap.c 	slot->mmc = mmc;
mmc              1245 drivers/mmc/host/omap.c 	mmc->caps = 0;
mmc              1247 drivers/mmc/host/omap.c 		mmc->caps |= MMC_CAP_4_BIT_DATA | MMC_CAP_ERASE;
mmc              1249 drivers/mmc/host/omap.c 	mmc->ops = &mmc_omap_ops;
mmc              1250 drivers/mmc/host/omap.c 	mmc->f_min = 400000;
mmc              1253 drivers/mmc/host/omap.c 		mmc->f_max = 48000000;
mmc              1255 drivers/mmc/host/omap.c 		mmc->f_max = 24000000;
mmc              1257 drivers/mmc/host/omap.c 		mmc->f_max = min(host->pdata->max_freq, mmc->f_max);
mmc              1258 drivers/mmc/host/omap.c 	mmc->ocr_avail = slot->pdata->ocr_mask;
mmc              1264 drivers/mmc/host/omap.c 	mmc->max_segs = 32;
mmc              1265 drivers/mmc/host/omap.c 	mmc->max_blk_size = 2048;	/* BLEN is 11 bits (+1) */
mmc              1266 drivers/mmc/host/omap.c 	mmc->max_blk_count = 2048;	/* NBLK is 11 bits (+1) */
mmc              1267 drivers/mmc/host/omap.c 	mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc              1268 drivers/mmc/host/omap.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1276 drivers/mmc/host/omap.c 	r = mmc_add_host(mmc);
mmc              1281 drivers/mmc/host/omap.c 		r = device_create_file(&mmc->class_dev,
mmc              1288 drivers/mmc/host/omap.c 		r = device_create_file(&mmc->class_dev,
mmc              1299 drivers/mmc/host/omap.c 		device_remove_file(&mmc->class_dev, &dev_attr_slot_name);
mmc              1301 drivers/mmc/host/omap.c 	mmc_remove_host(mmc);
mmc              1302 drivers/mmc/host/omap.c 	mmc_free_host(mmc);
mmc              1308 drivers/mmc/host/omap.c 	struct mmc_host *mmc = slot->mmc;
mmc              1311 drivers/mmc/host/omap.c 		device_remove_file(&mmc->class_dev, &dev_attr_slot_name);
mmc              1313 drivers/mmc/host/omap.c 		device_remove_file(&mmc->class_dev, &dev_attr_cover_switch);
mmc              1319 drivers/mmc/host/omap.c 	mmc_remove_host(mmc);
mmc              1320 drivers/mmc/host/omap.c 	mmc_free_host(mmc);
mmc               171 drivers/mmc/host/omap_hsmmc.c 	struct	mmc_host	*mmc;
mmc               216 drivers/mmc/host/omap_hsmmc.c static int omap_hsmmc_enable_supply(struct mmc_host *mmc)
mmc               219 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc               220 drivers/mmc/host/omap_hsmmc.c 	struct mmc_ios *ios = &mmc->ios;
mmc               222 drivers/mmc/host/omap_hsmmc.c 	if (!IS_ERR(mmc->supply.vmmc)) {
mmc               223 drivers/mmc/host/omap_hsmmc.c 		ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
mmc               229 drivers/mmc/host/omap_hsmmc.c 	if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) {
mmc               230 drivers/mmc/host/omap_hsmmc.c 		ret = regulator_enable(mmc->supply.vqmmc);
mmc               232 drivers/mmc/host/omap_hsmmc.c 			dev_err(mmc_dev(mmc), "vmmc_aux reg enable failed\n");
mmc               241 drivers/mmc/host/omap_hsmmc.c 	if (!IS_ERR(mmc->supply.vmmc))
mmc               242 drivers/mmc/host/omap_hsmmc.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc               247 drivers/mmc/host/omap_hsmmc.c static int omap_hsmmc_disable_supply(struct mmc_host *mmc)
mmc               251 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc               253 drivers/mmc/host/omap_hsmmc.c 	if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) {
mmc               254 drivers/mmc/host/omap_hsmmc.c 		ret = regulator_disable(mmc->supply.vqmmc);
mmc               256 drivers/mmc/host/omap_hsmmc.c 			dev_err(mmc_dev(mmc), "vmmc_aux reg disable failed\n");
mmc               262 drivers/mmc/host/omap_hsmmc.c 	if (!IS_ERR(mmc->supply.vmmc)) {
mmc               263 drivers/mmc/host/omap_hsmmc.c 		ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc               271 drivers/mmc/host/omap_hsmmc.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc               272 drivers/mmc/host/omap_hsmmc.c 		status = regulator_enable(mmc->supply.vqmmc);
mmc               274 drivers/mmc/host/omap_hsmmc.c 			dev_err(mmc_dev(mmc), "vmmc_aux re-enable failed\n");
mmc               312 drivers/mmc/host/omap_hsmmc.c 	struct mmc_host *mmc = host->mmc;
mmc               319 drivers/mmc/host/omap_hsmmc.c 	if (IS_ERR(mmc->supply.vmmc))
mmc               340 drivers/mmc/host/omap_hsmmc.c 		ret = omap_hsmmc_enable_supply(mmc);
mmc               348 drivers/mmc/host/omap_hsmmc.c 		ret = omap_hsmmc_disable_supply(mmc);
mmc               356 drivers/mmc/host/omap_hsmmc.c 	omap_hsmmc_disable_supply(mmc);
mmc               383 drivers/mmc/host/omap_hsmmc.c 	struct mmc_host *mmc = host->mmc;
mmc               391 drivers/mmc/host/omap_hsmmc.c 	ret = omap_hsmmc_disable_boot_regulator(mmc->supply.vmmc);
mmc               397 drivers/mmc/host/omap_hsmmc.c 	ret = omap_hsmmc_disable_boot_regulator(mmc->supply.vqmmc);
mmc               417 drivers/mmc/host/omap_hsmmc.c 	struct mmc_host *mmc = host->mmc;
mmc               420 drivers/mmc/host/omap_hsmmc.c 	ret = mmc_regulator_get_supply(mmc);
mmc               425 drivers/mmc/host/omap_hsmmc.c 	if (IS_ERR(mmc->supply.vqmmc)) {
mmc               426 drivers/mmc/host/omap_hsmmc.c 		mmc->supply.vqmmc = devm_regulator_get_optional(host->dev,
mmc               428 drivers/mmc/host/omap_hsmmc.c 		if (IS_ERR(mmc->supply.vqmmc)) {
mmc               429 drivers/mmc/host/omap_hsmmc.c 			ret = PTR_ERR(mmc->supply.vqmmc);
mmc               433 drivers/mmc/host/omap_hsmmc.c 				PTR_ERR(mmc->supply.vqmmc));
mmc               477 drivers/mmc/host/omap_hsmmc.c 		dev_dbg(mmc_dev(host->mmc), "MMC Clock is not stopped\n");
mmc               535 drivers/mmc/host/omap_hsmmc.c 	struct mmc_ios *ios = &host->mmc->ios;
mmc               540 drivers/mmc/host/omap_hsmmc.c 	dev_vdbg(mmc_dev(host->mmc), "Set clock to %uHz\n", ios->clock);
mmc               585 drivers/mmc/host/omap_hsmmc.c 	struct mmc_ios *ios = &host->mmc->ios;
mmc               613 drivers/mmc/host/omap_hsmmc.c 	struct mmc_ios *ios = &host->mmc->ios;
mmc               631 drivers/mmc/host/omap_hsmmc.c 	struct mmc_ios *ios = &host->mmc->ios;
mmc               655 drivers/mmc/host/omap_hsmmc.c 	if (host->mmc->caps & MMC_CAP_SDIO_IRQ)
mmc               687 drivers/mmc/host/omap_hsmmc.c 	dev_dbg(mmc_dev(host->mmc), "context is restored: restore count %d\n",
mmc               749 drivers/mmc/host/omap_hsmmc.c 	struct mmc_host *mmc = container_of(dev, struct mmc_host, class_dev);
mmc               750 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc               766 drivers/mmc/host/omap_hsmmc.c 	dev_vdbg(mmc_dev(host->mmc), "%s: CMD%d, argument 0x%08x\n",
mmc               767 drivers/mmc/host/omap_hsmmc.c 		mmc_hostname(host->mmc), cmd->opcode, cmd->arg);
mmc               836 drivers/mmc/host/omap_hsmmc.c 	mmc_request_done(host->mmc, mrq);
mmc               959 drivers/mmc/host/omap_hsmmc.c 	dev_vdbg(mmc_dev(host->mmc), "%s\n", res);
mmc              1000 drivers/mmc/host/omap_hsmmc.c 		dev_err(mmc_dev(host->mmc),
mmc              1028 drivers/mmc/host/omap_hsmmc.c 	dev_vdbg(mmc_dev(host->mmc), "IRQ Status is %x\n", status);
mmc              1057 drivers/mmc/host/omap_hsmmc.c 			dev_dbg(mmc_dev(host->mmc), "AC12 err: 0x%x\n", ac12);
mmc              1082 drivers/mmc/host/omap_hsmmc.c 			mmc_signal_sdio_irq(host->mmc);
mmc              1161 drivers/mmc/host/omap_hsmmc.c 	dev_err(mmc_dev(host->mmc), "Unable to switch operating voltage\n");
mmc              1194 drivers/mmc/host/omap_hsmmc.c 		mmc_request_done(host->mmc, mrq);
mmc              1285 drivers/mmc/host/omap_hsmmc.c 		dev_err(mmc_dev(host->mmc), "prep_slave_sg() failed\n");
mmc              1385 drivers/mmc/host/omap_hsmmc.c 			dev_err(mmc_dev(host->mmc), "MMC start dma failure\n");
mmc              1392 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq,
mmc              1395 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc              1407 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1409 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc              1428 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_request(struct mmc_host *mmc, struct mmc_request *req)
mmc              1430 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc              1446 drivers/mmc/host/omap_hsmmc.c 		mmc_request_done(mmc, req);
mmc              1459 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1461 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc              1496 drivers/mmc/host/omap_hsmmc.c 				dev_dbg(mmc_dev(host->mmc),
mmc              1509 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_init_card(struct mmc_host *mmc, struct mmc_card *card)
mmc              1511 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc              1517 drivers/mmc/host/omap_hsmmc.c 		struct device_node *np = mmc_dev(mmc)->of_node;
mmc              1547 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc              1549 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc              1597 drivers/mmc/host/omap_hsmmc.c 		dev_err(mmc_dev(host->mmc), "Unable to request wake IRQ\n");
mmc              1687 drivers/mmc/host/omap_hsmmc.c 	struct mmc_host *mmc = s->private;
mmc              1688 drivers/mmc/host/omap_hsmmc.c 	struct omap_hsmmc_host *host = mmc_priv(mmc);
mmc              1690 drivers/mmc/host/omap_hsmmc.c 	seq_printf(s, "mmc%d:\n", mmc->index);
mmc              1692 drivers/mmc/host/omap_hsmmc.c 		   (mmc->caps & MMC_CAP_SDIO_IRQ) ? "interrupt" : "polling");
mmc              1694 drivers/mmc/host/omap_hsmmc.c 	if (mmc->caps & MMC_CAP_SDIO_IRQ) {
mmc              1726 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_debugfs(struct mmc_host *mmc)
mmc              1728 drivers/mmc/host/omap_hsmmc.c 	if (mmc->debugfs_root)
mmc              1729 drivers/mmc/host/omap_hsmmc.c 		debugfs_create_file("regs", S_IRUSR, mmc->debugfs_root,
mmc              1730 drivers/mmc/host/omap_hsmmc.c 			mmc, &mmc_regs_fops);
mmc              1735 drivers/mmc/host/omap_hsmmc.c static void omap_hsmmc_debugfs(struct mmc_host *mmc)
mmc              1818 drivers/mmc/host/omap_hsmmc.c 	struct mmc_host *mmc;
mmc              1854 drivers/mmc/host/omap_hsmmc.c 	mmc = mmc_alloc_host(sizeof(struct omap_hsmmc_host), &pdev->dev);
mmc              1855 drivers/mmc/host/omap_hsmmc.c 	if (!mmc) {
mmc              1860 drivers/mmc/host/omap_hsmmc.c 	ret = mmc_of_parse(mmc);
mmc              1864 drivers/mmc/host/omap_hsmmc.c 	host		= mmc_priv(mmc);
mmc              1865 drivers/mmc/host/omap_hsmmc.c 	host->mmc	= mmc;
mmc              1883 drivers/mmc/host/omap_hsmmc.c 	mmc->ops	= &omap_hsmmc_ops;
mmc              1885 drivers/mmc/host/omap_hsmmc.c 	mmc->f_min = OMAP_MMC_MIN_CLOCK;
mmc              1888 drivers/mmc/host/omap_hsmmc.c 		mmc->f_max = pdata->max_freq;
mmc              1889 drivers/mmc/host/omap_hsmmc.c 	else if (mmc->f_max == 0)
mmc              1890 drivers/mmc/host/omap_hsmmc.c 		mmc->f_max = OMAP_MMC_MAX_CLOCK;
mmc              1921 drivers/mmc/host/omap_hsmmc.c 		dev_warn(mmc_dev(host->mmc), "Failed to enable debounce clk\n");
mmc              1927 drivers/mmc/host/omap_hsmmc.c 	mmc->max_segs = 64;
mmc              1929 drivers/mmc/host/omap_hsmmc.c 	mmc->max_blk_size = 512;       /* Block Length at max can be 1024 */
mmc              1930 drivers/mmc/host/omap_hsmmc.c 	mmc->max_blk_count = 0xFFFF;    /* No. of Blocks is 16 bits */
mmc              1931 drivers/mmc/host/omap_hsmmc.c 	mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc              1933 drivers/mmc/host/omap_hsmmc.c 	mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
mmc              1936 drivers/mmc/host/omap_hsmmc.c 	mmc->caps |= mmc_pdata(host)->caps;
mmc              1937 drivers/mmc/host/omap_hsmmc.c 	if (mmc->caps & MMC_CAP_8_BIT_DATA)
mmc              1938 drivers/mmc/host/omap_hsmmc.c 		mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc              1941 drivers/mmc/host/omap_hsmmc.c 		mmc->caps |= MMC_CAP_NONREMOVABLE;
mmc              1943 drivers/mmc/host/omap_hsmmc.c 	mmc->pm_caps |= mmc_pdata(host)->pm_caps;
mmc              1949 drivers/mmc/host/omap_hsmmc.c 		dev_err(mmc_dev(host->mmc), "RX DMA channel request failed\n");
mmc              1956 drivers/mmc/host/omap_hsmmc.c 		dev_err(mmc_dev(host->mmc), "TX DMA channel request failed\n");
mmc              1968 drivers/mmc/host/omap_hsmmc.c 	mmc->max_seg_size = min3(mmc->max_req_size,
mmc              1974 drivers/mmc/host/omap_hsmmc.c 			mmc_hostname(mmc), host);
mmc              1976 drivers/mmc/host/omap_hsmmc.c 		dev_err(mmc_dev(host->mmc), "Unable to grab HSMMC IRQ\n");
mmc              1984 drivers/mmc/host/omap_hsmmc.c 	if (!mmc->ocr_avail)
mmc              1985 drivers/mmc/host/omap_hsmmc.c 		mmc->ocr_avail = mmc_pdata(host)->ocr_mask;
mmc              1999 drivers/mmc/host/omap_hsmmc.c 		mmc->caps |= MMC_CAP_SDIO_IRQ;
mmc              2001 drivers/mmc/host/omap_hsmmc.c 	mmc_add_host(mmc);
mmc              2004 drivers/mmc/host/omap_hsmmc.c 		ret = device_create_file(&mmc->class_dev, &dev_attr_slot_name);
mmc              2009 drivers/mmc/host/omap_hsmmc.c 	omap_hsmmc_debugfs(mmc);
mmc              2016 drivers/mmc/host/omap_hsmmc.c 	mmc_remove_host(mmc);
mmc              2029 drivers/mmc/host/omap_hsmmc.c 	mmc_free_host(mmc);
mmc              2039 drivers/mmc/host/omap_hsmmc.c 	mmc_remove_host(host->mmc);
mmc              2052 drivers/mmc/host/omap_hsmmc.c 	mmc_free_host(host->mmc);
mmc              2067 drivers/mmc/host/omap_hsmmc.c 	if (!(host->mmc->pm_flags & MMC_PM_KEEP_POWER)) {
mmc              2095 drivers/mmc/host/omap_hsmmc.c 	if (!(host->mmc->pm_flags & MMC_PM_KEEP_POWER))
mmc              2115 drivers/mmc/host/omap_hsmmc.c 	if ((host->mmc->caps & MMC_CAP_SDIO_IRQ) &&
mmc              2156 drivers/mmc/host/omap_hsmmc.c 	if ((host->mmc->caps & MMC_CAP_SDIO_IRQ) &&
mmc                51 drivers/mmc/host/pxamci.c 	struct mmc_host		*mmc;
mmc                79 drivers/mmc/host/pxamci.c 	struct mmc_host *mmc = host->mmc;
mmc                82 drivers/mmc/host/pxamci.c 	ret = mmc_regulator_get_supply(mmc);
mmc                86 drivers/mmc/host/pxamci.c 	if (IS_ERR(mmc->supply.vmmc)) {
mmc                88 drivers/mmc/host/pxamci.c 		mmc->ocr_avail = host->pdata ?
mmc               100 drivers/mmc/host/pxamci.c 	struct mmc_host *mmc = host->mmc;
mmc               101 drivers/mmc/host/pxamci.c 	struct regulator *supply = mmc->supply.vmmc;
mmc               104 drivers/mmc/host/pxamci.c 		return mmc_regulator_set_ocr(mmc, supply, vdd);
mmc               112 drivers/mmc/host/pxamci.c 		return host->pdata->setpower(mmc_dev(host->mmc), vdd);
mmc               133 drivers/mmc/host/pxamci.c 			dev_err(mmc_dev(host->mmc), "unable to stop clock\n");
mmc               202 drivers/mmc/host/pxamci.c 		dev_err(mmc_dev(host->mmc), "dma slave config failed\n");
mmc               212 drivers/mmc/host/pxamci.c 		dev_err(mmc_dev(host->mmc), "prep_slave_sg() failed\n");
mmc               272 drivers/mmc/host/pxamci.c 	mmc_request_done(host->mmc, mrq);
mmc               392 drivers/mmc/host/pxamci.c 			mmc_signal_sdio_irq(host->mmc);
mmc               400 drivers/mmc/host/pxamci.c static void pxamci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               402 drivers/mmc/host/pxamci.c 	struct pxamci_host *host = mmc_priv(mmc);
mmc               426 drivers/mmc/host/pxamci.c static int pxamci_get_ro(struct mmc_host *mmc)
mmc               428 drivers/mmc/host/pxamci.c 	struct pxamci_host *host = mmc_priv(mmc);
mmc               431 drivers/mmc/host/pxamci.c 		return mmc_gpio_get_ro(mmc);
mmc               433 drivers/mmc/host/pxamci.c 		return !!host->pdata->get_ro(mmc_dev(mmc));
mmc               441 drivers/mmc/host/pxamci.c static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               443 drivers/mmc/host/pxamci.c 	struct pxamci_host *host = mmc_priv(mmc);
mmc               488 drivers/mmc/host/pxamci.c 			dev_err(mmc_dev(mmc), "unable to set power\n");
mmc               507 drivers/mmc/host/pxamci.c 	dev_dbg(mmc_dev(mmc), "PXAMCI: clkrt = %x cmdat = %x\n",
mmc               552 drivers/mmc/host/pxamci.c 		pr_err("%s: DMA error on %s channel\n", mmc_hostname(host->mmc),
mmc               579 drivers/mmc/host/pxamci.c 			  struct mmc_host *mmc)
mmc               582 drivers/mmc/host/pxamci.c 	struct pxamci_host *host = mmc_priv(mmc);
mmc               593 drivers/mmc/host/pxamci.c 	ret = mmc_of_parse(mmc);
mmc               601 drivers/mmc/host/pxamci.c 			  struct mmc_host *mmc)
mmc               609 drivers/mmc/host/pxamci.c 	struct mmc_host *mmc;
mmc               620 drivers/mmc/host/pxamci.c 	mmc = mmc_alloc_host(sizeof(struct pxamci_host), dev);
mmc               621 drivers/mmc/host/pxamci.c 	if (!mmc) {
mmc               626 drivers/mmc/host/pxamci.c 	mmc->ops = &pxamci_ops;
mmc               632 drivers/mmc/host/pxamci.c 	mmc->max_segs = NR_SG;
mmc               637 drivers/mmc/host/pxamci.c 	mmc->max_seg_size = PAGE_SIZE;
mmc               642 drivers/mmc/host/pxamci.c 	mmc->max_blk_size = cpu_is_pxa25x() ? 1023 : 2048;
mmc               647 drivers/mmc/host/pxamci.c 	mmc->max_blk_count = 65535;
mmc               649 drivers/mmc/host/pxamci.c 	ret = pxamci_of_init(pdev, mmc);
mmc               653 drivers/mmc/host/pxamci.c 	host = mmc_priv(mmc);
mmc               654 drivers/mmc/host/pxamci.c 	host->mmc = mmc;
mmc               670 drivers/mmc/host/pxamci.c 	mmc->f_min = (host->clkrate + 63) / 64;
mmc               671 drivers/mmc/host/pxamci.c 	mmc->f_max = (mmc_has_26MHz()) ? 26000000 : host->clkrate;
mmc               677 drivers/mmc/host/pxamci.c 	mmc->caps = 0;
mmc               680 drivers/mmc/host/pxamci.c 		mmc->caps |= MMC_CAP_4_BIT_DATA | MMC_CAP_SDIO_IRQ;
mmc               683 drivers/mmc/host/pxamci.c 			mmc->caps |= MMC_CAP_MMC_HIGHSPEED |
mmc               711 drivers/mmc/host/pxamci.c 	platform_set_drvdata(pdev, mmc);
mmc               737 drivers/mmc/host/pxamci.c 		ret = mmc_gpiod_request_cd(mmc, "cd", 0, false, 0, NULL);
mmc               744 drivers/mmc/host/pxamci.c 			mmc->caps2 |= MMC_CAP2_RO_ACTIVE_HIGH;
mmc               746 drivers/mmc/host/pxamci.c 		ret = mmc_gpiod_request_ro(mmc, "wp", 0, 0, NULL);
mmc               755 drivers/mmc/host/pxamci.c 			host->pdata->init(dev, pxamci_detect_irq, mmc);
mmc               763 drivers/mmc/host/pxamci.c 	mmc_add_host(mmc);
mmc               774 drivers/mmc/host/pxamci.c 	if (mmc)
mmc               775 drivers/mmc/host/pxamci.c 		mmc_free_host(mmc);
mmc               781 drivers/mmc/host/pxamci.c 	struct mmc_host *mmc = platform_get_drvdata(pdev);
mmc               783 drivers/mmc/host/pxamci.c 	if (mmc) {
mmc               784 drivers/mmc/host/pxamci.c 		struct pxamci_host *host = mmc_priv(mmc);
mmc               786 drivers/mmc/host/pxamci.c 		mmc_remove_host(mmc);
mmc               789 drivers/mmc/host/pxamci.c 			host->pdata->exit(&pdev->dev, mmc);
mmc               801 drivers/mmc/host/pxamci.c 		mmc_free_host(mmc);
mmc                88 drivers/mmc/host/renesas_sdhi_core.c 	struct mmc_host *mmc = host->mmc;
mmc               107 drivers/mmc/host/renesas_sdhi_core.c 	if (!mmc->f_max)
mmc               108 drivers/mmc/host/renesas_sdhi_core.c 		mmc->f_max = clk_get_rate(priv->clk);
mmc               114 drivers/mmc/host/renesas_sdhi_core.c 	mmc->f_min = max(clk_round_rate(priv->clk, 1) / 512, 1L);
mmc               170 drivers/mmc/host/renesas_sdhi_core.c 		host->mmc->actual_clock = 0;
mmc               174 drivers/mmc/host/renesas_sdhi_core.c 	host->mmc->actual_clock = renesas_sdhi_clk_update(host, new_clock);
mmc               175 drivers/mmc/host/renesas_sdhi_core.c 	clock = host->mmc->actual_clock / 512;
mmc               182 drivers/mmc/host/renesas_sdhi_core.c 		if (!(host->mmc->ios.timing == MMC_TIMING_MMC_HS400))
mmc               209 drivers/mmc/host/renesas_sdhi_core.c static int renesas_sdhi_card_busy(struct mmc_host *mmc)
mmc               211 drivers/mmc/host/renesas_sdhi_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               217 drivers/mmc/host/renesas_sdhi_core.c static int renesas_sdhi_start_signal_voltage_switch(struct mmc_host *mmc,
mmc               220 drivers/mmc/host/renesas_sdhi_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               244 drivers/mmc/host/renesas_sdhi_core.c 	ret = mmc_regulator_set_vqmmc(host->mmc, ios);
mmc               502 drivers/mmc/host/renesas_sdhi_core.c 	if (!(host->mmc->ios.timing == MMC_TIMING_UHS_SDR104) &&
mmc               503 drivers/mmc/host/renesas_sdhi_core.c 	    !(host->mmc->ios.timing == MMC_TIMING_MMC_HS200) &&
mmc               504 drivers/mmc/host/renesas_sdhi_core.c 	    !(host->mmc->ios.timing == MMC_TIMING_MMC_HS400 && !use_4tap))
mmc               507 drivers/mmc/host/renesas_sdhi_core.c 	if (mmc_doing_retune(host->mmc))
mmc               725 drivers/mmc/host/renesas_sdhi_core.c 		host->mmc->caps2 &= ~(MMC_CAP2_HS400 | MMC_CAP2_HS400_ES);
mmc               731 drivers/mmc/host/renesas_sdhi_core.c 	if (mmc_can_gpio_ro(host->mmc))
mmc               745 drivers/mmc/host/renesas_sdhi_core.c 			host->mmc->caps |= MMC_CAP_HW_RESET;
mmc               799 drivers/mmc/host/renesas_sdhi_core.c 	    (host->mmc->caps & MMC_CAP_UHS_SDR104 ||
mmc               800 drivers/mmc/host/renesas_sdhi_core.c 	     host->mmc->caps2 & (MMC_CAP2_HS200_1_8V_SDR |
mmc               807 drivers/mmc/host/renesas_sdhi_core.c 			    taps[i].clk_rate == host->mmc->f_max) {
mmc               854 drivers/mmc/host/renesas_sdhi_core.c 		 mmc_hostname(host->mmc), (unsigned long)
mmc               856 drivers/mmc/host/renesas_sdhi_core.c 		 host->mmc->f_max / 1000000);
mmc                27 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host		*mmc;
mmc               181 drivers/mmc/host/rtsx_pci_sdmmc.c static void sdmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               183 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc               197 drivers/mmc/host/rtsx_pci_sdmmc.c static void sdmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq,
mmc               200 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc               431 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host *mmc = host->mmc;
mmc               432 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_card *card = mmc->card;
mmc               489 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host *mmc = host->mmc;
mmc               490 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_card *card = mmc->card;
mmc               792 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host *mmc = host->mmc;
mmc               833 drivers/mmc/host/rtsx_pci_sdmmc.c 			sdmmc_post_req(host->mmc, host->mrq, 0);
mmc               860 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc_request_done(mmc, mrq);
mmc               863 drivers/mmc/host/rtsx_pci_sdmmc.c static void sdmmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               865 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc              1037 drivers/mmc/host/rtsx_pci_sdmmc.c static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1039 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc              1085 drivers/mmc/host/rtsx_pci_sdmmc.c static int sdmmc_get_ro(struct mmc_host *mmc)
mmc              1087 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc              1110 drivers/mmc/host/rtsx_pci_sdmmc.c static int sdmmc_get_cd(struct mmc_host *mmc)
mmc              1112 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc              1208 drivers/mmc/host/rtsx_pci_sdmmc.c static int sdmmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1210 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc              1260 drivers/mmc/host/rtsx_pci_sdmmc.c static int sdmmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc              1262 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct realtek_pci_sdmmc *host = mmc_priv(mmc);
mmc              1278 drivers/mmc/host/rtsx_pci_sdmmc.c 	switch (mmc->ios.timing) {
mmc              1299 drivers/mmc/host/rtsx_pci_sdmmc.c 	if ((mmc->ios.timing == MMC_TIMING_UHS_SDR104) ||
mmc              1300 drivers/mmc/host/rtsx_pci_sdmmc.c 			(mmc->ios.timing == MMC_TIMING_UHS_SDR50))
mmc              1302 drivers/mmc/host/rtsx_pci_sdmmc.c 	else if (mmc->ios.timing == MMC_TIMING_UHS_DDR50)
mmc              1324 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host *mmc = host->mmc;
mmc              1330 drivers/mmc/host/rtsx_pci_sdmmc.c 		mmc->caps |= MMC_CAP_UHS_SDR50;
mmc              1332 drivers/mmc/host/rtsx_pci_sdmmc.c 		mmc->caps |= MMC_CAP_UHS_SDR104;
mmc              1334 drivers/mmc/host/rtsx_pci_sdmmc.c 		mmc->caps |= MMC_CAP_UHS_DDR50;
mmc              1336 drivers/mmc/host/rtsx_pci_sdmmc.c 		mmc->caps |= MMC_CAP_1_8V_DDR;
mmc              1338 drivers/mmc/host/rtsx_pci_sdmmc.c 		mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc              1343 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host *mmc = host->mmc;
mmc              1345 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->f_min = 250000;
mmc              1346 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->f_max = 208000000;
mmc              1347 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
mmc              1348 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED |
mmc              1351 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE;
mmc              1352 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_current_330 = 400;
mmc              1353 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_current_180 = 800;
mmc              1354 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->ops = &realtek_pci_sdmmc_ops;
mmc              1358 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_segs = 256;
mmc              1359 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_seg_size = 65536;
mmc              1360 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_blk_size = 512;
mmc              1361 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_blk_count = 65535;
mmc              1362 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc->max_req_size = 524288;
mmc              1370 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc_detect_change(host->mmc, 0);
mmc              1375 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host *mmc;
mmc              1389 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc = mmc_alloc_host(sizeof(*host), &pdev->dev);
mmc              1390 drivers/mmc/host/rtsx_pci_sdmmc.c 	if (!mmc)
mmc              1393 drivers/mmc/host/rtsx_pci_sdmmc.c 	host = mmc_priv(mmc);
mmc              1395 drivers/mmc/host/rtsx_pci_sdmmc.c 	host->mmc = mmc;
mmc              1408 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc_add_host(mmc);
mmc              1417 drivers/mmc/host/rtsx_pci_sdmmc.c 	struct mmc_host *mmc;
mmc              1425 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc = host->mmc;
mmc              1433 drivers/mmc/host/rtsx_pci_sdmmc.c 			mmc_hostname(mmc));
mmc              1440 drivers/mmc/host/rtsx_pci_sdmmc.c 		mmc_request_done(mmc, host->mrq);
mmc              1444 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc_remove_host(mmc);
mmc              1449 drivers/mmc/host/rtsx_pci_sdmmc.c 	mmc_free_host(mmc);
mmc                36 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct mmc_host		*mmc;
mmc               752 drivers/mmc/host/rtsx_usb_sdmmc.c static int sdmmc_get_ro(struct mmc_host *mmc)
mmc               754 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_usb_sdmmc *host = mmc_priv(mmc);
mmc               780 drivers/mmc/host/rtsx_usb_sdmmc.c static int sdmmc_get_cd(struct mmc_host *mmc)
mmc               782 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_usb_sdmmc *host = mmc_priv(mmc);
mmc               811 drivers/mmc/host/rtsx_usb_sdmmc.c static void sdmmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               813 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_usb_sdmmc *host = mmc_priv(mmc);
mmc               874 drivers/mmc/host/rtsx_usb_sdmmc.c 		sdmmc_get_cd(mmc);
mmc               883 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc_request_done(mmc, mrq);
mmc              1111 drivers/mmc/host/rtsx_usb_sdmmc.c static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1113 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_usb_sdmmc *host = mmc_priv(mmc);
mmc              1152 drivers/mmc/host/rtsx_usb_sdmmc.c static int sdmmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1154 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_usb_sdmmc *host = mmc_priv(mmc);
mmc              1201 drivers/mmc/host/rtsx_usb_sdmmc.c static int sdmmc_card_busy(struct mmc_host *mmc)
mmc              1203 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_usb_sdmmc *host = mmc_priv(mmc);
mmc              1241 drivers/mmc/host/rtsx_usb_sdmmc.c static int sdmmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc              1243 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct rtsx_usb_sdmmc *host = mmc_priv(mmc);
mmc              1309 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct mmc_host *mmc = host->mmc;
mmc              1311 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->f_min = 250000;
mmc              1312 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->f_max = 208000000;
mmc              1313 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
mmc              1314 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED |
mmc              1318 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->caps2 = MMC_CAP2_NO_PRESCAN_POWERUP | MMC_CAP2_FULL_PWR_CYCLE |
mmc              1321 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_current_330 = 400;
mmc              1322 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_current_180 = 800;
mmc              1323 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->ops = &rtsx_usb_sdmmc_ops;
mmc              1324 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_segs = 256;
mmc              1325 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_seg_size = 65536;
mmc              1326 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_blk_size = 512;
mmc              1327 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_blk_count = 65535;
mmc              1328 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc->max_req_size = 524288;
mmc              1335 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct mmc_host *mmc;
mmc              1348 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc = mmc_alloc_host(sizeof(*host), &pdev->dev);
mmc              1349 drivers/mmc/host/rtsx_usb_sdmmc.c 	if (!mmc)
mmc              1352 drivers/mmc/host/rtsx_usb_sdmmc.c 	host = mmc_priv(mmc);
mmc              1354 drivers/mmc/host/rtsx_usb_sdmmc.c 	host->mmc = mmc;
mmc              1364 drivers/mmc/host/rtsx_usb_sdmmc.c 		"%s::", mmc_hostname(mmc));
mmc              1367 drivers/mmc/host/rtsx_usb_sdmmc.c 	host->led.default_trigger = mmc_hostname(mmc);
mmc              1370 drivers/mmc/host/rtsx_usb_sdmmc.c 	err = led_classdev_register(mmc_dev(mmc), &host->led);
mmc              1377 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc_add_host(mmc);
mmc              1385 drivers/mmc/host/rtsx_usb_sdmmc.c 	struct mmc_host *mmc;
mmc              1390 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc = host->mmc;
mmc              1397 drivers/mmc/host/rtsx_usb_sdmmc.c 			mmc_hostname(mmc));
mmc              1401 drivers/mmc/host/rtsx_usb_sdmmc.c 		mmc_request_done(mmc, host->mrq);
mmc              1405 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc_remove_host(mmc);
mmc              1412 drivers/mmc/host/rtsx_usb_sdmmc.c 	mmc_free_host(mmc);
mmc              1427 drivers/mmc/host/rtsx_usb_sdmmc.c 	host->mmc->caps &= ~MMC_CAP_NEEDS_POLL;
mmc              1435 drivers/mmc/host/rtsx_usb_sdmmc.c 	host->mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              1436 drivers/mmc/host/rtsx_usb_sdmmc.c 	if (sdmmc_get_cd(host->mmc) == 1)
mmc              1437 drivers/mmc/host/rtsx_usb_sdmmc.c 		mmc_detect_change(host->mmc, 0);
mmc               146 drivers/mmc/host/s3cmci.c static void s3cmci_send_request(struct mmc_host *mmc);
mmc               312 drivers/mmc/host/s3cmci.c 			mmc_signal_sdio_irq(host->mmc);
mmc               625 drivers/mmc/host/s3cmci.c 			mmc_signal_sdio_irq(host->mmc);
mmc               879 drivers/mmc/host/s3cmci.c 		s3cmci_send_request(host->mmc);
mmc               922 drivers/mmc/host/s3cmci.c 	mmc_request_done(host->mmc, mrq);
mmc              1091 drivers/mmc/host/s3cmci.c 	dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc              1108 drivers/mmc/host/s3cmci.c 	dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc              1113 drivers/mmc/host/s3cmci.c static void s3cmci_send_request(struct mmc_host *mmc)
mmc              1115 drivers/mmc/host/s3cmci.c 	struct s3cmci_host *host = mmc_priv(mmc);
mmc              1139 drivers/mmc/host/s3cmci.c 			mmc_request_done(mmc, mrq);
mmc              1153 drivers/mmc/host/s3cmci.c 			mmc_request_done(mmc, mrq);
mmc              1165 drivers/mmc/host/s3cmci.c static void s3cmci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1167 drivers/mmc/host/s3cmci.c 	struct s3cmci_host *host = mmc_priv(mmc);
mmc              1173 drivers/mmc/host/s3cmci.c 	if (mmc_gpio_get_cd(mmc) == 0) {
mmc              1176 drivers/mmc/host/s3cmci.c 		mmc_request_done(mmc, mrq);
mmc              1178 drivers/mmc/host/s3cmci.c 		s3cmci_send_request(mmc);
mmc              1204 drivers/mmc/host/s3cmci.c static void s3cmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1206 drivers/mmc/host/s3cmci.c 	struct s3cmci_host *host = mmc_priv(mmc);
mmc              1272 drivers/mmc/host/s3cmci.c static void s3cmci_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc              1274 drivers/mmc/host/s3cmci.c 	struct s3cmci_host *host = mmc_priv(mmc);
mmc              1333 drivers/mmc/host/s3cmci.c 	struct mmc_host *mmc;
mmc              1339 drivers/mmc/host/s3cmci.c 	mmc = host->mmc;
mmc              1343 drivers/mmc/host/s3cmci.c 		spin_lock_irqsave(&mmc->lock, flags);
mmc              1347 drivers/mmc/host/s3cmci.c 		if (mmc->ios.power_mode != MMC_POWER_OFF &&
mmc              1348 drivers/mmc/host/s3cmci.c 		    mmc->ios.clock != 0)
mmc              1349 drivers/mmc/host/s3cmci.c 			s3cmci_set_clk(host, &mmc->ios);
mmc              1351 drivers/mmc/host/s3cmci.c 		spin_unlock_irqrestore(&mmc->lock, flags);
mmc              1475 drivers/mmc/host/s3cmci.c 	struct mmc_host *mmc = host->mmc;
mmc              1499 drivers/mmc/host/s3cmci.c 		mmc->caps2 |= MMC_CAP2_NO_WRITE_PROTECT;
mmc              1502 drivers/mmc/host/s3cmci.c 		mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              1505 drivers/mmc/host/s3cmci.c 		mmc->caps2 |= MMC_CAP2_RO_ACTIVE_HIGH;
mmc              1508 drivers/mmc/host/s3cmci.c 	ret = mmc_gpiod_request_cd(mmc, "cd", 0, false, 0, NULL);
mmc              1515 drivers/mmc/host/s3cmci.c 	ret = mmc_gpiod_request_ro(host->mmc, "wp", 0, 0, NULL);
mmc              1529 drivers/mmc/host/s3cmci.c 	struct mmc_host *mmc = host->mmc;
mmc              1534 drivers/mmc/host/s3cmci.c 	ret = mmc_of_parse(mmc);
mmc              1550 drivers/mmc/host/s3cmci.c 	struct mmc_host	*mmc;
mmc              1554 drivers/mmc/host/s3cmci.c 	mmc = mmc_alloc_host(sizeof(struct s3cmci_host), &pdev->dev);
mmc              1555 drivers/mmc/host/s3cmci.c 	if (!mmc) {
mmc              1560 drivers/mmc/host/s3cmci.c 	host = mmc_priv(mmc);
mmc              1561 drivers/mmc/host/s3cmci.c 	host->mmc 	= mmc;
mmc              1661 drivers/mmc/host/s3cmci.c 	mmc->ops 	= &s3cmci_ops;
mmc              1662 drivers/mmc/host/s3cmci.c 	mmc->ocr_avail	= MMC_VDD_32_33 | MMC_VDD_33_34;
mmc              1664 drivers/mmc/host/s3cmci.c 	mmc->caps	= MMC_CAP_4_BIT_DATA | MMC_CAP_SDIO_IRQ;
mmc              1666 drivers/mmc/host/s3cmci.c 	mmc->caps	= MMC_CAP_4_BIT_DATA;
mmc              1668 drivers/mmc/host/s3cmci.c 	mmc->f_min 	= host->clk_rate / (host->clk_div * 256);
mmc              1669 drivers/mmc/host/s3cmci.c 	mmc->f_max 	= host->clk_rate / host->clk_div;
mmc              1672 drivers/mmc/host/s3cmci.c 		mmc->ocr_avail = host->pdata->ocr_avail;
mmc              1674 drivers/mmc/host/s3cmci.c 	mmc->max_blk_count	= 4095;
mmc              1675 drivers/mmc/host/s3cmci.c 	mmc->max_blk_size	= 4095;
mmc              1676 drivers/mmc/host/s3cmci.c 	mmc->max_req_size	= 4095 * 512;
mmc              1677 drivers/mmc/host/s3cmci.c 	mmc->max_seg_size	= mmc->max_req_size;
mmc              1679 drivers/mmc/host/s3cmci.c 	mmc->max_segs		= 128;
mmc              1692 drivers/mmc/host/s3cmci.c 	ret = mmc_add_host(mmc);
mmc              1700 drivers/mmc/host/s3cmci.c 	platform_set_drvdata(pdev, mmc);
mmc              1701 drivers/mmc/host/s3cmci.c 	dev_info(&pdev->dev, "%s - using %s, %s SDIO IRQ\n", mmc_hostname(mmc),
mmc              1703 drivers/mmc/host/s3cmci.c 		 mmc->caps & MMC_CAP_SDIO_IRQ ? "hw" : "sw");
mmc              1735 drivers/mmc/host/s3cmci.c 	mmc_free_host(mmc);
mmc              1743 drivers/mmc/host/s3cmci.c 	struct mmc_host	*mmc = platform_get_drvdata(pdev);
mmc              1744 drivers/mmc/host/s3cmci.c 	struct s3cmci_host *host = mmc_priv(mmc);
mmc              1751 drivers/mmc/host/s3cmci.c 	mmc_remove_host(mmc);
mmc              1757 drivers/mmc/host/s3cmci.c 	struct mmc_host		*mmc  = platform_get_drvdata(pdev);
mmc              1758 drivers/mmc/host/s3cmci.c 	struct s3cmci_host	*host = mmc_priv(mmc);
mmc              1779 drivers/mmc/host/s3cmci.c 	mmc_free_host(mmc);
mmc                20 drivers/mmc/host/s3cmci.h 	struct mmc_host		*mmc;
mmc               147 drivers/mmc/host/sdhci-acpi.c 			   struct mmc_host *mmc)
mmc               156 drivers/mmc/host/sdhci-acpi.c 			 mmc_hostname(mmc), err);
mmc               161 drivers/mmc/host/sdhci-acpi.c 		 mmc_hostname(mmc), intel_host->dsm_fns);
mmc               166 drivers/mmc/host/sdhci-acpi.c static int intel_start_signal_voltage_switch(struct mmc_host *mmc,
mmc               169 drivers/mmc/host/sdhci-acpi.c 	struct device *dev = mmc_dev(mmc);
mmc               176 drivers/mmc/host/sdhci-acpi.c 	err = sdhci_start_signal_voltage_switch(mmc, ios);
mmc               193 drivers/mmc/host/sdhci-acpi.c 		 mmc_hostname(mmc), __func__, fn, err, result);
mmc               356 drivers/mmc/host/sdhci-acpi.c static int bxt_get_cd(struct mmc_host *mmc)
mmc               358 drivers/mmc/host/sdhci-acpi.c 	int gpio_cd = mmc_gpio_get_cd(mmc);
mmc               359 drivers/mmc/host/sdhci-acpi.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               393 drivers/mmc/host/sdhci-acpi.c 	intel_dsm_init(intel_host, &pdev->dev, host->mmc);
mmc               407 drivers/mmc/host/sdhci-acpi.c 		c->host->mmc->caps &= ~MMC_CAP_UHS_SDR25;
mmc               410 drivers/mmc/host/sdhci-acpi.c 		c->host->mmc->caps &= ~MMC_CAP_UHS_SDR50;
mmc               413 drivers/mmc/host/sdhci-acpi.c 		c->host->mmc->caps &= ~MMC_CAP_UHS_DDR50;
mmc               416 drivers/mmc/host/sdhci-acpi.c 		c->host->mmc->caps &= ~MMC_CAP_UHS_SDR104;
mmc               558 drivers/mmc/host/sdhci-acpi.c static void amd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               560 drivers/mmc/host/sdhci-acpi.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               563 drivers/mmc/host/sdhci-acpi.c 	sdhci_set_ios(mmc, ios);
mmc               593 drivers/mmc/host/sdhci-acpi.c 		host->mmc->caps = MMC_CAP_1_8V_DDR;
mmc               596 drivers/mmc/host/sdhci-acpi.c 	    (host->mmc->caps & MMC_CAP_1_8V_DDR))
mmc               597 drivers/mmc/host/sdhci-acpi.c 		host->mmc->caps2 = MMC_CAP2_HS400_1_8V;
mmc               758 drivers/mmc/host/sdhci-acpi.c 			host->mmc->caps     |= c->slot->chip->caps;
mmc               759 drivers/mmc/host/sdhci-acpi.c 			host->mmc->caps2    |= c->slot->chip->caps2;
mmc               760 drivers/mmc/host/sdhci-acpi.c 			host->mmc->pm_caps  |= c->slot->chip->pm_caps;
mmc               764 drivers/mmc/host/sdhci-acpi.c 		host->mmc->caps     |= c->slot->caps;
mmc               765 drivers/mmc/host/sdhci-acpi.c 		host->mmc->caps2    |= c->slot->caps2;
mmc               766 drivers/mmc/host/sdhci-acpi.c 		host->mmc->pm_caps  |= c->slot->pm_caps;
mmc               769 drivers/mmc/host/sdhci-acpi.c 	host->mmc->caps2 |= MMC_CAP2_NO_PRESCAN_POWERUP;
mmc               774 drivers/mmc/host/sdhci-acpi.c 		err = mmc_gpiod_request_cd(host->mmc, NULL, 0, v, 0, NULL);
mmc               853 drivers/mmc/host/sdhci-acpi.c 		mmc_retune_needed(host->mmc);
mmc               877 drivers/mmc/host/sdhci-acpi.c 		mmc_retune_needed(host->mmc);
mmc               143 drivers/mmc/host/sdhci-bcm-kona.c 		ret = mmc_gpio_get_ro(host->mmc);
mmc               164 drivers/mmc/host/sdhci-bcm-kona.c 	if (mmc_gpio_get_cd(host->mmc) > 0) {
mmc               165 drivers/mmc/host/sdhci-bcm-kona.c 		dev_dbg(mmc_dev(host->mmc),
mmc               169 drivers/mmc/host/sdhci-bcm-kona.c 		dev_dbg(mmc_dev(host->mmc),
mmc               236 drivers/mmc/host/sdhci-bcm-kona.c 	ret = mmc_of_parse(host->mmc);
mmc               240 drivers/mmc/host/sdhci-bcm-kona.c 	if (!host->mmc->f_max) {
mmc               254 drivers/mmc/host/sdhci-bcm-kona.c 	ret = clk_set_rate(pltfm_priv->clk, host->mmc->f_max);
mmc               267 drivers/mmc/host/sdhci-bcm-kona.c 		mmc_card_is_removable(host->mmc) ? 'N' : 'Y');
mmc               269 drivers/mmc/host/sdhci-bcm-kona.c 		(mmc_gpio_get_cd(host->mmc) != -ENOSYS) ? 'Y' : 'N',
mmc               270 drivers/mmc/host/sdhci-bcm-kona.c 		(mmc_gpio_get_ro(host->mmc) != -ENOSYS) ? 'Y' : 'N');
mmc               272 drivers/mmc/host/sdhci-bcm-kona.c 	if (!mmc_card_is_removable(host->mmc))
mmc               276 drivers/mmc/host/sdhci-bcm-kona.c 		(host->mmc->caps & MMC_CAP_8_BIT_DATA) ? 'Y' : 'N');
mmc               289 drivers/mmc/host/sdhci-bcm-kona.c 	if (!mmc_card_is_removable(host->mmc)) {
mmc               302 drivers/mmc/host/sdhci-bcm-kona.c 	if (mmc_gpio_get_cd(host->mmc) > 0)
mmc                49 drivers/mmc/host/sdhci-brcmstb.c 	res = mmc_of_parse(host->mmc);
mmc               281 drivers/mmc/host/sdhci-cadence.c static int sdhci_cdns_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               283 drivers/mmc/host/sdhci-cadence.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               294 drivers/mmc/host/sdhci-cadence.c 		return sdhci_execute_tuning(mmc, opcode);
mmc               301 drivers/mmc/host/sdhci-cadence.c 		    mmc_send_tuning(host->mmc, opcode, NULL)) { /* bad */
mmc               313 drivers/mmc/host/sdhci-cadence.c 		dev_err(mmc_dev(host->mmc), "no tuning point found\n");
mmc               320 drivers/mmc/host/sdhci-cadence.c static void sdhci_cdns_hs400_enhanced_strobe(struct mmc_host *mmc,
mmc               323 drivers/mmc/host/sdhci-cadence.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               388 drivers/mmc/host/sdhci-cadence.c 	ret = mmc_of_parse(host->mmc);
mmc                25 drivers/mmc/host/sdhci-cns3xxx.c 	struct device *dev = mmc_dev(host->mmc);
mmc                30 drivers/mmc/host/sdhci-cns3xxx.c 	host->mmc->actual_clock = 0;
mmc                83 drivers/mmc/host/sdhci-dove.c 	ret = mmc_of_parse(host->mmc);
mmc               755 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->actual_clock = 0;
mmc               793 drivers/mmc/host/sdhci-esdhc-imx.c 	host->mmc->actual_clock = host_clock / (div * pre_div * ddr_pre_div);
mmc               794 drivers/mmc/host/sdhci-esdhc-imx.c 	dev_dbg(mmc_dev(host->mmc), "desired SD clock: %d, actual: %d\n",
mmc               795 drivers/mmc/host/sdhci-esdhc-imx.c 		clock, host->mmc->actual_clock);
mmc               823 drivers/mmc/host/sdhci-esdhc-imx.c 		return mmc_gpio_get_ro(host->mmc);
mmc               854 drivers/mmc/host/sdhci-esdhc-imx.c static int usdhc_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               856 drivers/mmc/host/sdhci-esdhc-imx.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               865 drivers/mmc/host/sdhci-esdhc-imx.c 	return sdhci_execute_tuning(mmc, opcode);
mmc               880 drivers/mmc/host/sdhci-esdhc-imx.c 	dev_dbg(mmc_dev(host->mmc),
mmc               903 drivers/mmc/host/sdhci-esdhc-imx.c 		if (!mmc_send_tuning(host->mmc, opcode, NULL))
mmc               912 drivers/mmc/host/sdhci-esdhc-imx.c 		if (mmc_send_tuning(host->mmc, opcode, NULL)) {
mmc               922 drivers/mmc/host/sdhci-esdhc-imx.c 	ret = mmc_send_tuning(host->mmc, opcode, NULL);
mmc               925 drivers/mmc/host/sdhci-esdhc-imx.c 	dev_dbg(mmc_dev(host->mmc), "tuning %s at 0x%x ret %d\n",
mmc               931 drivers/mmc/host/sdhci-esdhc-imx.c static void esdhc_hs400_enhanced_strobe(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               933 drivers/mmc/host/sdhci-esdhc-imx.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               951 drivers/mmc/host/sdhci-esdhc-imx.c 	dev_dbg(mmc_dev(host->mmc), "change pinctrl state for uhs %d\n", uhs);
mmc              1013 drivers/mmc/host/sdhci-esdhc-imx.c 		dev_warn(mmc_dev(host->mmc),
mmc              1016 drivers/mmc/host/sdhci-esdhc-imx.c 		dev_warn(mmc_dev(host->mmc),
mmc              1131 drivers/mmc/host/sdhci-esdhc-imx.c 	cqhci_irq(host->mmc, intmask, cmd_error, data_error);
mmc              1246 drivers/mmc/host/sdhci-esdhc-imx.c static void esdhc_cqe_enable(struct mmc_host *mmc)
mmc              1248 drivers/mmc/host/sdhci-esdhc-imx.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              1249 drivers/mmc/host/sdhci-esdhc-imx.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc              1263 drivers/mmc/host/sdhci-esdhc-imx.c 			dev_warn(mmc_dev(host->mmc),
mmc              1290 drivers/mmc/host/sdhci-esdhc-imx.c 		dev_err(mmc_dev(host->mmc),
mmc              1294 drivers/mmc/host/sdhci-esdhc-imx.c 	sdhci_cqe_enable(mmc);
mmc              1297 drivers/mmc/host/sdhci-esdhc-imx.c static void esdhc_sdhci_dumpregs(struct mmc_host *mmc)
mmc              1299 drivers/mmc/host/sdhci-esdhc-imx.c 	sdhci_dumpregs(mmc_priv(mmc));
mmc              1349 drivers/mmc/host/sdhci-esdhc-imx.c 	ret = mmc_of_parse(host->mmc);
mmc              1353 drivers/mmc/host/sdhci-esdhc-imx.c 	if (mmc_gpio_get_cd(host->mmc) >= 0)
mmc              1375 drivers/mmc/host/sdhci-esdhc-imx.c 	if (!host->mmc->parent->platform_data) {
mmc              1376 drivers/mmc/host/sdhci-esdhc-imx.c 		dev_err(mmc_dev(host->mmc), "no board data!\n");
mmc              1381 drivers/mmc/host/sdhci-esdhc-imx.c 				host->mmc->parent->platform_data);
mmc              1384 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->caps2 |= MMC_CAP2_RO_ACTIVE_HIGH;
mmc              1386 drivers/mmc/host/sdhci-esdhc-imx.c 		err = mmc_gpiod_request_ro(host->mmc, "wp", 0, 0, NULL);
mmc              1388 drivers/mmc/host/sdhci-esdhc-imx.c 			dev_err(mmc_dev(host->mmc),
mmc              1397 drivers/mmc/host/sdhci-esdhc-imx.c 		err = mmc_gpiod_request_cd(host->mmc, "cd", 0, false, 0, NULL);
mmc              1399 drivers/mmc/host/sdhci-esdhc-imx.c 			dev_err(mmc_dev(host->mmc),
mmc              1411 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->caps |= MMC_CAP_NONREMOVABLE;
mmc              1420 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_4_BIT_DATA;
mmc              1423 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc              1499 drivers/mmc/host/sdhci-esdhc-imx.c 		dev_warn(mmc_dev(host->mmc), "could not get default state\n");
mmc              1503 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->caps |= MMC_CAP_1_8V_DDR | MMC_CAP_3_3V_DDR;
mmc              1530 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->caps2 |= MMC_CAP2_HS400_ES;
mmc              1536 drivers/mmc/host/sdhci-esdhc-imx.c 		host->mmc->caps2 |= MMC_CAP2_CQE | MMC_CAP2_CQE_DCMD;
mmc              1546 drivers/mmc/host/sdhci-esdhc-imx.c 		err = cqhci_init(cq_host, host->mmc, false);
mmc              1618 drivers/mmc/host/sdhci-esdhc-imx.c 	if (host->mmc->caps2 & MMC_CAP2_CQE) {
mmc              1619 drivers/mmc/host/sdhci-esdhc-imx.c 		ret = cqhci_suspend(host->mmc);
mmc              1625 drivers/mmc/host/sdhci-esdhc-imx.c 		mmc_retune_needed(host->mmc);
mmc              1642 drivers/mmc/host/sdhci-esdhc-imx.c 	if (host->mmc->caps2 & MMC_CAP2_CQE)
mmc              1643 drivers/mmc/host/sdhci-esdhc-imx.c 		ret = cqhci_resume(host->mmc);
mmc              1657 drivers/mmc/host/sdhci-esdhc-imx.c 	if (host->mmc->caps2 & MMC_CAP2_CQE) {
mmc              1658 drivers/mmc/host/sdhci-esdhc-imx.c 		ret = cqhci_suspend(host->mmc);
mmc              1668 drivers/mmc/host/sdhci-esdhc-imx.c 		mmc_retune_needed(host->mmc);
mmc              1670 drivers/mmc/host/sdhci-esdhc-imx.c 	imx_data->actual_clock = host->mmc->actual_clock;
mmc              1711 drivers/mmc/host/sdhci-esdhc-imx.c 	if (host->mmc->caps2 & MMC_CAP2_CQE)
mmc              1712 drivers/mmc/host/sdhci-esdhc-imx.c 		err = cqhci_resume(host->mmc);
mmc                48 drivers/mmc/host/sdhci-iproc.c 		 mmc_hostname(host->mmc), reg, val);
mmc                83 drivers/mmc/host/sdhci-iproc.c 		 mmc_hostname(host->mmc), reg, val);
mmc               311 drivers/mmc/host/sdhci-iproc.c 	ret = mmc_of_parse(host->mmc);
mmc               317 drivers/mmc/host/sdhci-iproc.c 	host->mmc->caps |= iproc_host->data->mmc_caps;
mmc               240 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc;
mmc               305 drivers/mmc/host/sdhci-msm.c 	struct mmc_ios ios = host->mmc->ios;
mmc               325 drivers/mmc/host/sdhci-msm.c 	struct mmc_ios curr_ios = host->mmc->ios;
mmc               333 drivers/mmc/host/sdhci-msm.c 		       mmc_hostname(host->mmc), clock,
mmc               339 drivers/mmc/host/sdhci-msm.c 		 mmc_hostname(host->mmc), clk_get_rate(core_clk),
mmc               348 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = host->mmc;
mmc               358 drivers/mmc/host/sdhci-msm.c 			dev_err(mmc_dev(mmc), "%s: CK_OUT_EN bit is not %d\n",
mmc               359 drivers/mmc/host/sdhci-msm.c 			       mmc_hostname(mmc), poll);
mmc               380 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = host->mmc;
mmc               424 drivers/mmc/host/sdhci-msm.c 	dev_err(mmc_dev(mmc), "%s: Failed to set DLL phase: %d\n",
mmc               425 drivers/mmc/host/sdhci-msm.c 	       mmc_hostname(mmc), phase);
mmc               450 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = host->mmc;
mmc               453 drivers/mmc/host/sdhci-msm.c 		dev_err(mmc_dev(mmc), "%s: Invalid argument: total_phases=%d\n",
mmc               454 drivers/mmc/host/sdhci-msm.c 		       mmc_hostname(mmc), total_phases);
mmc               536 drivers/mmc/host/sdhci-msm.c 		dev_err(mmc_dev(mmc), "%s: Invalid phase selected=%d\n",
mmc               537 drivers/mmc/host/sdhci-msm.c 		       mmc_hostname(mmc), ret);
mmc               576 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = host->mmc;
mmc               689 drivers/mmc/host/sdhci-msm.c 			dev_err(mmc_dev(mmc), "%s: DLL failed to LOCK\n",
mmc               690 drivers/mmc/host/sdhci-msm.c 			       mmc_hostname(mmc));
mmc               745 drivers/mmc/host/sdhci-msm.c 	struct mmc_ios ios = host->mmc->ios;
mmc               785 drivers/mmc/host/sdhci-msm.c 			       mmc_hostname(host->mmc), dll_lock);
mmc               814 drivers/mmc/host/sdhci-msm.c 	struct mmc_ios ios = host->mmc->ios;
mmc               832 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: %s: Enter\n", mmc_hostname(host->mmc), __func__);
mmc               904 drivers/mmc/host/sdhci-msm.c 		       mmc_hostname(host->mmc), __func__);
mmc               912 drivers/mmc/host/sdhci-msm.c 		       mmc_hostname(host->mmc), __func__, ret);
mmc               921 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: %s: Exit, ret %d\n", mmc_hostname(host->mmc),
mmc               928 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = host->mmc;
mmc               936 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: %s: Enter\n", mmc_hostname(host->mmc), __func__);
mmc               951 drivers/mmc/host/sdhci-msm.c 	if (mmc->ios.enhanced_strobe) {
mmc               971 drivers/mmc/host/sdhci-msm.c 		       mmc_hostname(host->mmc), __func__);
mmc               985 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: %s: Exit, ret %d\n", mmc_hostname(host->mmc),
mmc               994 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = host->mmc;
mmc              1000 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: %s: Enter\n", mmc_hostname(host->mmc), __func__);
mmc              1010 drivers/mmc/host/sdhci-msm.c 	if (!mmc->ios.enhanced_strobe) {
mmc              1028 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: %s: Exit, ret %d\n", mmc_hostname(host->mmc),
mmc              1035 drivers/mmc/host/sdhci-msm.c 	struct mmc_ios *ios = &host->mmc->ios;
mmc              1096 drivers/mmc/host/sdhci-msm.c static int sdhci_msm_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc              1098 drivers/mmc/host/sdhci-msm.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              1102 drivers/mmc/host/sdhci-msm.c 	struct mmc_ios ios = host->mmc->ios;
mmc              1145 drivers/mmc/host/sdhci-msm.c 		rc = mmc_send_tuning(mmc, opcode, NULL);
mmc              1149 drivers/mmc/host/sdhci-msm.c 			dev_dbg(mmc_dev(mmc), "%s: Found good phase = %d\n",
mmc              1150 drivers/mmc/host/sdhci-msm.c 				 mmc_hostname(mmc), phase);
mmc              1170 drivers/mmc/host/sdhci-msm.c 		dev_dbg(mmc_dev(mmc), "%s: Setting the tuning phase to %d\n",
mmc              1171 drivers/mmc/host/sdhci-msm.c 			 mmc_hostname(mmc), phase);
mmc              1176 drivers/mmc/host/sdhci-msm.c 		dev_dbg(mmc_dev(mmc), "%s: No tuning point found\n",
mmc              1177 drivers/mmc/host/sdhci-msm.c 		       mmc_hostname(mmc));
mmc              1206 drivers/mmc/host/sdhci-msm.c 			       mmc_hostname(host->mmc), ret);
mmc              1213 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = host->mmc;
mmc              1279 drivers/mmc/host/sdhci-msm.c 	dev_dbg(mmc_dev(mmc), "%s: clock=%u uhs=%u ctrl_2=0x%x\n",
mmc              1280 drivers/mmc/host/sdhci-msm.c 		mmc_hostname(host->mmc), host->clock, uhs, ctrl_2);
mmc              1283 drivers/mmc/host/sdhci-msm.c 	if (mmc->ios.timing == MMC_TIMING_MMC_HS400)
mmc              1284 drivers/mmc/host/sdhci-msm.c 		sdhci_msm_hs400(host, &mmc->ios);
mmc              1317 drivers/mmc/host/sdhci-msm.c 			mmc_hostname(host->mmc), __func__, req_type,
mmc              1348 drivers/mmc/host/sdhci-msm.c 				mmc_hostname(host->mmc), req_type);
mmc              1366 drivers/mmc/host/sdhci-msm.c 				 mmc_hostname(host->mmc), req_type);
mmc              1368 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: %s: request %d done\n", mmc_hostname(host->mmc),
mmc              1380 drivers/mmc/host/sdhci-msm.c 		mmc_hostname(host->mmc),
mmc              1414 drivers/mmc/host/sdhci-msm.c 					mmc_hostname(host->mmc), irq_status);
mmc              1493 drivers/mmc/host/sdhci-msm.c 		mmc_hostname(msm_host->mmc), __func__, irq, irq_status,
mmc              1542 drivers/mmc/host/sdhci-msm.c 	host->mmc->actual_clock = 0;
mmc              1654 drivers/mmc/host/sdhci-msm.c 	struct mmc_host *mmc = msm_host->mmc;
mmc              1655 drivers/mmc/host/sdhci-msm.c 	struct regulator *supply = mmc->supply.vqmmc;
mmc              1657 drivers/mmc/host/sdhci-msm.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              1660 drivers/mmc/host/sdhci-msm.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              1668 drivers/mmc/host/sdhci-msm.c 					mmc_hostname(mmc));
mmc              1691 drivers/mmc/host/sdhci-msm.c 	pr_debug("%s: supported caps: 0x%08x\n", mmc_hostname(mmc), caps);
mmc              1771 drivers/mmc/host/sdhci-msm.c 	msm_host->mmc = host->mmc;
mmc              1774 drivers/mmc/host/sdhci-msm.c 	ret = mmc_of_parse(host->mmc);
mmc              1953 drivers/mmc/host/sdhci-msm.c 	msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;
mmc               168 drivers/mmc/host/sdhci-of-arasan.c 			 mmc_hostname(host->mmc), ret);
mmc               236 drivers/mmc/host/sdhci-of-arasan.c static void sdhci_arasan_hs400_enhanced_strobe(struct mmc_host *mmc,
mmc               240 drivers/mmc/host/sdhci-of-arasan.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               266 drivers/mmc/host/sdhci-of-arasan.c static int sdhci_arasan_voltage_switch(struct mmc_host *mmc,
mmc               291 drivers/mmc/host/sdhci-of-arasan.c 	if (!IS_ERR(host->mmc->supply.vmmc)) {
mmc               292 drivers/mmc/host/sdhci-of-arasan.c 		struct mmc_host *mmc = host->mmc;
mmc               294 drivers/mmc/host/sdhci-of-arasan.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc               329 drivers/mmc/host/sdhci-of-arasan.c 	cqhci_irq(host->mmc, intmask, cmd_error, data_error);
mmc               334 drivers/mmc/host/sdhci-of-arasan.c static void sdhci_arasan_dumpregs(struct mmc_host *mmc)
mmc               336 drivers/mmc/host/sdhci-of-arasan.c 	sdhci_dumpregs(mmc_priv(mmc));
mmc               339 drivers/mmc/host/sdhci-of-arasan.c static void sdhci_arasan_cqe_enable(struct mmc_host *mmc)
mmc               341 drivers/mmc/host/sdhci-of-arasan.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               350 drivers/mmc/host/sdhci-of-arasan.c 	sdhci_cqe_enable(mmc);
mmc               403 drivers/mmc/host/sdhci-of-arasan.c 		mmc_retune_needed(host->mmc);
mmc               406 drivers/mmc/host/sdhci-of-arasan.c 		ret = cqhci_suspend(host->mmc);
mmc               457 drivers/mmc/host/sdhci-of-arasan.c 	if (!IS_ERR(sdhci_arasan->phy) && host->mmc->actual_clock) {
mmc               473 drivers/mmc/host/sdhci-of-arasan.c 		return cqhci_resume(host->mmc);
mmc               527 drivers/mmc/host/sdhci-of-arasan.c 	return host->mmc->actual_clock;
mmc               566 drivers/mmc/host/sdhci-of-arasan.c 			mmc_hostname(host->mmc));
mmc               605 drivers/mmc/host/sdhci-of-arasan.c 			mmc_hostname(host->mmc));
mmc               703 drivers/mmc/host/sdhci-of-arasan.c 	cq_host = devm_kzalloc(host->mmc->parent,
mmc               717 drivers/mmc/host/sdhci-of-arasan.c 	ret = cqhci_init(cq_host, host->mmc, dma64);
mmc               817 drivers/mmc/host/sdhci-of-arasan.c 	ret = mmc_of_parse(host->mmc);
mmc               846 drivers/mmc/host/sdhci-of-arasan.c 		host->mmc->caps2 |= MMC_CAP2_CQE;
mmc               849 drivers/mmc/host/sdhci-of-arasan.c 			host->mmc->caps2 |= MMC_CAP2_CQE_DCMD;
mmc                84 drivers/mmc/host/sdhci-of-aspeed.c 	if (host->mmc->f_max)
mmc                85 drivers/mmc/host/sdhci-of-aspeed.c 		return host->mmc->f_max;
mmc               186 drivers/mmc/host/sdhci-of-aspeed.c 	ret = mmc_of_parse(host->mmc);
mmc                54 drivers/mmc/host/sdhci-of-at91.c 	host->mmc->actual_clock = 0;
mmc                71 drivers/mmc/host/sdhci-of-at91.c 	clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock);
mmc                82 drivers/mmc/host/sdhci-of-at91.c 			       mmc_hostname(host->mmc));
mmc               101 drivers/mmc/host/sdhci-of-at91.c 	if (!IS_ERR(host->mmc->supply.vmmc)) {
mmc               102 drivers/mmc/host/sdhci-of-at91.c 		struct mmc_host *mmc = host->mmc;
mmc               104 drivers/mmc/host/sdhci-of-at91.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc               121 drivers/mmc/host/sdhci-of-at91.c 	if ((host->mmc->caps & MMC_CAP_NONREMOVABLE)
mmc               122 drivers/mmc/host/sdhci-of-at91.c 	    || mmc_gpio_get_cd(host->mmc) >= 0)
mmc               249 drivers/mmc/host/sdhci-of-at91.c 		mmc_retune_needed(host->mmc);
mmc               352 drivers/mmc/host/sdhci-of-at91.c 	ret = mmc_of_parse(host->mmc);
mmc               384 drivers/mmc/host/sdhci-of-at91.c 	if (mmc_card_is_removable(host->mmc) &&
mmc               385 drivers/mmc/host/sdhci-of-at91.c 	    mmc_gpio_get_cd(host->mmc) < 0) {
mmc               386 drivers/mmc/host/sdhci-of-at91.c 		host->mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc               404 drivers/mmc/host/sdhci-of-at91.c 	if ((host->mmc->caps & MMC_CAP_NONREMOVABLE)
mmc               405 drivers/mmc/host/sdhci-of-at91.c 	    || mmc_gpio_get_cd(host->mmc) >= 0)
mmc               101 drivers/mmc/host/sdhci-of-dwcmshc.c 	err = mmc_of_parse(host->mmc);
mmc               522 drivers/mmc/host/sdhci-of-esdhc.c 	struct device *dev = mmc_dev(host->mmc);
mmc               587 drivers/mmc/host/sdhci-of-esdhc.c 				mmc_hostname(host->mmc));
mmc               605 drivers/mmc/host/sdhci-of-esdhc.c 	host->mmc->actual_clock = 0;
mmc               616 drivers/mmc/host/sdhci-of-esdhc.c 	if (host->mmc->card && mmc_card_sd(host->mmc->card) &&
mmc               617 drivers/mmc/host/sdhci-of-esdhc.c 		esdhc->clk_fixup && host->mmc->ios.timing == MMC_TIMING_LEGACY)
mmc               620 drivers/mmc/host/sdhci-of-esdhc.c 		fixup = esdhc->clk_fixup->max_clk[host->mmc->ios.timing];
mmc               638 drivers/mmc/host/sdhci-of-esdhc.c 	    (host->mmc->ios.timing == MMC_TIMING_MMC_HS400 ||
mmc               652 drivers/mmc/host/sdhci-of-esdhc.c 				mmc_hostname(host->mmc));
mmc               656 drivers/mmc/host/sdhci-of-esdhc.c 	dev_dbg(mmc_dev(host->mmc), "desired SD clock: %d, actual: %d\n",
mmc               658 drivers/mmc/host/sdhci-of-esdhc.c 	host->mmc->actual_clock = host->max_clk / pre_div / div;
mmc               669 drivers/mmc/host/sdhci-of-esdhc.c 	if (host->mmc->ios.timing == MMC_TIMING_MMC_HS400 &&
mmc               679 drivers/mmc/host/sdhci-of-esdhc.c 		if (host->mmc->actual_clock == MMC_HS200_MAX_DTR)
mmc               700 drivers/mmc/host/sdhci-of-esdhc.c 				mmc_hostname(host->mmc));
mmc               815 drivers/mmc/host/sdhci-of-esdhc.c static int esdhc_signal_voltage_switch(struct mmc_host *mmc,
mmc               818 drivers/mmc/host/sdhci-of-esdhc.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               959 drivers/mmc/host/sdhci-of-esdhc.c static int esdhc_execute_sw_tuning(struct mmc_host *mmc, u32 opcode,
mmc               962 drivers/mmc/host/sdhci-of-esdhc.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               981 drivers/mmc/host/sdhci-of-esdhc.c 	ret = sdhci_execute_tuning(mmc, opcode);
mmc               986 drivers/mmc/host/sdhci-of-esdhc.c static int esdhc_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               988 drivers/mmc/host/sdhci-of-esdhc.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              1019 drivers/mmc/host/sdhci-of-esdhc.c 		ret = sdhci_execute_tuning(mmc, opcode);
mmc              1034 drivers/mmc/host/sdhci-of-esdhc.c 				mmc_hostname(mmc));
mmc              1038 drivers/mmc/host/sdhci-of-esdhc.c 			ret = esdhc_execute_sw_tuning(mmc, opcode,
mmc              1054 drivers/mmc/host/sdhci-of-esdhc.c 					mmc_hostname(mmc));
mmc              1111 drivers/mmc/host/sdhci-of-esdhc.c 		mmc_retune_needed(host->mmc);
mmc              1272 drivers/mmc/host/sdhci-of-esdhc.c static int esdhc_hs400_prepare_ddr(struct mmc_host *mmc)
mmc              1274 drivers/mmc/host/sdhci-of-esdhc.c 	esdhc_tuning_block_enable(mmc_priv(mmc), false);
mmc              1352 drivers/mmc/host/sdhci-of-esdhc.c 	ret = mmc_of_parse(host->mmc);
mmc               172 drivers/mmc/host/sdhci-omap.c 	struct mmc_host *mmc = host->mmc;
mmc               178 drivers/mmc/host/sdhci-omap.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc               179 drivers/mmc/host/sdhci-omap.c 		ret = regulator_set_voltage(mmc->supply.vqmmc, iov, iov);
mmc               181 drivers/mmc/host/sdhci-omap.c 			dev_err(mmc_dev(mmc), "vqmmc set voltage failed\n");
mmc               225 drivers/mmc/host/sdhci-omap.c static void sdhci_omap_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               227 drivers/mmc/host/sdhci-omap.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               239 drivers/mmc/host/sdhci-omap.c 	sdhci_enable_sdio_irq(mmc, enable);
mmc               278 drivers/mmc/host/sdhci-omap.c static int sdhci_omap_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               280 drivers/mmc/host/sdhci-omap.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               285 drivers/mmc/host/sdhci-omap.c 	struct mmc_ios *ios = &mmc->ios;
mmc               340 drivers/mmc/host/sdhci-omap.c 		cur_match = !mmc_send_tuning(mmc, opcode, NULL);
mmc               400 drivers/mmc/host/sdhci-omap.c 		if (mmc_send_tuning(mmc, opcode, NULL)) {
mmc               417 drivers/mmc/host/sdhci-omap.c 		if (mmc_send_tuning(mmc, opcode, NULL)) {
mmc               461 drivers/mmc/host/sdhci-omap.c static int sdhci_omap_card_busy(struct mmc_host *mmc)
mmc               465 drivers/mmc/host/sdhci-omap.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               506 drivers/mmc/host/sdhci-omap.c static int sdhci_omap_start_signal_voltage_switch(struct mmc_host *mmc,
mmc               512 drivers/mmc/host/sdhci-omap.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               610 drivers/mmc/host/sdhci-omap.c static void sdhci_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               612 drivers/mmc/host/sdhci-omap.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               621 drivers/mmc/host/sdhci-omap.c 	sdhci_set_ios(mmc, ios);
mmc               676 drivers/mmc/host/sdhci-omap.c 	struct mmc_host *mmc = host->mmc;
mmc               678 drivers/mmc/host/sdhci-omap.c 	mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc               932 drivers/mmc/host/sdhci-omap.c 	struct mmc_host *mmc = host->mmc;
mmc               933 drivers/mmc/host/sdhci-omap.c 	u32 *caps = &mmc->caps;
mmc               934 drivers/mmc/host/sdhci-omap.c 	u32 *caps2 = &mmc->caps2;
mmc              1036 drivers/mmc/host/sdhci-omap.c 	struct mmc_host *mmc;
mmc              1069 drivers/mmc/host/sdhci-omap.c 	mmc = host->mmc;
mmc              1071 drivers/mmc/host/sdhci-omap.c 	ret = mmc_of_parse(mmc);
mmc              1079 drivers/mmc/host/sdhci-omap.c 			mmc->f_max = 96000000;
mmc              1081 drivers/mmc/host/sdhci-omap.c 			mmc->f_max = 48000000;
mmc              1083 drivers/mmc/host/sdhci-omap.c 			mmc->f_max = 48000000;
mmc              1086 drivers/mmc/host/sdhci-omap.c 	if (!mmc_can_gpio_ro(mmc))
mmc              1087 drivers/mmc/host/sdhci-omap.c 		mmc->caps2 |= MMC_CAP2_NO_WRITE_PROTECT;
mmc              1095 drivers/mmc/host/sdhci-omap.c 	ret = clk_set_rate(pltfm_host->clk, mmc->f_max);
mmc              1097 drivers/mmc/host/sdhci-omap.c 		dev_err(dev, "failed to set clock to %d\n", mmc->f_max);
mmc              1138 drivers/mmc/host/sdhci-omap.c 	mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
mmc               250 drivers/mmc/host/sdhci-pci-arasan.c 	if (arasan_host->chg_clk == host->mmc->ios.clock)
mmc               253 drivers/mmc/host/sdhci-pci-arasan.c 	arasan_host->chg_clk = host->mmc->ios.clock;
mmc               254 drivers/mmc/host/sdhci-pci-arasan.c 	if (host->mmc->ios.clock == 200000000)
mmc               256 drivers/mmc/host/sdhci-pci-arasan.c 	else if (host->mmc->ios.clock == 100000000)
mmc               258 drivers/mmc/host/sdhci-pci-arasan.c 	else if (host->mmc->ios.clock == 50000000)
mmc               267 drivers/mmc/host/sdhci-pci-arasan.c 		switch (host->mmc->ios.timing) {
mmc               280 drivers/mmc/host/sdhci-pci-arasan.c 				       host->mmc->ios.drv_type, 0x0,
mmc               290 drivers/mmc/host/sdhci-pci-arasan.c 				       host->mmc->ios.drv_type, 0xa,
mmc               304 drivers/mmc/host/sdhci-pci-arasan.c 	slot->host->mmc->caps |= MMC_CAP_NONREMOVABLE | MMC_CAP_8_BIT_DATA;
mmc                54 drivers/mmc/host/sdhci-pci-core.c 			pm_flags |= slot->host->mmc->pm_flags;
mmc                55 drivers/mmc/host/sdhci-pci-core.c 			if (slot->host->mmc->caps & MMC_CAP_CD_WAKE)
mmc                84 drivers/mmc/host/sdhci-pci-core.c 			mmc_retune_needed(host->mmc);
mmc                91 drivers/mmc/host/sdhci-pci-core.c 			mmc_gpio_set_cd_wake(host->mmc, true);
mmc               116 drivers/mmc/host/sdhci-pci-core.c 		mmc_gpio_set_cd_wake(slot->host->mmc, false);
mmc               126 drivers/mmc/host/sdhci-pci-core.c 	ret = cqhci_suspend(chip->slots[0]->host->mmc);
mmc               141 drivers/mmc/host/sdhci-pci-core.c 	return cqhci_resume(chip->slots[0]->host->mmc);
mmc               165 drivers/mmc/host/sdhci-pci-core.c 			mmc_retune_needed(host->mmc);
mmc               198 drivers/mmc/host/sdhci-pci-core.c 	ret = cqhci_suspend(chip->slots[0]->host->mmc);
mmc               213 drivers/mmc/host/sdhci-pci-core.c 	return cqhci_resume(chip->slots[0]->host->mmc);
mmc               225 drivers/mmc/host/sdhci-pci-core.c 	cqhci_irq(host->mmc, intmask, cmd_error, data_error);
mmc               230 drivers/mmc/host/sdhci-pci-core.c static void sdhci_pci_dumpregs(struct mmc_host *mmc)
mmc               232 drivers/mmc/host/sdhci-pci-core.c 	sdhci_dumpregs(mmc_priv(mmc));
mmc               318 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc               338 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc               349 drivers/mmc/host/sdhci-pci-core.c 	mmc_detect_change(host->mmc, msecs_to_jiffies(200));
mmc               411 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE;
mmc               412 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps2 |= MMC_CAP2_BOOTPART_NOACC;
mmc               418 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_POWER_OFF_CARD | MMC_CAP_NONREMOVABLE;
mmc               557 drivers/mmc/host/sdhci-pci-core.c 			   struct mmc_host *mmc)
mmc               567 drivers/mmc/host/sdhci-pci-core.c 			 mmc_hostname(mmc), err);
mmc               572 drivers/mmc/host/sdhci-pci-core.c 		 mmc_hostname(mmc), intel_host->dsm_fns);
mmc               610 drivers/mmc/host/sdhci-pci-core.c static int bxt_get_cd(struct mmc_host *mmc)
mmc               612 drivers/mmc/host/sdhci-pci-core.c 	int gpio_cd = mmc_gpio_get_cd(mmc);
mmc               613 drivers/mmc/host/sdhci-pci-core.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               663 drivers/mmc/host/sdhci-pci-core.c static void intel_hs400_enhanced_strobe(struct mmc_host *mmc,
mmc               666 drivers/mmc/host/sdhci-pci-core.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               677 drivers/mmc/host/sdhci-pci-core.c static int intel_start_signal_voltage_switch(struct mmc_host *mmc,
mmc               680 drivers/mmc/host/sdhci-pci-core.c 	struct device *dev = mmc_dev(mmc);
mmc               681 drivers/mmc/host/sdhci-pci-core.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               688 drivers/mmc/host/sdhci-pci-core.c 	err = sdhci_start_signal_voltage_switch(mmc, ios);
mmc               705 drivers/mmc/host/sdhci-pci-core.c 		 mmc_hostname(mmc), __func__, fn, err, result);
mmc               735 drivers/mmc/host/sdhci-pci-core.c 	struct mmc_host *mmc = slot->host->mmc;
mmc               737 drivers/mmc/host/sdhci-pci-core.c 	intel_dsm_init(intel_host, dev, mmc);
mmc               741 drivers/mmc/host/sdhci-pci-core.c static int intel_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               743 drivers/mmc/host/sdhci-pci-core.c 	int err = sdhci_execute_tuning(mmc, opcode);
mmc               744 drivers/mmc/host/sdhci-pci-core.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               763 drivers/mmc/host/sdhci-pci-core.c 	struct mmc_host *mmc = slot->host->mmc;
mmc               772 drivers/mmc/host/sdhci-pci-core.c 	device_property_read_u32(dev, "max-frequency", &mmc->f_max);
mmc               778 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE |
mmc               801 drivers/mmc/host/sdhci-pci-core.c 		slot->host->mmc->caps2 |= MMC_CAP2_CQE;
mmc               804 drivers/mmc/host/sdhci-pci-core.c 		slot->host->mmc->caps2 |= MMC_CAP2_HS400_ES,
mmc               807 drivers/mmc/host/sdhci-pci-core.c 		slot->host->mmc->caps2 |= MMC_CAP2_CQE_DCMD;
mmc               845 drivers/mmc/host/sdhci-pci-core.c 	ret = cqhci_init(cq_host, host->mmc, dma64);
mmc               875 drivers/mmc/host/sdhci-pci-core.c 	if (intel_host->rpm_retune_ok || !mmc_can_retune(host->mmc))
mmc               905 drivers/mmc/host/sdhci-pci-core.c 	mmc_retune_needed(host->mmc);
mmc               906 drivers/mmc/host/sdhci-pci-core.c 	pr_info("%s: Requiring re-tune after rpm resume", mmc_hostname(host->mmc));
mmc               945 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->f_max = max_freq * 1000000;
mmc               966 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_POWER_OFF_CARD | MMC_CAP_NONREMOVABLE |
mmc               974 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_POWER_OFF_CARD | MMC_CAP_NONREMOVABLE |
mmc               982 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY |
mmc               994 drivers/mmc/host/sdhci-pci-core.c 		slot->host->mmc->caps2 |= MMC_CAP2_AVOID_3_3V;
mmc              1144 drivers/mmc/host/sdhci-pci-core.c 		slot->host->mmc->caps |= MMC_CAP_NONREMOVABLE |
mmc              1154 drivers/mmc/host/sdhci-pci-core.c 		slot->host->mmc->caps |= MMC_CAP_NONREMOVABLE |
mmc              1311 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps |= MMC_CAP_BUS_WIDTH_TEST;
mmc              1457 drivers/mmc/host/sdhci-pci-core.c 	slot->host->mmc->caps2 |= MMC_CAP2_HS200;
mmc              1531 drivers/mmc/host/sdhci-pci-core.c 		if (mmc_send_tuning(host->mmc, opcode, NULL)) {
mmc              1551 drivers/mmc/host/sdhci-pci-core.c 	host->mmc->retune_period = 0;
mmc              1556 drivers/mmc/host/sdhci-pci-core.c static int amd_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc              1558 drivers/mmc/host/sdhci-pci-core.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              1565 drivers/mmc/host/sdhci-pci-core.c 	return sdhci_execute_tuning(mmc, opcode);
mmc              1627 drivers/mmc/host/sdhci-pci-core.c 		pr_debug("%s: power_state=%u\n", mmc_hostname(host->mmc),
mmc              1960 drivers/mmc/host/sdhci-pci-core.c 	ret = pcim_iomap_regions(pdev, BIT(bar), mmc_hostname(host->mmc));
mmc              1977 drivers/mmc/host/sdhci-pci-core.c 			slot->host->mmc->caps |= MMC_CAP_HW_RESET;
mmc              1985 drivers/mmc/host/sdhci-pci-core.c 	host->mmc->pm_caps = MMC_PM_KEEP_POWER;
mmc              1986 drivers/mmc/host/sdhci-pci-core.c 	host->mmc->slotno = slotno;
mmc              1987 drivers/mmc/host/sdhci-pci-core.c 	host->mmc->caps2 |= MMC_CAP2_NO_PRESCAN_POWERUP;
mmc              1990 drivers/mmc/host/sdhci-pci-core.c 		host->mmc->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
mmc              1992 drivers/mmc/host/sdhci-pci-core.c 	if (host->mmc->caps & MMC_CAP_CD_WAKE)
mmc              1996 drivers/mmc/host/sdhci-pci-core.c 		ret = mmc_gpiod_request_cd(host->mmc, "cd", slot->cd_idx,
mmc              1999 drivers/mmc/host/sdhci-pci-core.c 			ret = mmc_gpiod_request_cd(host->mmc, NULL,
mmc               246 drivers/mmc/host/sdhci-pci-gli.c 			mmc_hostname(host->mmc));
mmc               251 drivers/mmc/host/sdhci-pci-gli.c 		mmc_hostname(host->mmc));
mmc               259 drivers/mmc/host/sdhci-pci-gli.c 	host->mmc->retune_period = 0;
mmc               261 drivers/mmc/host/sdhci-pci-gli.c 		host->mmc->retune_period = host->tuning_count;
mmc               278 drivers/mmc/host/sdhci-pci-gli.c 		       mmc_hostname(slot->host->mmc), ret);
mmc               290 drivers/mmc/host/sdhci-pci-gli.c 	slot->host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
mmc               301 drivers/mmc/host/sdhci-pci-gli.c 	slot->host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
mmc                88 drivers/mmc/host/sdhci-pci-o2micro.c 			       mmc_hostname(host->mmc));
mmc               124 drivers/mmc/host/sdhci-pci-o2micro.c 			       mmc_hostname(host->mmc));
mmc               142 drivers/mmc/host/sdhci-pci-o2micro.c static int sdhci_o2_get_cd(struct mmc_host *mmc)
mmc               144 drivers/mmc/host/sdhci-pci-o2micro.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               210 drivers/mmc/host/sdhci-pci-o2micro.c 				mmc_hostname(host->mmc));
mmc               218 drivers/mmc/host/sdhci-pci-o2micro.c 		mmc_hostname(host->mmc));
mmc               264 drivers/mmc/host/sdhci-pci-o2micro.c 		if (sdhci_o2_get_cd(host->mmc)) {
mmc               277 drivers/mmc/host/sdhci-pci-o2micro.c 					mmc_hostname(host->mmc),
mmc               282 drivers/mmc/host/sdhci-pci-o2micro.c 				mmc_hostname(host->mmc));
mmc               290 drivers/mmc/host/sdhci-pci-o2micro.c 		mmc_hostname(host->mmc));
mmc               299 drivers/mmc/host/sdhci-pci-o2micro.c static int sdhci_o2_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               301 drivers/mmc/host/sdhci-pci-o2micro.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               309 drivers/mmc/host/sdhci-pci-o2micro.c 		return sdhci_execute_tuning(mmc, opcode);
mmc               320 drivers/mmc/host/sdhci-pci-o2micro.c 				mmc_hostname(host->mmc));
mmc               326 drivers/mmc/host/sdhci-pci-o2micro.c 	if (mmc->ios.bus_width == MMC_BUS_WIDTH_8) {
mmc               327 drivers/mmc/host/sdhci-pci-o2micro.c 		current_bus_width = mmc->ios.bus_width;
mmc               328 drivers/mmc/host/sdhci-pci-o2micro.c 		mmc->ios.bus_width = MMC_BUS_WIDTH_4;
mmc               341 drivers/mmc/host/sdhci-pci-o2micro.c 		mmc->ios.bus_width = MMC_BUS_WIDTH_8;
mmc               469 drivers/mmc/host/sdhci-pci-o2micro.c 			mmc_hostname(host->mmc));
mmc               477 drivers/mmc/host/sdhci-pci-o2micro.c 		       mmc_hostname(host->mmc), ret);
mmc               491 drivers/mmc/host/sdhci-pci-o2micro.c 	if (sdhci_o2_get_cd(host->mmc)) {
mmc               501 drivers/mmc/host/sdhci-pci-o2micro.c 	host->mmc->actual_clock = 0;
mmc               508 drivers/mmc/host/sdhci-pci-o2micro.c 	clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock);
mmc               531 drivers/mmc/host/sdhci-pci-o2micro.c 		host->mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc               552 drivers/mmc/host/sdhci-pci-o2micro.c 					mmc_hostname(host->mmc));
mmc               555 drivers/mmc/host/sdhci-pci-o2micro.c 				host->mmc->caps2 |= MMC_CAP2_NO_SD;
mmc               556 drivers/mmc/host/sdhci-pci-o2micro.c 				host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
mmc               192 drivers/mmc/host/sdhci-pic32.c 	ret = mmc_of_parse(host->mmc);
mmc               108 drivers/mmc/host/sdhci-pltfm.c 		host->mmc->pm_caps |= MMC_PM_KEEP_POWER;
mmc               112 drivers/mmc/host/sdhci-pltfm.c 		host->mmc->pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
mmc               216 drivers/mmc/host/sdhci-pltfm.c 		mmc_retune_needed(host->mmc);
mmc                46 drivers/mmc/host/sdhci-pxav2.c 	struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc));
mmc               196 drivers/mmc/host/sdhci-pxav2.c 			host->mmc->caps |= MMC_CAP_NONREMOVABLE;
mmc               201 drivers/mmc/host/sdhci-pxav2.c 			host->mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc               206 drivers/mmc/host/sdhci-pxav2.c 			host->mmc->caps |= pdata->host_caps;
mmc               208 drivers/mmc/host/sdhci-pxav2.c 			host->mmc->pm_caps |= pdata->pm_caps;
mmc               157 drivers/mmc/host/sdhci-pxav3.c 		host->mmc->caps &= ~MMC_CAP_1_8V_DDR;
mmc               168 drivers/mmc/host/sdhci-pxav3.c 	struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc));
mmc               201 drivers/mmc/host/sdhci-pxav3.c 		dev_dbg(mmc_dev(host->mmc),
mmc               230 drivers/mmc/host/sdhci-pxav3.c 			dev_warn(mmc_dev(host->mmc), "74 clock interrupt not cleared\n");
mmc               295 drivers/mmc/host/sdhci-pxav3.c 	dev_dbg(mmc_dev(host->mmc),
mmc               303 drivers/mmc/host/sdhci-pxav3.c 	struct mmc_host *mmc = host->mmc;
mmc               314 drivers/mmc/host/sdhci-pxav3.c 	if (!IS_ERR(mmc->supply.vmmc))
mmc               315 drivers/mmc/host/sdhci-pxav3.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc               405 drivers/mmc/host/sdhci-pxav3.c 	host->mmc->caps |= MMC_CAP_1_8V_DDR;
mmc               418 drivers/mmc/host/sdhci-pxav3.c 		ret = mmc_of_parse(host->mmc);
mmc               427 drivers/mmc/host/sdhci-pxav3.c 			host->mmc->caps |= MMC_CAP_NONREMOVABLE;
mmc               431 drivers/mmc/host/sdhci-pxav3.c 			host->mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc               438 drivers/mmc/host/sdhci-pxav3.c 			host->mmc->caps |= pdata->host_caps;
mmc               440 drivers/mmc/host/sdhci-pxav3.c 			host->mmc->caps2 |= pdata->host_caps2;
mmc               442 drivers/mmc/host/sdhci-pxav3.c 			host->mmc->pm_caps |= pdata->pm_caps;
mmc               456 drivers/mmc/host/sdhci-pxav3.c 	if (host->mmc->pm_caps & MMC_PM_WAKE_SDIO_IRQ)
mmc               503 drivers/mmc/host/sdhci-pxav3.c 		mmc_retune_needed(host->mmc);
mmc               538 drivers/mmc/host/sdhci-pxav3.c 		mmc_retune_needed(host->mmc);
mmc               231 drivers/mmc/host/sdhci-s3c.c 	host->mmc->actual_clock = 0;
mmc               372 drivers/mmc/host/sdhci-s3c.c 	host->mmc->actual_clock = 0;
mmc               390 drivers/mmc/host/sdhci-s3c.c 			mmc_hostname(host->mmc), clock);
mmc               403 drivers/mmc/host/sdhci-s3c.c 				mmc_hostname(host->mmc));
mmc               607 drivers/mmc/host/sdhci-s3c.c 		host->mmc->caps = MMC_CAP_NONREMOVABLE;
mmc               611 drivers/mmc/host/sdhci-s3c.c 		host->mmc->caps |= MMC_CAP_8_BIT_DATA;
mmc               614 drivers/mmc/host/sdhci-s3c.c 		host->mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc               619 drivers/mmc/host/sdhci-s3c.c 		host->mmc->pm_caps |= pdata->pm_caps;
mmc               639 drivers/mmc/host/sdhci-s3c.c 		host->mmc->caps |= pdata->host_caps;
mmc               642 drivers/mmc/host/sdhci-s3c.c 		host->mmc->caps2 |= pdata->host_caps2;
mmc               649 drivers/mmc/host/sdhci-s3c.c 	ret = mmc_of_parse(host->mmc);
mmc               705 drivers/mmc/host/sdhci-s3c.c 		mmc_retune_needed(host->mmc);
mmc               729 drivers/mmc/host/sdhci-s3c.c 		mmc_retune_needed(host->mmc);
mmc                45 drivers/mmc/host/sdhci-sirf.c 			(host->mmc->caps & MMC_CAP_UHS_SDR50))) {
mmc                82 drivers/mmc/host/sdhci-sirf.c 	struct mmc_host *mmc = host->mmc;
mmc                95 drivers/mmc/host/sdhci-sirf.c 		if (!mmc_send_tuning(mmc, opcode, NULL)) {
mmc                98 drivers/mmc/host/sdhci-sirf.c 			dev_dbg(mmc_dev(mmc), "%s: Found good phase = %d\n",
mmc                99 drivers/mmc/host/sdhci-sirf.c 				 mmc_hostname(mmc), phase);
mmc               108 drivers/mmc/host/sdhci-sirf.c 			dev_dbg(mmc_dev(mmc), "%s: Found bad phase = %d\n",
mmc               109 drivers/mmc/host/sdhci-sirf.c 				 mmc_hostname(mmc), phase);
mmc               129 drivers/mmc/host/sdhci-sirf.c 		dev_dbg(mmc_dev(mmc), "%s: Setting the tuning phase to %d\n",
mmc               130 drivers/mmc/host/sdhci-sirf.c 			 mmc_hostname(mmc), phase);
mmc               135 drivers/mmc/host/sdhci-sirf.c 		dev_dbg(mmc_dev(mmc), "%s: No tuning point found\n",
mmc               136 drivers/mmc/host/sdhci-sirf.c 		       mmc_hostname(mmc));
mmc               197 drivers/mmc/host/sdhci-sirf.c 	ret = mmc_gpiod_request_cd(host->mmc, "cd", 0, false, 0, NULL);
mmc               201 drivers/mmc/host/sdhci-sirf.c 		mmc_gpiod_request_cd_irq(host->mmc);
mmc               101 drivers/mmc/host/sdhci-spear.c 	ret = mmc_gpiod_request_cd(host->mmc, "cd", 0, false, 0, NULL);
mmc               148 drivers/mmc/host/sdhci-spear.c 		mmc_retune_needed(host->mmc);
mmc               305 drivers/mmc/host/sdhci-sprd.c 	struct mmc_host *mmc = host->mmc;
mmc               346 drivers/mmc/host/sdhci-sprd.c 	if (!mmc->ios.enhanced_strobe)
mmc               397 drivers/mmc/host/sdhci-sprd.c static void sdhci_sprd_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               399 drivers/mmc/host/sdhci-sprd.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               414 drivers/mmc/host/sdhci-sprd.c 	sdhci_request(mmc, mrq);
mmc               417 drivers/mmc/host/sdhci-sprd.c static int sdhci_sprd_voltage_switch(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               419 drivers/mmc/host/sdhci-sprd.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               423 drivers/mmc/host/sdhci-sprd.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc               424 drivers/mmc/host/sdhci-sprd.c 		ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc               427 drivers/mmc/host/sdhci-sprd.c 			       mmc_hostname(mmc));
mmc               441 drivers/mmc/host/sdhci-sprd.c 			       mmc_hostname(mmc));
mmc               453 drivers/mmc/host/sdhci-sprd.c 			       mmc_hostname(mmc));
mmc               466 drivers/mmc/host/sdhci-sprd.c static void sdhci_sprd_hs400_enhanced_strobe(struct mmc_host *mmc,
mmc               469 drivers/mmc/host/sdhci-sprd.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               545 drivers/mmc/host/sdhci-sprd.c 	host->mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
mmc               547 drivers/mmc/host/sdhci-sprd.c 	ret = mmc_of_parse(host->mmc);
mmc               668 drivers/mmc/host/sdhci-sprd.c 	struct mmc_host *mmc = host->mmc;
mmc               670 drivers/mmc/host/sdhci-sprd.c 	mmc_remove_host(mmc);
mmc               675 drivers/mmc/host/sdhci-sprd.c 	mmc_free_host(mmc);
mmc               145 drivers/mmc/host/sdhci-st.c 	struct mmc_host *mhost = host->mmc;
mmc               299 drivers/mmc/host/sdhci-st.c 		dev_warn(mmc_dev(host->mmc), "Error setting dll for clock "
mmc               302 drivers/mmc/host/sdhci-st.c 	dev_dbg(mmc_dev(host->mmc), "uhs %d, ctrl_2 %04X\n", uhs, ctrl_2);
mmc               382 drivers/mmc/host/sdhci-st.c 	ret = mmc_of_parse(host->mmc);
mmc               468 drivers/mmc/host/sdhci-st.c 		mmc_retune_needed(host->mmc);
mmc               270 drivers/mmc/host/sdhci-tegra.c 	return mmc_gpio_get_ro(host->mmc);
mmc               290 drivers/mmc/host/sdhci-tegra.c 	if (IS_ERR(host->mmc->supply.vqmmc))
mmc               293 drivers/mmc/host/sdhci-tegra.c 	has_1v8 = regulator_is_supported_voltage(host->mmc->supply.vqmmc,
mmc               296 drivers/mmc/host/sdhci-tegra.c 	has_3v3 = regulator_is_supported_voltage(host->mmc->supply.vqmmc,
mmc               336 drivers/mmc/host/sdhci-tegra.c static void tegra_sdhci_hs400_enhanced_strobe(struct mmc_host *mmc,
mmc               339 drivers/mmc/host/sdhci-tegra.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               478 drivers/mmc/host/sdhci-tegra.c 				dev_err(mmc_dev(host->mmc),
mmc               498 drivers/mmc/host/sdhci-tegra.c 				dev_err(mmc_dev(host->mmc),
mmc               504 drivers/mmc/host/sdhci-tegra.c 				dev_err(mmc_dev(host->mmc),
mmc               518 drivers/mmc/host/sdhci-tegra.c 	struct mmc_ios *ios = &host->mmc->ios;
mmc               560 drivers/mmc/host/sdhci-tegra.c 		dev_err(mmc_dev(host->mmc), "Pad autocal timed out\n");
mmc               569 drivers/mmc/host/sdhci-tegra.c 			dev_err(mmc_dev(host->mmc),
mmc               582 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               588 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               594 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               600 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               606 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               613 drivers/mmc/host/sdhci-tegra.c 				mmc_hostname(host->mmc));
mmc               617 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               624 drivers/mmc/host/sdhci-tegra.c 				mmc_hostname(host->mmc));
mmc               628 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               635 drivers/mmc/host/sdhci-tegra.c 				mmc_hostname(host->mmc));
mmc               639 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               646 drivers/mmc/host/sdhci-tegra.c 				mmc_hostname(host->mmc));
mmc               650 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               656 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               662 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               668 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent,
mmc               675 drivers/mmc/host/sdhci-tegra.c static void tegra_sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               677 drivers/mmc/host/sdhci-tegra.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               688 drivers/mmc/host/sdhci-tegra.c 	sdhci_request(mmc, mrq);
mmc               697 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent, "nvidia,default-tap",
mmc               702 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent, "nvidia,default-trim",
mmc               707 drivers/mmc/host/sdhci-tegra.c 	err = device_property_read_u32(host->mmc->parent, "nvidia,dqs-trim",
mmc               718 drivers/mmc/host/sdhci-tegra.c 	if (device_property_read_bool(host->mmc->parent, "supports-cqe"))
mmc               795 drivers/mmc/host/sdhci-tegra.c 		dev_err(mmc_dev(host->mmc),
mmc               931 drivers/mmc/host/sdhci-tegra.c 				 mmc_hostname(host->mmc));
mmc               940 drivers/mmc/host/sdhci-tegra.c static int tegra_sdhci_execute_hw_tuning(struct mmc_host *mmc, u32 opcode)
mmc               942 drivers/mmc/host/sdhci-tegra.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               945 drivers/mmc/host/sdhci-tegra.c 	err = sdhci_execute_tuning(mmc, opcode);
mmc              1027 drivers/mmc/host/sdhci-tegra.c 		if (!mmc_send_tuning(host->mmc, opcode, NULL))
mmc              1036 drivers/mmc/host/sdhci-tegra.c 		if (mmc_send_tuning(host->mmc, opcode, NULL)) {
mmc              1046 drivers/mmc/host/sdhci-tegra.c 	return mmc_send_tuning(host->mmc, opcode, NULL);
mmc              1049 drivers/mmc/host/sdhci-tegra.c static int sdhci_tegra_start_signal_voltage_switch(struct mmc_host *mmc,
mmc              1052 drivers/mmc/host/sdhci-tegra.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              1061 drivers/mmc/host/sdhci-tegra.c 		ret = sdhci_start_signal_voltage_switch(mmc, ios);
mmc              1063 drivers/mmc/host/sdhci-tegra.c 		ret = sdhci_start_signal_voltage_switch(mmc, ios);
mmc              1132 drivers/mmc/host/sdhci-tegra.c 	struct mmc_host *mmc = cq_host->mmc;
mmc              1147 drivers/mmc/host/sdhci-tegra.c 		sdhci_cqe_enable(mmc);
mmc              1167 drivers/mmc/host/sdhci-tegra.c static void sdhci_tegra_update_dcmd_desc(struct mmc_host *mmc,
mmc              1170 drivers/mmc/host/sdhci-tegra.c 	struct sdhci_pltfm_host *pltfm_host = sdhci_priv(mmc_priv(mmc));
mmc              1179 drivers/mmc/host/sdhci-tegra.c static void sdhci_tegra_cqe_enable(struct mmc_host *mmc)
mmc              1181 drivers/mmc/host/sdhci-tegra.c 	struct cqhci_host *cq_host = mmc->cqe_private;
mmc              1195 drivers/mmc/host/sdhci-tegra.c 		sdhci_cqe_enable(mmc);
mmc              1212 drivers/mmc/host/sdhci-tegra.c static void sdhci_tegra_dumpregs(struct mmc_host *mmc)
mmc              1214 drivers/mmc/host/sdhci-tegra.c 	sdhci_dumpregs(mmc_priv(mmc));
mmc              1225 drivers/mmc/host/sdhci-tegra.c 	cqhci_irq(host->mmc, intmask, cmd_error, data_error);
mmc              1243 drivers/mmc/host/sdhci-tegra.c 	struct device *dev = mmc_dev(host->mmc);
mmc              1473 drivers/mmc/host/sdhci-tegra.c 	host->mmc->caps2 |= MMC_CAP2_CQE | MMC_CAP2_CQE_DCMD;
mmc              1475 drivers/mmc/host/sdhci-tegra.c 	cq_host = devm_kzalloc(host->mmc->parent,
mmc              1489 drivers/mmc/host/sdhci-tegra.c 	ret = cqhci_init(cq_host, host->mmc, dma64);
mmc              1548 drivers/mmc/host/sdhci-tegra.c 	rc = mmc_of_parse(host->mmc);
mmc              1553 drivers/mmc/host/sdhci-tegra.c 		host->mmc->caps |= MMC_CAP_1_8V_DDR;
mmc              1556 drivers/mmc/host/sdhci-tegra.c 	host->mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
mmc              1567 drivers/mmc/host/sdhci-tegra.c 	clk = devm_clk_get(mmc_dev(host->mmc), NULL);
mmc              1640 drivers/mmc/host/sdhci-tegra.c 	if (host->mmc->caps2 & MMC_CAP2_CQE) {
mmc              1641 drivers/mmc/host/sdhci-tegra.c 		ret = cqhci_suspend(host->mmc);
mmc              1648 drivers/mmc/host/sdhci-tegra.c 		cqhci_resume(host->mmc);
mmc              1670 drivers/mmc/host/sdhci-tegra.c 	if (host->mmc->caps2 & MMC_CAP2_CQE) {
mmc              1671 drivers/mmc/host/sdhci-tegra.c 		ret = cqhci_resume(host->mmc);
mmc               206 drivers/mmc/host/sdhci-xenon-phy.c 	params = devm_kzalloc(mmc_dev(host->mmc), sizeof(*params), GFP_KERNEL);
mmc               268 drivers/mmc/host/sdhci-xenon-phy.c 		dev_err(mmc_dev(host->mmc), "eMMC PHY init cannot complete after %d us\n",
mmc               364 drivers/mmc/host/sdhci-xenon-phy.c 			dev_err(mmc_dev(host->mmc), "Wait for DLL Lock time-out\n");
mmc               395 drivers/mmc/host/sdhci-xenon-phy.c 		dev_warn(mmc_dev(host->mmc),
mmc               449 drivers/mmc/host/sdhci-xenon-phy.c 	dev_dbg(mmc_dev(host->mmc), "starts HS400 strobe delay adjustment\n");
mmc               463 drivers/mmc/host/sdhci-xenon-phy.c 	if (host->mmc->ios.enhanced_strobe)
mmc               553 drivers/mmc/host/sdhci-xenon-phy.c 	dev_dbg(mmc_dev(host->mmc), "eMMC PHY setting starts\n");
mmc               647 drivers/mmc/host/sdhci-xenon-phy.c 	dev_dbg(mmc_dev(host->mmc), "eMMC PHY setting completes\n");
mmc               664 drivers/mmc/host/sdhci-xenon-phy.c 		dev_err(mmc_dev(host->mmc), "Unable to find SoC PAD ctrl register address for %pOFn\n",
mmc               669 drivers/mmc/host/sdhci-xenon-phy.c 	params->pad_ctrl.reg = devm_ioremap_resource(mmc_dev(host->mmc),
mmc               676 drivers/mmc/host/sdhci-xenon-phy.c 		dev_err(mmc_dev(host->mmc), "Unable to determine SoC PHY PAD ctrl type\n");
mmc               684 drivers/mmc/host/sdhci-xenon-phy.c 		dev_err(mmc_dev(host->mmc), "Unsupported SoC PHY PAD ctrl type %s\n",
mmc               762 drivers/mmc/host/sdhci-xenon-phy.c 		dev_warn_once(mmc_dev(host->mmc), "Timing issue might occur in DDR mode\n");
mmc               823 drivers/mmc/host/sdhci-xenon-phy.c 		dev_err(mmc_dev(host->mmc),
mmc                41 drivers/mmc/host/sdhci-xenon.c 			dev_err(mmc_dev(host->mmc), "Internal clock never stabilised.\n");
mmc                91 drivers/mmc/host/sdhci-xenon.c 	host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
mmc                96 drivers/mmc/host/sdhci-xenon.c 	host->mmc->caps &= ~MMC_CAP_BUS_WIDTH_TEST;
mmc               219 drivers/mmc/host/sdhci-xenon.c 	struct mmc_host *mmc = host->mmc;
mmc               230 drivers/mmc/host/sdhci-xenon.c 	if (!IS_ERR(mmc->supply.vmmc))
mmc               231 drivers/mmc/host/sdhci-xenon.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc               270 drivers/mmc/host/sdhci-xenon.c static void xenon_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               272 drivers/mmc/host/sdhci-xenon.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               298 drivers/mmc/host/sdhci-xenon.c 	sdhci_set_ios(mmc, ios);
mmc               305 drivers/mmc/host/sdhci-xenon.c static int xenon_start_signal_voltage_switch(struct mmc_host *mmc,
mmc               308 drivers/mmc/host/sdhci-xenon.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               329 drivers/mmc/host/sdhci-xenon.c 	if (PTR_ERR(mmc->supply.vqmmc) == -ENODEV)
mmc               332 drivers/mmc/host/sdhci-xenon.c 	return sdhci_start_signal_voltage_switch(mmc, ios);
mmc               339 drivers/mmc/host/sdhci-xenon.c static void xenon_init_card(struct mmc_host *mmc, struct mmc_card *card)
mmc               341 drivers/mmc/host/sdhci-xenon.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               349 drivers/mmc/host/sdhci-xenon.c static int xenon_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               351 drivers/mmc/host/sdhci-xenon.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               365 drivers/mmc/host/sdhci-xenon.c 	return sdhci_execute_tuning(mmc, opcode);
mmc               368 drivers/mmc/host/sdhci-xenon.c static void xenon_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               370 drivers/mmc/host/sdhci-xenon.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               376 drivers/mmc/host/sdhci-xenon.c 	sdhci_enable_sdio_irq(mmc, enable);
mmc               414 drivers/mmc/host/sdhci-xenon.c 	struct mmc_host *mmc = host->mmc;
mmc               429 drivers/mmc/host/sdhci-xenon.c 			dev_err(mmc_dev(mmc), "SDHC Index %d exceeds Number of SDHCs %d\n",
mmc               440 drivers/mmc/host/sdhci-xenon.c 			dev_err(mmc_dev(mmc), "Wrong Re-tuning Count. Set default value %d\n",
mmc               525 drivers/mmc/host/sdhci-xenon.c 	err = mmc_of_parse(host->mmc);
mmc               619 drivers/mmc/host/sdhci-xenon.c 		mmc_retune_needed(host->mmc);
mmc                39 drivers/mmc/host/sdhci.c 	pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
mmc                42 drivers/mmc/host/sdhci.c 	pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x)
mmc               155 drivers/mmc/host/sdhci.c 	    !mmc_card_is_removable(host->mmc))
mmc               187 drivers/mmc/host/sdhci.c 	pm_runtime_get_noresume(host->mmc->parent);
mmc               195 drivers/mmc/host/sdhci.c 	pm_runtime_put_noidle(host->mmc->parent);
mmc               222 drivers/mmc/host/sdhci.c 				mmc_hostname(host->mmc), (int)mask);
mmc               234 drivers/mmc/host/sdhci.c 		struct mmc_host *mmc = host->mmc;
mmc               236 drivers/mmc/host/sdhci.c 		if (!mmc->ops->get_cd(mmc))
mmc               317 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc               334 drivers/mmc/host/sdhci.c 		mmc->ops->set_ios(mmc, &mmc->ios);
mmc               390 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc               396 drivers/mmc/host/sdhci.c 		 "%s::", mmc_hostname(mmc));
mmc               400 drivers/mmc/host/sdhci.c 	host->led.default_trigger = mmc_hostname(mmc);
mmc               403 drivers/mmc/host/sdhci.c 	return led_classdev_register(mmc_dev(mmc), &host->led);
mmc               618 drivers/mmc/host/sdhci.c 			       mmc_hostname(host->mmc), length,
mmc               629 drivers/mmc/host/sdhci.c 		dma_sync_single_for_device(host->mmc->parent,
mmc               637 drivers/mmc/host/sdhci.c 		sg_count = dma_map_sg(mmc_dev(host->mmc),
mmc               798 drivers/mmc/host/sdhci.c 			dma_sync_sg_for_cpu(mmc_dev(host->mmc), data->sg,
mmc               875 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc               876 drivers/mmc/host/sdhci.c 	struct mmc_ios *ios = &mmc->ios;
mmc               888 drivers/mmc/host/sdhci.c 		freq = host->mmc->actual_clock ? : host->clock;
mmc              1036 drivers/mmc/host/sdhci.c 	BUG_ON(data->blksz > host->mmc->max_blk_size);
mmc              1374 drivers/mmc/host/sdhci.c 			       mmc_hostname(host->mmc));
mmc              1398 drivers/mmc/host/sdhci.c 			mmc_hostname(host->mmc));
mmc              1471 drivers/mmc/host/sdhci.c 		mmc_command_done(host->mmc, cmd->mrq);
mmc              1534 drivers/mmc/host/sdhci.c 			mmc_hostname(host->mmc));
mmc              1651 drivers/mmc/host/sdhci.c 			       mmc_hostname(host->mmc));
mmc              1673 drivers/mmc/host/sdhci.c 				       mmc_hostname(host->mmc));
mmc              1690 drivers/mmc/host/sdhci.c 	host->mmc->actual_clock = 0;
mmc              1697 drivers/mmc/host/sdhci.c 	clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock);
mmc              1705 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              1707 drivers/mmc/host/sdhci.c 	mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc              1742 drivers/mmc/host/sdhci.c 			     mmc_hostname(host->mmc), vdd);
mmc              1792 drivers/mmc/host/sdhci.c 	if (IS_ERR(host->mmc->supply.vmmc))
mmc              1805 drivers/mmc/host/sdhci.c void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1811 drivers/mmc/host/sdhci.c 	host = mmc_priv(mmc);
mmc              1814 drivers/mmc/host/sdhci.c 	present = mmc->ops->get_cd(mmc);
mmc              1854 drivers/mmc/host/sdhci.c 		if (host->mmc->caps & MMC_CAP_8_BIT_DATA)
mmc              1890 drivers/mmc/host/sdhci.c void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1892 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              1899 drivers/mmc/host/sdhci.c 		if (!IS_ERR(mmc->supply.vmmc) &&
mmc              1901 drivers/mmc/host/sdhci.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc              1925 drivers/mmc/host/sdhci.c 			host->timeout_clk = host->mmc->actual_clock ?
mmc              1926 drivers/mmc/host/sdhci.c 						host->mmc->actual_clock / 1000 :
mmc              1928 drivers/mmc/host/sdhci.c 			host->mmc->max_busy_timeout =
mmc              1932 drivers/mmc/host/sdhci.c 			host->mmc->max_busy_timeout /= host->timeout_clk;
mmc              1984 drivers/mmc/host/sdhci.c 					mmc_hostname(mmc));
mmc              2046 drivers/mmc/host/sdhci.c static int sdhci_get_cd(struct mmc_host *mmc)
mmc              2048 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2049 drivers/mmc/host/sdhci.c 	int gpio_cd = mmc_gpio_get_cd(mmc);
mmc              2055 drivers/mmc/host/sdhci.c 	if (!mmc_card_is_removable(host->mmc))
mmc              2084 drivers/mmc/host/sdhci.c 	else if (mmc_can_gpio_ro(host->mmc))
mmc              2085 drivers/mmc/host/sdhci.c 		is_readonly = mmc_gpio_get_ro(host->mmc);
mmc              2099 drivers/mmc/host/sdhci.c static int sdhci_get_ro(struct mmc_host *mmc)
mmc              2101 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2118 drivers/mmc/host/sdhci.c static void sdhci_hw_reset(struct mmc_host *mmc)
mmc              2120 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2139 drivers/mmc/host/sdhci.c void sdhci_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc              2141 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2145 drivers/mmc/host/sdhci.c 		pm_runtime_get_noresume(host->mmc->parent);
mmc              2152 drivers/mmc/host/sdhci.c 		pm_runtime_put_noidle(host->mmc->parent);
mmc              2156 drivers/mmc/host/sdhci.c static void sdhci_ack_sdio_irq(struct mmc_host *mmc)
mmc              2158 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2166 drivers/mmc/host/sdhci.c int sdhci_start_signal_voltage_switch(struct mmc_host *mmc,
mmc              2169 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2190 drivers/mmc/host/sdhci.c 		if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              2191 drivers/mmc/host/sdhci.c 			ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc              2194 drivers/mmc/host/sdhci.c 					mmc_hostname(mmc));
mmc              2207 drivers/mmc/host/sdhci.c 			mmc_hostname(mmc));
mmc              2213 drivers/mmc/host/sdhci.c 		if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              2214 drivers/mmc/host/sdhci.c 			ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc              2217 drivers/mmc/host/sdhci.c 					mmc_hostname(mmc));
mmc              2239 drivers/mmc/host/sdhci.c 			mmc_hostname(mmc));
mmc              2245 drivers/mmc/host/sdhci.c 		if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              2246 drivers/mmc/host/sdhci.c 			ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc              2249 drivers/mmc/host/sdhci.c 					mmc_hostname(mmc));
mmc              2261 drivers/mmc/host/sdhci.c static int sdhci_card_busy(struct mmc_host *mmc)
mmc              2263 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2272 drivers/mmc/host/sdhci.c static int sdhci_prepare_hs400_tuning(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              2274 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2336 drivers/mmc/host/sdhci.c 	mmc_abort_tuning(host->mmc, opcode);
mmc              2349 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              2368 drivers/mmc/host/sdhci.c 	    mmc->ios.bus_width == MMC_BUS_WIDTH_8)
mmc              2413 drivers/mmc/host/sdhci.c 				 mmc_hostname(host->mmc));
mmc              2432 drivers/mmc/host/sdhci.c 		mmc_hostname(host->mmc));
mmc              2437 drivers/mmc/host/sdhci.c int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc              2439 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2489 drivers/mmc/host/sdhci.c 	host->mmc->retune_period = tuning_count;
mmc              2535 drivers/mmc/host/sdhci.c static void sdhci_post_req(struct mmc_host *mmc, struct mmc_request *mrq,
mmc              2538 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2542 drivers/mmc/host/sdhci.c 		dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc              2548 drivers/mmc/host/sdhci.c static void sdhci_pre_req(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              2550 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2576 drivers/mmc/host/sdhci.c static void sdhci_card_event(struct mmc_host *mmc)
mmc              2578 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              2586 drivers/mmc/host/sdhci.c 	present = mmc->ops->get_cd(mmc);
mmc              2593 drivers/mmc/host/sdhci.c 			mmc_hostname(host->mmc));
mmc              2595 drivers/mmc/host/sdhci.c 			mmc_hostname(host->mmc));
mmc              2667 drivers/mmc/host/sdhci.c 						       mmc_hostname(host->mmc),
mmc              2674 drivers/mmc/host/sdhci.c 						host->mmc->parent,
mmc              2685 drivers/mmc/host/sdhci.c 						host->mmc->parent,
mmc              2692 drivers/mmc/host/sdhci.c 				dma_unmap_sg(mmc_dev(host->mmc), data->sg,
mmc              2733 drivers/mmc/host/sdhci.c 	mmc_request_done(host->mmc, mrq);
mmc              2758 drivers/mmc/host/sdhci.c 		       mmc_hostname(host->mmc));
mmc              2780 drivers/mmc/host/sdhci.c 		       mmc_hostname(host->mmc));
mmc              2831 drivers/mmc/host/sdhci.c 		       mmc_hostname(host->mmc), (unsigned)intmask);
mmc              2961 drivers/mmc/host/sdhci.c 		       mmc_hostname(host->mmc), (unsigned)intmask);
mmc              2976 drivers/mmc/host/sdhci.c 		pr_err("%s: ADMA error: 0x%08x\n", mmc_hostname(host->mmc),
mmc              3115 drivers/mmc/host/sdhci.c 				mmc_hostname(host->mmc));
mmc              3118 drivers/mmc/host/sdhci.c 			mmc_retune_needed(host->mmc);
mmc              3123 drivers/mmc/host/sdhci.c 			sdio_signal_irq(host->mmc);
mmc              3162 drivers/mmc/host/sdhci.c 			mmc_request_done(host->mmc, mrqs_done[i]);
mmc              3167 drivers/mmc/host/sdhci.c 			   mmc_hostname(host->mmc), unexpected);
mmc              3189 drivers/mmc/host/sdhci.c 		struct mmc_host *mmc = host->mmc;
mmc              3191 drivers/mmc/host/sdhci.c 		mmc->ops->card_event(mmc);
mmc              3192 drivers/mmc/host/sdhci.c 		mmc_detect_change(mmc, msecs_to_jiffies(200));
mmc              3208 drivers/mmc/host/sdhci.c 	return mmc_card_is_removable(host->mmc) &&
mmc              3210 drivers/mmc/host/sdhci.c 	       !mmc_can_gpio_cd(host->mmc);
mmc              3234 drivers/mmc/host/sdhci.c 	if (mmc_card_wake_sdio_irq(host->mmc)) {
mmc              3273 drivers/mmc/host/sdhci.c 	mmc_retune_timer_stop(host->mmc);
mmc              3275 drivers/mmc/host/sdhci.c 	if (!device_may_wakeup(mmc_dev(host->mmc)) ||
mmc              3290 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              3298 drivers/mmc/host/sdhci.c 	if ((host->mmc->pm_flags & MMC_PM_KEEP_POWER) &&
mmc              3304 drivers/mmc/host/sdhci.c 		mmc->ops->set_ios(mmc, &mmc->ios);
mmc              3306 drivers/mmc/host/sdhci.c 		sdhci_init(host, (host->mmc->pm_flags & MMC_PM_KEEP_POWER));
mmc              3314 drivers/mmc/host/sdhci.c 					   mmc_hostname(host->mmc), host);
mmc              3330 drivers/mmc/host/sdhci.c 	mmc_retune_timer_stop(host->mmc);
mmc              3350 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              3361 drivers/mmc/host/sdhci.c 	if (mmc->ios.power_mode != MMC_POWER_UNDEFINED &&
mmc              3362 drivers/mmc/host/sdhci.c 	    mmc->ios.power_mode != MMC_POWER_OFF) {
mmc              3366 drivers/mmc/host/sdhci.c 		mmc->ops->start_signal_voltage_switch(mmc, &mmc->ios);
mmc              3367 drivers/mmc/host/sdhci.c 		mmc->ops->set_ios(mmc, &mmc->ios);
mmc              3376 drivers/mmc/host/sdhci.c 		if ((mmc->caps2 & MMC_CAP2_HS400_ES) &&
mmc              3377 drivers/mmc/host/sdhci.c 		    mmc->ops->hs400_enhanced_strobe)
mmc              3378 drivers/mmc/host/sdhci.c 			mmc->ops->hs400_enhanced_strobe(mmc, &mmc->ios);
mmc              3386 drivers/mmc/host/sdhci.c 	if (sdio_irq_claimed(mmc))
mmc              3406 drivers/mmc/host/sdhci.c void sdhci_cqe_enable(struct mmc_host *mmc)
mmc              3408 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              3443 drivers/mmc/host/sdhci.c 		 mmc_hostname(mmc), host->ier,
mmc              3450 drivers/mmc/host/sdhci.c void sdhci_cqe_disable(struct mmc_host *mmc, bool recovery)
mmc              3452 drivers/mmc/host/sdhci.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc              3467 drivers/mmc/host/sdhci.c 		 mmc_hostname(mmc), host->ier,
mmc              3504 drivers/mmc/host/sdhci.c 		       mmc_hostname(host->mmc));
mmc              3510 drivers/mmc/host/sdhci.c 		       mmc_hostname(host->mmc), intmask);
mmc              3527 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc;
mmc              3532 drivers/mmc/host/sdhci.c 	mmc = mmc_alloc_host(sizeof(struct sdhci_host) + priv_size, dev);
mmc              3533 drivers/mmc/host/sdhci.c 	if (!mmc)
mmc              3536 drivers/mmc/host/sdhci.c 	host = mmc_priv(mmc);
mmc              3537 drivers/mmc/host/sdhci.c 	host->mmc = mmc;
mmc              3539 drivers/mmc/host/sdhci.c 	mmc->ops = &host->mmc_host_ops;
mmc              3565 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              3566 drivers/mmc/host/sdhci.c 	struct device *dev = mmc_dev(mmc);
mmc              3577 drivers/mmc/host/sdhci.c 				mmc_hostname(mmc));
mmc              3587 drivers/mmc/host/sdhci.c 				mmc_hostname(mmc));
mmc              3616 drivers/mmc/host/sdhci.c 	of_property_read_u64(mmc_dev(host->mmc)->of_node,
mmc              3618 drivers/mmc/host/sdhci.c 	of_property_read_u64(mmc_dev(host->mmc)->of_node,
mmc              3650 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              3666 drivers/mmc/host/sdhci.c 	if (mmc->max_req_size < bounce_size)
mmc              3667 drivers/mmc/host/sdhci.c 		bounce_size = mmc->max_req_size;
mmc              3675 drivers/mmc/host/sdhci.c 	host->bounce_buffer = devm_kmalloc(mmc->parent,
mmc              3680 drivers/mmc/host/sdhci.c 		       mmc_hostname(mmc),
mmc              3689 drivers/mmc/host/sdhci.c 	host->bounce_addr = dma_map_single(mmc->parent,
mmc              3693 drivers/mmc/host/sdhci.c 	ret = dma_mapping_error(mmc->parent, host->bounce_addr);
mmc              3700 drivers/mmc/host/sdhci.c 	mmc->max_segs = max_blocks;
mmc              3701 drivers/mmc/host/sdhci.c 	mmc->max_seg_size = bounce_size;
mmc              3702 drivers/mmc/host/sdhci.c 	mmc->max_req_size = bounce_size;
mmc              3705 drivers/mmc/host/sdhci.c 		mmc_hostname(mmc), max_blocks, bounce_size);
mmc              3723 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc;
mmc              3734 drivers/mmc/host/sdhci.c 	mmc = host->mmc;
mmc              3742 drivers/mmc/host/sdhci.c 	ret = mmc_regulator_get_supply(mmc);
mmc              3759 drivers/mmc/host/sdhci.c 		       mmc_hostname(mmc), host->version);
mmc              3763 drivers/mmc/host/sdhci.c 		mmc->caps2 &= ~MMC_CAP2_CQE;
mmc              3802 drivers/mmc/host/sdhci.c 				mmc_hostname(mmc));
mmc              3832 drivers/mmc/host/sdhci.c 		buf = dma_alloc_coherent(mmc_dev(mmc),
mmc              3837 drivers/mmc/host/sdhci.c 				mmc_hostname(mmc));
mmc              3842 drivers/mmc/host/sdhci.c 				mmc_hostname(mmc));
mmc              3844 drivers/mmc/host/sdhci.c 			dma_free_coherent(mmc_dev(mmc), host->align_buffer_sz +
mmc              3862 drivers/mmc/host/sdhci.c 		mmc_dev(mmc)->dma_mask = &host->dma_mask;
mmc              3877 drivers/mmc/host/sdhci.c 			       mmc_hostname(mmc));
mmc              3906 drivers/mmc/host/sdhci.c 		mmc->f_min = host->ops->get_min_clock(host);
mmc              3914 drivers/mmc/host/sdhci.c 		mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300;
mmc              3916 drivers/mmc/host/sdhci.c 		mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_200;
mmc              3918 drivers/mmc/host/sdhci.c 	if (!mmc->f_max || mmc->f_max > max_clk)
mmc              3919 drivers/mmc/host/sdhci.c 		mmc->f_max = max_clk;
mmc              3931 drivers/mmc/host/sdhci.c 					mmc_hostname(mmc));
mmc              3944 drivers/mmc/host/sdhci.c 		mmc->max_busy_timeout = host->ops->get_max_timeout_count ?
mmc              3946 drivers/mmc/host/sdhci.c 		mmc->max_busy_timeout /= host->timeout_clk;
mmc              3951 drivers/mmc/host/sdhci.c 		mmc->max_busy_timeout = 0;
mmc              3953 drivers/mmc/host/sdhci.c 	mmc->caps |= MMC_CAP_SDIO_IRQ | MMC_CAP_ERASE | MMC_CAP_CMD23;
mmc              3954 drivers/mmc/host/sdhci.c 	mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD;
mmc              3981 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc              3984 drivers/mmc/host/sdhci.c 		mmc->caps &= ~MMC_CAP_CMD23;
mmc              3987 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
mmc              3990 drivers/mmc/host/sdhci.c 	    mmc_card_is_removable(mmc) &&
mmc              3991 drivers/mmc/host/sdhci.c 	    mmc_gpio_get_cd(host->mmc) < 0)
mmc              3992 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              3994 drivers/mmc/host/sdhci.c 	if (!IS_ERR(mmc->supply.vqmmc)) {
mmc              3995 drivers/mmc/host/sdhci.c 		ret = regulator_enable(mmc->supply.vqmmc);
mmc              3998 drivers/mmc/host/sdhci.c 		if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 1700000,
mmc              4005 drivers/mmc/host/sdhci.c 		if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 2700000,
mmc              4011 drivers/mmc/host/sdhci.c 				mmc_hostname(mmc), ret);
mmc              4012 drivers/mmc/host/sdhci.c 			mmc->supply.vqmmc = ERR_PTR(-EINVAL);
mmc              4027 drivers/mmc/host/sdhci.c 		mmc->caps2 &= ~(MMC_CAP2_HSX00_1_8V | MMC_CAP2_HS400_ES);
mmc              4028 drivers/mmc/host/sdhci.c 		mmc->caps &= ~(MMC_CAP_1_8V_DDR | MMC_CAP_UHS);
mmc              4034 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25;
mmc              4038 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_UHS_SDR104 | MMC_CAP_UHS_SDR50;
mmc              4043 drivers/mmc/host/sdhci.c 			mmc->caps2 |= MMC_CAP2_HS200;
mmc              4045 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_UHS_SDR50;
mmc              4050 drivers/mmc/host/sdhci.c 		mmc->caps2 |= MMC_CAP2_HS400;
mmc              4052 drivers/mmc/host/sdhci.c 	if ((mmc->caps2 & MMC_CAP2_HSX00_1_2V) &&
mmc              4053 drivers/mmc/host/sdhci.c 	    (IS_ERR(mmc->supply.vqmmc) ||
mmc              4054 drivers/mmc/host/sdhci.c 	     !regulator_is_supported_voltage(mmc->supply.vqmmc, 1100000,
mmc              4056 drivers/mmc/host/sdhci.c 		mmc->caps2 &= ~MMC_CAP2_HSX00_1_2V;
mmc              4060 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_UHS_DDR50;
mmc              4068 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_DRIVER_TYPE_A;
mmc              4070 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_DRIVER_TYPE_C;
mmc              4072 drivers/mmc/host/sdhci.c 		mmc->caps |= MMC_CAP_DRIVER_TYPE_D;
mmc              4099 drivers/mmc/host/sdhci.c 	if (!max_current_caps && !IS_ERR(mmc->supply.vmmc)) {
mmc              4100 drivers/mmc/host/sdhci.c 		int curr = regulator_get_current_limit(mmc->supply.vmmc);
mmc              4118 drivers/mmc/host/sdhci.c 		mmc->max_current_330 = ((max_current_caps &
mmc              4126 drivers/mmc/host/sdhci.c 		mmc->max_current_300 = ((max_current_caps &
mmc              4134 drivers/mmc/host/sdhci.c 		mmc->max_current_180 = ((max_current_caps &
mmc              4145 drivers/mmc/host/sdhci.c 	if (mmc->ocr_avail)
mmc              4146 drivers/mmc/host/sdhci.c 		ocr_avail = mmc->ocr_avail;
mmc              4148 drivers/mmc/host/sdhci.c 	mmc->ocr_avail = ocr_avail;
mmc              4149 drivers/mmc/host/sdhci.c 	mmc->ocr_avail_sdio = ocr_avail;
mmc              4151 drivers/mmc/host/sdhci.c 		mmc->ocr_avail_sdio &= host->ocr_avail_sdio;
mmc              4152 drivers/mmc/host/sdhci.c 	mmc->ocr_avail_sd = ocr_avail;
mmc              4154 drivers/mmc/host/sdhci.c 		mmc->ocr_avail_sd &= host->ocr_avail_sd;
mmc              4156 drivers/mmc/host/sdhci.c 		mmc->ocr_avail_sd &= ~MMC_VDD_165_195;
mmc              4157 drivers/mmc/host/sdhci.c 	mmc->ocr_avail_mmc = ocr_avail;
mmc              4159 drivers/mmc/host/sdhci.c 		mmc->ocr_avail_mmc &= host->ocr_avail_mmc;
mmc              4161 drivers/mmc/host/sdhci.c 	if (mmc->ocr_avail == 0) {
mmc              4163 drivers/mmc/host/sdhci.c 		       mmc_hostname(mmc));
mmc              4168 drivers/mmc/host/sdhci.c 	if ((mmc->caps & (MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 |
mmc              4171 drivers/mmc/host/sdhci.c 	    (mmc->caps2 & (MMC_CAP2_HS200_1_8V_SDR | MMC_CAP2_HS400_1_8V)))
mmc              4174 drivers/mmc/host/sdhci.c 	if (mmc->caps2 & MMC_CAP2_HSX00_1_2V)
mmc              4184 drivers/mmc/host/sdhci.c 	mmc->max_req_size = 524288;
mmc              4191 drivers/mmc/host/sdhci.c 		mmc->max_segs = SDHCI_MAX_SEGS;
mmc              4193 drivers/mmc/host/sdhci.c 		mmc->max_segs = 1;
mmc              4197 drivers/mmc/host/sdhci.c 			mmc->max_req_size = min(mmc->max_req_size,
mmc              4201 drivers/mmc/host/sdhci.c 		mmc->max_segs = SDHCI_MAX_SEGS;
mmc              4211 drivers/mmc/host/sdhci.c 			mmc->max_seg_size = 65535;
mmc              4213 drivers/mmc/host/sdhci.c 			mmc->max_seg_size = 65536;
mmc              4215 drivers/mmc/host/sdhci.c 		mmc->max_seg_size = mmc->max_req_size;
mmc              4223 drivers/mmc/host/sdhci.c 		mmc->max_blk_size = 2;
mmc              4225 drivers/mmc/host/sdhci.c 		mmc->max_blk_size = (host->caps & SDHCI_MAX_BLOCK_MASK) >>
mmc              4227 drivers/mmc/host/sdhci.c 		if (mmc->max_blk_size >= 3) {
mmc              4229 drivers/mmc/host/sdhci.c 				mmc_hostname(mmc));
mmc              4230 drivers/mmc/host/sdhci.c 			mmc->max_blk_size = 0;
mmc              4234 drivers/mmc/host/sdhci.c 	mmc->max_blk_size = 512 << mmc->max_blk_size;
mmc              4239 drivers/mmc/host/sdhci.c 	mmc->max_blk_count = (host->quirks & SDHCI_QUIRK_NO_MULTIBLOCK) ? 1 : 65535;
mmc              4241 drivers/mmc/host/sdhci.c 	if (mmc->max_segs == 1)
mmc              4248 drivers/mmc/host/sdhci.c 	if (!IS_ERR(mmc->supply.vqmmc))
mmc              4249 drivers/mmc/host/sdhci.c 		regulator_disable(mmc->supply.vqmmc);
mmc              4252 drivers/mmc/host/sdhci.c 		dma_free_coherent(mmc_dev(mmc), host->align_buffer_sz +
mmc              4264 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              4266 drivers/mmc/host/sdhci.c 	if (!IS_ERR(mmc->supply.vqmmc))
mmc              4267 drivers/mmc/host/sdhci.c 		regulator_disable(mmc->supply.vqmmc);
mmc              4270 drivers/mmc/host/sdhci.c 		dma_free_coherent(mmc_dev(mmc), host->align_buffer_sz +
mmc              4281 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              4298 drivers/mmc/host/sdhci.c 				   IRQF_SHARED,	mmc_hostname(mmc), host);
mmc              4301 drivers/mmc/host/sdhci.c 		       mmc_hostname(mmc), host->irq, ret);
mmc              4308 drivers/mmc/host/sdhci.c 		       mmc_hostname(mmc), ret);
mmc              4312 drivers/mmc/host/sdhci.c 	ret = mmc_add_host(mmc);
mmc              4317 drivers/mmc/host/sdhci.c 		mmc_hostname(mmc), host->hw_name, dev_name(mmc_dev(mmc)),
mmc              4363 drivers/mmc/host/sdhci.c 	struct mmc_host *mmc = host->mmc;
mmc              4373 drivers/mmc/host/sdhci.c 				" transfer!\n", mmc_hostname(mmc));
mmc              4382 drivers/mmc/host/sdhci.c 	mmc_remove_host(mmc);
mmc              4398 drivers/mmc/host/sdhci.c 	if (!IS_ERR(mmc->supply.vqmmc))
mmc              4399 drivers/mmc/host/sdhci.c 		regulator_disable(mmc->supply.vqmmc);
mmc              4402 drivers/mmc/host/sdhci.c 		dma_free_coherent(mmc_dev(mmc), host->align_buffer_sz +
mmc              4414 drivers/mmc/host/sdhci.c 	mmc_free_host(host->mmc);
mmc               497 drivers/mmc/host/sdhci.h 	struct mmc_host *mmc;	/* MMC structure */
mmc               766 drivers/mmc/host/sdhci.h void sdhci_request(struct mmc_host *mmc, struct mmc_request *mrq);
mmc               770 drivers/mmc/host/sdhci.h int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode);
mmc               771 drivers/mmc/host/sdhci.h void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios);
mmc               772 drivers/mmc/host/sdhci.h int sdhci_start_signal_voltage_switch(struct mmc_host *mmc,
mmc               774 drivers/mmc/host/sdhci.h void sdhci_enable_sdio_irq(struct mmc_host *mmc, int enable);
mmc               785 drivers/mmc/host/sdhci.h void sdhci_cqe_enable(struct mmc_host *mmc);
mmc               786 drivers/mmc/host/sdhci.h void sdhci_cqe_disable(struct mmc_host *mmc, bool recovery);
mmc               120 drivers/mmc/host/sdhci_am654.c 		if (host->mmc->ios.timing == MMC_TIMING_MMC_HS400) {
mmc               184 drivers/mmc/host/sdhci_am654.c 			dev_err(mmc_dev(host->mmc), "DLL failed to relock\n");
mmc               210 drivers/mmc/host/sdhci_am654.c 	if (!IS_ERR(host->mmc->supply.vmmc)) {
mmc               211 drivers/mmc/host/sdhci_am654.c 		struct mmc_host *mmc = host->mmc;
mmc               213 drivers/mmc/host/sdhci_am654.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc               220 drivers/mmc/host/sdhci_am654.c 	unsigned char timing = host->mmc->ios.timing;
mmc               239 drivers/mmc/host/sdhci_am654.c static int sdhci_am654_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               241 drivers/mmc/host/sdhci_am654.c 	struct sdhci_host *host = mmc_priv(mmc);
mmc               242 drivers/mmc/host/sdhci_am654.c 	int err = sdhci_execute_tuning(mmc, opcode);
mmc               354 drivers/mmc/host/sdhci_am654.c 	if (host->mmc->caps & MMC_CAP_NONREMOVABLE)
mmc               490 drivers/mmc/host/sdhci_am654.c 	ret = mmc_of_parse(host->mmc);
mmc               140 drivers/mmc/host/sdhci_f_sdh30.c 	ret = mmc_of_parse(host->mmc);
mmc                80 drivers/mmc/host/sdricoh_cs.c 	struct mmc_host *mmc;	/* MMC structure */
mmc               248 drivers/mmc/host/sdricoh_cs.c static void sdricoh_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               250 drivers/mmc/host/sdricoh_cs.c 	struct sdricoh_host *host = mmc_priv(mmc);
mmc               334 drivers/mmc/host/sdricoh_cs.c 	mmc_request_done(mmc, mrq);
mmc               338 drivers/mmc/host/sdricoh_cs.c static void sdricoh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               340 drivers/mmc/host/sdricoh_cs.c 	struct sdricoh_host *host = mmc_priv(mmc);
mmc               359 drivers/mmc/host/sdricoh_cs.c static int sdricoh_get_ro(struct mmc_host *mmc)
mmc               361 drivers/mmc/host/sdricoh_cs.c 	struct sdricoh_host *host = mmc_priv(mmc);
mmc               386 drivers/mmc/host/sdricoh_cs.c 	struct mmc_host *mmc;
mmc               408 drivers/mmc/host/sdricoh_cs.c 	mmc = pcmcia_dev->priv =
mmc               410 drivers/mmc/host/sdricoh_cs.c 	if (!mmc) {
mmc               415 drivers/mmc/host/sdricoh_cs.c 	host = mmc_priv(mmc);
mmc               421 drivers/mmc/host/sdricoh_cs.c 	mmc->ops = &sdricoh_ops;
mmc               425 drivers/mmc/host/sdricoh_cs.c 	mmc->f_min = 450000;
mmc               426 drivers/mmc/host/sdricoh_cs.c 	mmc->f_max = 24000000;
mmc               427 drivers/mmc/host/sdricoh_cs.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               428 drivers/mmc/host/sdricoh_cs.c 	mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc               430 drivers/mmc/host/sdricoh_cs.c 	mmc->max_seg_size = 1024 * 512;
mmc               431 drivers/mmc/host/sdricoh_cs.c 	mmc->max_blk_size = 512;
mmc               440 drivers/mmc/host/sdricoh_cs.c 	result = mmc_add_host(mmc);
mmc               447 drivers/mmc/host/sdricoh_cs.c 	mmc_free_host(mmc);
mmc               479 drivers/mmc/host/sdricoh_cs.c 	struct mmc_host *mmc = link->priv;
mmc               484 drivers/mmc/host/sdricoh_cs.c 	if (mmc) {
mmc               485 drivers/mmc/host/sdricoh_cs.c 		struct sdricoh_host *host = mmc_priv(mmc);
mmc               486 drivers/mmc/host/sdricoh_cs.c 		mmc_remove_host(mmc);
mmc               489 drivers/mmc/host/sdricoh_cs.c 		mmc_free_host(mmc);
mmc               504 drivers/mmc/host/sdricoh_cs.c 	struct mmc_host *mmc = link->priv;
mmc               506 drivers/mmc/host/sdricoh_cs.c 	sdricoh_reset(mmc_priv(mmc));
mmc               221 drivers/mmc/host/sh_mmcif.c 	struct mmc_host *mmc;
mmc               964 drivers/mmc/host/sh_mmcif.c static void sh_mmcif_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               966 drivers/mmc/host/sh_mmcif.c 	struct sh_mmcif_host *host = mmc_priv(mmc);
mmc               976 drivers/mmc/host/sh_mmcif.c 		mmc_request_done(mmc, mrq);
mmc               992 drivers/mmc/host/sh_mmcif.c 	if (host->mmc->f_max) {
mmc               995 drivers/mmc/host/sh_mmcif.c 		f_max = host->mmc->f_max;
mmc              1008 drivers/mmc/host/sh_mmcif.c 		host->mmc->f_max = f_max / (1 << ffs(host->clkdiv_map));
mmc              1009 drivers/mmc/host/sh_mmcif.c 		host->mmc->f_min = f_min / (1 << fls(host->clkdiv_map));
mmc              1013 drivers/mmc/host/sh_mmcif.c 		host->mmc->f_max = clk / 2;
mmc              1014 drivers/mmc/host/sh_mmcif.c 		host->mmc->f_min = clk / 512;
mmc              1018 drivers/mmc/host/sh_mmcif.c 		host->mmc->f_max, host->mmc->f_min);
mmc              1021 drivers/mmc/host/sh_mmcif.c static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1023 drivers/mmc/host/sh_mmcif.c 	struct sh_mmcif_host *host = mmc_priv(mmc);
mmc              1040 drivers/mmc/host/sh_mmcif.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1041 drivers/mmc/host/sh_mmcif.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
mmc              1051 drivers/mmc/host/sh_mmcif.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc              1052 drivers/mmc/host/sh_mmcif.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc              1143 drivers/mmc/host/sh_mmcif.c 		dev_err(host->mmc->parent,
mmc              1148 drivers/mmc/host/sh_mmcif.c 		dev_err(host->mmc->parent, "DMA timeout!\n");
mmc              1151 drivers/mmc/host/sh_mmcif.c 		dev_err(host->mmc->parent,
mmc              1271 drivers/mmc/host/sh_mmcif.c 	mmc_request_done(host->mmc, mrq);
mmc              1364 drivers/mmc/host/sh_mmcif.c 	mmc_request_done(host->mmc, mrq);
mmc              1371 drivers/mmc/host/sh_mmcif.c 	struct mmc_host *mmc = host->mmc;
mmc              1373 drivers/mmc/host/sh_mmcif.c 	mmc_regulator_get_supply(mmc);
mmc              1378 drivers/mmc/host/sh_mmcif.c 	if (!mmc->ocr_avail)
mmc              1379 drivers/mmc/host/sh_mmcif.c 		mmc->ocr_avail = pd->ocr;
mmc              1381 drivers/mmc/host/sh_mmcif.c 		dev_warn(mmc_dev(mmc), "Platform OCR mask is ignored\n");
mmc              1387 drivers/mmc/host/sh_mmcif.c 	struct mmc_host *mmc;
mmc              1405 drivers/mmc/host/sh_mmcif.c 	mmc = mmc_alloc_host(sizeof(struct sh_mmcif_host), dev);
mmc              1406 drivers/mmc/host/sh_mmcif.c 	if (!mmc)
mmc              1409 drivers/mmc/host/sh_mmcif.c 	ret = mmc_of_parse(mmc);
mmc              1413 drivers/mmc/host/sh_mmcif.c 	host		= mmc_priv(mmc);
mmc              1414 drivers/mmc/host/sh_mmcif.c 	host->mmc	= mmc;
mmc              1424 drivers/mmc/host/sh_mmcif.c 	mmc->ops = &sh_mmcif_ops;
mmc              1427 drivers/mmc/host/sh_mmcif.c 	mmc->caps |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_WAIT_WHILE_BUSY;
mmc              1428 drivers/mmc/host/sh_mmcif.c 	mmc->caps2 |= MMC_CAP2_NO_SD | MMC_CAP2_NO_SDIO;
mmc              1429 drivers/mmc/host/sh_mmcif.c 	mmc->max_busy_timeout = 10000;
mmc              1432 drivers/mmc/host/sh_mmcif.c 		mmc->caps |= pd->caps;
mmc              1433 drivers/mmc/host/sh_mmcif.c 	mmc->max_segs = 32;
mmc              1434 drivers/mmc/host/sh_mmcif.c 	mmc->max_blk_size = 512;
mmc              1435 drivers/mmc/host/sh_mmcif.c 	mmc->max_req_size = PAGE_SIZE * mmc->max_segs;
mmc              1436 drivers/mmc/host/sh_mmcif.c 	mmc->max_blk_count = mmc->max_req_size / mmc->max_blk_size;
mmc              1437 drivers/mmc/host/sh_mmcif.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1485 drivers/mmc/host/sh_mmcif.c 	ret = mmc_add_host(mmc);
mmc              1504 drivers/mmc/host/sh_mmcif.c 	mmc_free_host(mmc);
mmc              1518 drivers/mmc/host/sh_mmcif.c 	mmc_remove_host(host->mmc);
mmc              1529 drivers/mmc/host/sh_mmcif.c 	mmc_free_host(host->mmc);
mmc               269 drivers/mmc/host/sunxi-mmc.c 	struct mmc_host	*mmc;
mmc               315 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(host->mmc), "fatal err reset timeout\n");
mmc               399 drivers/mmc/host/sunxi-mmc.c 	dma_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc               402 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(host->mmc), "dma_map_sg failed\n");
mmc               408 drivers/mmc/host/sunxi-mmc.c 			dev_err(mmc_dev(host->mmc),
mmc               467 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(host->mmc), "send stop command failed\n");
mmc               489 drivers/mmc/host/sunxi-mmc.c 	dev_dbg(mmc_dev(host->mmc),
mmc               491 drivers/mmc/host/sunxi-mmc.c 		host->mmc->index, cmd->opcode,
mmc               550 drivers/mmc/host/sunxi-mmc.c 		dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc               577 drivers/mmc/host/sunxi-mmc.c 	dev_dbg(mmc_dev(host->mmc), "irq: rq %p mi %08x idi %08x\n",
mmc               612 drivers/mmc/host/sunxi-mmc.c 		mmc_request_done(host->mmc, mrq);
mmc               615 drivers/mmc/host/sunxi-mmc.c 		mmc_signal_sdio_irq(host->mmc);
mmc               631 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(host->mmc), "no request for manual stop\n");
mmc               635 drivers/mmc/host/sunxi-mmc.c 	dev_err(mmc_dev(host->mmc), "data error, sending stop command\n");
mmc               651 drivers/mmc/host/sunxi-mmc.c 	mmc_request_done(host->mmc, mrq);
mmc               661 drivers/mmc/host/sunxi-mmc.c 	dev_dbg(mmc_dev(host->mmc), "%sabling the clock\n",
mmc               686 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(host->mmc), "fatal err update clk timeout\n");
mmc               745 drivers/mmc/host/sunxi-mmc.c 		dev_dbg(mmc_dev(host->mmc), "Invalid clock... returning\n");
mmc               758 drivers/mmc/host/sunxi-mmc.c 	struct mmc_host *mmc = host->mmc;
mmc               768 drivers/mmc/host/sunxi-mmc.c 	mmc->actual_clock = 0;
mmc               792 drivers/mmc/host/sunxi-mmc.c 			dev_err(mmc_dev(mmc),
mmc               800 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(mmc), "error rounding clk to %d: %ld\n",
mmc               804 drivers/mmc/host/sunxi-mmc.c 	dev_dbg(mmc_dev(mmc), "setting clk to %d, rounded %ld\n",
mmc               810 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(mmc), "error setting clk to %ld: %d\n",
mmc               859 drivers/mmc/host/sunxi-mmc.c 	mmc->actual_clock = rate;
mmc               900 drivers/mmc/host/sunxi-mmc.c 	struct mmc_host *mmc = host->mmc;
mmc               904 drivers/mmc/host/sunxi-mmc.c 		dev_dbg(mmc_dev(mmc), "Powering card up\n");
mmc               906 drivers/mmc/host/sunxi-mmc.c 		if (!IS_ERR(mmc->supply.vmmc)) {
mmc               907 drivers/mmc/host/sunxi-mmc.c 			host->ferror = mmc_regulator_set_ocr(mmc,
mmc               908 drivers/mmc/host/sunxi-mmc.c 							     mmc->supply.vmmc,
mmc               914 drivers/mmc/host/sunxi-mmc.c 		if (!IS_ERR(mmc->supply.vqmmc)) {
mmc               915 drivers/mmc/host/sunxi-mmc.c 			host->ferror = regulator_enable(mmc->supply.vqmmc);
mmc               917 drivers/mmc/host/sunxi-mmc.c 				dev_err(mmc_dev(mmc),
mmc               926 drivers/mmc/host/sunxi-mmc.c 		dev_dbg(mmc_dev(mmc), "Powering card off\n");
mmc               928 drivers/mmc/host/sunxi-mmc.c 		if (!IS_ERR(mmc->supply.vmmc))
mmc               929 drivers/mmc/host/sunxi-mmc.c 			mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc               931 drivers/mmc/host/sunxi-mmc.c 		if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled)
mmc               932 drivers/mmc/host/sunxi-mmc.c 			regulator_disable(mmc->supply.vqmmc);
mmc               938 drivers/mmc/host/sunxi-mmc.c 		dev_dbg(mmc_dev(mmc), "Ignoring unknown card power state\n");
mmc               943 drivers/mmc/host/sunxi-mmc.c static void sunxi_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               945 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc               952 drivers/mmc/host/sunxi-mmc.c static int sunxi_mmc_volt_switch(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               955 drivers/mmc/host/sunxi-mmc.c 	if (!IS_ERR(mmc->supply.vqmmc))
mmc               956 drivers/mmc/host/sunxi-mmc.c 		return mmc_regulator_set_vqmmc(mmc, ios);
mmc               959 drivers/mmc/host/sunxi-mmc.c 	if (mmc->ios.signal_voltage == MMC_SIGNAL_VOLTAGE_330)
mmc               965 drivers/mmc/host/sunxi-mmc.c static void sunxi_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               967 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc               988 drivers/mmc/host/sunxi-mmc.c 		pm_runtime_put_noidle(host->mmc->parent);
mmc               991 drivers/mmc/host/sunxi-mmc.c static void sunxi_mmc_hw_reset(struct mmc_host *mmc)
mmc               993 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc              1000 drivers/mmc/host/sunxi-mmc.c static void sunxi_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1002 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc              1014 drivers/mmc/host/sunxi-mmc.c 		mmc_request_done(mmc, mrq);
mmc              1021 drivers/mmc/host/sunxi-mmc.c 			dev_err(mmc_dev(mmc), "map DMA failed\n");
mmc              1024 drivers/mmc/host/sunxi-mmc.c 			mmc_request_done(mmc, mrq);
mmc              1062 drivers/mmc/host/sunxi-mmc.c 	dev_dbg(mmc_dev(mmc), "cmd %d(%08x) arg %x ie 0x%08x len %d\n",
mmc              1072 drivers/mmc/host/sunxi-mmc.c 			dma_unmap_sg(mmc_dev(mmc), data->sg, data->sg_len,
mmc              1075 drivers/mmc/host/sunxi-mmc.c 		dev_err(mmc_dev(mmc), "request already pending\n");
mmc              1077 drivers/mmc/host/sunxi-mmc.c 		mmc_request_done(mmc, mrq);
mmc              1096 drivers/mmc/host/sunxi-mmc.c static int sunxi_mmc_card_busy(struct mmc_host *mmc)
mmc              1098 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc              1272 drivers/mmc/host/sunxi-mmc.c 	ret = mmc_regulator_get_supply(host->mmc);
mmc              1333 drivers/mmc/host/sunxi-mmc.c 	struct mmc_host *mmc;
mmc              1336 drivers/mmc/host/sunxi-mmc.c 	mmc = mmc_alloc_host(sizeof(struct sunxi_mmc_host), &pdev->dev);
mmc              1337 drivers/mmc/host/sunxi-mmc.c 	if (!mmc) {
mmc              1341 drivers/mmc/host/sunxi-mmc.c 	platform_set_drvdata(pdev, mmc);
mmc              1343 drivers/mmc/host/sunxi-mmc.c 	host = mmc_priv(mmc);
mmc              1345 drivers/mmc/host/sunxi-mmc.c 	host->mmc = mmc;
mmc              1384 drivers/mmc/host/sunxi-mmc.c 	mmc->ops		= &sunxi_mmc_ops;
mmc              1385 drivers/mmc/host/sunxi-mmc.c 	mmc->max_blk_count	= 8192;
mmc              1386 drivers/mmc/host/sunxi-mmc.c 	mmc->max_blk_size	= 4096;
mmc              1387 drivers/mmc/host/sunxi-mmc.c 	mmc->max_segs		= PAGE_SIZE / sizeof(struct sunxi_idma_des);
mmc              1388 drivers/mmc/host/sunxi-mmc.c 	mmc->max_seg_size	= (1 << host->cfg->idma_des_size_bits);
mmc              1389 drivers/mmc/host/sunxi-mmc.c 	mmc->max_req_size	= mmc->max_seg_size * mmc->max_segs;
mmc              1391 drivers/mmc/host/sunxi-mmc.c 	mmc->f_min		=   400000;
mmc              1392 drivers/mmc/host/sunxi-mmc.c 	mmc->f_max		= 52000000;
mmc              1393 drivers/mmc/host/sunxi-mmc.c 	mmc->caps	       |= MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED |
mmc              1406 drivers/mmc/host/sunxi-mmc.c 		mmc->caps      |= MMC_CAP_1_8V_DDR | MMC_CAP_3_3V_DDR;
mmc              1408 drivers/mmc/host/sunxi-mmc.c 	ret = mmc_of_parse(mmc);
mmc              1419 drivers/mmc/host/sunxi-mmc.c 		mmc->caps &= ~(MMC_CAP_3_3V_DDR | MMC_CAP_1_8V_DDR |
mmc              1421 drivers/mmc/host/sunxi-mmc.c 		mmc->caps2 &= ~MMC_CAP2_HS200;
mmc              1425 drivers/mmc/host/sunxi-mmc.c 	mmc->caps2 &= ~MMC_CAP2_HS400;
mmc              1436 drivers/mmc/host/sunxi-mmc.c 	ret = mmc_add_host(mmc);
mmc              1441 drivers/mmc/host/sunxi-mmc.c 		 mmc->max_req_size >> 10,
mmc              1449 drivers/mmc/host/sunxi-mmc.c 	mmc_free_host(mmc);
mmc              1455 drivers/mmc/host/sunxi-mmc.c 	struct mmc_host	*mmc = platform_get_drvdata(pdev);
mmc              1456 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc              1458 drivers/mmc/host/sunxi-mmc.c 	mmc_remove_host(mmc);
mmc              1463 drivers/mmc/host/sunxi-mmc.c 	mmc_free_host(mmc);
mmc              1471 drivers/mmc/host/sunxi-mmc.c 	struct mmc_host	*mmc = dev_get_drvdata(dev);
mmc              1472 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc              1480 drivers/mmc/host/sunxi-mmc.c 	sunxi_mmc_set_bus_width(host, mmc->ios.bus_width);
mmc              1481 drivers/mmc/host/sunxi-mmc.c 	sunxi_mmc_set_clk(host, &mmc->ios);
mmc              1489 drivers/mmc/host/sunxi-mmc.c 	struct mmc_host	*mmc = dev_get_drvdata(dev);
mmc              1490 drivers/mmc/host/sunxi-mmc.c 	struct sunxi_mmc_host *host = mmc_priv(mmc);
mmc               618 drivers/mmc/host/tifm_sd.c static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               620 drivers/mmc/host/tifm_sd.c 	struct tifm_sd *host = mmc_priv(mmc);
mmc               729 drivers/mmc/host/tifm_sd.c 	mmc_request_done(mmc, mrq);
mmc               736 drivers/mmc/host/tifm_sd.c 	struct mmc_host *mmc = tifm_get_drvdata(sock);
mmc               780 drivers/mmc/host/tifm_sd.c 	mmc_request_done(mmc, mrq);
mmc               794 drivers/mmc/host/tifm_sd.c static void tifm_sd_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               796 drivers/mmc/host/tifm_sd.c 	struct tifm_sd *host = mmc_priv(mmc);
mmc               861 drivers/mmc/host/tifm_sd.c static int tifm_sd_ro(struct mmc_host *mmc)
mmc               864 drivers/mmc/host/tifm_sd.c 	struct tifm_sd *host = mmc_priv(mmc);
mmc               944 drivers/mmc/host/tifm_sd.c 	struct mmc_host *mmc;
mmc               955 drivers/mmc/host/tifm_sd.c 	mmc = mmc_alloc_host(sizeof(struct tifm_sd), &sock->dev);
mmc               956 drivers/mmc/host/tifm_sd.c 	if (!mmc)
mmc               959 drivers/mmc/host/tifm_sd.c 	host = mmc_priv(mmc);
mmc               960 drivers/mmc/host/tifm_sd.c 	tifm_set_drvdata(sock, mmc);
mmc               968 drivers/mmc/host/tifm_sd.c 	mmc->ops = &tifm_sd_ops;
mmc               969 drivers/mmc/host/tifm_sd.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               970 drivers/mmc/host/tifm_sd.c 	mmc->caps = MMC_CAP_4_BIT_DATA;
mmc               971 drivers/mmc/host/tifm_sd.c 	mmc->f_min = 20000000 / 60;
mmc               972 drivers/mmc/host/tifm_sd.c 	mmc->f_max = 24000000;
mmc               974 drivers/mmc/host/tifm_sd.c 	mmc->max_blk_count = 2048;
mmc               975 drivers/mmc/host/tifm_sd.c 	mmc->max_segs = mmc->max_blk_count;
mmc               976 drivers/mmc/host/tifm_sd.c 	mmc->max_blk_size = min(TIFM_MMCSD_MAX_BLOCK_SIZE, PAGE_SIZE);
mmc               977 drivers/mmc/host/tifm_sd.c 	mmc->max_seg_size = mmc->max_blk_count * mmc->max_blk_size;
mmc               978 drivers/mmc/host/tifm_sd.c 	mmc->max_req_size = mmc->max_seg_size;
mmc               985 drivers/mmc/host/tifm_sd.c 		rc = mmc_add_host(mmc);
mmc               989 drivers/mmc/host/tifm_sd.c 	mmc_free_host(mmc);
mmc               995 drivers/mmc/host/tifm_sd.c 	struct mmc_host *mmc = tifm_get_drvdata(sock);
mmc               996 drivers/mmc/host/tifm_sd.c 	struct tifm_sd *host = mmc_priv(mmc);
mmc              1017 drivers/mmc/host/tifm_sd.c 	mmc_remove_host(mmc);
mmc              1020 drivers/mmc/host/tifm_sd.c 	mmc_free_host(mmc);
mmc              1032 drivers/mmc/host/tifm_sd.c 	struct mmc_host *mmc = tifm_get_drvdata(sock);
mmc              1033 drivers/mmc/host/tifm_sd.c 	struct tifm_sd *host = mmc_priv(mmc);
mmc               172 drivers/mmc/host/tmio_mmc.c 	host->mmc->f_max = pdata->hclk;
mmc               173 drivers/mmc/host/tmio_mmc.c 	host->mmc->f_min = pdata->hclk / 512;
mmc               185 drivers/mmc/host/tmio_mmc.c 	pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc),
mmc               128 drivers/mmc/host/tmio_mmc.h 	struct mmc_host         *mmc;
mmc               131 drivers/mmc/host/tmio_mmc_core.c static void tmio_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               133 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               139 drivers/mmc/host/tmio_mmc_core.c 		pm_runtime_get_sync(mmc_dev(mmc));
mmc               156 drivers/mmc/host/tmio_mmc_core.c 		pm_runtime_mark_last_busy(mmc_dev(mmc));
mmc               157 drivers/mmc/host/tmio_mmc_core.c 		pm_runtime_put_autosuspend(mmc_dev(mmc));
mmc               175 drivers/mmc/host/tmio_mmc_core.c static void tmio_mmc_hw_reset(struct mmc_host *mmc)
mmc               177 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               225 drivers/mmc/host/tmio_mmc_core.c 	tmio_mmc_hw_reset(host->mmc);
mmc               230 drivers/mmc/host/tmio_mmc_core.c 	mmc_request_done(host->mmc, mrq);
mmc               589 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc = host->mmc;
mmc               595 drivers/mmc/host/tmio_mmc_core.c 		if ((((ireg & TMIO_STAT_CARD_REMOVE) && mmc->card) ||
mmc               596 drivers/mmc/host/tmio_mmc_core.c 		     ((ireg & TMIO_STAT_CARD_INSERT) && !mmc->card)) &&
mmc               597 drivers/mmc/host/tmio_mmc_core.c 		    !work_pending(&mmc->detect.work))
mmc               598 drivers/mmc/host/tmio_mmc_core.c 			mmc_detect_change(host->mmc, msecs_to_jiffies(100));
mmc               635 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc = host->mmc;
mmc               652 drivers/mmc/host/tmio_mmc_core.c 	if (mmc->caps & MMC_CAP_SDIO_IRQ && ireg & TMIO_SDIO_STAT_IOIRQ)
mmc               653 drivers/mmc/host/tmio_mmc_core.c 		mmc_signal_sdio_irq(mmc);
mmc               690 drivers/mmc/host/tmio_mmc_core.c 	if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4 ||
mmc               691 drivers/mmc/host/tmio_mmc_core.c 	    host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) {
mmc               696 drivers/mmc/host/tmio_mmc_core.c 			       mmc_hostname(host->mmc), data->blksz);
mmc               707 drivers/mmc/host/tmio_mmc_core.c 	if (host->mmc->max_blk_count >= SZ_64K)
mmc               717 drivers/mmc/host/tmio_mmc_core.c static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
mmc               719 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               744 drivers/mmc/host/tmio_mmc_core.c 		ret = mmc_send_tuning(mmc, opcode, NULL);
mmc               754 drivers/mmc/host/tmio_mmc_core.c 		tmio_mmc_hw_reset(mmc);
mmc               788 drivers/mmc/host/tmio_mmc_core.c 	mmc_request_done(host->mmc, mrq);
mmc               792 drivers/mmc/host/tmio_mmc_core.c static void tmio_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               794 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               804 drivers/mmc/host/tmio_mmc_core.c 			mmc_request_done(mmc, mrq);
mmc               847 drivers/mmc/host/tmio_mmc_core.c 		mmc_retune_needed(host->mmc);
mmc               855 drivers/mmc/host/tmio_mmc_core.c 	mmc_request_done(host->mmc, mrq);
mmc               867 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc = host->mmc;
mmc               875 drivers/mmc/host/tmio_mmc_core.c 	if (!IS_ERR(mmc->supply.vmmc)) {
mmc               876 drivers/mmc/host/tmio_mmc_core.c 		ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
mmc               889 drivers/mmc/host/tmio_mmc_core.c 	if (!IS_ERR(mmc->supply.vqmmc) && !ret) {
mmc               890 drivers/mmc/host/tmio_mmc_core.c 		ret = regulator_enable(mmc->supply.vqmmc);
mmc               901 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc = host->mmc;
mmc               903 drivers/mmc/host/tmio_mmc_core.c 	if (!IS_ERR(mmc->supply.vqmmc))
mmc               904 drivers/mmc/host/tmio_mmc_core.c 		regulator_disable(mmc->supply.vqmmc);
mmc               906 drivers/mmc/host/tmio_mmc_core.c 	if (!IS_ERR(mmc->supply.vmmc))
mmc               907 drivers/mmc/host/tmio_mmc_core.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
mmc               934 drivers/mmc/host/tmio_mmc_core.c static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               936 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               997 drivers/mmc/host/tmio_mmc_core.c static int tmio_mmc_get_ro(struct mmc_host *mmc)
mmc               999 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc              1005 drivers/mmc/host/tmio_mmc_core.c static int tmio_mmc_get_cd(struct mmc_host *mmc)
mmc              1007 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc              1024 drivers/mmc/host/tmio_mmc_core.c static int tmio_mmc_prepare_hs400_tuning(struct mmc_host *mmc,
mmc              1027 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc              1035 drivers/mmc/host/tmio_mmc_core.c static void tmio_mmc_hs400_downgrade(struct mmc_host *mmc)
mmc              1037 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc              1043 drivers/mmc/host/tmio_mmc_core.c static void tmio_mmc_hs400_complete(struct mmc_host *mmc)
mmc              1045 drivers/mmc/host/tmio_mmc_core.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc              1068 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc = host->mmc;
mmc              1071 drivers/mmc/host/tmio_mmc_core.c 	err = mmc_regulator_get_supply(mmc);
mmc              1076 drivers/mmc/host/tmio_mmc_core.c 	if (!mmc->ocr_avail)
mmc              1077 drivers/mmc/host/tmio_mmc_core.c 		mmc->ocr_avail = pdata->ocr_mask;
mmc              1083 drivers/mmc/host/tmio_mmc_core.c 	if (!mmc->ocr_avail)
mmc              1090 drivers/mmc/host/tmio_mmc_core.c 			      struct mmc_host *mmc)
mmc              1103 drivers/mmc/host/tmio_mmc_core.c 		mmc->caps2 |= MMC_CAP2_NO_WRITE_PROTECT;
mmc              1110 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc;
mmc              1120 drivers/mmc/host/tmio_mmc_core.c 	mmc = mmc_alloc_host(sizeof(struct tmio_mmc_host), &pdev->dev);
mmc              1121 drivers/mmc/host/tmio_mmc_core.c 	if (!mmc)
mmc              1124 drivers/mmc/host/tmio_mmc_core.c 	host = mmc_priv(mmc);
mmc              1126 drivers/mmc/host/tmio_mmc_core.c 	host->mmc = mmc;
mmc              1130 drivers/mmc/host/tmio_mmc_core.c 	mmc->ops = &host->ops;
mmc              1132 drivers/mmc/host/tmio_mmc_core.c 	ret = mmc_of_parse(host->mmc);
mmc              1138 drivers/mmc/host/tmio_mmc_core.c 	tmio_mmc_of_parse(pdev, mmc);
mmc              1144 drivers/mmc/host/tmio_mmc_core.c 	mmc_free_host(mmc);
mmc              1152 drivers/mmc/host/tmio_mmc_core.c 	mmc_free_host(host->mmc);
mmc              1160 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc = _host->mmc;
mmc              1167 drivers/mmc/host/tmio_mmc_core.c 	if (mmc->f_min == 0)
mmc              1183 drivers/mmc/host/tmio_mmc_core.c 	ret = mmc_gpiod_request_cd(mmc, "cd", 0, false, 0, NULL);
mmc              1187 drivers/mmc/host/tmio_mmc_core.c 	mmc->caps |= MMC_CAP_ERASE | MMC_CAP_4_BIT_DATA | pdata->capabilities;
mmc              1188 drivers/mmc/host/tmio_mmc_core.c 	mmc->caps2 |= pdata->capabilities2;
mmc              1189 drivers/mmc/host/tmio_mmc_core.c 	mmc->max_segs = pdata->max_segs ? : 32;
mmc              1190 drivers/mmc/host/tmio_mmc_core.c 	mmc->max_blk_size = TMIO_MAX_BLK_SIZE;
mmc              1191 drivers/mmc/host/tmio_mmc_core.c 	mmc->max_blk_count = pdata->max_blk_count ? :
mmc              1192 drivers/mmc/host/tmio_mmc_core.c 		(PAGE_SIZE / mmc->max_blk_size) * mmc->max_segs;
mmc              1193 drivers/mmc/host/tmio_mmc_core.c 	mmc->max_req_size = min_t(size_t,
mmc              1194 drivers/mmc/host/tmio_mmc_core.c 				  mmc->max_blk_size * mmc->max_blk_count,
mmc              1196 drivers/mmc/host/tmio_mmc_core.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1198 drivers/mmc/host/tmio_mmc_core.c 	if (mmc_can_gpio_ro(mmc))
mmc              1201 drivers/mmc/host/tmio_mmc_core.c 	if (mmc_can_gpio_cd(mmc))
mmc              1204 drivers/mmc/host/tmio_mmc_core.c 	_host->native_hotplug = !(mmc_can_gpio_cd(mmc) ||
mmc              1205 drivers/mmc/host/tmio_mmc_core.c 				  mmc->caps & MMC_CAP_NEEDS_POLL ||
mmc              1206 drivers/mmc/host/tmio_mmc_core.c 				  !mmc_card_is_removable(mmc));
mmc              1232 drivers/mmc/host/tmio_mmc_core.c 	tmio_mmc_hw_reset(mmc);
mmc              1256 drivers/mmc/host/tmio_mmc_core.c 	ret = mmc_add_host(mmc);
mmc              1275 drivers/mmc/host/tmio_mmc_core.c 	struct mmc_host *mmc = host->mmc;
mmc              1284 drivers/mmc/host/tmio_mmc_core.c 	mmc_remove_host(mmc);
mmc              1331 drivers/mmc/host/tmio_mmc_core.c 	return host->tap_num && mmc_can_retune(host->mmc);
mmc              1344 drivers/mmc/host/tmio_mmc_core.c 	tmio_mmc_hw_reset(host->mmc);
mmc                78 drivers/mmc/host/toshsd.c static void __toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc                80 drivers/mmc/host/toshsd.c 	struct toshsd_host *host = mmc_priv(mmc);
mmc               153 drivers/mmc/host/toshsd.c 	mmc_request_done(host->mmc, mrq);
mmc               357 drivers/mmc/host/toshsd.c 			__toshsd_set_ios(host->mmc, &host->mmc->ios);
mmc               371 drivers/mmc/host/toshsd.c 		mmc_detect_change(host->mmc, 1);
mmc               496 drivers/mmc/host/toshsd.c static void toshsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               498 drivers/mmc/host/toshsd.c 	struct toshsd_host *host = mmc_priv(mmc);
mmc               504 drivers/mmc/host/toshsd.c 		mmc_request_done(mmc, mrq);
mmc               524 drivers/mmc/host/toshsd.c static void toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               526 drivers/mmc/host/toshsd.c 	struct toshsd_host *host = mmc_priv(mmc);
mmc               530 drivers/mmc/host/toshsd.c 	__toshsd_set_ios(mmc, ios);
mmc               534 drivers/mmc/host/toshsd.c static int toshsd_get_ro(struct mmc_host *mmc)
mmc               536 drivers/mmc/host/toshsd.c 	struct toshsd_host *host = mmc_priv(mmc);
mmc               542 drivers/mmc/host/toshsd.c static int toshsd_get_cd(struct mmc_host *mmc)
mmc               544 drivers/mmc/host/toshsd.c 	struct toshsd_host *host = mmc_priv(mmc);
mmc               608 drivers/mmc/host/toshsd.c 	struct mmc_host *mmc;
mmc               615 drivers/mmc/host/toshsd.c 	mmc = mmc_alloc_host(sizeof(struct toshsd_host), &pdev->dev);
mmc               616 drivers/mmc/host/toshsd.c 	if (!mmc) {
mmc               621 drivers/mmc/host/toshsd.c 	host = mmc_priv(mmc);
mmc               622 drivers/mmc/host/toshsd.c 	host->mmc = mmc;
mmc               638 drivers/mmc/host/toshsd.c 	mmc->ops = &toshsd_ops;
mmc               639 drivers/mmc/host/toshsd.c 	mmc->caps = MMC_CAP_4_BIT_DATA;
mmc               640 drivers/mmc/host/toshsd.c 	mmc->ocr_avail = MMC_VDD_32_33;
mmc               642 drivers/mmc/host/toshsd.c 	mmc->f_min = HCLK / 512;
mmc               643 drivers/mmc/host/toshsd.c 	mmc->f_max = HCLK;
mmc               654 drivers/mmc/host/toshsd.c 	mmc_add_host(mmc);
mmc               668 drivers/mmc/host/toshsd.c 	mmc_free_host(mmc);
mmc               679 drivers/mmc/host/toshsd.c 	mmc_remove_host(host->mmc);
mmc               684 drivers/mmc/host/toshsd.c 	mmc_free_host(host->mmc);
mmc               161 drivers/mmc/host/toshsd.h 	struct mmc_host *mmc;
mmc               101 drivers/mmc/host/uniphier-sd.c 	dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len,
mmc               143 drivers/mmc/host/uniphier-sd.c 	sg_len = dma_map_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len,
mmc               165 drivers/mmc/host/uniphier-sd.c 	dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, host->sg_len,
mmc               182 drivers/mmc/host/uniphier-sd.c 	chan = dma_request_chan(mmc_dev(host->mmc), "rx-tx");
mmc               184 drivers/mmc/host/uniphier-sd.c 		dev_warn(mmc_dev(host->mmc),
mmc               272 drivers/mmc/host/uniphier-sd.c 	sg_len = dma_map_sg(mmc_dev(host->mmc), sg, 1, priv->dma_dir);
mmc               343 drivers/mmc/host/uniphier-sd.c 	dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, 1, priv->dma_dir);
mmc               360 drivers/mmc/host/uniphier-sd.c 	struct mmc_host *mmc = host->mmc;
mmc               374 drivers/mmc/host/uniphier-sd.c 	if (!mmc->f_max)
mmc               375 drivers/mmc/host/uniphier-sd.c 		mmc->f_max = priv->clk_rate;
mmc               382 drivers/mmc/host/uniphier-sd.c 		mmc->f_min = priv->clk_rate / 1024;
mmc               384 drivers/mmc/host/uniphier-sd.c 		mmc->f_min = priv->clk_rate / 512;
mmc               498 drivers/mmc/host/uniphier-sd.c static int uniphier_sd_start_signal_voltage_switch(struct mmc_host *mmc,
mmc               501 drivers/mmc/host/uniphier-sd.c 	struct tmio_mmc_host *host = mmc_priv(mmc);
mmc               532 drivers/mmc/host/uniphier-sd.c 	priv->pinctrl = devm_pinctrl_get(mmc_dev(host->mmc));
mmc               597 drivers/mmc/host/uniphier-sd.c 	if (host->mmc->caps & MMC_CAP_HW_RESET) {
mmc               607 drivers/mmc/host/uniphier-sd.c 	if (host->mmc->caps & MMC_CAP_UHS) {
mmc               613 drivers/mmc/host/uniphier-sd.c 			host->mmc->caps &= ~MMC_CAP_UHS;
mmc               634 drivers/mmc/host/uniphier-sd.c 	if (host->mmc->caps & MMC_CAP_UHS)
mmc               157 drivers/mmc/host/usdhi6rol0.c 	struct mmc_host *mmc;
mmc               211 drivers/mmc/host/usdhi6rol0.c 	dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__,
mmc               218 drivers/mmc/host/usdhi6rol0.c 	dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__,
mmc               225 drivers/mmc/host/usdhi6rol0.c 	dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__,
mmc               233 drivers/mmc/host/usdhi6rol0.c 	dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__,
mmc               285 drivers/mmc/host/usdhi6rol0.c 			dev_dbg(mmc_dev(host->mmc),
mmc               289 drivers/mmc/host/usdhi6rol0.c 			dev_warn(mmc_dev(host->mmc),
mmc               297 drivers/mmc/host/usdhi6rol0.c 		dev_warn(mmc_dev(host->mmc), "Err sts 0x%x, state %u, CMD%d\n",
mmc               319 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): CMD%u of %u SG: %ux%u @ 0x%x\n",
mmc               386 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "Mapped %p (%lx) at %p + %u for CMD%u @ 0x%p\n",
mmc               465 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): %zu of %zu @ %zu\n", __func__,
mmc               509 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "Mapped %p (%lx) at %p for CMD%u @ 0x%p\n",
mmc               555 drivers/mmc/host/usdhi6rol0.c 		 dev_name(mmc_dev(host->mmc)), mrq))
mmc               558 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): CMD%u DMA completed\n", __func__,
mmc               599 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): mapped %d -> %d, cookie %d @ %p\n",
mmc               607 drivers/mmc/host/usdhi6rol0.c 		dev_warn(mmc_dev(host->mmc),
mmc               629 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): SG of %u: %ux%u\n",
mmc               642 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): IO error %d, status 0x%x\n",
mmc               650 drivers/mmc/host/usdhi6rol0.c 		dev_warn(mmc_dev(host->mmc),
mmc               661 drivers/mmc/host/usdhi6rol0.c 		dev_warn(mmc_dev(host->mmc), "Unexpected response received!\n");
mmc               680 drivers/mmc/host/usdhi6rol0.c 	host->chan_tx = dma_request_slave_channel(mmc_dev(host->mmc), "tx");
mmc               681 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s: TX: got channel %p\n", __func__,
mmc               695 drivers/mmc/host/usdhi6rol0.c 	host->chan_rx = dma_request_slave_channel(mmc_dev(host->mmc), "rx");
mmc               696 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s: RX: got channel %p\n", __func__,
mmc               735 drivers/mmc/host/usdhi6rol0.c 		dev_err(mmc_dev(host->mmc), "SD bus busy, clock set aborted\n");
mmc               764 drivers/mmc/host/usdhi6rol0.c 		dev_dbg(mmc_dev(host->mmc), "target %lu, div %u, set %lu\n",
mmc               791 drivers/mmc/host/usdhi6rol0.c 	struct mmc_host *mmc = host->mmc;
mmc               793 drivers/mmc/host/usdhi6rol0.c 	if (!IS_ERR(mmc->supply.vmmc))
mmc               795 drivers/mmc/host/usdhi6rol0.c 		mmc_regulator_set_ocr(mmc, mmc->supply.vmmc,
mmc               813 drivers/mmc/host/usdhi6rol0.c static void usdhi6_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               815 drivers/mmc/host/usdhi6rol0.c 	struct usdhi6_host *host = mmc_priv(mmc);
mmc               819 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(mmc), "%uHz, OCR: %u, power %u, bus-width %u, timing %u\n",
mmc               834 drivers/mmc/host/usdhi6rol0.c 			dev_err(mmc_dev(mmc), "Cannot reset the interface!\n");
mmc               849 drivers/mmc/host/usdhi6rol0.c 				dev_err(mmc_dev(mmc),
mmc               888 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "Set %s timeout %lu ticks @ %lu Hz\n",
mmc               912 drivers/mmc/host/usdhi6rol0.c 		dev_dbg(mmc_dev(host->mmc), "%s(CMD%d: %ux%u): err %d %d %d\n",
mmc               924 drivers/mmc/host/usdhi6rol0.c 	mmc_request_done(host->mmc, mrq);
mmc               970 drivers/mmc/host/usdhi6rol0.c 			dev_warn(mmc_dev(host->mmc),
mmc               998 drivers/mmc/host/usdhi6rol0.c 		dev_dbg(mmc_dev(host->mmc), "Command active, request aborted\n");
mmc              1029 drivers/mmc/host/usdhi6rol0.c 			dev_warn(mmc_dev(host->mmc), "%s(): %u blocks of %u bytes\n",
mmc              1046 drivers/mmc/host/usdhi6rol0.c 			dev_dbg(mmc_dev(host->mmc),
mmc              1058 drivers/mmc/host/usdhi6rol0.c 		dev_dbg(mmc_dev(host->mmc),
mmc              1065 drivers/mmc/host/usdhi6rol0.c 		dev_dbg(mmc_dev(host->mmc), "%s(): request opcode %u\n",
mmc              1086 drivers/mmc/host/usdhi6rol0.c static void usdhi6_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc              1088 drivers/mmc/host/usdhi6rol0.c 	struct usdhi6_host *host = mmc_priv(mmc);
mmc              1104 drivers/mmc/host/usdhi6rol0.c static int usdhi6_get_cd(struct mmc_host *mmc)
mmc              1106 drivers/mmc/host/usdhi6rol0.c 	struct usdhi6_host *host = mmc_priv(mmc);
mmc              1117 drivers/mmc/host/usdhi6rol0.c 	return !status ^ !(mmc->caps2 & MMC_CAP2_CD_ACTIVE_HIGH);
mmc              1120 drivers/mmc/host/usdhi6rol0.c static int usdhi6_get_ro(struct mmc_host *mmc)
mmc              1122 drivers/mmc/host/usdhi6rol0.c 	struct usdhi6_host *host = mmc_priv(mmc);
mmc              1133 drivers/mmc/host/usdhi6rol0.c 	return !status ^ !(mmc->caps2 & MMC_CAP2_RO_ACTIVE_HIGH);
mmc              1136 drivers/mmc/host/usdhi6rol0.c static void usdhi6_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc              1138 drivers/mmc/host/usdhi6rol0.c 	struct usdhi6_host *host = mmc_priv(mmc);
mmc              1140 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(mmc), "%s(): %sable\n", __func__, enable ? "en" : "dis");
mmc              1170 drivers/mmc/host/usdhi6rol0.c static int usdhi6_sig_volt_switch(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              1174 drivers/mmc/host/usdhi6rol0.c 	ret = mmc_regulator_set_vqmmc(mmc, ios);
mmc              1178 drivers/mmc/host/usdhi6rol0.c 	ret = usdhi6_set_pinstates(mmc_priv(mmc), ios->signal_voltage);
mmc              1180 drivers/mmc/host/usdhi6rol0.c 		dev_warn_once(mmc_dev(mmc),
mmc              1226 drivers/mmc/host/usdhi6rol0.c 		dev_err(mmc_dev(host->mmc),
mmc              1245 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "Response 0x%x\n", rsp[0]);
mmc              1283 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): %d\n", __func__, data->error);
mmc              1326 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): %d\n", __func__, data->error);
mmc              1344 drivers/mmc/host/usdhi6rol0.c 		dev_err(mmc_dev(host->mmc),
mmc              1506 drivers/mmc/host/usdhi6rol0.c 			dev_warn(mmc_dev(host->mmc), "%s(): %d\n", __func__, ret);
mmc              1515 drivers/mmc/host/usdhi6rol0.c 			dev_warn(mmc_dev(host->mmc), "%s(): %d\n", __func__,
mmc              1521 drivers/mmc/host/usdhi6rol0.c 		dev_err(mmc_dev(host->mmc), "Invalid state %u\n", host->wait);
mmc              1553 drivers/mmc/host/usdhi6rol0.c 				dev_warn(mmc_dev(host->mmc), "%s(): data error %d\n",
mmc              1578 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc),
mmc              1607 drivers/mmc/host/usdhi6rol0.c 			dev_warn(mmc_dev(host->mmc),
mmc              1611 drivers/mmc/host/usdhi6rol0.c 			dev_dbg(mmc_dev(host->mmc),
mmc              1624 drivers/mmc/host/usdhi6rol0.c 	dev_dbg(mmc_dev(host->mmc), "%s(): status 0x%x\n", __func__, status);
mmc              1631 drivers/mmc/host/usdhi6rol0.c 	mmc_signal_sdio_irq(host->mmc);
mmc              1639 drivers/mmc/host/usdhi6rol0.c 	struct mmc_host *mmc = host->mmc;
mmc              1652 drivers/mmc/host/usdhi6rol0.c 	if (!work_pending(&mmc->detect.work) &&
mmc              1654 drivers/mmc/host/usdhi6rol0.c 	      !mmc->card) ||
mmc              1656 drivers/mmc/host/usdhi6rol0.c 	      mmc->card)))
mmc              1657 drivers/mmc/host/usdhi6rol0.c 		mmc_detect_change(mmc, msecs_to_jiffies(100));
mmc              1675 drivers/mmc/host/usdhi6rol0.c 	dev_warn(mmc_dev(host->mmc),
mmc              1689 drivers/mmc/host/usdhi6rol0.c 		dev_err(mmc_dev(host->mmc), "Invalid state %u\n", host->wait);
mmc              1706 drivers/mmc/host/usdhi6rol0.c 		dev_dbg(mmc_dev(host->mmc),
mmc              1733 drivers/mmc/host/usdhi6rol0.c 	struct mmc_host *mmc;
mmc              1749 drivers/mmc/host/usdhi6rol0.c 	mmc = mmc_alloc_host(sizeof(struct usdhi6_host), dev);
mmc              1750 drivers/mmc/host/usdhi6rol0.c 	if (!mmc)
mmc              1753 drivers/mmc/host/usdhi6rol0.c 	ret = mmc_regulator_get_supply(mmc);
mmc              1757 drivers/mmc/host/usdhi6rol0.c 	ret = mmc_of_parse(mmc);
mmc              1761 drivers/mmc/host/usdhi6rol0.c 	host		= mmc_priv(mmc);
mmc              1762 drivers/mmc/host/usdhi6rol0.c 	host->mmc	= mmc;
mmc              1821 drivers/mmc/host/usdhi6rol0.c 		mmc->caps |= MMC_CAP_NEEDS_POLL;
mmc              1838 drivers/mmc/host/usdhi6rol0.c 	mmc->ops = &usdhi6_ops;
mmc              1839 drivers/mmc/host/usdhi6rol0.c 	mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
mmc              1842 drivers/mmc/host/usdhi6rol0.c 	mmc->max_segs = 32;
mmc              1843 drivers/mmc/host/usdhi6rol0.c 	mmc->max_blk_size = 512;
mmc              1844 drivers/mmc/host/usdhi6rol0.c 	mmc->max_req_size = PAGE_SIZE * mmc->max_segs;
mmc              1845 drivers/mmc/host/usdhi6rol0.c 	mmc->max_blk_count = mmc->max_req_size / mmc->max_blk_size;
mmc              1854 drivers/mmc/host/usdhi6rol0.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1855 drivers/mmc/host/usdhi6rol0.c 	if (!mmc->f_max)
mmc              1856 drivers/mmc/host/usdhi6rol0.c 		mmc->f_max = host->imclk;
mmc              1857 drivers/mmc/host/usdhi6rol0.c 	mmc->f_min = host->imclk / 512;
mmc              1861 drivers/mmc/host/usdhi6rol0.c 	ret = mmc_add_host(mmc);
mmc              1870 drivers/mmc/host/usdhi6rol0.c 	mmc_free_host(mmc);
mmc              1879 drivers/mmc/host/usdhi6rol0.c 	mmc_remove_host(host->mmc);
mmc              1885 drivers/mmc/host/usdhi6rol0.c 	mmc_free_host(host->mmc);
mmc                91 drivers/mmc/host/ushc.c 	struct mmc_host *mmc;
mmc               186 drivers/mmc/host/ushc.c 		mmc_signal_sdio_irq(ushc->mmc);
mmc               190 drivers/mmc/host/ushc.c 		mmc_detect_change(ushc->mmc, msecs_to_jiffies(100));
mmc               245 drivers/mmc/host/ushc.c 	mmc_request_done(ushc->mmc, req);
mmc               248 drivers/mmc/host/ushc.c static void ushc_request(struct mmc_host *mmc, struct mmc_request *req)
mmc               250 drivers/mmc/host/ushc.c 	struct ushc_data *ushc = mmc_priv(mmc);
mmc               317 drivers/mmc/host/ushc.c 		mmc_request_done(mmc, req);
mmc               371 drivers/mmc/host/ushc.c static void ushc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               373 drivers/mmc/host/ushc.c 	struct ushc_data *ushc = mmc_priv(mmc);
mmc               380 drivers/mmc/host/ushc.c static int ushc_get_cd(struct mmc_host *mmc)
mmc               382 drivers/mmc/host/ushc.c 	struct ushc_data *ushc = mmc_priv(mmc);
mmc               387 drivers/mmc/host/ushc.c static void ushc_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc               389 drivers/mmc/host/ushc.c 	struct ushc_data *ushc = mmc_priv(mmc);
mmc               408 drivers/mmc/host/ushc.c 	mmc_free_host(ushc->mmc);
mmc               421 drivers/mmc/host/ushc.c 	struct mmc_host *mmc;
mmc               428 drivers/mmc/host/ushc.c 	mmc = mmc_alloc_host(sizeof(struct ushc_data), &intf->dev);
mmc               429 drivers/mmc/host/ushc.c 	if (mmc == NULL)
mmc               431 drivers/mmc/host/ushc.c 	ushc = mmc_priv(mmc);
mmc               435 drivers/mmc/host/ushc.c 	ushc->mmc = mmc;
mmc               448 drivers/mmc/host/ushc.c 	mmc->ops = &ushc_ops;
mmc               450 drivers/mmc/host/ushc.c 	mmc->f_min = 400000;
mmc               451 drivers/mmc/host/ushc.c 	mmc->f_max = 50000000;
mmc               452 drivers/mmc/host/ushc.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc               453 drivers/mmc/host/ushc.c 	mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SDIO_IRQ;
mmc               454 drivers/mmc/host/ushc.c 	mmc->caps |= (ushc->caps & USHC_GET_CAPS_HIGH_SPD) ? MMC_CAP_SD_HIGHSPEED : 0;
mmc               456 drivers/mmc/host/ushc.c 	mmc->max_seg_size  = 512*511;
mmc               457 drivers/mmc/host/ushc.c 	mmc->max_segs      = 1;
mmc               458 drivers/mmc/host/ushc.c 	mmc->max_req_size  = 512*511;
mmc               459 drivers/mmc/host/ushc.c 	mmc->max_blk_size  = 512;
mmc               460 drivers/mmc/host/ushc.c 	mmc->max_blk_count = 511;
mmc               515 drivers/mmc/host/ushc.c 	ret = mmc_add_host(ushc->mmc);
mmc               521 drivers/mmc/host/ushc.c 		mmc_remove_host(ushc->mmc);
mmc               545 drivers/mmc/host/ushc.c 	mmc_remove_host(ushc->mmc);
mmc               296 drivers/mmc/host/via-sdmmc.c 	struct mmc_host *mmc;
mmc               470 drivers/mmc/host/via-sdmmc.c 		dev_info(host->mmc->parent, "forcing card speed to 8MHz\n");
mmc               485 drivers/mmc/host/via-sdmmc.c 	BUG_ON(data->blksz > host->mmc->max_blk_size);
mmc               486 drivers/mmc/host/via-sdmmc.c 	BUG_ON(data->blocks > host->mmc->max_blk_count);
mmc               490 drivers/mmc/host/via-sdmmc.c 	count = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc               583 drivers/mmc/host/via-sdmmc.c 		pr_err("%s: cmd->flag is not valid\n", mmc_hostname(host->mmc));
mmc               634 drivers/mmc/host/via-sdmmc.c 	dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
mmc               656 drivers/mmc/host/via-sdmmc.c static void via_sdc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               663 drivers/mmc/host/via-sdmmc.c 	host = mmc_priv(mmc);
mmc               714 drivers/mmc/host/via-sdmmc.c static void via_sdc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               722 drivers/mmc/host/via-sdmmc.c 	host = mmc_priv(mmc);
mmc               775 drivers/mmc/host/via-sdmmc.c static int via_sdc_get_ro(struct mmc_host *mmc)
mmc               781 drivers/mmc/host/via-sdmmc.c 	host = mmc_priv(mmc);
mmc               836 drivers/mmc/host/via-sdmmc.c 		       mmc_hostname(host->mmc), intmask);
mmc               914 drivers/mmc/host/via-sdmmc.c 		       mmc_hostname(sdhost->mmc), sd_status);
mmc               937 drivers/mmc/host/via-sdmmc.c 		       "cmd:0x%x\n", mmc_hostname(sdhost->mmc),
mmc               975 drivers/mmc/host/via-sdmmc.c 	mmc_request_done(host->mmc, mrq);
mmc              1000 drivers/mmc/host/via-sdmmc.c 			       mmc_hostname(host->mmc));
mmc              1017 drivers/mmc/host/via-sdmmc.c 	mmc_detect_change(host->mmc, msecs_to_jiffies(500));
mmc              1022 drivers/mmc/host/via-sdmmc.c 	struct mmc_host *mmc = host->mmc;
mmc              1031 drivers/mmc/host/via-sdmmc.c 	mmc->f_min = VIA_CRDR_MIN_CLOCK;
mmc              1032 drivers/mmc/host/via-sdmmc.c 	mmc->f_max = VIA_CRDR_MAX_CLOCK;
mmc              1033 drivers/mmc/host/via-sdmmc.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195;
mmc              1034 drivers/mmc/host/via-sdmmc.c 	mmc->caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED;
mmc              1035 drivers/mmc/host/via-sdmmc.c 	mmc->ops = &via_sdc_ops;
mmc              1038 drivers/mmc/host/via-sdmmc.c 	mmc->max_segs = 1;
mmc              1040 drivers/mmc/host/via-sdmmc.c 	mmc->max_blk_size = VIA_CRDR_MAX_BLOCK_LENGTH;
mmc              1041 drivers/mmc/host/via-sdmmc.c 	mmc->max_blk_count = VIA_CRDR_MAX_BLOCK_COUNT;
mmc              1043 drivers/mmc/host/via-sdmmc.c 	mmc->max_seg_size = mmc->max_blk_size * mmc->max_blk_count;
mmc              1044 drivers/mmc/host/via-sdmmc.c 	mmc->max_req_size = mmc->max_seg_size;
mmc              1075 drivers/mmc/host/via-sdmmc.c 	struct mmc_host *mmc;
mmc              1097 drivers/mmc/host/via-sdmmc.c 	mmc = mmc_alloc_host(sizeof(struct via_crdr_mmc_host), &pcidev->dev);
mmc              1098 drivers/mmc/host/via-sdmmc.c 	if (!mmc) {
mmc              1103 drivers/mmc/host/via-sdmmc.c 	sdhost = mmc_priv(mmc);
mmc              1104 drivers/mmc/host/via-sdmmc.c 	sdhost->mmc = mmc;
mmc              1149 drivers/mmc/host/via-sdmmc.c 	mmc_add_host(mmc);
mmc              1157 drivers/mmc/host/via-sdmmc.c 	mmc_free_host(mmc);
mmc              1182 drivers/mmc/host/via-sdmmc.c 			"transfer\n", mmc_hostname(sdhost->mmc));
mmc              1194 drivers/mmc/host/via-sdmmc.c 	mmc_remove_host(sdhost->mmc);
mmc              1209 drivers/mmc/host/via-sdmmc.c 	mmc_free_host(sdhost->mmc);
mmc               336 drivers/mmc/host/vub300.c 	struct mmc_host *mmc;
mmc               372 drivers/mmc/host/vub300.c 	struct mmc_host *mmc = vub300->mmc;
mmc               378 drivers/mmc/host/vub300.c 	mmc_free_host(mmc);
mmc               519 drivers/mmc/host/vub300.c 		mmc_detect_change(vub300->mmc, 1);
mmc               523 drivers/mmc/host/vub300.c 		mmc_detect_change(vub300->mmc, 0);
mmc               594 drivers/mmc/host/vub300.c 			mmc_signal_sdio_irq(vub300->mmc);
mmc               621 drivers/mmc/host/vub300.c 			mmc_signal_sdio_irq(vub300->mmc);
mmc               639 drivers/mmc/host/vub300.c 			mmc_signal_sdio_irq(vub300->mmc);
mmc               696 drivers/mmc/host/vub300.c 			mmc_signal_sdio_irq(vub300->mmc);
mmc               726 drivers/mmc/host/vub300.c 	} else if (vub300->mmc && vub300->mmc->card) {
mmc              1357 drivers/mmc/host/vub300.c 	struct mmc_card *card = vub300->mmc->card;
mmc              1753 drivers/mmc/host/vub300.c 		if (likely(vub300->vub_name[0]) || !vub300->mmc->card) {
mmc              1759 drivers/mmc/host/vub300.c 		} else if (0 == vub300->mmc->card->sdio_funcs) {
mmc              1780 drivers/mmc/host/vub300.c 			mmc_request_done(vub300->mmc, req);
mmc              1788 drivers/mmc/host/vub300.c 			mmc_request_done(vub300->mmc, req);
mmc              1898 drivers/mmc/host/vub300.c static void vub300_mmc_request(struct mmc_host *mmc, struct mmc_request *req)
mmc              1901 drivers/mmc/host/vub300.c 	struct vub300_mmc_host *vub300 = mmc_priv(mmc);
mmc              1904 drivers/mmc/host/vub300.c 		mmc_request_done(mmc, req);
mmc              1910 drivers/mmc/host/vub300.c 			mmc_request_done(mmc, req);
mmc              1915 drivers/mmc/host/vub300.c 			mmc_request_done(mmc, req);
mmc              1920 drivers/mmc/host/vub300.c 			mmc_request_done(mmc, req);
mmc              1925 drivers/mmc/host/vub300.c 			mmc_request_done(mmc, req);
mmc              1940 drivers/mmc/host/vub300.c 			mmc_request_done(mmc, req);
mmc              2004 drivers/mmc/host/vub300.c static void vub300_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc              2006 drivers/mmc/host/vub300.c 	struct vub300_mmc_host *vub300 = mmc_priv(mmc);
mmc              2039 drivers/mmc/host/vub300.c static int vub300_mmc_get_ro(struct mmc_host *mmc)
mmc              2041 drivers/mmc/host/vub300.c 	struct vub300_mmc_host *vub300 = mmc_priv(mmc);
mmc              2045 drivers/mmc/host/vub300.c static void vub300_enable_sdio_irq(struct mmc_host *mmc, int enable)
mmc              2047 drivers/mmc/host/vub300.c 	struct vub300_mmc_host *vub300 = mmc_priv(mmc);
mmc              2055 drivers/mmc/host/vub300.c 			mmc_signal_sdio_irq(vub300->mmc);
mmc              2073 drivers/mmc/host/vub300.c static void vub300_init_card(struct mmc_host *mmc, struct mmc_card *card)
mmc              2075 drivers/mmc/host/vub300.c 	struct vub300_mmc_host *vub300 = mmc_priv(mmc);
mmc              2097 drivers/mmc/host/vub300.c 	struct mmc_host *mmc;
mmc              2121 drivers/mmc/host/vub300.c 	mmc = mmc_alloc_host(sizeof(struct vub300_mmc_host), &udev->dev);
mmc              2122 drivers/mmc/host/vub300.c 	if (!mmc) {
mmc              2128 drivers/mmc/host/vub300.c 	mmc->caps = 0;
mmc              2130 drivers/mmc/host/vub300.c 		mmc->caps |= MMC_CAP_4_BIT_DATA;
mmc              2132 drivers/mmc/host/vub300.c 		mmc->caps |= MMC_CAP_SDIO_IRQ;
mmc              2133 drivers/mmc/host/vub300.c 	mmc->caps &= ~MMC_CAP_NEEDS_POLL;
mmc              2140 drivers/mmc/host/vub300.c 		mmc->caps |= MMC_CAP_MMC_HIGHSPEED;
mmc              2141 drivers/mmc/host/vub300.c 		mmc->caps |= MMC_CAP_SD_HIGHSPEED;
mmc              2142 drivers/mmc/host/vub300.c 		mmc->f_max = 24000000;
mmc              2145 drivers/mmc/host/vub300.c 		mmc->caps |= MMC_CAP_MMC_HIGHSPEED;
mmc              2146 drivers/mmc/host/vub300.c 		mmc->caps |= MMC_CAP_SD_HIGHSPEED;
mmc              2147 drivers/mmc/host/vub300.c 		mmc->f_max = 48000000;
mmc              2149 drivers/mmc/host/vub300.c 	mmc->f_min = 200000;
mmc              2150 drivers/mmc/host/vub300.c 	mmc->max_blk_count = 511;
mmc              2151 drivers/mmc/host/vub300.c 	mmc->max_blk_size = 512;
mmc              2152 drivers/mmc/host/vub300.c 	mmc->max_segs = 128;
mmc              2154 drivers/mmc/host/vub300.c 		mmc->max_req_size = force_max_req_size * 1024;
mmc              2156 drivers/mmc/host/vub300.c 		mmc->max_req_size = 64 * 1024;
mmc              2157 drivers/mmc/host/vub300.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              2158 drivers/mmc/host/vub300.c 	mmc->ocr_avail = 0;
mmc              2159 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_165_195;
mmc              2160 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_20_21;
mmc              2161 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_21_22;
mmc              2162 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_22_23;
mmc              2163 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_23_24;
mmc              2164 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_24_25;
mmc              2165 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_25_26;
mmc              2166 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_26_27;
mmc              2167 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_27_28;
mmc              2168 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_28_29;
mmc              2169 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_29_30;
mmc              2170 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_30_31;
mmc              2171 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_31_32;
mmc              2172 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_32_33;
mmc              2173 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_33_34;
mmc              2174 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_34_35;
mmc              2175 drivers/mmc/host/vub300.c 	mmc->ocr_avail |= MMC_VDD_35_36;
mmc              2176 drivers/mmc/host/vub300.c 	mmc->ops = &vub300_mmc_ops;
mmc              2177 drivers/mmc/host/vub300.c 	vub300 = mmc_priv(mmc);
mmc              2178 drivers/mmc/host/vub300.c 	vub300->mmc = mmc;
mmc              2297 drivers/mmc/host/vub300.c 		 (mmc->caps & MMC_CAP_SDIO_IRQ) ? "IRQs" : "POLL",
mmc              2298 drivers/mmc/host/vub300.c 		 (mmc->caps & MMC_CAP_4_BIT_DATA) ? "4-bit" : "1-bit",
mmc              2299 drivers/mmc/host/vub300.c 		 mmc->f_max / 1000000,
mmc              2339 drivers/mmc/host/vub300.c 	mmc_add_host(mmc);
mmc              2342 drivers/mmc/host/vub300.c 	mmc_free_host(mmc);
mmc              2359 drivers/mmc/host/vub300.c 	if (!vub300 || !vub300->mmc) {
mmc              2362 drivers/mmc/host/vub300.c 		struct mmc_host *mmc = vub300->mmc;
mmc              2363 drivers/mmc/host/vub300.c 		if (!vub300->mmc) {
mmc              2371 drivers/mmc/host/vub300.c 			mmc_remove_host(mmc);
mmc               192 drivers/mmc/host/wbsd.c 	pr_err("%s: Resetting chip\n", mmc_hostname(host->mmc));
mmc               227 drivers/mmc/host/wbsd.c 	mmc_request_done(host->mmc, mrq);
mmc               713 drivers/mmc/host/wbsd.c 				mmc_hostname(host->mmc), count);
mmc               741 drivers/mmc/host/wbsd.c static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               743 drivers/mmc/host/wbsd.c 	struct wbsd_host *host = mmc_priv(mmc);
mmc               793 drivers/mmc/host/wbsd.c 				mmc_hostname(host->mmc), cmd->opcode);
mmc               835 drivers/mmc/host/wbsd.c static void wbsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               837 drivers/mmc/host/wbsd.c 	struct wbsd_host *host = mmc_priv(mmc);
mmc               908 drivers/mmc/host/wbsd.c static int wbsd_get_ro(struct mmc_host *mmc)
mmc               910 drivers/mmc/host/wbsd.c 	struct wbsd_host *host = mmc_priv(mmc);
mmc              1017 drivers/mmc/host/wbsd.c 				mmc_hostname(host->mmc));
mmc              1034 drivers/mmc/host/wbsd.c 		mmc_detect_change(host->mmc, msecs_to_jiffies(delay));
mmc              1185 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc;
mmc              1191 drivers/mmc/host/wbsd.c 	mmc = mmc_alloc_host(sizeof(struct wbsd_host), dev);
mmc              1192 drivers/mmc/host/wbsd.c 	if (!mmc)
mmc              1195 drivers/mmc/host/wbsd.c 	host = mmc_priv(mmc);
mmc              1196 drivers/mmc/host/wbsd.c 	host->mmc = mmc;
mmc              1203 drivers/mmc/host/wbsd.c 	mmc->ops = &wbsd_ops;
mmc              1204 drivers/mmc/host/wbsd.c 	mmc->f_min = 375000;
mmc              1205 drivers/mmc/host/wbsd.c 	mmc->f_max = 24000000;
mmc              1206 drivers/mmc/host/wbsd.c 	mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;
mmc              1207 drivers/mmc/host/wbsd.c 	mmc->caps = MMC_CAP_4_BIT_DATA;
mmc              1220 drivers/mmc/host/wbsd.c 	mmc->max_segs = 128;
mmc              1225 drivers/mmc/host/wbsd.c 	mmc->max_req_size = 65536;
mmc              1231 drivers/mmc/host/wbsd.c 	mmc->max_seg_size = mmc->max_req_size;
mmc              1237 drivers/mmc/host/wbsd.c 	mmc->max_blk_size = 4087;
mmc              1243 drivers/mmc/host/wbsd.c 	mmc->max_blk_count = mmc->max_req_size;
mmc              1245 drivers/mmc/host/wbsd.c 	dev_set_drvdata(dev, mmc);
mmc              1252 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc;
mmc              1255 drivers/mmc/host/wbsd.c 	mmc = dev_get_drvdata(dev);
mmc              1256 drivers/mmc/host/wbsd.c 	if (!mmc)
mmc              1259 drivers/mmc/host/wbsd.c 	host = mmc_priv(mmc);
mmc              1264 drivers/mmc/host/wbsd.c 	mmc_free_host(mmc);
mmc              1379 drivers/mmc/host/wbsd.c 	host->dma_addr = dma_map_single(mmc_dev(host->mmc), host->dma_buffer,
mmc              1381 drivers/mmc/host/wbsd.c 	if (dma_mapping_error(mmc_dev(host->mmc), host->dma_addr))
mmc              1405 drivers/mmc/host/wbsd.c 	dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
mmc              1427 drivers/mmc/host/wbsd.c 		dma_unmap_single(mmc_dev(host->mmc), host->dma_addr,
mmc              1639 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc = NULL;
mmc              1646 drivers/mmc/host/wbsd.c 	mmc = dev_get_drvdata(dev);
mmc              1647 drivers/mmc/host/wbsd.c 	host = mmc_priv(mmc);
mmc              1704 drivers/mmc/host/wbsd.c 	mmc_add_host(mmc);
mmc              1706 drivers/mmc/host/wbsd.c 	pr_info("%s: W83L51xD", mmc_hostname(mmc));
mmc              1723 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc              1726 drivers/mmc/host/wbsd.c 	if (!mmc)
mmc              1729 drivers/mmc/host/wbsd.c 	host = mmc_priv(mmc);
mmc              1731 drivers/mmc/host/wbsd.c 	mmc_remove_host(mmc);
mmc              1803 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc = platform_get_drvdata(dev);
mmc              1806 drivers/mmc/host/wbsd.c 	if (mmc == NULL)
mmc              1811 drivers/mmc/host/wbsd.c 	host = mmc_priv(mmc);
mmc              1819 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc = platform_get_drvdata(dev);
mmc              1822 drivers/mmc/host/wbsd.c 	if (mmc == NULL)
mmc              1827 drivers/mmc/host/wbsd.c 	host = mmc_priv(mmc);
mmc              1844 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc = dev_get_drvdata(&pnp_dev->dev);
mmc              1846 drivers/mmc/host/wbsd.c 	if (mmc == NULL)
mmc              1855 drivers/mmc/host/wbsd.c 	struct mmc_host *mmc = dev_get_drvdata(&pnp_dev->dev);
mmc              1858 drivers/mmc/host/wbsd.c 	if (mmc == NULL)
mmc              1863 drivers/mmc/host/wbsd.c 	host = mmc_priv(mmc);
mmc               138 drivers/mmc/host/wbsd.h 	struct mmc_host*	mmc;		/* MMC structure */
mmc               186 drivers/mmc/host/wmt-sdmmc.c 	struct mmc_host *mmc;
mmc               223 drivers/mmc/host/wmt-sdmmc.c static void wmt_mci_read_response(struct mmc_host *mmc)
mmc               230 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               254 drivers/mmc/host/wmt-sdmmc.c static int wmt_mci_send_command(struct mmc_host *mmc, u8 command, u8 cmdtype,
mmc               260 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               303 drivers/mmc/host/wmt-sdmmc.c 		dma_unmap_sg(mmc_dev(priv->mmc), req->data->sg,
mmc               306 drivers/mmc/host/wmt-sdmmc.c 		dma_unmap_sg(mmc_dev(priv->mmc), req->data->sg,
mmc               311 drivers/mmc/host/wmt-sdmmc.c 		mmc_request_done(priv->mmc, req);
mmc               313 drivers/mmc/host/wmt-sdmmc.c 		wmt_mci_read_response(priv->mmc);
mmc               316 drivers/mmc/host/wmt-sdmmc.c 			mmc_request_done(priv->mmc, req);
mmc               326 drivers/mmc/host/wmt-sdmmc.c 			wmt_mci_send_command(priv->mmc, req->data->stop->opcode,
mmc               388 drivers/mmc/host/wmt-sdmmc.c 		mmc_detect_change(priv->mmc, 0);
mmc               417 drivers/mmc/host/wmt-sdmmc.c 				wmt_mci_read_response(priv->mmc);
mmc               421 drivers/mmc/host/wmt-sdmmc.c 			mmc_request_done(priv->mmc, priv->req);
mmc               462 drivers/mmc/host/wmt-sdmmc.c static void wmt_reset_hardware(struct mmc_host *mmc)
mmc               467 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               501 drivers/mmc/host/wmt-sdmmc.c static int wmt_dma_init(struct mmc_host *mmc)
mmc               505 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               525 drivers/mmc/host/wmt-sdmmc.c static void wmt_dma_config(struct mmc_host *mmc, u32 descaddr, u8 dir)
mmc               530 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               559 drivers/mmc/host/wmt-sdmmc.c static void wmt_mci_request(struct mmc_host *mmc, struct mmc_request *req)
mmc               576 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               599 drivers/mmc/host/wmt-sdmmc.c 		wmt_mci_send_command(mmc, command, cmdtype, arg, rsptype);
mmc               607 drivers/mmc/host/wmt-sdmmc.c 		wmt_dma_init(mmc);
mmc               620 drivers/mmc/host/wmt-sdmmc.c 			sg_cnt = dma_map_sg(mmc_dev(mmc), req->data->sg,
mmc               626 drivers/mmc/host/wmt-sdmmc.c 			sg_cnt = dma_map_sg(mmc_dev(mmc), req->data->sg,
mmc               654 drivers/mmc/host/wmt-sdmmc.c 			wmt_dma_config(mmc, priv->dma_desc_device_addr,
mmc               657 drivers/mmc/host/wmt-sdmmc.c 			wmt_dma_config(mmc, priv->dma_desc_device_addr,
mmc               660 drivers/mmc/host/wmt-sdmmc.c 		wmt_mci_send_command(mmc, command, cmdtype, arg, rsptype);
mmc               670 drivers/mmc/host/wmt-sdmmc.c static void wmt_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               675 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               678 drivers/mmc/host/wmt-sdmmc.c 		wmt_reset_hardware(mmc);
mmc               710 drivers/mmc/host/wmt-sdmmc.c static int wmt_mci_get_ro(struct mmc_host *mmc)
mmc               712 drivers/mmc/host/wmt-sdmmc.c 	struct wmt_mci_priv *priv = mmc_priv(mmc);
mmc               717 drivers/mmc/host/wmt-sdmmc.c static int wmt_mci_get_cd(struct mmc_host *mmc)
mmc               719 drivers/mmc/host/wmt-sdmmc.c 	struct wmt_mci_priv *priv = mmc_priv(mmc);
mmc               751 drivers/mmc/host/wmt-sdmmc.c 	struct mmc_host *mmc;
mmc               781 drivers/mmc/host/wmt-sdmmc.c 	mmc = mmc_alloc_host(sizeof(struct wmt_mci_priv), &pdev->dev);
mmc               782 drivers/mmc/host/wmt-sdmmc.c 	if (!mmc) {
mmc               788 drivers/mmc/host/wmt-sdmmc.c 	mmc->ops = &wmt_mci_ops;
mmc               789 drivers/mmc/host/wmt-sdmmc.c 	mmc->f_min = wmt_caps->f_min;
mmc               790 drivers/mmc/host/wmt-sdmmc.c 	mmc->f_max = wmt_caps->f_max;
mmc               791 drivers/mmc/host/wmt-sdmmc.c 	mmc->ocr_avail = wmt_caps->ocr_avail;
mmc               792 drivers/mmc/host/wmt-sdmmc.c 	mmc->caps = wmt_caps->caps;
mmc               794 drivers/mmc/host/wmt-sdmmc.c 	mmc->max_seg_size = wmt_caps->max_seg_size;
mmc               795 drivers/mmc/host/wmt-sdmmc.c 	mmc->max_segs = wmt_caps->max_segs;
mmc               796 drivers/mmc/host/wmt-sdmmc.c 	mmc->max_blk_size = wmt_caps->max_blk_size;
mmc               798 drivers/mmc/host/wmt-sdmmc.c 	mmc->max_req_size = (16*512*mmc->max_segs);
mmc               799 drivers/mmc/host/wmt-sdmmc.c 	mmc->max_blk_count = mmc->max_req_size / 512;
mmc               801 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               802 drivers/mmc/host/wmt-sdmmc.c 	priv->mmc = mmc;
mmc               837 drivers/mmc/host/wmt-sdmmc.c 						   mmc->max_blk_count * 16,
mmc               846 drivers/mmc/host/wmt-sdmmc.c 	platform_set_drvdata(pdev, mmc);
mmc               860 drivers/mmc/host/wmt-sdmmc.c 	wmt_reset_hardware(mmc);
mmc               862 drivers/mmc/host/wmt-sdmmc.c 	mmc_add_host(mmc);
mmc               876 drivers/mmc/host/wmt-sdmmc.c 	mmc_free_host(mmc);
mmc               883 drivers/mmc/host/wmt-sdmmc.c 	struct mmc_host *mmc;
mmc               888 drivers/mmc/host/wmt-sdmmc.c 	mmc = platform_get_drvdata(pdev);
mmc               889 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               900 drivers/mmc/host/wmt-sdmmc.c 	dma_free_coherent(&pdev->dev, priv->mmc->max_blk_count * 16,
mmc               903 drivers/mmc/host/wmt-sdmmc.c 	mmc_remove_host(mmc);
mmc               916 drivers/mmc/host/wmt-sdmmc.c 	mmc_free_host(mmc);
mmc               927 drivers/mmc/host/wmt-sdmmc.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc               930 drivers/mmc/host/wmt-sdmmc.c 	if (!mmc)
mmc               933 drivers/mmc/host/wmt-sdmmc.c 	priv = mmc_priv(mmc);
mmc               951 drivers/mmc/host/wmt-sdmmc.c 	struct mmc_host *mmc = dev_get_drvdata(dev);
mmc               954 drivers/mmc/host/wmt-sdmmc.c 	if (mmc) {
mmc               955 drivers/mmc/host/wmt-sdmmc.c 		priv = mmc_priv(mmc);
mmc              1670 drivers/net/ethernet/agere/et131x.c 	writel(ET_MMC_ENABLE, &adapter->regs->mmc.mmc_ctrl);
mmc              1246 drivers/net/ethernet/agere/et131x.h 	struct mmc_regs mmc;
mmc               747 drivers/net/ethernet/amd/xgbe/xgbe-drv.c 	hw_feat->mmc         = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL);
mmc               843 drivers/net/ethernet/amd/xgbe/xgbe-drv.c 			hw_feat->mmc ? "yes" : "no");
mmc               969 drivers/net/ethernet/amd/xgbe/xgbe.h 	unsigned int mmc;		/* RMON module */
mmc               441 drivers/net/ethernet/stmicro/stmmac/common.h 	const struct stmmac_mmc_ops *mmc;
mmc                84 drivers/net/ethernet/stmicro/stmmac/hwif.c 	const void *mmc;
mmc               104 drivers/net/ethernet/stmicro/stmmac/hwif.c 		.mmc = &dwmac_mmc_ops,
mmc               122 drivers/net/ethernet/stmicro/stmmac/hwif.c 		.mmc = &dwmac_mmc_ops,
mmc               140 drivers/net/ethernet/stmicro/stmmac/hwif.c 		.mmc = &dwmac_mmc_ops,
mmc               158 drivers/net/ethernet/stmicro/stmmac/hwif.c 		.mmc = &dwmac_mmc_ops,
mmc               176 drivers/net/ethernet/stmicro/stmmac/hwif.c 		.mmc = &dwmac_mmc_ops,
mmc               194 drivers/net/ethernet/stmicro/stmmac/hwif.c 		.mmc = &dwmac_mmc_ops,
mmc               212 drivers/net/ethernet/stmicro/stmmac/hwif.c 		.mmc = &dwxgmac_mmc_ops,
mmc               278 drivers/net/ethernet/stmicro/stmmac/hwif.c 		mac->mmc = mac->mmc ? : entry->mmc;
mmc               542 drivers/net/ethernet/stmicro/stmmac/hwif.h 	void (*read)(void __iomem *ioaddr, struct stmmac_counters *mmc);
mmc               546 drivers/net/ethernet/stmicro/stmmac/hwif.h 	stmmac_do_void_callback(__priv, mmc, ctrl, __args)
mmc               548 drivers/net/ethernet/stmicro/stmmac/hwif.h 	stmmac_do_void_callback(__priv, mmc, intr_all_mask, __args)
mmc               550 drivers/net/ethernet/stmicro/stmmac/hwif.h 	stmmac_do_void_callback(__priv, mmc, read, __args)
mmc               206 drivers/net/ethernet/stmicro/stmmac/mmc_core.c static void dwmac_mmc_read(void __iomem *mmcaddr, struct stmmac_counters *mmc)
mmc               208 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_octetcount_gb += readl(mmcaddr + MMC_TX_OCTETCOUNT_GB);
mmc               209 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_framecount_gb += readl(mmcaddr + MMC_TX_FRAMECOUNT_GB);
mmc               210 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_broadcastframe_g += readl(mmcaddr +
mmc               212 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_multicastframe_g += readl(mmcaddr +
mmc               214 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_64_octets_gb += readl(mmcaddr + MMC_TX_64_OCTETS_GB);
mmc               215 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_65_to_127_octets_gb +=
mmc               217 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_128_to_255_octets_gb +=
mmc               219 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_256_to_511_octets_gb +=
mmc               221 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_512_to_1023_octets_gb +=
mmc               223 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_1024_to_max_octets_gb +=
mmc               225 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_unicast_gb += readl(mmcaddr + MMC_TX_UNICAST_GB);
mmc               226 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_multicast_gb += readl(mmcaddr + MMC_TX_MULTICAST_GB);
mmc               227 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_broadcast_gb += readl(mmcaddr + MMC_TX_BROADCAST_GB);
mmc               228 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_underflow_error += readl(mmcaddr + MMC_TX_UNDERFLOW_ERROR);
mmc               229 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_singlecol_g += readl(mmcaddr + MMC_TX_SINGLECOL_G);
mmc               230 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_multicol_g += readl(mmcaddr + MMC_TX_MULTICOL_G);
mmc               231 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_deferred += readl(mmcaddr + MMC_TX_DEFERRED);
mmc               232 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_latecol += readl(mmcaddr + MMC_TX_LATECOL);
mmc               233 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_exesscol += readl(mmcaddr + MMC_TX_EXESSCOL);
mmc               234 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_carrier_error += readl(mmcaddr + MMC_TX_CARRIER_ERROR);
mmc               235 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_octetcount_g += readl(mmcaddr + MMC_TX_OCTETCOUNT_G);
mmc               236 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_framecount_g += readl(mmcaddr + MMC_TX_FRAMECOUNT_G);
mmc               237 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_excessdef += readl(mmcaddr + MMC_TX_EXCESSDEF);
mmc               238 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_pause_frame += readl(mmcaddr + MMC_TX_PAUSE_FRAME);
mmc               239 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_vlan_frame_g += readl(mmcaddr + MMC_TX_VLAN_FRAME_G);
mmc               242 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_framecount_gb += readl(mmcaddr + MMC_RX_FRAMECOUNT_GB);
mmc               243 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_octetcount_gb += readl(mmcaddr + MMC_RX_OCTETCOUNT_GB);
mmc               244 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_octetcount_g += readl(mmcaddr + MMC_RX_OCTETCOUNT_G);
mmc               245 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_broadcastframe_g += readl(mmcaddr +
mmc               247 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_multicastframe_g += readl(mmcaddr +
mmc               249 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_crc_error += readl(mmcaddr + MMC_RX_CRC_ERROR);
mmc               250 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_align_error += readl(mmcaddr + MMC_RX_ALIGN_ERROR);
mmc               251 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_run_error += readl(mmcaddr + MMC_RX_RUN_ERROR);
mmc               252 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_jabber_error += readl(mmcaddr + MMC_RX_JABBER_ERROR);
mmc               253 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_undersize_g += readl(mmcaddr + MMC_RX_UNDERSIZE_G);
mmc               254 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_oversize_g += readl(mmcaddr + MMC_RX_OVERSIZE_G);
mmc               255 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_64_octets_gb += readl(mmcaddr + MMC_RX_64_OCTETS_GB);
mmc               256 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_65_to_127_octets_gb +=
mmc               258 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_128_to_255_octets_gb +=
mmc               260 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_256_to_511_octets_gb +=
mmc               262 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_512_to_1023_octets_gb +=
mmc               264 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_1024_to_max_octets_gb +=
mmc               266 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_unicast_g += readl(mmcaddr + MMC_RX_UNICAST_G);
mmc               267 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_length_error += readl(mmcaddr + MMC_RX_LENGTH_ERROR);
mmc               268 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_autofrangetype += readl(mmcaddr + MMC_RX_AUTOFRANGETYPE);
mmc               269 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_pause_frames += readl(mmcaddr + MMC_RX_PAUSE_FRAMES);
mmc               270 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_fifo_overflow += readl(mmcaddr + MMC_RX_FIFO_OVERFLOW);
mmc               271 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_vlan_frames_gb += readl(mmcaddr + MMC_RX_VLAN_FRAMES_GB);
mmc               272 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_watchdog_error += readl(mmcaddr + MMC_RX_WATCHDOG_ERROR);
mmc               274 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipc_intr_mask += readl(mmcaddr + MMC_RX_IPC_INTR_MASK);
mmc               275 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipc_intr += readl(mmcaddr + MMC_RX_IPC_INTR);
mmc               277 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_gd += readl(mmcaddr + MMC_RX_IPV4_GD);
mmc               278 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_hderr += readl(mmcaddr + MMC_RX_IPV4_HDERR);
mmc               279 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_nopay += readl(mmcaddr + MMC_RX_IPV4_NOPAY);
mmc               280 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_frag += readl(mmcaddr + MMC_RX_IPV4_FRAG);
mmc               281 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_udsbl += readl(mmcaddr + MMC_RX_IPV4_UDSBL);
mmc               283 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_gd_octets += readl(mmcaddr + MMC_RX_IPV4_GD_OCTETS);
mmc               284 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_hderr_octets +=
mmc               286 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_nopay_octets +=
mmc               288 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_frag_octets += readl(mmcaddr +
mmc               290 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv4_udsbl_octets +=
mmc               294 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv6_gd_octets += readl(mmcaddr + MMC_RX_IPV6_GD_OCTETS);
mmc               295 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv6_hderr_octets +=
mmc               297 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv6_nopay_octets +=
mmc               300 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv6_gd += readl(mmcaddr + MMC_RX_IPV6_GD);
mmc               301 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv6_hderr += readl(mmcaddr + MMC_RX_IPV6_HDERR);
mmc               302 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_ipv6_nopay += readl(mmcaddr + MMC_RX_IPV6_NOPAY);
mmc               305 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_udp_gd += readl(mmcaddr + MMC_RX_UDP_GD);
mmc               306 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_udp_err += readl(mmcaddr + MMC_RX_UDP_ERR);
mmc               307 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_tcp_gd += readl(mmcaddr + MMC_RX_TCP_GD);
mmc               308 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_tcp_err += readl(mmcaddr + MMC_RX_TCP_ERR);
mmc               309 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_icmp_gd += readl(mmcaddr + MMC_RX_ICMP_GD);
mmc               310 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_icmp_err += readl(mmcaddr + MMC_RX_ICMP_ERR);
mmc               312 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_udp_gd_octets += readl(mmcaddr + MMC_RX_UDP_GD_OCTETS);
mmc               313 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_udp_err_octets += readl(mmcaddr + MMC_RX_UDP_ERR_OCTETS);
mmc               314 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_tcp_gd_octets += readl(mmcaddr + MMC_RX_TCP_GD_OCTETS);
mmc               315 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_tcp_err_octets += readl(mmcaddr + MMC_RX_TCP_ERR_OCTETS);
mmc               316 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_icmp_gd_octets += readl(mmcaddr + MMC_RX_ICMP_GD_OCTETS);
mmc               317 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_icmp_err_octets += readl(mmcaddr + MMC_RX_ICMP_ERR_OCTETS);
mmc               359 drivers/net/ethernet/stmicro/stmmac/mmc_core.c static void dwxgmac_mmc_read(void __iomem *mmcaddr, struct stmmac_counters *mmc)
mmc               362 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_octetcount_gb);
mmc               364 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_framecount_gb);
mmc               366 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_broadcastframe_g);
mmc               368 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_multicastframe_g);
mmc               370 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_64_octets_gb);
mmc               372 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_65_to_127_octets_gb);
mmc               374 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_128_to_255_octets_gb);
mmc               376 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_256_to_511_octets_gb);
mmc               378 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_512_to_1023_octets_gb);
mmc               380 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_1024_to_max_octets_gb);
mmc               382 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_unicast_gb);
mmc               384 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_multicast_gb);
mmc               386 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_broadcast_gb);
mmc               388 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_underflow_error);
mmc               390 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_octetcount_g);
mmc               392 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_framecount_g);
mmc               394 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_pause_frame);
mmc               396 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_tx_vlan_frame_g);
mmc               400 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_framecount_gb);
mmc               402 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_octetcount_gb);
mmc               404 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_octetcount_g);
mmc               406 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_broadcastframe_g);
mmc               408 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_multicastframe_g);
mmc               410 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_crc_error);
mmc               412 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_crc_error);
mmc               413 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_run_error += readl(mmcaddr + MMC_XGMAC_RX_RUNT_ERR);
mmc               414 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_jabber_error += readl(mmcaddr + MMC_XGMAC_RX_JABBER_ERR);
mmc               415 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_undersize_g += readl(mmcaddr + MMC_XGMAC_RX_UNDER);
mmc               416 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_oversize_g += readl(mmcaddr + MMC_XGMAC_RX_OVER);
mmc               418 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_64_octets_gb);
mmc               420 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_65_to_127_octets_gb);
mmc               422 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_128_to_255_octets_gb);
mmc               424 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_256_to_511_octets_gb);
mmc               426 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_512_to_1023_octets_gb);
mmc               428 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_1024_to_max_octets_gb);
mmc               430 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_unicast_g);
mmc               432 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_length_error);
mmc               434 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_autofrangetype);
mmc               436 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_pause_frames);
mmc               438 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_fifo_overflow);
mmc               440 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 			     &mmc->mmc_rx_vlan_frames_gb);
mmc               441 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_watchdog_error += readl(mmcaddr + MMC_XGMAC_RX_WATCHDOG_ERR);
mmc               443 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_fpe_fragment_cntr += readl(mmcaddr + MMC_XGMAC_TX_FPE_FRAG);
mmc               444 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_tx_hold_req_cntr += readl(mmcaddr + MMC_XGMAC_TX_HOLD_REQ);
mmc               445 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_packet_assembly_err_cntr +=
mmc               447 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_packet_smd_err_cntr +=
mmc               449 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_packet_assembly_ok_cntr +=
mmc               451 drivers/net/ethernet/stmicro/stmmac/mmc_core.c 	mmc->mmc_rx_fpe_fragment_cntr +=
mmc               188 drivers/net/ethernet/stmicro/stmmac/stmmac.h 	struct stmmac_counters mmc;
mmc               167 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	offsetof(struct stmmac_priv, mmc.m)}
mmc               499 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 			stmmac_mmc_read(priv, priv->mmcaddr, &priv->mmc);
mmc              2137 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		memset(&priv->mmc, 0, sizeof(struct stmmac_counters));
mmc               404 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	stmmac_mmc_read(priv, priv->mmcaddr, &priv->mmc);
mmc               388 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c 	hw_feat->mmc         = XLGMAC_GET_REG_BITS(mac_hfr0,
mmc               533 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c 		  pdata->hw_feat.mmc ? "YES" : "NO");
mmc               504 drivers/net/ethernet/synopsys/dwc-xlgmac.h 	unsigned int mmc;		/* RMON module */
mmc               216 drivers/pci/controller/pcie-cadence-ep.c static int cdns_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 mmc)
mmc               228 drivers/pci/controller/pcie-cadence-ep.c 	flags = (flags & ~PCI_MSI_FLAGS_QMASK) | (mmc << 1);
mmc               595 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_GRP(mmc), \
mmc               738 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c NPCM7XX_SFUNC(mmc);
mmc               856 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_MKFUNC(mmc),
mmc              1081 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_PINCFG(152,	  mmc, MFSEL3, 10,	  none, NONE, 0,	none, NONE, 0,	     DS(8, 12) | SLEW),
mmc              1083 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_PINCFG(154,	  mmc, MFSEL3, 10,	  none, NONE, 0,	none, NONE, 0,	     DS(8, 12) | SLEW),
mmc              1085 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_PINCFG(156,	  mmc, MFSEL3, 10,	  none, NONE, 0,	none, NONE, 0,	     DS(8, 12) | SLEW),
mmc              1086 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_PINCFG(157,	  mmc, MFSEL3, 10,	  none, NONE, 0,	none, NONE, 0,	     DS(8, 12) | SLEW),
mmc              1087 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_PINCFG(158,	  mmc, MFSEL3, 10,	  none, NONE, 0,	none, NONE, 0,	     DS(8, 12) | SLEW),
mmc              1088 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c 	NPCM7XX_PINCFG(159,	  mmc, MFSEL3, 10,	  none, NONE, 0,	none, NONE, 0,	     DS(8, 12) | SLEW),
mmc              2524 drivers/pinctrl/sh-pfc/pfc-r8a77470.c 	SH_PFC_FUNCTION(mmc),
mmc              2075 drivers/pinctrl/sh-pfc/pfc-r8a7778.c 	SH_PFC_FUNCTION(mmc),
mmc              5385 drivers/pinctrl/sh-pfc/pfc-r8a7791.c 		SH_PFC_FUNCTION(mmc),
mmc              4581 drivers/pinctrl/sh-pfc/pfc-r8a7794.c 	SH_PFC_FUNCTION(mmc),
mmc              2030 drivers/pinctrl/sh-pfc/pfc-r8a77970.c 	SH_PFC_FUNCTION(mmc),
mmc              2451 drivers/pinctrl/sh-pfc/pfc-r8a77980.c 	SH_PFC_FUNCTION(mmc),
mmc              2354 drivers/pinctrl/sh-pfc/pfc-r8a77995.c 	SH_PFC_FUNCTION(mmc),
mmc               196 drivers/s390/cio/chsc.h 	u16 mmc;
mmc                22 drivers/staging/greybus/sdio.c 	struct mmc_host		*mmc;
mmc                88 drivers/staging/greybus/sdio.c 	host->mmc->caps = caps;
mmc                89 drivers/staging/greybus/sdio.c 	host->mmc->caps2 = caps2 | MMC_CAP2_CORE_RUNTIME_PM;
mmc               120 drivers/staging/greybus/sdio.c 	struct mmc_host *mmc = host->mmc;
mmc               143 drivers/staging/greybus/sdio.c 	mmc->max_blk_size = rounddown_pow_of_two(blksz);
mmc               144 drivers/staging/greybus/sdio.c 	mmc->max_blk_count = le16_to_cpu(response.max_blk_count);
mmc               149 drivers/staging/greybus/sdio.c 	mmc->ocr_avail = ocr;
mmc               150 drivers/staging/greybus/sdio.c 	mmc->ocr_avail_sdio = mmc->ocr_avail;
mmc               151 drivers/staging/greybus/sdio.c 	mmc->ocr_avail_sd = mmc->ocr_avail;
mmc               152 drivers/staging/greybus/sdio.c 	mmc->ocr_avail_mmc = mmc->ocr_avail;
mmc               155 drivers/staging/greybus/sdio.c 	mmc->f_min = le32_to_cpu(response.f_min);
mmc               156 drivers/staging/greybus/sdio.c 	mmc->f_max = le32_to_cpu(response.f_max);
mmc               176 drivers/staging/greybus/sdio.c 		if (host->mmc->caps & MMC_CAP_NONREMOVABLE)
mmc               185 drivers/staging/greybus/sdio.c 		if (host->mmc->caps & MMC_CAP_NONREMOVABLE)
mmc               197 drivers/staging/greybus/sdio.c 		dev_info(mmc_dev(host->mmc), "card %s now event\n",
mmc               199 drivers/staging/greybus/sdio.c 		mmc_detect_change(host->mmc, 0);
mmc               215 drivers/staging/greybus/sdio.c 		dev_err(mmc_dev(host->mmc),
mmc               223 drivers/staging/greybus/sdio.c 		dev_err(mmc_dev(host->mmc), "wrong event size received (%zu < %zu)\n",
mmc               299 drivers/staging/greybus/sdio.c 		dev_err(mmc_dev(host->mmc), "send: size received: %zu != %d\n",
mmc               345 drivers/staging/greybus/sdio.c 		dev_err(mmc_dev(host->mmc), "recv: size received: %d != %zu\n",
mmc               436 drivers/staging/greybus/sdio.c 		dev_err(mmc_dev(host->mmc), "cmd flag invalid 0x%04x\n",
mmc               456 drivers/staging/greybus/sdio.c 		dev_err(mmc_dev(host->mmc), "cmd type invalid 0x%04x\n",
mmc               511 drivers/staging/greybus/sdio.c 		dev_err(mmc_dev(host->mmc), "mmc request is NULL");
mmc               545 drivers/staging/greybus/sdio.c 	mmc_request_done(host->mmc, mrq);
mmc               549 drivers/staging/greybus/sdio.c static void gb_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq)
mmc               551 drivers/staging/greybus/sdio.c 	struct gb_sdio_host *host = mmc_priv(mmc);
mmc               583 drivers/staging/greybus/sdio.c 	mmc_request_done(mmc, mrq);
mmc               586 drivers/staging/greybus/sdio.c static void gb_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               588 drivers/staging/greybus/sdio.c 	struct gb_sdio_host *host = mmc_priv(mmc);
mmc               713 drivers/staging/greybus/sdio.c 	memcpy(&mmc->ios, ios, sizeof(mmc->ios));
mmc               719 drivers/staging/greybus/sdio.c static int gb_mmc_get_ro(struct mmc_host *mmc)
mmc               721 drivers/staging/greybus/sdio.c 	struct gb_sdio_host *host = mmc_priv(mmc);
mmc               733 drivers/staging/greybus/sdio.c static int gb_mmc_get_cd(struct mmc_host *mmc)
mmc               735 drivers/staging/greybus/sdio.c 	struct gb_sdio_host *host = mmc_priv(mmc);
mmc               747 drivers/staging/greybus/sdio.c static int gb_mmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
mmc               764 drivers/staging/greybus/sdio.c 	struct mmc_host *mmc;
mmc               768 drivers/staging/greybus/sdio.c 	mmc = mmc_alloc_host(sizeof(*host), &gbphy_dev->dev);
mmc               769 drivers/staging/greybus/sdio.c 	if (!mmc)
mmc               780 drivers/staging/greybus/sdio.c 	host = mmc_priv(mmc);
mmc               781 drivers/staging/greybus/sdio.c 	host->mmc = mmc;
mmc               797 drivers/staging/greybus/sdio.c 	mmc->ops = &gb_sdio_ops;
mmc               799 drivers/staging/greybus/sdio.c 	mmc->max_segs = host->mmc->max_blk_count;
mmc               802 drivers/staging/greybus/sdio.c 	mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc               803 drivers/staging/greybus/sdio.c 	mmc->max_seg_size = mmc->max_req_size;
mmc               819 drivers/staging/greybus/sdio.c 	ret = mmc_add_host(mmc);
mmc               837 drivers/staging/greybus/sdio.c 	mmc_free_host(mmc);
mmc               846 drivers/staging/greybus/sdio.c 	struct mmc_host *mmc;
mmc               855 drivers/staging/greybus/sdio.c 	mmc = host->mmc;
mmc               862 drivers/staging/greybus/sdio.c 	mmc_remove_host(mmc);
mmc               865 drivers/staging/greybus/sdio.c 	mmc_free_host(mmc);
mmc               520 include/linux/mmc/host.h int mmc_regulator_set_ocr(struct mmc_host *mmc,
mmc               523 include/linux/mmc/host.h int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
mmc               525 include/linux/mmc/host.h static inline int mmc_regulator_set_ocr(struct mmc_host *mmc,
mmc               532 include/linux/mmc/host.h static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc,
mmc               539 include/linux/mmc/host.h int mmc_regulator_get_supply(struct mmc_host *mmc);
mmc                 3 include/trace/events/mmc.h #define TRACE_SYSTEM mmc