/openbmc/linux/drivers/mmc/host/ |
H A D | usdhi6rol0.c | 159 struct mmc_host *mmc; member 796 struct mmc_host *mmc = host->mmc; in usdhi6_set_power() local 800 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, in usdhi6_set_power() 1653 struct mmc_host *mmc = host->mmc; in usdhi6_cd() local 1670 mmc->card))) in usdhi6_cd() 1766 if (!mmc) in usdhi6_probe() 1778 host->mmc = mmc; in usdhi6_probe() 1854 mmc->max_req_size = PAGE_SIZE * mmc->max_segs; in usdhi6_probe() 1855 mmc->max_blk_count = mmc->max_req_size / mmc->max_blk_size; in usdhi6_probe() 1864 mmc->max_seg_size = mmc->max_req_size; in usdhi6_probe() [all …]
|
H A D | mmci.c | 1257 if (host->mmc->card && mmc_card_sdio(host->mmc->card)) { in mmci_start_data() 1910 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); in mmci_set_ios() 1920 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in mmci_set_ios() 2171 if (!mmc) in mmci_probe() 2175 host->mmc = mmc; in mmci_probe() 2271 if (mmc->f_max) in mmci_probe() 2280 dev_dbg(mmc_dev(mmc), "clocking block at %u Hz\n", mmc->f_max); in mmci_probe() 2347 mmc->max_seg_size = mmc->max_req_size; in mmci_probe() 2437 if (mmc) { in mmci_remove() 2504 if (mmc) { in mmci_runtime_suspend() [all …]
|
H A D | jz4740_mmc.c | 149 struct mmc_host *mmc; member 950 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in jz4740_mmc_set_ios() 965 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); in jz4740_mmc_set_ios() 1046 if (!mmc) { in jz4740_mmc_probe() 1089 if (!mmc->f_max) in jz4740_mmc_probe() 1101 mmc->f_min = mmc->f_max / 128; in jz4740_mmc_probe() 1112 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in jz4740_mmc_probe() 1114 mmc->max_segs = 128; in jz4740_mmc_probe() 1115 mmc->max_seg_size = mmc->max_req_size; in jz4740_mmc_probe() 1117 host->mmc = mmc; in jz4740_mmc_probe() [all …]
|
H A D | sdhci-msm.c | 398 struct mmc_host *mmc = host->mmc; in msm_dll_poll_ck_out_en() local 430 struct mmc_host *mmc = host->mmc; in msm_config_cm_dll_phase() local 500 struct mmc_host *mmc = host->mmc; in msm_find_most_appropriate_phase() local 626 struct mmc_host *mmc = host->mmc; in msm_init_cm_dll() local 1006 struct mmc_host *mmc = host->mmc; in sdhci_msm_cm_dll_sdc4_calibration() local 1084 struct mmc_host *mmc = host->mmc; in sdhci_msm_hs400_dll_calibration() local 1319 struct mmc_host *mmc = host->mmc; in sdhci_msm_set_uhs_signaling() local 1411 return mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, mmc->ios.vdd); in sdhci_msm_set_vmmc() 1598 struct mmc_host *mmc = host->mmc; in sdhci_msm_handle_pwr_irq() local 1813 struct mmc_host *mmc = msm_host->mmc; in sdhci_msm_ice_init() local [all …]
|
H A D | cavium.c | 639 if (mmc_card_mmc(mmc->card) || (mmc_card_sd(mmc->card) && in prepare_ext_dma() 842 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); in cvm_mmc_set_ios() 849 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in cvm_mmc_set_ios() 906 struct mmc_host *mmc = slot->mmc; in cvm_mmc_set_clock() local 953 struct mmc_host *mmc = slot->mmc; in cvm_mmc_of_parse() local 993 if (!mmc->f_max) in cvm_mmc_of_parse() 995 if (!mmc->f_max || mmc->f_max > 52000000) in cvm_mmc_of_parse() 1016 if (!mmc) in cvm_mmc_of_slot_probe() 1020 slot->mmc = mmc; in cvm_mmc_of_slot_probe() 1044 mmc->max_segs = 1; in cvm_mmc_of_slot_probe() [all …]
|
H A D | sdricoh_cs.c | 383 struct mmc_host *mmc; in sdricoh_init_mmc() local 405 mmc = pcmcia_dev->priv = in sdricoh_init_mmc() 407 if (!mmc) { in sdricoh_init_mmc() 412 host = mmc_priv(mmc); in sdricoh_init_mmc() 418 mmc->ops = &sdricoh_ops; in sdricoh_init_mmc() 422 mmc->f_min = 450000; in sdricoh_init_mmc() 423 mmc->f_max = 24000000; in sdricoh_init_mmc() 444 mmc_free_host(mmc); in sdricoh_init_mmc() 481 if (mmc) { in sdricoh_pcmcia_detach() 483 mmc_remove_host(mmc); in sdricoh_pcmcia_detach() [all …]
|
H A D | omap.c | 215 host->mmc = slot->mmc; in mmc_omap_select_slot() 296 host->mmc = new_slot->mmc; in mmc_omap_release_slot() 472 mmc = host->mmc; in mmc_omap_xfer_done() 597 mmc = host->mmc; in mmc_omap_cmd_done() 628 mmc = host->mmc; in mmc_omap_abort_command() 1109 host->mmc = mmc; in mmc_omap_request() 1271 slot->mmc = mmc; in mmc_omap_new_slot() 1307 mmc->f_max = min(host->pdata->max_freq, mmc->f_max); in mmc_omap_new_slot() 1317 mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; in mmc_omap_new_slot() 1318 mmc->max_seg_size = mmc->max_req_size; in mmc_omap_new_slot() [all …]
|
H A D | mmci_stm32_sdmmc.c | 85 struct device *dev = mmc_dev(host->mmc); in sdmmc_idma_validate_data() 98 dev_dbg(mmc_dev(host->mmc), in sdmmc_idma_validate_data() 106 dev_dbg(mmc_dev(host->mmc), in sdmmc_idma_validate_data() 117 host->mmc->max_req_size, in sdmmc_idma_validate_data() 210 host->mmc->max_req_size = SZ_1M; in sdmmc_idma_setup() 212 host->mmc->max_segs = 1; in sdmmc_idma_setup() 213 host->mmc->max_seg_size = host->mmc->max_req_size; in sdmmc_idma_setup() 333 host->mmc->actual_clock = 0; in mmci_sdmmc_set_clkreg() 361 struct mmc_ios ios = host->mmc->ios; in mmci_sdmmc_set_pwrreg() 426 if (host->mmc->card && mmc_card_sdio(host->mmc->card) && in sdmmc_get_dctrl_cfg() [all …]
|
H A D | ushc.c | 91 struct mmc_host *mmc; member 408 mmc_free_host(ushc->mmc); in ushc_clean_up() 421 struct mmc_host *mmc; in ushc_probe() local 429 if (mmc == NULL) in ushc_probe() 431 ushc = mmc_priv(mmc); in ushc_probe() 435 ushc->mmc = mmc; in ushc_probe() 448 mmc->ops = &ushc_ops; in ushc_probe() 450 mmc->f_min = 400000; in ushc_probe() 451 mmc->f_max = 50000000; in ushc_probe() 457 mmc->max_segs = 1; in ushc_probe() [all …]
|
H A D | rtsx_pci_sdmmc.c | 28 struct mmc_host *mmc; member 431 struct mmc_host *mmc = host->mmc; in sd_read_long_data() local 489 struct mmc_host *mmc = host->mmc; in sd_write_long_data() local 802 struct mmc_host *mmc = host->mmc; in sd_request() local 908 struct mmc_host *mmc = host->mmc; in sd_power_on() local 1414 struct mmc_host *mmc = host->mmc; in init_extra_caps() local 1437 struct mmc_host *mmc = host->mmc; in realtek_init_host() local 1447 mmc->caps = mmc->caps | MMC_CAP_AGGRESSIVE_PM; in realtek_init_host() 1489 if (!mmc) in rtsx_pci_sdmmc_drv_probe() 1495 host->mmc = mmc; in rtsx_pci_sdmmc_drv_probe() [all …]
|
H A D | cb710-mmc.c | 638 mmc_detect_change(mmc, HZ/5); in cb710_mmc_irq_handler() 690 struct mmc_host *mmc; in cb710_mmc_init() local 696 if (!mmc) in cb710_mmc_init() 707 mmc->ops = &cb710_mmc_host; in cb710_mmc_init() 708 mmc->f_max = val; in cb710_mmc_init() 719 reader = mmc_priv(mmc); in cb710_mmc_init() 729 err = mmc_add_host(mmc); in cb710_mmc_init() 734 mmc_hostname(mmc)); in cb710_mmc_init() 744 mmc_free_host(mmc); in cb710_mmc_init() 756 mmc_remove_host(mmc); in cb710_mmc_exit() [all …]
|
H A D | sdhci-tegra.c | 658 mmc_hostname(host->mmc)); in tegra_sdhci_parse_pad_autocal_dt() 669 mmc_hostname(host->mmc)); in tegra_sdhci_parse_pad_autocal_dt() 680 mmc_hostname(host->mmc)); in tegra_sdhci_parse_pad_autocal_dt() 691 mmc_hostname(host->mmc)); in tegra_sdhci_parse_pad_autocal_dt() 709 sdhci_request(mmc, mrq); in tegra_sdhci_request() 849 dev_err(mmc_dev(host->mmc), in tegra_sdhci_hs400_dll_cal() 1186 struct mmc_host *mmc = cq_host->mmc; in tegra_cqhci_writel() local 1203 sdhci_cqe_enable(mmc); in tegra_cqhci_writel() 1253 sdhci_cqe_enable(mmc); in sdhci_tegra_cqe_enable() 1870 cqhci_resume(host->mmc); in sdhci_tegra_suspend() [all …]
|
H A D | mmc_spi.c | 106 struct mmc_host *mmc; member 1152 struct mmc_host *mmc; in mmc_spi_probe() local 1194 if (!mmc) in mmc_spi_probe() 1213 mmc->f_min = 400000; in mmc_spi_probe() 1216 host = mmc_priv(mmc); in mmc_spi_probe() 1217 host->mmc = mmc; in mmc_spi_probe() 1230 if (!mmc->ocr_avail) { in mmc_spi_probe() 1305 mmc_remove_host(mmc); in mmc_spi_probe() 1310 mmc_free_host(mmc); in mmc_spi_probe() 1326 mmc_remove_host(mmc); in mmc_spi_remove() [all …]
|
H A D | mtk-sd.c | 1894 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, in msdc_ops_set_ios() 1913 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); in msdc_ops_set_ios() 2666 struct mmc_host *mmc; in msdc_drv_probe() local 2678 if (!mmc) in msdc_drv_probe() 2681 host = mmc_priv(mmc); in msdc_drv_probe() 2800 mmc->max_blk_count = mmc->max_req_size / 512; in msdc_drv_probe() 2844 mmc->max_segs = 128; in msdc_drv_probe() 2883 mmc_free_host(mmc); in msdc_drv_probe() 2890 struct mmc_host *mmc; in msdc_drv_remove() local 2894 host = mmc_priv(mmc); in msdc_drv_remove() [all …]
|
H A D | moxart-mmc.c | 132 struct mmc_host *mmc; member 548 struct mmc_host *mmc; in moxart_probe() local 557 if (!mmc) { in moxart_probe() 592 host = mmc_priv(mmc); in moxart_probe() 593 host->mmc = mmc; in moxart_probe() 610 mmc->max_blk_count = mmc->max_req_size / 512; in moxart_probe() 629 mmc->max_seg_size = mmc->max_req_size; in moxart_probe() 649 mmc->max_seg_size = min3(mmc->max_req_size, in moxart_probe() 685 if (mmc) in moxart_probe() 686 mmc_free_host(mmc); in moxart_probe() [all …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | sunxi_mmc.c | 32 struct mmc mmc; member 232 static int mmc_config_clock(struct sunxi_mmc_priv *priv, struct mmc *mmc) in mmc_config_clock() argument 270 struct mmc *mmc) in sunxi_mmc_set_ios_common() argument 273 mmc->bus_width, mmc->clock); in sunxi_mmc_set_ios_common() 276 if (mmc->clock && mmc_config_clock(priv, mmc) != 0) { in sunxi_mmc_set_ios_common() 293 static int sunxi_mmc_core_init(struct mmc *mmc) in sunxi_mmc_core_init() argument 340 static int mmc_rint_wait(struct sunxi_mmc_priv *priv, struct mmc *mmc, in mmc_rint_wait() argument 360 struct mmc *mmc, struct mmc_cmd *cmd, in sunxi_mmc_send_cmd_common() argument 483 static int sunxi_mmc_set_ios_legacy(struct mmc *mmc) in sunxi_mmc_set_ios_legacy() argument 498 static int sunxi_mmc_getcd_legacy(struct mmc *mmc) in sunxi_mmc_getcd_legacy() argument [all …]
|
H A D | sdhci-cadence.c | 63 struct mmc mmc; member 134 struct mmc *mmc = host->mmc; in sdhci_cdns_set_control_reg() local 136 unsigned int clock = mmc->clock; in sdhci_cdns_set_control_reg() 147 if (mmc->ddr_mode) in sdhci_cdns_set_control_reg() 152 if (mmc->ddr_mode) in sdhci_cdns_set_control_reg() 191 struct mmc *mmc = &plat->mmc; in sdhci_cdns_execute_tuning() local 202 if (!IS_MMC(mmc)) in sdhci_cdns_execute_tuning() 235 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in sdhci_cdns_bind() 276 upriv->mmc = &plat->mmc; in sdhci_cdns_probe() 277 host->mmc = &plat->mmc; in sdhci_cdns_probe() [all …]
|
H A D | sdhci.c | 140 struct mmc *mmc = mmc_get_mmc_dev(dev); local 143 static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, 315 struct mmc *mmc = mmc_get_mmc_dev(dev); local 329 static int sdhci_set_clock(struct mmc *mmc, unsigned int clock) argument 456 struct mmc *mmc = mmc_get_mmc_dev(dev); local 458 static int sdhci_set_ios(struct mmc *mmc) 470 sdhci_set_clock(mmc, mmc->clock); 472 if (mmc->clk_disable) 536 static int sdhci_init(struct mmc *mmc) argument 568 struct mmc *mmc = mmc_get_mmc_dev(dev); local [all …]
|
H A D | pci_mmc.c | 17 struct mmc mmc; member 39 host->mmc = &plat->mmc; in pci_mmc_probe() 40 host->mmc->priv = &priv->host; in pci_mmc_probe() 41 host->mmc->dev = dev; in pci_mmc_probe() 42 upriv->mmc = host->mmc; in pci_mmc_probe() 51 return sdhci_bind(dev, &plat->mmc, &plat->cfg); in pci_mmc_bind()
|
H A D | davinci_mmc.c | 46 struct mmc mmc; member 52 static void dmmc_set_clock(struct mmc *mmc, uint clock) argument 60 struct mmc *mmc = mmc_get_mmc_dev(dev); 66 clock = mmc->cfg->f_min; 68 clock = mmc->cfg->f_max; 354 static int dmmc_init(struct mmc *mmc) argument 395 static int dmmc_set_ios(struct mmc *mmc) argument 402 struct mmc *mmc = mmc_get_mmc_dev(dev); 414 if (mmc->clock) { 416 dmmc_set_clock(mmc, mmc->clock); [all …]
|
H A D | hi6220_dw_mmc.c | 18 struct mmc mmc; member 57 host->mmc = &plat->mmc; in hi6220_dwmmc_probe() 59 host->mmc->priv = &priv->host; in hi6220_dwmmc_probe() 60 upriv->mmc = host->mmc; in hi6220_dwmmc_probe() 61 host->mmc->dev = dev; in hi6220_dwmmc_probe() 71 ret = dwmci_bind(dev, &plat->mmc, &plat->cfg); in hi6220_dwmmc_bind()
|
/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | fsl-imx-mmc.yaml | 4 $id: http://devicetree.org/schemas/mmc/fsl-imx-mmc.yaml# 13 - $ref: mmc-controller.yaml 18 - const: fsl,imx21-mmc 19 - const: fsl,imx31-mmc 21 - const: fsl,imx27-mmc 22 - const: fsl,imx21-mmc 45 mmc@10014000 { 46 compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
|
H A D | mmc-card.yaml | 4 $id: http://devicetree.org/schemas/mmc/mmc-card.yaml# 13 This documents describes the devicetree bindings for a mmc-host controller 14 child node describing a mmc-card / an eMMC. 18 const: mmc-card 26 Use this to indicate that the mmc-card has a broken hpi 37 mmc { 42 compatible = "mmc-card";
|
/openbmc/openbmc/meta-phosphor/classes/ |
H A D | phosphor-software-manager-mmc.bbclass | 11 RDEPENDS:phosphor-software-manager-updater-mmc += " \ 17 SYSTEMD_SERVICE:phosphor-software-manager-updater-mmc += " \ 18 obmc-flash-mmc@.service \ 19 obmc-flash-mmc-remove@.service \ 20 obmc-flash-mmc-setprimary@.service \ 21 obmc-flash-mmc-mount.service \ 22 obmc-flash-mmc-umount.service \ 23 obmc-flash-mmc-mirroruboot.service \
|
/openbmc/qemu/hw/arm/ |
H A D | mps2.c | 192 if (mmc->has_block_ram) { in mps2_common_init() 202 switch (mmc->fpga_type) { in mps2_common_init() 224 switch (mmc->fpga_type) { in mps2_common_init() 264 switch (mmc->fpga_type) { in mps2_common_init() 490 mmc->scc_id = 0x41043850; in mps2_an385_class_init() 493 mmc->has_block_ram = true; in mps2_an385_class_init() 509 mmc->scc_id = 0x41043860; in mps2_an386_class_init() 512 mmc->has_block_ram = true; in mps2_an386_class_init() 528 mmc->scc_id = 0x41045000; in mps2_an500_class_init() 531 mmc->has_block_ram = false; in mps2_an500_class_init() [all …]
|