Home
last modified time | relevance | path

Searched refs:mmc (Results 1 – 200 of 360) sorted by relevance

12

/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
Dmmc_core.c160 void dwmac_mmc_read(void __iomem *ioaddr, struct stmmac_counters *mmc) in dwmac_mmc_read() argument
162 mmc->mmc_tx_octetcount_gb += readl(ioaddr + MMC_TX_OCTETCOUNT_GB); in dwmac_mmc_read()
163 mmc->mmc_tx_framecount_gb += readl(ioaddr + MMC_TX_FRAMECOUNT_GB); in dwmac_mmc_read()
164 mmc->mmc_tx_broadcastframe_g += readl(ioaddr + MMC_TX_BROADCASTFRAME_G); in dwmac_mmc_read()
165 mmc->mmc_tx_multicastframe_g += readl(ioaddr + MMC_TX_MULTICASTFRAME_G); in dwmac_mmc_read()
166 mmc->mmc_tx_64_octets_gb += readl(ioaddr + MMC_TX_64_OCTETS_GB); in dwmac_mmc_read()
167 mmc->mmc_tx_65_to_127_octets_gb += in dwmac_mmc_read()
169 mmc->mmc_tx_128_to_255_octets_gb += in dwmac_mmc_read()
171 mmc->mmc_tx_256_to_511_octets_gb += in dwmac_mmc_read()
173 mmc->mmc_tx_512_to_1023_octets_gb += in dwmac_mmc_read()
[all …]
Dmmc.h133 void dwmac_mmc_read(void __iomem *ioaddr, struct stmmac_counters *mmc);
Dstmmac.h101 struct stmmac_counters mmc; member
/linux-4.4.14/arch/arm/mach-omap2/
Dhsmmc.c40 struct omap_hsmmc_platform_data *mmc = dev->platform_data; in omap_hsmmc1_before_set_reg() local
42 if (mmc->remux) in omap_hsmmc1_before_set_reg()
43 mmc->remux(dev, power_on); in omap_hsmmc1_before_set_reg()
65 if (mmc->internal_clock) { in omap_hsmmc1_before_set_reg()
112 static void hsmmc2_select_input_clk_src(struct omap_hsmmc_platform_data *mmc) in hsmmc2_select_input_clk_src() argument
117 if (mmc->internal_clock) in hsmmc2_select_input_clk_src()
126 struct omap_hsmmc_platform_data *mmc = dev->platform_data; in hsmmc2_before_set_reg() local
128 if (mmc->remux) in hsmmc2_before_set_reg()
129 mmc->remux(dev, power_on); in hsmmc2_before_set_reg()
132 hsmmc2_select_input_clk_src(mmc); in hsmmc2_before_set_reg()
[all …]
Dboard-ldp.c343 static struct omap2_hsmmc_info mmc[] __initdata = { variable
345 .mmc = 1,
415 omap_hsmmc_init(mmc); in omap_ldp_init()
Dhsmmc.h12 u8 mmc; /* controller 1/2/3 */ member
/linux-4.4.14/drivers/mmc/host/
Dtmio_mmc_pio.c131 static void tmio_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) in tmio_mmc_enable_sdio_irq() argument
133 struct tmio_mmc_host *host = mmc_priv(mmc); in tmio_mmc_enable_sdio_irq()
137 pm_runtime_get_sync(mmc_dev(mmc)); in tmio_mmc_enable_sdio_irq()
150 pm_runtime_mark_last_busy(mmc_dev(mmc)); in tmio_mmc_enable_sdio_irq()
151 pm_runtime_put_autosuspend(mmc_dev(mmc)); in tmio_mmc_enable_sdio_irq()
161 for (clock = host->mmc->f_min, clk = 0x80000080; in tmio_mmc_set_clock()
263 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work()
265 pm_runtime_mark_last_busy(mmc_dev(host->mmc)); in tmio_mmc_reset_work()
266 pm_runtime_put_autosuspend(mmc_dev(host->mmc)); in tmio_mmc_reset_work()
295 mmc_request_done(host->mmc, mrq); in tmio_mmc_finish_request()
[all …]
Dmmci.c223 static int mmci_card_busy(struct mmc_host *mmc) in mmci_card_busy() argument
225 struct mmci_host *host = mmc_priv(mmc); in mmci_card_busy()
229 pm_runtime_get_sync(mmc_dev(mmc)); in mmci_card_busy()
236 pm_runtime_mark_last_busy(mmc_dev(mmc)); in mmci_card_busy()
237 pm_runtime_put_autosuspend(mmc_dev(mmc)); in mmci_card_busy()
252 dev_err(mmc_dev(host->mmc), in mmci_validate_data()
359 host->mmc->actual_clock = host->cclk; in mmci_set_clkreg()
361 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) in mmci_set_clkreg()
363 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) in mmci_set_clkreg()
366 if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || in mmci_set_clkreg()
[all …]
Ddavinci_mmc.c184 struct mmc_host *mmc; member
288 dev_dbg(mmc_dev(host->mmc), "CMD%d, arg 0x%08x%s\n", in mmc_davinci_start_command()
329 dev_dbg(mmc_dev(host->mmc), "unknown resp_type %04x\n", in mmc_davinci_start_command()
442 dev_dbg(mmc_dev(host->mmc), in mmc_davinci_send_dma_request()
464 dev_dbg(mmc_dev(host->mmc), in mmc_davinci_send_dma_request()
485 host->sg_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in mmc_davinci_start_dma_transfer()
493 dma_unmap_sg(mmc_dev(host->mmc), in mmc_davinci_start_dma_transfer()
528 &host->txdma, mmc_dev(host->mmc), "tx"); in davinci_acquire_dma_channels()
530 dev_err(mmc_dev(host->mmc), "Can't get dma_tx channel\n"); in davinci_acquire_dma_channels()
536 &host->rxdma, mmc_dev(host->mmc), "rx"); in davinci_acquire_dma_channels()
[all …]
Dsdhci.c54 static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode);
85 mmc_hostname(host->mmc)); in sdhci_dumpregs()
149 (host->mmc->caps & MMC_CAP_NONREMOVABLE)) in sdhci_set_card_detection()
196 mmc_hostname(host->mmc), (int)mask); in sdhci_reset()
226 static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios);
247 sdhci_set_ios(host->mmc, &host->mmc->ios); in sdhci_init()
491 host->align_addr = dma_map_single(mmc_dev(host->mmc), in sdhci_adma_table_pre()
493 if (dma_mapping_error(mmc_dev(host->mmc), host->align_addr)) in sdhci_adma_table_pre()
578 dma_sync_single_for_device(mmc_dev(host->mmc), in sdhci_adma_table_pre()
585 dma_unmap_single(mmc_dev(host->mmc), host->align_addr, in sdhci_adma_table_pre()
[all …]
Dmxcmmc.c126 struct mmc_host *mmc; member
243 if (!IS_ERR(host->mmc->supply.vmmc)) { in mxcmci_set_power()
245 mmc_regulator_set_ocr(host->mmc, in mxcmci_set_power()
246 host->mmc->supply.vmmc, vdd); in mxcmci_set_power()
248 mmc_regulator_set_ocr(host->mmc, in mxcmci_set_power()
249 host->mmc->supply.vmmc, 0); in mxcmci_set_power()
253 host->pdata->setpower(mmc_dev(host->mmc), vdd); in mxcmci_set_power()
265 dev_dbg(mmc_dev(host->mmc), "mxcmci_softreset\n"); in mxcmci_softreset()
377 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback()
405 dev_err(mmc_dev(host->mmc), "unhandled response type 0x%x\n", in mxcmci_start_cmd()
[all …]
Dwmt-sdmmc.c189 struct mmc_host *mmc; member
226 static void wmt_mci_read_response(struct mmc_host *mmc) in wmt_mci_read_response() argument
233 priv = mmc_priv(mmc); in wmt_mci_read_response()
257 static int wmt_mci_send_command(struct mmc_host *mmc, u8 command, u8 cmdtype, in wmt_mci_send_command() argument
263 priv = mmc_priv(mmc); in wmt_mci_send_command()
306 dma_unmap_sg(mmc_dev(priv->mmc), req->data->sg, in wmt_complete_data_request()
309 dma_unmap_sg(mmc_dev(priv->mmc), req->data->sg, in wmt_complete_data_request()
314 mmc_request_done(priv->mmc, req); in wmt_complete_data_request()
316 wmt_mci_read_response(priv->mmc); in wmt_complete_data_request()
319 mmc_request_done(priv->mmc, req); in wmt_complete_data_request()
[all …]
Dandroid-goldfish.c118 struct mmc_host *mmc; member
180 dev_err(mmc_dev(host->mmc), in goldfish_mmc_start_command()
229 dma_unmap_sg(mmc_dev(host->mmc), data->sg, host->sg_len, in goldfish_mmc_xfer_done()
244 mmc_request_done(host->mmc, data->mrq); in goldfish_mmc_xfer_done()
286 mmc_request_done(host->mmc, cmd->mrq); in goldfish_mmc_cmd_done()
322 mmc_request_done(host->mmc, mrq); in goldfish_mmc_irq()
350 mmc_detect_change(host->mmc, 0); in goldfish_mmc_irq()
356 dev_info(mmc_dev(host->mmc),"spurious irq 0x%04x\n", status); in goldfish_mmc_irq()
398 host->sg_len = dma_map_sg(mmc_dev(host->mmc), data->sg, in goldfish_mmc_prepare_data()
413 static void goldfish_mmc_request(struct mmc_host *mmc, struct mmc_request *req) in goldfish_mmc_request() argument
[all …]
Dbfin_sdh.c59 struct mmc_host *mmc; member
121 dev_dbg(mmc_dev(host->mmc), "%s enter flags: 0x%x\n", __func__, data->flags); in sdh_setup_data()
158 host->dma_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma_dir); in sdh_setup_data()
174 dev_dbg(mmc_dev(host->mmc), "%d: start_addr:0x%lx, " in sdh_setup_data()
206 dev_dbg(mmc_dev(host->mmc), "%s exit\n", __func__); in sdh_setup_data()
215 dev_dbg(mmc_dev(host->mmc), "%s enter cmd: 0x%p\n", __func__, cmd); in sdh_start_cmd()
246 dev_dbg(mmc_dev(host->mmc), "%s enter\n", __func__); in sdh_finish_request()
250 mmc_request_done(host->mmc, mrq); in sdh_finish_request()
258 dev_dbg(mmc_dev(host->mmc), "%s enter cmd: %p\n", __func__, cmd); in sdh_cmd_done()
297 dev_dbg(mmc_dev(host->mmc), "%s enter stat: 0x%x\n", __func__, stat); in sdh_data_done()
[all …]
Domap_hsmmc.c178 struct mmc_host *mmc; member
238 return mmc_gpio_get_cd(host->mmc); in omap_hsmmc_card_detect()
245 return mmc_gpio_get_cd(host->mmc); in omap_hsmmc_get_cover_state()
248 static int omap_hsmmc_enable_supply(struct mmc_host *mmc) in omap_hsmmc_enable_supply() argument
251 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_enable_supply()
252 struct mmc_ios *ios = &mmc->ios; in omap_hsmmc_enable_supply()
254 if (mmc->supply.vmmc) { in omap_hsmmc_enable_supply()
255 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in omap_hsmmc_enable_supply()
261 if (mmc->supply.vqmmc && !host->vqmmc_enabled) { in omap_hsmmc_enable_supply()
262 ret = regulator_enable(mmc->supply.vqmmc); in omap_hsmmc_enable_supply()
[all …]
Dmxs-mmc.c65 struct mmc_host *mmc; member
76 static int mxs_mmc_get_cd(struct mmc_host *mmc) in mxs_mmc_get_cd() argument
78 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_get_cd()
85 ret = mmc_gpio_get_cd(mmc); in mxs_mmc_get_cd()
89 present = mmc->caps & MMC_CAP_NEEDS_POLL || in mxs_mmc_get_cd()
93 if (mmc->caps2 & MMC_CAP2_CD_ACTIVE_HIGH) in mxs_mmc_get_cd()
157 dma_unmap_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_request_done()
176 mmc_request_done(host->mmc, mrq); in mxs_mmc_request_done()
203 mmc_signal_sdio_irq(host->mmc); in mxs_mmc_irq_handler()
235 dma_map_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_prep_dma()
[all …]
Dsunxi-mmc.c231 struct mmc_host *mmc; member
272 dev_err(mmc_dev(host->mmc), "fatal err reset timeout\n"); in sunxi_mmc_reset_host()
279 static int sunxi_mmc_init_host(struct mmc_host *mmc) in sunxi_mmc_init_host() argument
282 struct sunxi_mmc_host *host = mmc_priv(mmc); in sunxi_mmc_init_host()
350 dma_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in sunxi_mmc_map_dma()
353 dev_err(mmc_dev(host->mmc), "dma_map_sg failed\n"); in sunxi_mmc_map_dma()
359 dev_err(mmc_dev(host->mmc), in sunxi_mmc_map_dma()
418 dev_err(mmc_dev(host->mmc), "send stop command failed\n"); in sunxi_mmc_send_manual_stop()
440 dev_err(mmc_dev(host->mmc), in sunxi_mmc_dump_errinfo()
442 host->mmc->index, cmd->opcode, in sunxi_mmc_dump_errinfo()
[all …]
Dpxamci.c56 struct mmc_host *mmc; member
89 host->vcc = regulator_get_optional(mmc_dev(host->mmc), "vmmc"); in pxamci_init_ocr()
94 host->mmc->ocr_avail = mmc_regulator_get_ocrmask(host->vcc); in pxamci_init_ocr()
96 dev_warn(mmc_dev(host->mmc), in pxamci_init_ocr()
102 host->mmc->ocr_avail = host->pdata ? in pxamci_init_ocr()
118 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd); in pxamci_set_power()
122 ret = mmc_regulator_set_ocr(host->mmc, host->vcc, 0); in pxamci_set_power()
134 return host->pdata->setpower(mmc_dev(host->mmc), vdd); in pxamci_set_power()
155 dev_err(mmc_dev(host->mmc), "unable to stop clock\n"); in pxamci_stop_clock()
227 dev_err(mmc_dev(host->mmc), "dma slave config failed\n"); in pxamci_setup_data()
[all …]
Domap.c116 struct mmc_host *mmc; member
125 struct mmc_host * mmc; member
208 while (host->mmc != NULL) { in mmc_omap_select_slot()
210 wait_event(host->slot_wq, host->mmc == NULL); in mmc_omap_select_slot()
213 host->mmc = slot->mmc; in mmc_omap_select_slot()
223 host->pdata->switch_slot(mmc_dev(slot->mmc), slot->id); in mmc_omap_select_slot()
264 BUG_ON(slot == NULL || host->mmc == NULL); in mmc_omap_release_slot()
289 host->mmc = new_slot->mmc; in mmc_omap_release_slot()
295 host->mmc = NULL; in mmc_omap_release_slot()
304 return slot->pdata->get_cover_state(mmc_dev(slot->mmc), in mmc_omap_cover_is_open()
[all …]
Dushc.c95 struct mmc_host *mmc; member
190 mmc_signal_sdio_irq(ushc->mmc); in int_callback()
194 mmc_detect_change(ushc->mmc, msecs_to_jiffies(100)); in int_callback()
249 mmc_request_done(ushc->mmc, req); in csw_callback()
252 static void ushc_request(struct mmc_host *mmc, struct mmc_request *req) in ushc_request() argument
254 struct ushc_data *ushc = mmc_priv(mmc); in ushc_request()
321 mmc_request_done(mmc, req); in ushc_request()
375 static void ushc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in ushc_set_ios() argument
377 struct ushc_data *ushc = mmc_priv(mmc); in ushc_set_ios()
384 static int ushc_get_cd(struct mmc_host *mmc) in ushc_get_cd() argument
[all …]
Dusdhi6rol0.c159 struct mmc_host *mmc; member
208 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write()
215 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write16()
222 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_read()
230 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_read16()
282 dev_dbg(mmc_dev(host->mmc), in usdhi6_error_code()
286 dev_warn(mmc_dev(host->mmc), in usdhi6_error_code()
294 dev_warn(mmc_dev(host->mmc), "Err sts 0x%x, state %u, CMD%d\n", in usdhi6_error_code()
316 dev_dbg(mmc_dev(host->mmc), "%s(): CMD%u of %u SG: %ux%u @ 0x%x\n", in usdhi6_blk_bounce()
383 dev_dbg(mmc_dev(host->mmc), "Mapped %p (%lx) at %p + %u for CMD%u @ 0x%p\n", in usdhi6_sg_map()
[all …]
Dsdricoh_cs.c94 struct mmc_host *mmc; /* MMC structure */ member
265 static void sdricoh_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdricoh_request() argument
267 struct sdricoh_host *host = mmc_priv(mmc); in sdricoh_request()
351 mmc_request_done(mmc, mrq); in sdricoh_request()
355 static void sdricoh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdricoh_set_ios() argument
357 struct sdricoh_host *host = mmc_priv(mmc); in sdricoh_set_ios()
376 static int sdricoh_get_ro(struct mmc_host *mmc) in sdricoh_get_ro() argument
378 struct sdricoh_host *host = mmc_priv(mmc); in sdricoh_get_ro()
403 struct mmc_host *mmc = NULL; in sdricoh_init_mmc() local
425 mmc = pcmcia_dev->priv = in sdricoh_init_mmc()
[all …]
Dcb710-mmc.c28 static void cb710_mmc_select_clock_divider(struct mmc_host *mmc, int hz) in cb710_mmc_select_clock_divider() argument
30 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_select_clock_divider()
444 static int cb710_mmc_command(struct mmc_host *mmc, struct mmc_command *cmd) in cb710_mmc_command() argument
446 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_command()
447 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_command()
484 static void cb710_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in cb710_mmc_request() argument
486 struct cb710_slot *slot = cb710_mmc_to_slot(mmc); in cb710_mmc_request()
487 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_request()
494 if (!cb710_mmc_command(mmc, mrq->cmd) && mrq->stop) in cb710_mmc_request()
495 cb710_mmc_command(mmc, mrq->stop); in cb710_mmc_request()
[all …]
Dsdhci-msm.c62 struct mmc_host *mmc; member
71 struct mmc_host *mmc = host->mmc; in msm_dll_poll_ck_out_en() local
79 dev_err(mmc_dev(mmc), "%s: CK_OUT_EN bit is not %d\n", in msm_dll_poll_ck_out_en()
80 mmc_hostname(mmc), poll); in msm_dll_poll_ck_out_en()
101 struct mmc_host *mmc = host->mmc; in msm_config_cm_dll_phase() local
140 dev_err(mmc_dev(mmc), "%s: Failed to set DLL phase: %d\n", in msm_config_cm_dll_phase()
141 mmc_hostname(mmc), phase); in msm_config_cm_dll_phase()
166 struct mmc_host *mmc = host->mmc; in msm_find_most_appropriate_phase() local
169 dev_err(mmc_dev(mmc), "%s: Invalid argument: total_phases=%d\n", in msm_find_most_appropriate_phase()
170 mmc_hostname(mmc), total_phases); in msm_find_most_appropriate_phase()
[all …]
Drtsx_pci_sdmmc.c39 struct mmc_host *mmc; member
194 static void sdmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq, in sdmmc_pre_req() argument
197 struct realtek_pci_sdmmc *host = mmc_priv(mmc); in sdmmc_pre_req()
211 static void sdmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in sdmmc_post_req() argument
214 struct realtek_pci_sdmmc *host = mmc_priv(mmc); in sdmmc_post_req()
445 struct mmc_host *mmc = host->mmc; in sd_read_long_data() local
446 struct mmc_card *card = mmc->card; in sd_read_long_data()
503 struct mmc_host *mmc = host->mmc; in sd_write_long_data() local
504 struct mmc_card *card = mmc->card; in sd_write_long_data()
805 struct mmc_host *mmc = host->mmc; in sd_request() local
[all …]
Dmvsdio.c54 struct mmc_host *mmc; member
133 host->sg_frags = dma_map_sg(mmc_dev(host->mmc), data->sg, in mvsd_setup_data()
142 static void mvsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in mvsd_request() argument
144 struct mvsd_host *host = mmc_priv(mmc); in mvsd_request()
299 dma_unmap_sg(mmc_dev(host->mmc), data->sg, host->sg_frags, in mvsd_finish_data()
497 mmc_request_done(host->mmc, mrq); in mvsd_irq()
503 mmc_signal_sdio_irq(host->mmc); in mvsd_irq()
553 mmc_request_done(host->mmc, mrq); in mvsd_timeout_timer()
556 static void mvsd_enable_sdio_irq(struct mmc_host *mmc, int enable) in mvsd_enable_sdio_irq() argument
558 struct mvsd_host *host = mmc_priv(mmc); in mvsd_enable_sdio_irq()
[all …]
Dwbsd.c197 pr_err("%s: Resetting chip\n", mmc_hostname(host->mmc)); in wbsd_reset()
232 mmc_request_done(host->mmc, mrq); in wbsd_request_end()
726 mmc_hostname(host->mmc), count); in wbsd_finish_data()
754 static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in wbsd_request() argument
756 struct wbsd_host *host = mmc_priv(mmc); in wbsd_request()
807 mmc_hostname(host->mmc), cmd->opcode); in wbsd_request()
850 static void wbsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in wbsd_set_ios() argument
852 struct wbsd_host *host = mmc_priv(mmc); in wbsd_set_ios()
923 static int wbsd_get_ro(struct mmc_host *mmc) in wbsd_get_ro() argument
925 struct wbsd_host *host = mmc_priv(mmc); in wbsd_get_ro()
[all …]
Dsdhci-bcm-kona.c145 ret = mmc_gpio_get_ro(host->mmc); in sdhci_bcm_kona_sd_card_emulate()
166 if (mmc_gpio_get_cd(host->mmc) > 0) { in sdhci_bcm_kona_card_event()
167 dev_dbg(mmc_dev(host->mmc), in sdhci_bcm_kona_card_event()
171 dev_dbg(mmc_dev(host->mmc), in sdhci_bcm_kona_card_event()
238 ret = mmc_of_parse(host->mmc); in sdhci_bcm_kona_probe()
242 if (!host->mmc->f_max) { in sdhci_bcm_kona_probe()
256 if (clk_set_rate(pltfm_priv->clk, host->mmc->f_max) != 0) { in sdhci_bcm_kona_probe()
267 (host->mmc->caps & MMC_CAP_NONREMOVABLE) ? 'Y' : 'N'); in sdhci_bcm_kona_probe()
269 (mmc_gpio_get_cd(host->mmc) != -ENOSYS) ? 'Y' : 'N', in sdhci_bcm_kona_probe()
270 (mmc_gpio_get_ro(host->mmc) != -ENOSYS) ? 'Y' : 'N'); in sdhci_bcm_kona_probe()
[all …]
Dau1xmmc.c90 struct mmc_host *mmc; member
215 host->platdata->set_power(host->mmc, state); in au1xmmc_set_power()
218 static int au1xmmc_card_inserted(struct mmc_host *mmc) in au1xmmc_card_inserted() argument
220 struct au1xmmc_host *host = mmc_priv(mmc); in au1xmmc_card_inserted()
223 return !!host->platdata->card_inserted(host->mmc); in au1xmmc_card_inserted()
228 static int au1xmmc_card_readonly(struct mmc_host *mmc) in au1xmmc_card_readonly() argument
230 struct au1xmmc_host *host = mmc_priv(mmc); in au1xmmc_card_readonly()
233 return !!host->platdata->card_readonly(mmc); in au1xmmc_card_readonly()
254 mmc_request_done(host->mmc, mrq); in au1xmmc_finish_request()
353 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir); in au1xmmc_data_complete()
[all …]
Dtoshsd.c81 static void __toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in __toshsd_set_ios() argument
83 struct toshsd_host *host = mmc_priv(mmc); in __toshsd_set_ios()
156 mmc_request_done(host->mmc, mrq); in toshsd_finish_request()
360 __toshsd_set_ios(host->mmc, &host->mmc->ios); in toshsd_irq()
374 mmc_detect_change(host->mmc, 1); in toshsd_irq()
499 static void toshsd_request(struct mmc_host *mmc, struct mmc_request *mrq) in toshsd_request() argument
501 struct toshsd_host *host = mmc_priv(mmc); in toshsd_request()
507 mmc_request_done(mmc, mrq); in toshsd_request()
527 static void toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in toshsd_set_ios() argument
529 struct toshsd_host *host = mmc_priv(mmc); in toshsd_set_ios()
[all …]
Dmoxart-mmc.c132 struct mmc_host *mmc; member
198 dev_err(mmc_dev(host->mmc), "timed out waiting for status\n"); in moxart_wait_for_status()
286 dev_err(mmc_dev(host->mmc), "dma_map_sg returned zero length\n"); in moxart_transfer_dma()
397 static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq) in moxart_request() argument
399 struct moxart_host *host = mmc_priv(mmc); in moxart_request()
442 dev_err(mmc_dev(host->mmc), "card removed\n"); in moxart_request()
462 mmc_request_done(host->mmc, mrq); in moxart_request()
483 mmc_detect_change(host->mmc, 0); in moxart_irq()
493 static void moxart_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in moxart_set_ios() argument
495 struct moxart_host *host = mmc_priv(mmc); in moxart_set_ios()
[all …]
Dsdhci-sirf.c51 (host->mmc->caps & MMC_CAP_UHS_SDR50))) { in sdhci_sirf_readl_le()
88 struct mmc_host *mmc = host->mmc; in sdhci_sirf_execute_tuning() local
101 if (!mmc_send_tuning(mmc, opcode, NULL)) { in sdhci_sirf_execute_tuning()
104 dev_dbg(mmc_dev(mmc), "%s: Found good phase = %d\n", in sdhci_sirf_execute_tuning()
105 mmc_hostname(mmc), phase); in sdhci_sirf_execute_tuning()
114 dev_dbg(mmc_dev(mmc), "%s: Found bad phase = %d\n", in sdhci_sirf_execute_tuning()
115 mmc_hostname(mmc), phase); in sdhci_sirf_execute_tuning()
135 dev_dbg(mmc_dev(mmc), "%s: Setting the tuning phase to %d\n", in sdhci_sirf_execute_tuning()
136 mmc_hostname(mmc), phase); in sdhci_sirf_execute_tuning()
141 dev_dbg(mmc_dev(mmc), "%s: No tuning point found\n", in sdhci_sirf_execute_tuning()
[all …]
Djz4740_mmc.c123 struct mmc_host *mmc; member
183 dev_err(mmc_dev(host->mmc), "Failed to get dma_tx channel\n"); in jz4740_mmc_acquire_dma_channels()
189 dev_err(mmc_dev(host->mmc), "Failed to get dma_rx channel\n"); in jz4740_mmc_acquire_dma_channels()
235 dev_warn(mmc_dev(host->mmc), in jz4740_mmc_prepare_dma_data()
256 dev_err(mmc_dev(host->mmc), in jz4740_mmc_prepare_dma_data()
306 dev_err(mmc_dev(host->mmc), in jz4740_mmc_start_dma_transfer()
322 static void jz4740_mmc_pre_request(struct mmc_host *mmc, in jz4740_mmc_pre_request() argument
326 struct jz4740_mmc_host *host = mmc_priv(mmc); in jz4740_mmc_pre_request()
340 static void jz4740_mmc_post_request(struct mmc_host *mmc, in jz4740_mmc_post_request() argument
344 struct jz4740_mmc_host *host = mmc_priv(mmc); in jz4740_mmc_post_request()
[all …]
Dmmc_spi.c126 struct mmc_host *mmc; member
679 if (host->mmc->use_spi_crc) in mmc_spi_writeblock()
853 if (host->mmc->use_spi_crc) { in mmc_spi_readblock()
1050 static void mmc_spi_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_spi_request() argument
1052 struct mmc_spi_host *host = mmc_priv(mmc); in mmc_spi_request()
1079 mmc_request_done(host->mmc, mrq); in mmc_spi_request()
1120 mmc_request_done(host->mmc, mrq); in mmc_spi_request()
1181 static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_spi_set_ios() argument
1183 struct mmc_spi_host *host = mmc_priv(mmc); in mmc_spi_set_ios()
1285 mmc_spi_detect_irq(int irq, void *mmc) in mmc_spi_detect_irq() argument
[all …]
Ddw_mmc.c107 static int dw_mci_card_busy(struct mmc_host *mmc);
190 struct mmc_host *mmc = slot->mmc; in dw_mci_init_debugfs() local
195 root = mmc->debugfs_root; in dw_mci_init_debugfs()
226 dev_err(&mmc->class_dev, "failed to initialize debugfs for slot\n"); in dw_mci_init_debugfs()
232 static u32 dw_mci_prepare_command(struct mmc_host *mmc, struct mmc_command *cmd) in dw_mci_prepare_command() argument
235 struct dw_mci_slot *slot = mmc_priv(mmc); in dw_mci_prepare_command()
455 dma_sync_sg_for_cpu(mmc_dev(host->cur_slot->mmc), in dw_mci_dmac_complete_dma()
738 dma_sync_sg_for_device(mmc_dev(host->cur_slot->mmc), sgl, in dw_mci_edmac_start_dma()
824 static void dw_mci_pre_req(struct mmc_host *mmc, in dw_mci_pre_req() argument
828 struct dw_mci_slot *slot = mmc_priv(mmc); in dw_mci_pre_req()
[all …]
Dmtk-sd.c297 struct mmc_host *mmc; /* mmc structure */ member
644 if (mmc_card_mmc(host->mmc->card) && mrq->sbc && in msdc_cmd_prepare_raw_cmd()
737 mmc_request_done(host->mmc, mrq); in msdc_request_done()
880 static void msdc_ops_request(struct mmc_host *mmc, struct mmc_request *mrq) in msdc_ops_request() argument
882 struct msdc_host *host = mmc_priv(mmc); in msdc_ops_request()
897 if (mrq->sbc && (!mmc_card_mmc(mmc->card) || in msdc_ops_request()
904 static void msdc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq, in msdc_pre_req() argument
907 struct msdc_host *host = mmc_priv(mmc); in msdc_pre_req()
917 static void msdc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in msdc_post_req() argument
920 struct msdc_host *host = mmc_priv(mmc); in msdc_post_req()
[all …]
Dsh_mmcif.c232 struct mmc_host *mmc; member
994 static void sh_mmcif_request(struct mmc_host *mmc, struct mmc_request *mrq) in sh_mmcif_request() argument
996 struct sh_mmcif_host *host = mmc_priv(mmc); in sh_mmcif_request()
1006 mmc_request_done(mmc, mrq); in sh_mmcif_request()
1023 mmc_request_done(mmc, mrq); in sh_mmcif_request()
1038 if (host->mmc->f_max) { in sh_mmcif_clk_setup()
1041 f_max = host->mmc->f_max; in sh_mmcif_clk_setup()
1054 host->mmc->f_max = f_max / (1 << ffs(host->clkdiv_map)); in sh_mmcif_clk_setup()
1055 host->mmc->f_min = f_min / (1 << fls(host->clkdiv_map)); in sh_mmcif_clk_setup()
1059 host->mmc->f_max = clk / 2; in sh_mmcif_clk_setup()
[all …]
Ds3cmci.c146 static void s3cmci_send_request(struct mmc_host *mmc);
312 mmc_signal_sdio_irq(host->mmc); in s3cmci_check_sdio_irq()
625 mmc_signal_sdio_irq(host->mmc); in s3cmci_irq()
820 mmc_detect_change(host->mmc, msecs_to_jiffies(500)); in s3cmci_irq_cd()
894 s3cmci_send_request(host->mmc); in finalize_request()
937 mmc_request_done(host->mmc, mrq); in finalize_request()
1107 dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in s3cmci_prepare_dma()
1124 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in s3cmci_prepare_dma()
1129 static void s3cmci_send_request(struct mmc_host *mmc) in s3cmci_send_request() argument
1131 struct s3cmci_host *host = mmc_priv(mmc); in s3cmci_send_request()
[all …]
Dvub300.c339 struct mmc_host *mmc; member
375 struct mmc_host *mmc = vub300->mmc; in vub300_delete() local
381 mmc_free_host(mmc); in vub300_delete()
522 mmc_detect_change(vub300->mmc, 1); in new_system_port_status()
526 mmc_detect_change(vub300->mmc, 0); in new_system_port_status()
597 mmc_signal_sdio_irq(vub300->mmc); in __vub300_irqpoll_response()
624 mmc_signal_sdio_irq(vub300->mmc); in __vub300_irqpoll_response()
642 mmc_signal_sdio_irq(vub300->mmc); in __vub300_irqpoll_response()
701 mmc_signal_sdio_irq(vub300->mmc); in vub300_pollwork_thread()
731 } else if (vub300->mmc && vub300->mmc->card && in vub300_deadwork_thread()
[all …]
Dvia-sdmmc.c299 struct mmc_host *mmc; member
473 dev_info(host->mmc->parent, "forcing card speed to 8MHz\n"); in via_set_ddma()
488 BUG_ON(data->blksz > host->mmc->max_blk_size); in via_sdc_preparedata()
489 BUG_ON(data->blocks > host->mmc->max_blk_count); in via_sdc_preparedata()
493 count = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in via_sdc_preparedata()
586 pr_err("%s: cmd->flag is not valid\n", mmc_hostname(host->mmc)); in via_sdc_send_command()
637 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in via_sdc_finish_data()
659 static void via_sdc_request(struct mmc_host *mmc, struct mmc_request *mrq) in via_sdc_request() argument
666 host = mmc_priv(mmc); in via_sdc_request()
719 static void via_sdc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in via_sdc_set_ios() argument
[all …]
Drtsx_usb_sdmmc.c47 struct mmc_host *mmc; member
763 static int sdmmc_get_ro(struct mmc_host *mmc) in sdmmc_get_ro() argument
765 struct rtsx_usb_sdmmc *host = mmc_priv(mmc); in sdmmc_get_ro()
791 static int sdmmc_get_cd(struct mmc_host *mmc) in sdmmc_get_cd() argument
793 struct rtsx_usb_sdmmc *host = mmc_priv(mmc); in sdmmc_get_cd()
822 static void sdmmc_request(struct mmc_host *mmc, struct mmc_request *mrq) in sdmmc_request() argument
824 struct rtsx_usb_sdmmc *host = mmc_priv(mmc); in sdmmc_request()
896 sdmmc_get_cd(mmc); in sdmmc_request()
905 mmc_request_done(mmc, mrq); in sdmmc_request()
1133 static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdmmc_set_ios() argument
[all …]
Datmel-mci.c250 struct mmc_host *mmc; member
475 struct mmc_host *mmc = slot->mmc; in atmci_init_debugfs() local
480 root = mmc->debugfs_root; in atmci_init_debugfs()
512 dev_err(&mmc->class_dev, "failed to initialize debugfs for slot\n"); in atmci_init_debugfs()
653 dev_vdbg(&slot->mmc->class_dev, "setting timeout to %u cycles\n", in atmci_set_timeout()
661 static u32 atmci_prepare_command(struct mmc_host *mmc, in atmci_prepare_command() argument
685 if (mmc->ios.bus_mode == MMC_BUSMODE_OPENDRAIN) in atmci_prepare_command()
1169 dev_dbg(&slot->mmc->class_dev, "WARNING: IMR=0x%08x\n", in atmci_start_request()
1186 dev_vdbg(&slot->mmc->class_dev, "BLKR=0x%08x\n", in atmci_start_request()
1194 cmdflags = atmci_prepare_command(slot->mmc, cmd); in atmci_start_request()
[all …]
Dtifm_sd.c621 static void tifm_sd_request(struct mmc_host *mmc, struct mmc_request *mrq) in tifm_sd_request() argument
623 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_request()
732 mmc_request_done(mmc, mrq); in tifm_sd_request()
739 struct mmc_host *mmc = tifm_get_drvdata(sock); in tifm_sd_end_cmd() local
783 mmc_request_done(mmc, mrq); in tifm_sd_end_cmd()
797 static void tifm_sd_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tifm_sd_ios() argument
799 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_ios()
864 static int tifm_sd_ro(struct mmc_host *mmc) in tifm_sd_ro() argument
867 struct tifm_sd *host = mmc_priv(mmc); in tifm_sd_ro()
949 struct mmc_host *mmc; in tifm_sd_probe() local
[all …]
Dsdhci-acpi.c149 static int bxt_get_cd(struct mmc_host *mmc) in bxt_get_cd() argument
151 int gpio_cd = mmc_gpio_get_cd(mmc); in bxt_get_cd()
152 struct sdhci_host *host = mmc_priv(mmc); in bxt_get_cd()
159 pm_runtime_get_sync(mmc->parent); in bxt_get_cd()
170 pm_runtime_mark_last_busy(mmc->parent); in bxt_get_cd()
171 pm_runtime_put_autosuspend(mmc->parent); in bxt_get_cd()
387 host->mmc->caps |= c->slot->chip->caps; in sdhci_acpi_probe()
388 host->mmc->caps2 |= c->slot->chip->caps2; in sdhci_acpi_probe()
389 host->mmc->pm_caps |= c->slot->chip->pm_caps; in sdhci_acpi_probe()
393 host->mmc->caps |= c->slot->caps; in sdhci_acpi_probe()
[all …]
Dsdhci-pxav3.c167 host->mmc->caps &= ~MMC_CAP_1_8V_DDR; in armada_38x_quirks()
178 struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc)); in pxav3_reset()
211 dev_dbg(mmc_dev(host->mmc), in pxav3_gen_init_74_clocks()
240 dev_warn(mmc_dev(host->mmc), "74 clock interrupt not cleared\n"); in pxav3_gen_init_74_clocks()
305 dev_dbg(mmc_dev(host->mmc), in pxav3_set_uhs_signaling()
400 host->mmc->caps |= MMC_CAP_1_8V_DDR; in sdhci_pxav3_probe()
413 ret = mmc_of_parse(host->mmc); in sdhci_pxav3_probe()
422 host->mmc->caps |= MMC_CAP_NONREMOVABLE; in sdhci_pxav3_probe()
426 host->mmc->caps |= MMC_CAP_8_BIT_DATA; in sdhci_pxav3_probe()
433 host->mmc->caps |= pdata->host_caps; in sdhci_pxav3_probe()
[all …]
Dsdhci-esdhc-imx.c640 host->mmc->actual_clock = 0; in esdhc_pltfm_set_clock()
664 host->mmc->actual_clock = host_clock / pre_div / div; in esdhc_pltfm_set_clock()
665 dev_dbg(mmc_dev(host->mmc), "desired SD clock: %d, actual: %d\n", in esdhc_pltfm_set_clock()
666 clock, host->mmc->actual_clock); in esdhc_pltfm_set_clock()
697 return mmc_gpio_get_ro(host->mmc); in esdhc_pltfm_get_ro()
740 dev_dbg(mmc_dev(host->mmc), in esdhc_prepare_tuning()
762 if (!mmc_send_tuning(host->mmc, opcode, NULL)) in esdhc_executing_tuning()
771 if (mmc_send_tuning(host->mmc, opcode, NULL)) { in esdhc_executing_tuning()
781 ret = mmc_send_tuning(host->mmc, opcode, NULL); in esdhc_executing_tuning()
784 dev_dbg(mmc_dev(host->mmc), "tunning %s at 0x%x ret %d\n", in esdhc_executing_tuning()
[all …]
Dsh_mobile_sdhi.c116 struct mmc_host *mmc = platform_get_drvdata(pdev); in sh_mobile_sdhi_clk_enable() local
117 struct tmio_mmc_host *host = mmc_priv(mmc); in sh_mobile_sdhi_clk_enable()
133 struct mmc_host *mmc = platform_get_drvdata(pdev); in sh_mobile_sdhi_clk_disable() local
134 struct tmio_mmc_host *host = mmc_priv(mmc); in sh_mobile_sdhi_clk_disable()
348 mmc_hostname(host->mmc), (unsigned long) in sh_mobile_sdhi_probe()
350 host->mmc->f_max / 1000000); in sh_mobile_sdhi_probe()
364 struct mmc_host *mmc = platform_get_drvdata(pdev); in sh_mobile_sdhi_remove() local
365 struct tmio_mmc_host *host = mmc_priv(mmc); in sh_mobile_sdhi_remove()
Dtmio_mmc.c112 pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc), in tmio_mmc_probe()
131 struct mmc_host *mmc = platform_get_drvdata(pdev); in tmio_mmc_remove() local
133 if (mmc) { in tmio_mmc_remove()
134 struct tmio_mmc_host *host = mmc_priv(mmc); in tmio_mmc_remove()
DMakefile9 obj-$(CONFIG_MMC_MXS) += mxs-mmc.o
42 obj-$(CONFIG_MMC_CB710) += cb710-mmc.o
56 obj-$(CONFIG_MMC_MOXART) += moxart-mmc.o
57 obj-$(CONFIG_MMC_SUNXI) += sunxi-mmc.o
80 CFLAGS-cb710-mmc += -DDEBUG
Dsdhci-tegra.c119 return mmc_gpio_get_ro(host->mmc); in tegra_sdhci_get_ro()
153 if ((host->mmc->caps & MMC_CAP_8_BIT_DATA) && in tegra_sdhci_set_bus_width()
270 dev_err(mmc_dev(host->mmc), "failed to allocate tegra_host\n"); in sdhci_tegra_probe()
277 rc = mmc_of_parse(host->mmc); in sdhci_tegra_probe()
288 clk = devm_clk_get(mmc_dev(host->mmc), NULL); in sdhci_tegra_probe()
290 dev_err(mmc_dev(host->mmc), "clk err\n"); in sdhci_tegra_probe()
Dsdhci-pci-core.c114 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in mrst_hc_probe_slot()
134 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA; in pch_hc_probe_slot()
145 mmc_detect_change(host->mmc, msecs_to_jiffies(200)); in sdhci_pci_sd_cd()
209 slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE; in mfd_emmc_probe_slot()
210 slot->host->mmc->caps2 |= MMC_CAP2_BOOTPART_NOACC | in mfd_emmc_probe_slot()
217 slot->host->mmc->caps |= MMC_CAP_POWER_OFF_CARD | MMC_CAP_NONREMOVABLE; in mfd_sdio_probe_slot()
333 static int bxt_get_cd(struct mmc_host *mmc) in bxt_get_cd() argument
335 int gpio_cd = mmc_gpio_get_cd(mmc); in bxt_get_cd()
336 struct sdhci_host *host = mmc_priv(mmc); in bxt_get_cd()
343 pm_runtime_get_sync(mmc->parent); in bxt_get_cd()
[all …]
Dsdhci-s3c.c165 host->mmc->actual_clock = 0; in sdhci_s3c_set_clock()
306 host->mmc->actual_clock = 0; in sdhci_cmu_set_clock()
326 mmc_hostname(host->mmc), clock); in sdhci_cmu_set_clock()
339 mmc_hostname(host->mmc)); in sdhci_cmu_set_clock()
577 host->mmc->caps = MMC_CAP_NONREMOVABLE; in sdhci_s3c_probe()
581 host->mmc->caps |= MMC_CAP_8_BIT_DATA; in sdhci_s3c_probe()
583 host->mmc->caps |= MMC_CAP_4_BIT_DATA; in sdhci_s3c_probe()
588 host->mmc->pm_caps |= pdata->pm_caps; in sdhci_s3c_probe()
608 host->mmc->caps |= pdata->host_caps; in sdhci_s3c_probe()
611 host->mmc->caps2 |= pdata->host_caps2; in sdhci_s3c_probe()
[all …]
Dof_mmc_spi.c54 irqreturn_t (*irqhandler)(int, void *), void *mmc) in of_mmc_spi_init() argument
59 dev_name(dev), mmc); in of_mmc_spi_init()
62 static void of_mmc_spi_exit(struct device *dev, void *mmc) in of_mmc_spi_exit() argument
66 free_irq(oms->detect_irq, mmc); in of_mmc_spi_exit()
Dsdhci-pxav2.c56 struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc)); in pxav2_reset()
203 host->mmc->caps |= MMC_CAP_NONREMOVABLE; in sdhci_pxav2_probe()
208 host->mmc->caps |= MMC_CAP_8_BIT_DATA; in sdhci_pxav2_probe()
213 host->mmc->caps |= pdata->host_caps; in sdhci_pxav2_probe()
215 host->mmc->pm_caps |= pdata->pm_caps; in sdhci_pxav2_probe()
Ddw_mmc-k3.c67 static int dw_mci_hi6220_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) in dw_mci_hi6220_switch_voltage() argument
69 struct dw_mci_slot *slot = mmc_priv(mmc); in dw_mci_hi6220_switch_voltage()
101 if (IS_ERR_OR_NULL(mmc->supply.vqmmc)) in dw_mci_hi6220_switch_voltage()
104 ret = regulator_set_voltage(mmc->supply.vqmmc, min_uv, max_uv); in dw_mci_hi6220_switch_voltage()
Dsdhci-iproc.c44 mmc_hostname(host->mmc), reg, val); in sdhci_iproc_readl()
65 mmc_hostname(host->mmc), reg, val); in sdhci_iproc_writel()
199 mmc_of_parse(host->mmc); in sdhci_iproc_probe()
203 host->mmc->caps |= MMC_CAP_1_8V_DDR; in sdhci_iproc_probe()
Dcb710-mmc.h30 static inline struct cb710_slot *cb710_mmc_to_slot(struct mmc_host *mmc) in cb710_mmc_to_slot() argument
32 struct platform_device *pdev = container_of(mmc_dev(mmc), in cb710_mmc_to_slot()
Dsdhci-cns3xxx.c28 struct device *dev = mmc_dev(host->mmc); in sdhci_cns3xxx_set_clock()
33 host->mmc->actual_clock = 0; in sdhci_cns3xxx_set_clock()
Dsdhci-pltfm.c105 host->mmc->pm_caps |= MMC_PM_KEEP_POWER; in sdhci_get_of_property()
108 host->mmc->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; in sdhci_get_of_property()
153 mmc_hostname(host->mmc))) { in sdhci_pltfm_init()
Ddw_mmc-rockchip.c90 struct mmc_host *mmc = slot->mmc; in dw_mci_rk3288_execute_tuning() local
117 v = !mmc_send_tuning(mmc, opcode, NULL); in dw_mci_rk3288_execute_tuning()
Dsdhci-st.c153 struct mmc_host *mhost = host->mmc; in st_mmcss_cconfig()
307 dev_warn(mmc_dev(host->mmc), "Error setting dll for clock " in sdhci_st_set_uhs_signaling()
310 dev_dbg(mmc_dev(host->mmc), "uhs %d, ctrl_2 %04X\n", uhs, ctrl_2); in sdhci_st_set_uhs_signaling()
384 ret = mmc_of_parse(host->mmc); in sdhci_st_probe()
Ds3cmci.h23 struct mmc_host *mmc; member
Dsdhci-of-esdhc.c412 host->mmc->actual_clock = 0; in esdhc_of_set_clock()
440 dev_dbg(mmc_dev(host->mmc), "desired SD clock: %d, actual: %d\n", in esdhc_of_set_clock()
442 host->mmc->actual_clock = host->max_clk / pre_div / div; in esdhc_of_set_clock()
623 ret = mmc_of_parse(host->mmc); in sdhci_esdhc_probe()
Ddw_mmc.h253 struct mmc_host *mmc; member
296 int (*switch_voltage)(struct mmc_host *mmc,
Dsdhci-dove.c95 ret = mmc_of_parse(host->mmc); in sdhci_dove_probe()
Ddw_mmc-exynos.c453 struct mmc_host *mmc = slot->mmc; in dw_mci_exynos_execute_tuning() local
464 if (!mmc_send_tuning(mmc, opcode, NULL)) in dw_mci_exynos_execute_tuning()
Dwbsd.h142 struct mmc_host* mmc; /* MMC structure */ member
Dtoshsd.h165 struct mmc_host *mmc; member
/linux-4.4.14/Documentation/devicetree/bindings/mmc/
Dsdhci-st.txt4 Documentation/devicetree/bindings/mmc/mmc.txt and the properties
13 - clock-names: Should be "mmc".
18 - interrupts: One mmc interrupt should be described here.
31 - reg-names: Should be "mmc" and "top-mmc-delay". "top-mmc-delay" is optional
36 See: Documentation/devicetree/bindings/mmc/mmc.txt.
39 See: Documentation/devicetree/bindings/mmc/mmc.txt.
43 See: Documentation/devicetree/bindings/mmc/mmc.txt.
52 See: Documentation/devicetree/bindings/mmc/mmc.txt.
55 See: Documentation/devicetree/bindings/mmc/mmc.txt.
58 See: Documentation/devicetree/bindings/mmc/mmc.txt.
[all …]
Dsunxi-mmc.txt11 - compatible : "allwinner,sun4i-a10-mmc" or "allwinner,sun5i-a13-mmc"
12 - reg : mmc controller base registers
14 - clock-names : must contain "ahb", "mmc", "output" and "sample"
15 - interrupts : mmc controller interrupt
20 - for cd, bus-width and additional generic mmc parameters
21 please refer to mmc.txt within this directory
25 mmc0: mmc@01c0f000 {
26 compatible = "allwinner,sun5i-a13-mmc";
35 mmc0: mmc@01c0f000 {
Dmmc-card.txt1 mmc-card / eMMC bindings
4 This documents describes the devicetree bindings for a mmc-host controller
5 child node describing a mmc-card / an eMMC, see "Use of Function subnodes"
6 in mmc.txt
9 -compatible : Must be "mmc-card"
13 -broken-hpi : Use this to indicate that the mmc-card has a broken hpi
28 compatible = "mmc-card";
Dmoxa,moxart-mmc.txt3 Inherits from mmc binding[1].
5 [1] Documentation/devicetree/bindings/mmc/mmc.txt
9 - compatible : Must be "moxa,moxart-mmc" or "faraday,ftsdc010"
22 mmc: mmc@98e00000 {
23 compatible = "moxa,moxart-mmc";
Dti-omap.txt7 by mmc.txt and the properties used by the omap mmc driver.
13 - compatible: Must be "ti,omap2420-mmc", for OMAP2420 controllers
19 msdi1: mmc@4809c000 {
20 compatible = "ti,omap2420-mmc";
34 by mmc.txt and the properties used by the omap mmc driver.
40 - compatible: Must be "ti,omap2420-mmc", for OMAP2420 controllers
46 msdi1: mmc@4809c000 {
47 compatible = "ti,omap2420-mmc";
Dpxa-mmc.txt6 - compatible: Should be "marvell,pxa-mmc".
13 This file documents differences between the core properties in mmc.txt
14 and the properties used by the pxa-mmc driver.
18 mmc0: mmc@41100000 {
19 compatible = "marvell,pxa-mmc";
Dmtk-sd.txt6 This file documents differences between the core properties in mmc.txt
10 - compatible: Should be "mediatek,mt8173-mmc","mediatek,mt8135-mmc"
26 mmc0: mmc@11230000 {
27 compatible = "mediatek,mt8173-mmc", "mediatek,mt8135-mmc";
Dmmc-spi-slot.txt4 by mmc.txt and the properties used by the mmc_spi driver.
15 binding from mmc.txt, for historical reasons.
21 mmc-slot@0 {
22 compatible = "fsl,mpc8323rdb-mmc-slot",
23 "mmc-spi-slot";
Dsdhci-pxa.txt3 This file documents differences between the core properties in mmc.txt
7 - compatible: Should be "mrvl,pxav2-mmc", "mrvl,pxav3-mmc" or
10 * for "mrvl,pxav2-mmc" and "mrvl,pxav3-mmc", one register area for
30 compatible = "mrvl,pxav3-mmc";
Dfsl-imx-mmc.txt3 This file documents differences to the properties defined in mmc.txt.
6 - compatible : Should be "fsl,<chip>-mmc", chip can be imx21 or imx31
16 compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
Darasan,sdhci.txt3 The bindings follow the mmc[1], clock[2] and interrupt[3] bindings. Only
6 [1] Documentation/devicetree/bindings/mmc/mmc.txt
13 - reg: From mmc bindings: Register location and length.
Ddavinci_mmc.txt10 Should be "ti,da830-mmc": for da830, da850, dm365
11 Should be "ti,dm355-mmc": for dm355, dm644x
23 mmc0: mmc@1c40000 {
24 compatible = "ti,da830-mmc",
Dmmc.txt33 - cap-mmc-highspeed: MMC high-speed timing is supported
40 - cap-mmc-hw-reset: eMMC hardware reset is supported
43 - mmc-ddr-1_8v: eMMC high-speed DDR mode(1.8V I/O) is supported
44 - mmc-ddr-1_2v: eMMC high-speed DDR mode(1.2V I/O) is supported
45 - mmc-hs200-1_8v: eMMC HS200 mode(1.8V I/O) is supported
46 - mmc-hs200-1_2v: eMMC HS200 mode(1.2V I/O) is supported
47 - mmc-hs400-1_8v: eMMC HS400 mode(1.8V I/O) is supported
48 - mmc-hs400-1_2v: eMMC HS400 mode(1.2V I/O) is supported
83 - mmc-pwrseq: phandle to the MMC power sequence node. See "mmc-pwrseq-*"
123 mmc-pwrseq = <&sdhci0_pwrseq>
[all …]
Dmmci.txt7 by mmc.txt and the properties used by the mmci driver. Using "st" as
28 - mmc-cap-mmc-highspeed : indicates whether MMC is high speed capable.
29 - mmc-cap-sd-highspeed : indicates whether SD is high speed capable.
48 cap-mmc-highspeed;
Dtmio_mmc.txt3 The tmio-mmc driver doesn't probe its devices actively, instead its binding to
5 driver. Those drivers supply the tmio-mmc driver with platform data, that either
9 described in mmc.txt, can be used. Additionally the following tmio_mmc-specific
27 - toshiba,mmc-wrprotect-disable: write-protect detection is unavailable
Dmxs-mmc.txt6 This file documents differences between the core properties in mmc.txt
10 - compatible: Should be "fsl,<chip>-mmc". The supported chips include
21 compatible = "fsl,imx28-mmc";
Dmmc-pwrseq-emmc.txt5 performed just after MMC core enabled power to the given mmc host (to
14 - compatible : contains "mmc-pwrseq-emmc".
23 compatible = "mmc-pwrseq-emmc";
Dsynopsys-dw-mshc.txt5 differences between the core mmc properties described by mmc.txt and the
26 * bus-width: as documented in mmc core bindings.
71 (use "cap-mmc-highspeed" or "cap-sd-highspeed" instead)
73 * broken-cd: as documented in mmc core bindings.
115 cap-mmc-highspeed;
130 cap-mmc-highspeed;
Dsdhci-atmel.txt4 Documentation/devicetree/bindings/mmc/mmc.txt and the properties used by the
Datmel-hsmci.txt7 by mmc.txt and the properties used by the atmel-mci driver.
24 mmc0: mmc@f0008000 {
57 mmc0: mmc@f0008000 {
Dti-omap-hsmmc.txt7 by mmc.txt and the properties used by the omap_hsmmc driver.
16 - ti,hwmods: Must be "mmc<n>", n is controller instance starting 1
36 mmc1: mmc@0x4809c000 {
48 mmc1: mmc@0x4809c000 {
97 mmc1: mmc@48060100 {
Dusdhi6rol0.txt16 Additionally any standard mmc bindings from mmc.txt can be used.
Dsdhci-fujitsu.txt3 This file documents differences between the core properties in mmc.txt
21 sdhci1: mmc@36600000 {
Dmmc-pwrseq-simple.txt8 - compatible : contains "mmc-pwrseq-simple".
23 compatible = "mmc-pwrseq-simple";
Dsamsung-sdhci.txt5 core mmc properties described by mmc.txt and the properties used by the
Drenesas,mmcif.txt3 This file documents differences between the core properties in mmc.txt
28 mmcif0: mmc@ee200000 {
Dsdhci-dove.txt3 This file documents differences between the core properties in mmc.txt
Dsdhci-spear.txt3 This file documents differences between the core properties in mmc.txt
Dbrcm,bcm2835-sdhci.txt4 by mmc.txt and the properties that represent the BCM2835 controller.
Dorion-sdio.txt3 This file documents differences between the core properties in mmc.txt
Dsdhci-sirf.txt3 This file documents differences between the core properties in mmc.txt
Dbrcm,kona-sdhci.txt3 This file documents differences between the core properties in mmc.txt
Dvt8500-sdmmc.txt4 by mmc.txt and the properties used by the wmt-sdmmc driver.
Dbrcm,sdhci-iproc.txt4 by mmc.txt and the properties that represent the IPROC SDHCI controller.
Dsocfpga-dw-mshc.txt17 mmc: dwmmc0@ff704000 {
Dimg-dw-mshc.txt17 mmc@18142000 {
Dnvidia,tegra20-sdhci.txt7 by mmc.txt and the properties used by the sdhci-tegra driver.
Dfsl-esdhc.txt7 by mmc.txt and the properties used by the sdhci-esdhc driver.
Dsdhci-msm.txt3 This file documents differences between the core properties in mmc.txt
/linux-4.4.14/arch/m32r/kernel/
Dsmp.c250 unsigned long *mmc; in smp_flush_tlb_mm() local
255 mmc = &mm->context[cpu_id]; in smp_flush_tlb_mm()
259 if (*mmc != NO_CONTEXT) { in smp_flush_tlb_mm()
261 *mmc = NO_CONTEXT; in smp_flush_tlb_mm()
320 unsigned long *mmc; in smp_flush_tlb_page() local
325 mmc = &mm->context[cpu_id]; in smp_flush_tlb_page()
334 if (*mmc != NO_CONTEXT) { in smp_flush_tlb_page()
337 va |= (*mmc & MMU_CONTEXT_ASID_MASK); in smp_flush_tlb_page()
451 unsigned long *mmc = &flush_mm->context[cpu_id]; in smp_invalidate_interrupt() local
457 *mmc = NO_CONTEXT; in smp_invalidate_interrupt()
[all …]
/linux-4.4.14/Documentation/mmc/
D00-INDEX3 mmc-dev-attrs.txt
5 mmc-dev-parts.txt
7 mmc-async-req.txt
8 - info on mmc asynchronous requests
/linux-4.4.14/drivers/mfd/
Dtc6387xb.c81 static void tc6387xb_mmc_pwr(struct platform_device *mmc, int state) in tc6387xb_mmc_pwr() argument
83 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6387xb_mmc_pwr()
89 static void tc6387xb_mmc_clk_div(struct platform_device *mmc, int state) in tc6387xb_mmc_clk_div() argument
91 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6387xb_mmc_clk_div()
98 static int tc6387xb_mmc_enable(struct platform_device *mmc) in tc6387xb_mmc_enable() argument
100 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6387xb_mmc_enable()
111 static int tc6387xb_mmc_disable(struct platform_device *mmc) in tc6387xb_mmc_disable() argument
113 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6387xb_mmc_disable()
Dt7l66xb.c83 static int t7l66xb_mmc_enable(struct platform_device *mmc) in t7l66xb_mmc_enable() argument
85 struct platform_device *dev = to_platform_device(mmc->dev.parent); in t7l66xb_mmc_enable()
106 static int t7l66xb_mmc_disable(struct platform_device *mmc) in t7l66xb_mmc_disable() argument
108 struct platform_device *dev = to_platform_device(mmc->dev.parent); in t7l66xb_mmc_disable()
126 static void t7l66xb_mmc_pwr(struct platform_device *mmc, int state) in t7l66xb_mmc_pwr() argument
128 struct platform_device *dev = to_platform_device(mmc->dev.parent); in t7l66xb_mmc_pwr()
134 static void t7l66xb_mmc_clk_div(struct platform_device *mmc, int state) in t7l66xb_mmc_clk_div() argument
136 struct platform_device *dev = to_platform_device(mmc->dev.parent); in t7l66xb_mmc_clk_div()
Dtc6393xb.c352 static int tc6393xb_mmc_enable(struct platform_device *mmc) in tc6393xb_mmc_enable() argument
354 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6393xb_mmc_enable()
363 static int tc6393xb_mmc_resume(struct platform_device *mmc) in tc6393xb_mmc_resume() argument
365 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6393xb_mmc_resume()
374 static void tc6393xb_mmc_pwr(struct platform_device *mmc, int state) in tc6393xb_mmc_pwr() argument
376 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6393xb_mmc_pwr()
382 static void tc6393xb_mmc_clk_div(struct platform_device *mmc, int state) in tc6393xb_mmc_clk_div() argument
384 struct platform_device *dev = to_platform_device(mmc->dev.parent); in tc6393xb_mmc_clk_div()
/linux-4.4.14/drivers/clk/sunxi/
Dclk-mod0.c191 struct clk *mmc, *mmc_parent, *clk = hw->clk; in mmc_get_phase() local
205 mmc = clk_get_parent(clk); in mmc_get_phase()
206 if (!mmc) in mmc_get_phase()
210 mmc_rate = clk_get_rate(mmc); in mmc_get_phase()
215 mmc_parent = clk_get_parent(mmc); in mmc_get_phase()
233 struct clk *mmc, *mmc_parent, *clk = hw->clk; in mmc_set_phase() local
241 mmc = clk_get_parent(clk); in mmc_set_phase()
242 if (!mmc) in mmc_set_phase()
246 mmc_rate = clk_get_rate(mmc); in mmc_set_phase()
251 mmc_parent = clk_get_parent(mmc); in mmc_set_phase()
DMakefile15 obj-y += clk-sun9i-mmc.o
/linux-4.4.14/arch/arm/boot/dts/
Dpxa3xx.dtsi57 mmc0: mmc@41100000 {
58 compatible = "marvell,pxa-mmc";
68 mmc1: mmc@42000000 {
69 compatible = "marvell,pxa-mmc";
79 mmc2: mmc@42500000 {
80 compatible = "marvell,pxa-mmc";
Dsun9i-a80.dtsi241 compatible = "allwinner,sun9i-a80-mmc-clk";
250 compatible = "allwinner,sun9i-a80-mmc-clk";
259 compatible = "allwinner,sun9i-a80-mmc-clk";
268 compatible = "allwinner,sun9i-a80-mmc-clk";
457 mmc0: mmc@01c0f000 {
458 compatible = "allwinner,sun5i-a13-mmc";
462 clock-names = "ahb", "mmc", "output", "sample";
471 mmc1: mmc@01c10000 {
472 compatible = "allwinner,sun5i-a13-mmc";
476 clock-names = "ahb", "mmc", "output", "sample";
[all …]
Dusb_a9g20_lpw.dts20 mmc-slot@0 {
21 compatible = "mmc-spi-slot";
Dat91sam9g20ek_2mmc.dts12 model = "Atmel at91sam9g20ek 2 mmc";
17 mmc0: mmc@fffa8000 {
Dsun8i-a23-a33.dtsi214 compatible = "allwinner,sun4i-a10-mmc-clk";
224 compatible = "allwinner,sun4i-a10-mmc-clk";
234 compatible = "allwinner,sun4i-a10-mmc-clk";
268 mmc0: mmc@01c0f000 {
269 compatible = "allwinner,sun5i-a13-mmc";
276 "mmc",
287 mmc1: mmc@01c10000 {
288 compatible = "allwinner,sun5i-a13-mmc";
295 "mmc",
306 mmc2: mmc@01c11000 {
[all …]
Dsun5i.dtsi213 compatible = "allwinner,sun4i-a10-mmc-clk";
223 compatible = "allwinner,sun4i-a10-mmc-clk";
233 compatible = "allwinner,sun4i-a10-mmc-clk";
387 mmc0: mmc@01c0f000 {
388 compatible = "allwinner,sun5i-a13-mmc";
395 "mmc",
404 mmc1: mmc@01c10000 {
405 compatible = "allwinner,sun5i-a13-mmc";
412 "mmc",
421 mmc2: mmc@01c11000 {
[all …]
Dsun4i-a10.dtsi375 compatible = "allwinner,sun4i-a10-mmc-clk";
385 compatible = "allwinner,sun4i-a10-mmc-clk";
395 compatible = "allwinner,sun4i-a10-mmc-clk";
405 compatible = "allwinner,sun4i-a10-mmc-clk";
599 mmc0: mmc@01c0f000 {
600 compatible = "allwinner,sun4i-a10-mmc";
607 "mmc",
616 mmc1: mmc@01c10000 {
617 compatible = "allwinner,sun4i-a10-mmc";
624 "mmc",
[all …]
Dsun6i-a31.dtsi332 compatible = "allwinner,sun4i-a10-mmc-clk";
342 compatible = "allwinner,sun4i-a10-mmc-clk";
352 compatible = "allwinner,sun4i-a10-mmc-clk";
362 compatible = "allwinner,sun4i-a10-mmc-clk";
471 mmc0: mmc@01c0f000 {
472 compatible = "allwinner,sun5i-a13-mmc";
479 "mmc",
490 mmc1: mmc@01c10000 {
491 compatible = "allwinner,sun5i-a13-mmc";
498 "mmc",
[all …]
Dste-ccu9540.dts49 cap-mmc-highspeed;
73 cap-mmc-highspeed;
Dexynos5422-odroidxu3-common.dtsi45 compatible = "mmc-pwrseq-emmc";
333 mmc-pwrseq = <&emmc_pwrseq>;
344 cap-mmc-highspeed;
345 mmc-hs200-1_8v;
346 mmc-hs400-1_8v;
Dexynos5410.dtsi158 mmc_0: mmc@12200000 {
170 mmc_1: mmc@12210000 {
182 mmc_2: mmc@12220000 {
Dr8a73a4-ape6evm.dts196 mmc0_pins: mmc {
237 toshiba,mmc-wrprotect-disable;
247 toshiba,mmc-wrprotect-disable;
Dsun7i-a20.dtsi376 compatible = "allwinner,sun4i-a10-mmc-clk";
386 compatible = "allwinner,sun4i-a10-mmc-clk";
396 compatible = "allwinner,sun4i-a10-mmc-clk";
406 compatible = "allwinner,sun4i-a10-mmc-clk";
683 mmc0: mmc@01c0f000 {
684 compatible = "allwinner,sun5i-a13-mmc";
691 "mmc",
700 mmc1: mmc@01c10000 {
701 compatible = "allwinner,sun5i-a13-mmc";
708 "mmc",
[all …]
Dpm9g45.dts58 mmc {
66 mmc0: mmc@fff80000 {
Dversatile-pb.dts80 mmc@5000 {
103 mmc@b000 {
Dpxa2xx.dtsi127 mmc0: mmc@41100000 {
128 compatible = "marvell,pxa-mmc";
Dzx296702.dtsi108 mmc0: mmc@0x09408000 {
121 mmc1: mmc@0x0b003000 {
Dat91-sama5d3_xplained.dts36 mmc0: mmc@f0000000 {
48 mmc1: mmc@f8000000 {
149 mmc1: mmc@f8000000 {
Dste-href.dtsi135 cap-mmc-highspeed;
170 cap-mmc-highspeed;
185 cap-mmc-highspeed;
Drk3288-veyron.dtsi80 compatible = "mmc-pwrseq-emmc";
100 compatible = "mmc-pwrseq-simple";
151 cap-mmc-highspeed;
154 mmc-hs200-1_8v;
155 mmc-pwrseq = <&emmc_pwrseq>;
355 mmc-pwrseq = <&sdio_pwrseq>;
Dimx27.dtsi270 compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
282 compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
436 compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
Dat91sam9x5ek.dtsi22 mmc0: mmc@f0008000 {
35 mmc1: mmc@f000c000 {
Dat91sam9g25ek.dts23 mmc1: mmc@f000c000 {
Dimx28-apx4devkit.dts21 compatible = "fsl,imx28-mmc";
29 compatible = "fsl,imx28-mmc";
Dr8a7778-bockw.dts134 mmc_pins: mmc {
136 renesas,function = "mmc";
Dqcom-apq8064-cm-qs600.dts26 compatible = "mmc-pwrseq-simple";
219 mmc-pwrseq = <&sdcc4_pwrseq>;
Dexynos5260.dtsi275 mmc_0: mmc@12140000 {
287 mmc_1: mmc@12150000 {
299 mmc_2: mmc@12160000 {
Dat91-ariettag25.dts36 mmc0: mmc@f0008000 {
Dsama5d3xmb.dtsi16 mmc0: mmc@f0000000 {
96 mmc1: mmc@f8000000 {
Drk3288-rock2-som.dtsi51 compatible = "mmc-pwrseq-emmc";
80 cap-mmc-highspeed;
84 mmc-pwrseq = <&emmc_pwrseq>;
Dsocfpga_arria10_socdk_sdmmc.dts21 &mmc {
Dqcom-apq8064-ifc6410.dts24 compatible = "mmc-pwrseq-simple";
279 mmc-pwrseq = <&sdcc4_pwrseq>;
Dqcom-msm8660.dtsi187 cap-mmc-highspeed;
202 cap-mmc-highspeed;
Domap2420.dtsi163 msdi1: mmc@4809c000 {
164 compatible = "ti,omap2420-mmc";
Dstih407-family.dtsi495 reg-names = "mmc", "top-mmc-delay";
500 clock-names = "mmc";
510 reg-names = "mmc";
515 clock-names = "mmc";
Dat91-cosino_mega2560.dts52 mmc1: mmc@f000c000 {
Dimx6qdl-microsom.dtsi68 compatible = "mmc-pwrseq-simple";
155 mmc-pwrseq = <&usdhc1_pwrseq>;
Dimx28-m28cu3.dts45 compatible = "fsl,imx28-mmc";
56 compatible = "fsl,imx28-mmc";
Defm32gg-dk3750.dts50 compatible = "mmc-spi-slot";
Dsocfpga_arria5.dtsi36 cap-mmc-highspeed;
Dexynos5410-smdk5410.dts43 cap-mmc-highspeed;
Dsama5d3_mci2.dtsi43 mmc2: mmc@f8004000 {
Dimx23-stmp378x_devb.dts26 compatible = "fsl,imx23-mmc";
Domap4-panda-es.dts66 mmc {
Dsocfpga_cyclone5.dtsi37 cap-mmc-highspeed;
Dsun6i-a31s-sinovoip-bpi-m2.dts82 compatible = "mmc-pwrseq-simple";
132 mmc-pwrseq = <&mmc2_pwrseq>;
Dat91sam9m10g45ek.dts86 mmc0: mmc@fff80000 {
99 mmc1: mmc@fffd0000 {
Dsun7i-a20-wits-pro-a20-dkt.dts64 compatible = "mmc-pwrseq-simple";
123 mmc-pwrseq = <&mmc3_pwrseq>;
Dkirkwood-6281.dtsi84 cap-mmc-highspeed;
Dkirkwood-6192.dtsi82 cap-mmc-highspeed;
Dsocfpga_cyclone5_socrates.dts79 &mmc {
Dexynos4412-odroid-common.dtsi73 compatible = "mmc-pwrseq-emmc";
462 mmc-pwrseq = <&emmc_pwrseq>;
472 cap-mmc-highspeed;
Dexynos5260-xyref5260.dts72 cap-mmc-highspeed;
Dsocfpga_vt.dts48 cap-mmc-highspeed;
Dqcom-msm8960.dtsi248 cap-mmc-highspeed;
263 cap-mmc-highspeed;
Dimx6sl-warp.dts62 compatible = "mmc-pwrseq-simple";
122 mmc-pwrseq = <&usdhc3_pwrseq>;
/linux-4.4.14/arch/alpha/include/asm/
Dmmu_context.h137 unsigned long mmc; in ev5_switch_mm() local
145 mmc = next_mm->context[cpu]; in ev5_switch_mm()
146 if ((mmc ^ asn) & ~HARDWARE_ASN_MASK) { in ev5_switch_mm()
147 mmc = __get_new_mm_context(next_mm, cpu); in ev5_switch_mm()
148 next_mm->context[cpu] = mmc; in ev5_switch_mm()
158 task_thread_info(next)->pcb.asn = mmc & HARDWARE_ASN_MASK; in ev5_switch_mm()
Dtlbflush.h91 unsigned long *mmc = &mm->context[smp_processor_id()]; in flush_tlb_other() local
94 if (*mmc) *mmc = 0; in flush_tlb_other()
/linux-4.4.14/drivers/mmc/
DKconfig24 source "drivers/mmc/core/Kconfig"
26 source "drivers/mmc/card/Kconfig"
28 source "drivers/mmc/host/Kconfig"
/linux-4.4.14/arch/arm/mach-ep93xx/
Dsimone.c106 irqreturn_t (*irq_handler)(int, void *), void *mmc) in simone_mmc_spi_init() argument
124 "MMC card detect", mmc); in simone_mmc_spi_init()
137 static void simone_mmc_spi_exit(struct device *dev, void *mmc) in simone_mmc_spi_exit() argument
141 free_irq(gpio_to_irq(gpio), mmc); in simone_mmc_spi_exit()
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dsunxi.txt59 "allwinner,sun4i-a10-mmc-clk" - for the MMC clock
60 "allwinner,sun9i-a80-mmc-clk" - for mmc module clocks on A80
61 "allwinner,sun9i-a80-mmc-config-clk" - for mmc gates + resets on A80
83 "allwinner,*-usb-clk", "allwinner,*-mmc-clk",
84 "allwinner,*-mmc-config-clk"
92 The "allwinner,sun9i-a80-mmc-config-clk" clock also requires:
94 - resets : shall be the reset control phandle for the mmc block.
110 The "allwinner,*-mmc-clk" clocks have three different outputs: the
114 The "allwinner,sun9i-a80-mmc-config-clk" clock has one clock/reset output
115 per mmc controller. The number of outputs is determined by the size of
[all …]
Dhi3620-clock.txt10 - "hisilicon,hi3620-mmc-clock" - controller specific for Hi3620 mmc.
/linux-4.4.14/arch/arm64/boot/dts/mediatek/
Dmt8173.dtsi469 mmc0: mmc@11230000 {
470 compatible = "mediatek,mt8173-mmc",
471 "mediatek,mt8135-mmc";
480 mmc1: mmc@11240000 {
481 compatible = "mediatek,mt8173-mmc",
482 "mediatek,mt8135-mmc";
491 mmc2: mmc@11250000 {
492 compatible = "mediatek,mt8173-mmc",
493 "mediatek,mt8135-mmc";
502 mmc3: mmc@11260000 {
[all …]
/linux-4.4.14/arch/alpha/mm/
Dfault.c42 unsigned long mmc; in __load_new_mm_context() local
45 mmc = __get_new_mm_context(next_mm, smp_processor_id()); in __load_new_mm_context()
46 next_mm->context[smp_processor_id()] = mmc; in __load_new_mm_context()
49 pcb->asn = mmc & HARDWARE_ASN_MASK; in __load_new_mm_context()
/linux-4.4.14/arch/arm/mach-omap1/
DMakefile31 obj-$(CONFIG_MACH_OMAP_H2) += board-h2.o board-h2-mmc.o \
38 obj-$(CONFIG_MACH_OMAP_H3) += board-h3.o board-h3-mmc.o \
46 obj-$(CONFIG_MACH_SX1) += board-sx1.o board-sx1-mmc.o
/linux-4.4.14/include/linux/mmc/
Dhost.h411 int mmc_regulator_set_ocr(struct mmc_host *mmc,
414 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
421 static inline int mmc_regulator_set_ocr(struct mmc_host *mmc, in mmc_regulator_set_ocr() argument
428 static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc, in mmc_regulator_set_vqmmc() argument
435 int mmc_regulator_get_supply(struct mmc_host *mmc);
/linux-4.4.14/drivers/mmc/core/
Dcore.c1368 int mmc_regulator_set_ocr(struct mmc_host *mmc, in mmc_regulator_set_ocr() argument
1379 if (result == 0 && !mmc->regulator_enabled) { in mmc_regulator_set_ocr()
1382 mmc->regulator_enabled = true; in mmc_regulator_set_ocr()
1384 } else if (mmc->regulator_enabled) { in mmc_regulator_set_ocr()
1387 mmc->regulator_enabled = false; in mmc_regulator_set_ocr()
1391 dev_err(mmc_dev(mmc), in mmc_regulator_set_ocr()
1429 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_regulator_set_vqmmc() argument
1431 struct device *dev = mmc_dev(mmc); in mmc_regulator_set_vqmmc()
1435 if (IS_ERR(mmc->supply.vqmmc)) in mmc_regulator_set_vqmmc()
1440 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
[all …]
DMakefile7 mmc.o mmc_ops.o sd.o sd_ops.o \
/linux-4.4.14/Documentation/devicetree/bindings/spi/
Dspi_atmel.txt31 mmc-slot@0 {
32 compatible = "mmc-spi-slot";
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/
Dfsl,mxs-pinctrl.txt105 mmc_cd_cfg: mmc-cd-cfg {
110 mmc_sck_cfg: mmc-sck-cfg {
118 to function as a 8-bit mmc device, with 8mA, 3.3V and pull-up configurations
119 applied on all these pins. And config nodes mmc-cd-cfg and mmc-sck-cfg are
/linux-4.4.14/drivers/media/mmc/
DKconfig2 source "drivers/media/mmc/siano/Kconfig"
/linux-4.4.14/arch/arm64/boot/dts/rockchip/
Drk3368-r88.dts60 compatible = "mmc-pwrseq-emmc";
100 compatible = "mmc-pwrseq-simple";
190 cap-mmc-highspeed;
192 mmc-pwrseq = <&emmc_pwrseq>;
249 mmc-pwrseq = <&sdio_pwrseq>;
/linux-4.4.14/Documentation/devicetree/bindings/power/
Dwakeup-source.txt20 1. "enable-sdio-wakeup" Documentation/devicetree/bindings/mmc/mmc.txt
/linux-4.4.14/drivers/staging/rts5208/
DTODO4 - We will use the stack in drivers/mmc to implement
/linux-4.4.14/Documentation/devicetree/bindings/clock/st/
Dst,flexgen.txt97 "clk-mmc-0",
98 "clk-mmc-1",
/linux-4.4.14/drivers/clk/rockchip/
DMakefile10 obj-y += clk-mmc-phase.o
/linux-4.4.14/drivers/media/
DMakefile31 obj-y += common/ platform/ pci/ usb/ mmc/ firewire/
/linux-4.4.14/Documentation/devicetree/bindings/regulator/
Dregulator.txt79 Example of a consumer device node (mmc) referencing two
94 mmc: mmc@0x0 {
/linux-4.4.14/drivers/usb/wusbcore/
DMakefile12 mmc.o \
/linux-4.4.14/Documentation/arm/stm32/
Dstm32f429-overview.txt18 …- http://www.st.com/web/en/catalog/mmc/FM141/SC1169/SS1577/LN1806?ecmp=stm32f429-439_pron_pr-ces20…
/linux-4.4.14/arch/arm64/boot/dts/amd/
Damd-overdrive.dts47 compatible = "mmc-spi-slot";
/linux-4.4.14/arch/powerpc/boot/dts/
Dmpc832x_rdb.dts259 mmc-slot@0 {
260 compatible = "fsl,mpc8323rdb-mmc-slot",
261 "mmc-spi-slot";
/linux-4.4.14/arch/arm/mach-imx/devices/
DMakefile21 obj-$(CONFIG_IMX_HAVE_PLATFORM_MXC_MMC) += platform-mxc-mmc.o
/linux-4.4.14/Documentation/devicetree/bindings/net/wireless/
Dbrcm,bcm43xx-fmac.txt23 mmc3: mmc@01c12000 {
/linux-4.4.14/Documentation/devicetree/bindings/gpio/
Dgpio-twl4030.txt16 - ti,mmc-cd : if n-th bit is set, GPIO-n controls VMMC(n+1)
/linux-4.4.14/arch/arm64/boot/dts/exynos/
Dexynos7-espresso.dts59 cap-mmc-highspeed;

12