/drivers/net/ethernet/stmicro/stmmac/ |
D | mmc_core.c | 215 static void dwmac_mmc_read(void __iomem *mmcaddr, struct stmmac_counters *mmc) in dwmac_mmc_read() argument 217 mmc->mmc_tx_octetcount_gb += readl(mmcaddr + MMC_TX_OCTETCOUNT_GB); in dwmac_mmc_read() 218 mmc->mmc_tx_framecount_gb += readl(mmcaddr + MMC_TX_FRAMECOUNT_GB); in dwmac_mmc_read() 219 mmc->mmc_tx_broadcastframe_g += readl(mmcaddr + in dwmac_mmc_read() 221 mmc->mmc_tx_multicastframe_g += readl(mmcaddr + in dwmac_mmc_read() 223 mmc->mmc_tx_64_octets_gb += readl(mmcaddr + MMC_TX_64_OCTETS_GB); in dwmac_mmc_read() 224 mmc->mmc_tx_65_to_127_octets_gb += in dwmac_mmc_read() 226 mmc->mmc_tx_128_to_255_octets_gb += in dwmac_mmc_read() 228 mmc->mmc_tx_256_to_511_octets_gb += in dwmac_mmc_read() 230 mmc->mmc_tx_512_to_1023_octets_gb += in dwmac_mmc_read() [all …]
|
/drivers/mmc/host/ |
D | meson-mx-sdhc-mmc.c | 38 void (*init_hw)(struct mmc_host *mmc); 39 void (*set_pdma)(struct mmc_host *mmc); 40 void (*wait_before_send)(struct mmc_host *mmc); 45 struct mmc_host *mmc; member 68 static void meson_mx_sdhc_hw_reset(struct mmc_host *mmc) in meson_mx_sdhc_hw_reset() argument 70 struct meson_mx_sdhc_host *host = mmc_priv(mmc); in meson_mx_sdhc_hw_reset() 82 static void meson_mx_sdhc_clear_fifo(struct mmc_host *mmc) in meson_mx_sdhc_clear_fifo() argument 84 struct meson_mx_sdhc_host *host = mmc_priv(mmc); in meson_mx_sdhc_clear_fifo() 99 dev_warn(mmc_dev(host->mmc), in meson_mx_sdhc_clear_fifo() 105 static void meson_mx_sdhc_wait_cmd_ready(struct mmc_host *mmc) in meson_mx_sdhc_wait_cmd_ready() argument [all …]
|
D | cqhci-core.c | 50 return cq_host->trans_desc_len * cq_host->mmc->max_segs * tag; in get_trans_desc_offset() 79 if (tag == DCMD_SLOT && (cq_host->mmc->caps2 & MMC_CAP2_CQE_DCMD)) { in setup_trans_desc() 106 pr_err("%s: " DRV_NAME ": " f, mmc_hostname(mmc), ## x) 110 struct mmc_host *mmc = cq_host->mmc; in cqhci_dumpregs() local 149 cq_host->ops->dumpregs(mmc); in cqhci_dumpregs() 203 cq_host->data_size = get_trans_desc_offset(cq_host, cq_host->mmc->cqe_qdepth); in cqhci_host_alloc_tdl() 206 mmc_hostname(cq_host->mmc), cq_host->desc_size, cq_host->data_size, in cqhci_host_alloc_tdl() 215 cq_host->desc_base = dmam_alloc_coherent(mmc_dev(cq_host->mmc), in cqhci_host_alloc_tdl() 222 cq_host->trans_desc_base = dmam_alloc_coherent(mmc_dev(cq_host->mmc), in cqhci_host_alloc_tdl() 227 dmam_free_coherent(mmc_dev(cq_host->mmc), cq_host->desc_size, in cqhci_host_alloc_tdl() [all …]
|
D | mmc_hsq.c | 22 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_retry_handler() local 24 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_retry_handler() 29 struct mmc_host *mmc = hsq->mmc; in mmc_hsq_pump_requests() local 54 if (mmc->ops->request_atomic) in mmc_hsq_pump_requests() 55 ret = mmc->ops->request_atomic(mmc, hsq->mrq); in mmc_hsq_pump_requests() 57 mmc->ops->request(mmc, hsq->mrq); in mmc_hsq_pump_requests() 153 bool mmc_hsq_finalize_request(struct mmc_host *mmc, struct mmc_request *mrq) in mmc_hsq_finalize_request() argument 155 struct mmc_hsq *hsq = mmc->cqe_private; in mmc_hsq_finalize_request() 172 mmc_cqe_request_done(mmc, hsq->mrq); in mmc_hsq_finalize_request() 180 static void mmc_hsq_recovery_start(struct mmc_host *mmc) in mmc_hsq_recovery_start() argument [all …]
|
D | davinci_mmc.c | 171 struct mmc_host *mmc; member 274 dev_dbg(mmc_dev(host->mmc), "CMD%d, arg 0x%08x%s\n", in mmc_davinci_start_command() 315 dev_dbg(mmc_dev(host->mmc), "unknown resp_type %04x\n", in mmc_davinci_start_command() 424 dev_dbg(mmc_dev(host->mmc), in mmc_davinci_send_dma_request() 446 dev_dbg(mmc_dev(host->mmc), in mmc_davinci_send_dma_request() 467 host->sg_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in mmc_davinci_start_dma_transfer() 473 dma_unmap_sg(mmc_dev(host->mmc), in mmc_davinci_start_dma_transfer() 497 host->dma_tx = dma_request_chan(mmc_dev(host->mmc), "tx"); in davinci_acquire_dma_channels() 499 dev_err(mmc_dev(host->mmc), "Can't get dma_tx channel\n"); in davinci_acquire_dma_channels() 503 host->dma_rx = dma_request_chan(mmc_dev(host->mmc), "rx"); in davinci_acquire_dma_channels() [all …]
|
D | sdhci.c | 42 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 45 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 161 !mmc_card_is_removable(host->mmc) || mmc_can_gpio_cd(host->mmc)) in sdhci_set_card_detection() 193 pm_runtime_get_noresume(mmc_dev(host->mmc)); in sdhci_runtime_pm_bus_on() 201 pm_runtime_put_noidle(mmc_dev(host->mmc)); in sdhci_runtime_pm_bus_off() 228 mmc_hostname(host->mmc), (int)mask); in sdhci_reset() 241 struct mmc_host *mmc = host->mmc; in sdhci_do_reset() local 243 if (!mmc->ops->get_cd(mmc)) in sdhci_do_reset() 324 struct mmc_host *mmc = host->mmc; in sdhci_init() local 345 mmc->ops->set_ios(mmc, &mmc->ios); in sdhci_init() [all …]
|
D | tmio_mmc_core.c | 137 static void tmio_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable) in tmio_mmc_enable_sdio_irq() argument 139 struct tmio_mmc_host *host = mmc_priv(mmc); in tmio_mmc_enable_sdio_irq() 145 pm_runtime_get_sync(mmc_dev(mmc)); in tmio_mmc_enable_sdio_irq() 162 pm_runtime_mark_last_busy(mmc_dev(mmc)); in tmio_mmc_enable_sdio_irq() 163 pm_runtime_put_autosuspend(mmc_dev(mmc)); in tmio_mmc_enable_sdio_irq() 211 tmio_mmc_set_bus_width(host, host->mmc->ios.bus_width); in tmio_mmc_reset() 225 if (host->mmc->card) in tmio_mmc_reset() 226 mmc_retune_needed(host->mmc); in tmio_mmc_reset() 271 mmc_request_done(host->mmc, mrq); in tmio_mmc_reset_work() 632 struct mmc_host *mmc = host->mmc; in __tmio_mmc_card_detect_irq() local [all …]
|
D | meson-mx-sdio.c | 118 struct mmc_host *mmc; member 125 static void meson_mx_mmc_mask_bits(struct mmc_host *mmc, char reg, u32 mask, in meson_mx_mmc_mask_bits() argument 128 struct meson_mx_mmc_host *host = mmc_priv(mmc); in meson_mx_mmc_mask_bits() 155 static void meson_mx_mmc_start_cmd(struct mmc_host *mmc, in meson_mx_mmc_start_cmd() argument 158 struct meson_mx_mmc_host *host = mmc_priv(mmc); in meson_mx_mmc_start_cmd() 197 if (mmc->ios.bus_width == MMC_BUS_WIDTH_4) in meson_mx_mmc_start_cmd() 225 meson_mx_mmc_mask_bits(mmc, MESON_MX_SDIO_IRQC, in meson_mx_mmc_start_cmd() 230 meson_mx_mmc_mask_bits(mmc, MESON_MX_SDIO_IRQS, in meson_mx_mmc_start_cmd() 255 mmc_request_done(host->mmc, mrq); in meson_mx_mmc_request_done() 258 static void meson_mx_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_mmc_set_ios() argument [all …]
|
D | meson-gx-mmc.c | 151 struct mmc_host *mmc; member 226 static void meson_mmc_get_transfer_mode(struct mmc_host *mmc, in meson_mmc_get_transfer_mode() argument 229 struct meson_host *host = mmc_priv(mmc); in meson_mmc_get_transfer_mode() 254 dev_warn_once(mmc_dev(mmc), in meson_mmc_get_transfer_mode() 265 dev_warn_once(mmc_dev(mmc), in meson_mmc_get_transfer_mode() 286 static void meson_mmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq) in meson_mmc_pre_req() argument 293 meson_mmc_get_transfer_mode(mmc, mrq); in meson_mmc_pre_req() 299 data->sg_count = dma_map_sg(mmc_dev(mmc), data->sg, data->sg_len, in meson_mmc_pre_req() 302 dev_err(mmc_dev(mmc), "dma_map_sg failed"); in meson_mmc_pre_req() 305 static void meson_mmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in meson_mmc_post_req() argument [all …]
|
D | pxamci.c | 51 struct mmc_host *mmc; member 79 struct mmc_host *mmc = host->mmc; in pxamci_init_ocr() local 82 ret = mmc_regulator_get_supply(mmc); in pxamci_init_ocr() 86 if (IS_ERR(mmc->supply.vmmc)) { in pxamci_init_ocr() 88 mmc->ocr_avail = host->pdata ? in pxamci_init_ocr() 100 struct mmc_host *mmc = host->mmc; in pxamci_set_power() local 101 struct regulator *supply = mmc->supply.vmmc; in pxamci_set_power() 104 return mmc_regulator_set_ocr(mmc, supply, vdd); in pxamci_set_power() 112 return host->pdata->setpower(mmc_dev(host->mmc), vdd); in pxamci_set_power() 133 dev_err(mmc_dev(host->mmc), "unable to stop clock\n"); in pxamci_stop_clock() [all …]
|
D | wmt-sdmmc.c | 186 struct mmc_host *mmc; member 223 static void wmt_mci_read_response(struct mmc_host *mmc) in wmt_mci_read_response() argument 230 priv = mmc_priv(mmc); in wmt_mci_read_response() 254 static int wmt_mci_send_command(struct mmc_host *mmc, u8 command, u8 cmdtype, in wmt_mci_send_command() argument 260 priv = mmc_priv(mmc); in wmt_mci_send_command() 303 dma_unmap_sg(mmc_dev(priv->mmc), req->data->sg, in wmt_complete_data_request() 306 dma_unmap_sg(mmc_dev(priv->mmc), req->data->sg, in wmt_complete_data_request() 311 mmc_request_done(priv->mmc, req); in wmt_complete_data_request() 313 wmt_mci_read_response(priv->mmc); in wmt_complete_data_request() 316 mmc_request_done(priv->mmc, req); in wmt_complete_data_request() [all …]
|
D | sunxi-mmc.c | 271 struct mmc_host *mmc; member 317 dev_err(mmc_dev(host->mmc), "fatal err reset timeout\n"); in sunxi_mmc_reset_host() 404 dma_len = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in sunxi_mmc_map_dma() 407 dev_err(mmc_dev(host->mmc), "dma_map_sg failed\n"); in sunxi_mmc_map_dma() 413 dev_err(mmc_dev(host->mmc), in sunxi_mmc_map_dma() 472 dev_err(mmc_dev(host->mmc), "send stop command failed\n"); in sunxi_mmc_send_manual_stop() 494 dev_dbg(mmc_dev(host->mmc), in sunxi_mmc_dump_errinfo() 496 host->mmc->index, cmd->opcode, in sunxi_mmc_dump_errinfo() 555 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in sunxi_mmc_finalize_request() 582 dev_dbg(mmc_dev(host->mmc), "irq: rq %p mi %08x idi %08x\n", in sunxi_mmc_irq() [all …]
|
D | mxcmmc.c | 121 struct mmc_host *mmc; member 222 if (!IS_ERR(host->mmc->supply.vmmc)) { in mxcmci_set_power() 224 mmc_regulator_set_ocr(host->mmc, in mxcmci_set_power() 225 host->mmc->supply.vmmc, vdd); in mxcmci_set_power() 227 mmc_regulator_set_ocr(host->mmc, in mxcmci_set_power() 228 host->mmc->supply.vmmc, 0); in mxcmci_set_power() 232 host->pdata->setpower(mmc_dev(host->mmc), vdd); in mxcmci_set_power() 244 dev_dbg(mmc_dev(host->mmc), "mxcmci_softreset\n"); in mxcmci_softreset() 353 dev_dbg(mmc_dev(host->mmc), "%s: 0x%08x\n", __func__, stat); in mxcmci_dma_callback() 381 dev_err(mmc_dev(host->mmc), "unhandled response type 0x%x\n", in mxcmci_start_cmd() [all …]
|
D | omap_hsmmc.c | 171 struct mmc_host *mmc; member 216 static int omap_hsmmc_enable_supply(struct mmc_host *mmc) in omap_hsmmc_enable_supply() argument 219 struct omap_hsmmc_host *host = mmc_priv(mmc); in omap_hsmmc_enable_supply() 220 struct mmc_ios *ios = &mmc->ios; in omap_hsmmc_enable_supply() 222 if (!IS_ERR(mmc->supply.vmmc)) { in omap_hsmmc_enable_supply() 223 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in omap_hsmmc_enable_supply() 229 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in omap_hsmmc_enable_supply() 230 ret = regulator_enable(mmc->supply.vqmmc); in omap_hsmmc_enable_supply() 232 dev_err(mmc_dev(mmc), "vmmc_aux reg enable failed\n"); in omap_hsmmc_enable_supply() 241 if (!IS_ERR(mmc->supply.vmmc)) in omap_hsmmc_enable_supply() [all …]
|
D | mxs-mmc.c | 51 struct mmc_host *mmc; member 62 static int mxs_mmc_get_cd(struct mmc_host *mmc) in mxs_mmc_get_cd() argument 64 struct mxs_mmc_host *host = mmc_priv(mmc); in mxs_mmc_get_cd() 71 ret = mmc_gpio_get_cd(mmc); in mxs_mmc_get_cd() 75 present = mmc->caps & MMC_CAP_NEEDS_POLL || in mxs_mmc_get_cd() 79 if (mmc->caps2 & MMC_CAP2_CD_ACTIVE_HIGH) in mxs_mmc_get_cd() 147 dma_unmap_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_request_done() 166 mmc_request_done(host->mmc, mrq); in mxs_mmc_request_done() 193 mmc_signal_sdio_irq(host->mmc); in mxs_mmc_irq_handler() 225 dma_map_sg(mmc_dev(host->mmc), data->sg, in mxs_mmc_prep_dma() [all …]
|
D | mmci.c | 336 static int mmci_card_busy(struct mmc_host *mmc) in mmci_card_busy() argument 338 struct mmci_host *host = mmc_priv(mmc); in mmci_card_busy() 449 host->mmc->actual_clock = host->cclk; in mmci_set_clkreg() 451 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) in mmci_set_clkreg() 453 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) in mmci_set_clkreg() 456 if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || in mmci_set_clkreg() 457 host->mmc->ios.timing == MMC_TIMING_MMC_DDR52) in mmci_set_clkreg() 496 dev_err(mmc_dev(host->mmc), in mmci_validate_data() 556 dev_vdbg(mmc_dev(host->mmc), in mmci_dma_start() 605 mmc_request_done(host->mmc, mrq); in mmci_request_end() [all …]
|
D | sdhci-msm.c | 267 struct mmc_host *mmc; member 335 struct mmc_ios ios = host->mmc->ios; in msm_get_clock_mult_for_bus_mode() 355 struct mmc_ios curr_ios = host->mmc->ios; in msm_set_clock_rate_for_bus_mode() 364 rc = dev_pm_opp_set_rate(mmc_dev(host->mmc), desired_rate); in msm_set_clock_rate_for_bus_mode() 367 mmc_hostname(host->mmc), desired_rate, curr_ios.timing); in msm_set_clock_rate_for_bus_mode() 379 mmc_hostname(host->mmc), desired_rate, achieved_rate); in msm_set_clock_rate_for_bus_mode() 380 host->mmc->actual_clock = achieved_rate / mult; in msm_set_clock_rate_for_bus_mode() 386 mmc_hostname(host->mmc), achieved_rate, curr_ios.timing); in msm_set_clock_rate_for_bus_mode() 394 struct mmc_host *mmc = host->mmc; in msm_dll_poll_ck_out_en() local 404 dev_err(mmc_dev(mmc), "%s: CK_OUT_EN bit is not %d\n", in msm_dll_poll_ck_out_en() [all …]
|
D | usdhi6rol0.c | 159 struct mmc_host *mmc; member 212 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write() 219 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_write16() 226 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_read() 234 dev_vdbg(mmc_dev(host->mmc), "%s(0x%p + 0x%x) = 0x%x\n", __func__, in usdhi6_read16() 286 dev_dbg(mmc_dev(host->mmc), in usdhi6_error_code() 290 dev_warn(mmc_dev(host->mmc), in usdhi6_error_code() 298 dev_warn(mmc_dev(host->mmc), "Err sts 0x%x, state %u, CMD%d\n", in usdhi6_error_code() 320 dev_dbg(mmc_dev(host->mmc), "%s(): CMD%u of %u SG: %ux%u @ 0x%x\n", in usdhi6_blk_bounce() 387 dev_dbg(mmc_dev(host->mmc), "Mapped %p (%lx) at %p + %u for CMD%u @ 0x%p\n", in usdhi6_sg_map() [all …]
|
D | omap.c | 113 struct mmc_host *mmc; member 122 struct mmc_host * mmc; member 205 while (host->mmc != NULL) { in mmc_omap_select_slot() 207 wait_event(host->slot_wq, host->mmc == NULL); in mmc_omap_select_slot() 210 host->mmc = slot->mmc; in mmc_omap_select_slot() 220 host->pdata->switch_slot(mmc_dev(slot->mmc), slot->id); in mmc_omap_select_slot() 261 BUG_ON(slot == NULL || host->mmc == NULL); in mmc_omap_release_slot() 286 host->mmc = new_slot->mmc; in mmc_omap_release_slot() 292 host->mmc = NULL; in mmc_omap_release_slot() 301 return slot->pdata->get_cover_state(mmc_dev(slot->mmc), in mmc_omap_cover_is_open() [all …]
|
D | cavium.c | 625 static u64 prepare_ext_dma(struct mmc_host *mmc, struct mmc_request *mrq) in prepare_ext_dma() argument 627 struct cvm_mmc_slot *slot = mmc_priv(mmc); in prepare_ext_dma() 632 mmc_card_is_blockaddr(mmc->card) ? 1 : 0) | in prepare_ext_dma() 639 if (mmc_card_mmc(mmc->card) || (mmc_card_sd(mmc->card) && in prepare_ext_dma() 640 (mmc->card->scr.cmds & SD_SCR_CMD23_SUPPORT))) in prepare_ext_dma() 649 static void cvm_mmc_dma_request(struct mmc_host *mmc, in cvm_mmc_dma_request() argument 652 struct cvm_mmc_slot *slot = mmc_priv(mmc); in cvm_mmc_dma_request() 659 dev_err(&mmc->card->dev, "Error: %s no data\n", __func__); in cvm_mmc_dma_request() 674 emm_dma = prepare_ext_dma(mmc, mrq); in cvm_mmc_dma_request() 693 if (mmc_card_sd(mmc->card)) in cvm_mmc_dma_request() [all …]
|
D | jz4740_mmc.c | 148 struct mmc_host *mmc; member 225 host->dma_tx = dma_request_chan(mmc_dev(host->mmc), "tx"); in jz4740_mmc_acquire_dma_channels() 227 dev_err(mmc_dev(host->mmc), "Failed to get dma_tx channel\n"); in jz4740_mmc_acquire_dma_channels() 231 host->dma_rx = dma_request_chan(mmc_dev(host->mmc), "rx"); in jz4740_mmc_acquire_dma_channels() 233 dev_err(mmc_dev(host->mmc), "Failed to get dma_rx channel\n"); in jz4740_mmc_acquire_dma_channels() 246 if (max_seg_size < host->mmc->max_seg_size) in jz4740_mmc_acquire_dma_channels() 247 host->mmc->max_seg_size = max_seg_size; in jz4740_mmc_acquire_dma_channels() 254 if (max_seg_size < host->mmc->max_seg_size) in jz4740_mmc_acquire_dma_channels() 255 host->mmc->max_seg_size = max_seg_size; in jz4740_mmc_acquire_dma_channels() 297 dev_err(mmc_dev(host->mmc), in jz4740_mmc_prepare_dma_data() [all …]
|
D | mmci_stm32_sdmmc.c | 67 dev_err(mmc_dev(host->mmc), in sdmmc_idma_validate_data() 75 dev_err(mmc_dev(host->mmc), in sdmmc_idma_validate_data() 89 n_elem = dma_map_sg(mmc_dev(host->mmc), in _sdmmc_idma_prep_data() 95 dev_err(mmc_dev(host->mmc), "dma_map_sg failed\n"); in _sdmmc_idma_prep_data() 115 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in sdmmc_idma_unprep_data() 122 struct device *dev = mmc_dev(host->mmc); in sdmmc_idma_setup() 137 host->mmc->max_segs = SDMMC_LLI_BUF_LEN / in sdmmc_idma_setup() 139 host->mmc->max_seg_size = host->variant->stm32_idmabsize_mask; in sdmmc_idma_setup() 141 host->mmc->max_segs = 1; in sdmmc_idma_setup() 142 host->mmc->max_seg_size = host->mmc->max_req_size; in sdmmc_idma_setup() [all …]
|
D | rtsx_pci_sdmmc.c | 28 struct mmc_host *mmc; member 48 static int sdmmc_init_sd_express(struct mmc_host *mmc, struct mmc_ios *ios); 181 static void sdmmc_pre_req(struct mmc_host *mmc, struct mmc_request *mrq) in sdmmc_pre_req() argument 183 struct realtek_pci_sdmmc *host = mmc_priv(mmc); in sdmmc_pre_req() 197 static void sdmmc_post_req(struct mmc_host *mmc, struct mmc_request *mrq, in sdmmc_post_req() argument 200 struct realtek_pci_sdmmc *host = mmc_priv(mmc); in sdmmc_post_req() 431 struct mmc_host *mmc = host->mmc; in sd_read_long_data() local 432 struct mmc_card *card = mmc->card; in sd_read_long_data() 489 struct mmc_host *mmc = host->mmc; in sd_write_long_data() local 490 struct mmc_card *card = mmc->card; in sd_write_long_data() [all …]
|
/drivers/mmc/core/ |
D | regulator.c | 106 int mmc_regulator_set_ocr(struct mmc_host *mmc, in mmc_regulator_set_ocr() argument 117 if (result == 0 && !mmc->regulator_enabled) { in mmc_regulator_set_ocr() 120 mmc->regulator_enabled = true; in mmc_regulator_set_ocr() 122 } else if (mmc->regulator_enabled) { in mmc_regulator_set_ocr() 125 mmc->regulator_enabled = false; in mmc_regulator_set_ocr() 129 dev_err(mmc_dev(mmc), in mmc_regulator_set_ocr() 179 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_regulator_set_vqmmc() argument 181 struct device *dev = mmc_dev(mmc); in mmc_regulator_set_vqmmc() 185 if (IS_ERR(mmc->supply.vqmmc)) in mmc_regulator_set_vqmmc() 190 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc() [all …]
|
/drivers/staging/greybus/ |
D | sdio.c | 22 struct mmc_host *mmc; member 86 host->mmc->caps = caps; in _gb_sdio_set_host_caps() 87 host->mmc->caps2 = caps2 | MMC_CAP2_CORE_RUNTIME_PM; in _gb_sdio_set_host_caps() 118 struct mmc_host *mmc = host->mmc; in gb_sdio_get_caps() local 141 mmc->max_blk_size = rounddown_pow_of_two(blksz); in gb_sdio_get_caps() 142 mmc->max_blk_count = le16_to_cpu(response.max_blk_count); in gb_sdio_get_caps() 147 mmc->ocr_avail = ocr; in gb_sdio_get_caps() 148 mmc->ocr_avail_sdio = mmc->ocr_avail; in gb_sdio_get_caps() 149 mmc->ocr_avail_sd = mmc->ocr_avail; in gb_sdio_get_caps() 150 mmc->ocr_avail_mmc = mmc->ocr_avail; in gb_sdio_get_caps() [all …]
|