/drivers/mmc/core/ |
H A D | debugfs.c | 56 struct mmc_ios *ios = &host->ios; local 59 seq_printf(s, "clock:\t\t%u Hz\n", ios->clock); 62 seq_printf(s, "vdd:\t\t%u ", ios->vdd); 63 if ((1 << ios->vdd) & MMC_VDD_165_195) 65 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) 66 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) 67 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], 68 vdd_str[ios [all...] |
H A D | core.c | 707 * Internal function that does the actual ios call to the host driver, 712 struct mmc_ios *ios = &host->ios; local 716 mmc_hostname(host), ios->clock, ios->bus_mode, 717 ios->power_mode, ios->chip_select, ios->vdd, 718 ios->bus_width, ios [all...] |
/drivers/mmc/host/ |
H A D | cb710-mmc.c | 561 static void cb710_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 567 cb710_mmc_select_clock_divider(mmc, ios->clock); 569 if (ios->power_mode != reader->last_power_mode) 570 switch (ios->power_mode) { 595 cb710_mmc_enable_4bit_data(slot, ios->bus_width != MMC_BUS_WIDTH_1);
|
H A D | sdricoh_cs.c | 355 static void sdricoh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 360 if (ios->power_mode == MMC_POWER_ON) { 363 if (ios->bus_width == MMC_BUS_WIDTH_4) { 370 } else if (ios->power_mode == MMC_POWER_UP) {
|
H A D | at91_mci.c | 705 static void at91_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 711 host->bus_mode = ios->bus_mode; 713 if (ios->clock == 0) { 722 if ((at91_master_clock % (ios->clock * 2)) == 0) 723 clkdiv = ((at91_master_clock / ios->clock) / 2) - 1; 725 clkdiv = (at91_master_clock / ios->clock) / 2; 730 if (ios->bus_width == MMC_BUS_WIDTH_4 && host->board->wire4) { 744 switch (ios->power_mode) {
|
H A D | bfin_sdh.c | 343 static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 353 if (ios->clock) { 356 ios_clk = 2 * ios->clock; 368 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) 375 if (ios->bus_width == MMC_BUS_WIDTH_4) { 391 host->power_mode = ios->power_mode; 392 if (ios->power_mode == MMC_POWER_ON) 403 ios->clock);
|
H A D | imxmmc.c | 219 if (!(stat_mask & STATUS_END_CMD_RESP) || (host->mmc->ios.clock >= 8000000)) 807 static void imxmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 812 if (ios->bus_width == MMC_BUS_WIDTH_4) { 822 if (host->power_mode != ios->power_mode) { 823 switch (ios->power_mode) { 832 host->power_mode = ios->power_mode; 835 if (ios->clock) { 865 if (x <= ios->clock)
|
H A D | mmc_spi.c | 1186 static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 1190 if (host->power_mode != ios->power_mode) { 1196 mmc_powerstring(ios->power_mode), 1197 ios->vdd, 1204 switch (ios->power_mode) { 1208 ios->vdd); 1209 if (ios->power_mode == MMC_POWER_UP) 1215 if (ios->power_mode == MMC_POWER_ON) 1227 if (canpower && ios->power_mode == MMC_POWER_OFF) { 1261 host->power_mode = ios [all...] |
H A D | mmci.c | 186 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) 188 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) 1063 static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 1074 host->plat->ios_handler(mmc_dev(mmc), ios)) 1077 switch (ios->power_mode) { 1084 ret = mmc_regulator_set_ocr(mmc, host->vcc, ios->vdd); 1109 if (variant->signal_direction && ios->power_mode != MMC_POWER_OFF) { 1117 if (ios->bus_width == MMC_BUS_WIDTH_4) 1119 else if (ios->bus_width == MMC_BUS_WIDTH_1) 1125 if (ios [all...] |
H A D | mvsdio.c | 609 static void mvsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 615 if (ios->power_mode == MMC_POWER_UP) 618 if (ios->clock == 0) { 623 } else if (ios->clock != host->clock) { 624 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; 628 host->clock = ios->clock; 631 ios->clock, host->base_clock / (m+1), m); 642 if (ios->bus_mode == MMC_BUSMODE_PUSHPULL) 645 if (ios->bus_width == MMC_BUS_WIDTH_4) 656 if (ios [all...] |
H A D | pxamci.c | 465 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 469 if (ios->clock) { 471 unsigned int clk = rate / ios->clock; 476 if (ios->clock == 26000000) { 489 if (rate / clk > ios->clock) 505 if (host->power_mode != ios->power_mode) { 508 host->power_mode = ios->power_mode; 510 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); 522 if (ios [all...] |
H A D | tmio_mmc_pio.c | 687 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) { 760 static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 774 ios->clock, ios->power_mode); 798 if (ios->power_mode == MMC_POWER_ON && ios->clock) { 803 tmio_mmc_set_clock(host, ios->clock); 809 } else if (ios->power_mode != MMC_POWER_UP) { 810 if (host->set_pwr && ios->power_mode == MMC_POWER_OFF) 819 switch (ios [all...] |
H A D | ushc.c | 375 static void ushc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 379 ushc_set_power(ushc, ios->power_mode); 380 ushc_set_bus_width(ushc, 1 << ios->bus_width); 381 ushc_set_bus_freq(ushc, ios->clock, ios->timing == MMC_TIMING_SD_HS);
|
H A D | au1xmmc.c | 754 static void au1xmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 759 if (ios->power_mode == MMC_POWER_OFF) 761 else if (ios->power_mode == MMC_POWER_ON) { 765 if (ios->clock && ios->clock != host->clock) { 766 au1xmmc_set_clock(host, ios->clock); 767 host->clock = ios->clock; 771 switch (ios->bus_width) {
|
H A D | dw_mmc.c | 763 static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 771 switch (ios->bus_width) { 786 if (ios->timing == MMC_TIMING_UHS_DDR50) 793 if (ios->clock) { 795 * Use mirror of ios->clock to prevent race with mmc 796 * core ios update when finding the minimum. 798 slot->clock = ios->clock; 801 switch (ios->power_mode) {
|
H A D | jz4740_mmc.c | 616 static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 619 if (ios->clock) 620 jz4740_mmc_set_clock_rate(host, ios->clock); 622 switch (ios->power_mode) { 641 switch (ios->bus_width) {
|
H A D | msm_sdcc.c | 982 msmsdcc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 995 if (ios->clock) { 996 if (ios->clock != host->clk_rate) { 997 rc = clk_set_rate(host->clk, ios->clock); 1002 host->clk_rate = ios->clock; 1007 if (ios->bus_width == MMC_BUS_WIDTH_4) 1010 if (ios->clock > 400000 && msmsdcc_pwrsave) 1017 pwr |= host->plat->translate_vdd(mmc_dev(mmc), ios->vdd); 1019 switch (ios->power_mode) { 1032 if (ios [all...] |
H A D | s3cmci.c | 1205 static void s3cmci_set_clk(struct s3cmci_host *host, struct mmc_ios *ios) argument 1213 if (host->real_rate <= ios->clock) 1224 if (ios->clock == 0) 1228 static void s3cmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 1237 switch (ios->power_mode) { 1248 host->pdata->set_power(ios->power_mode, ios->vdd); 1263 host->pdata->set_power(ios->power_mode, ios->vdd); 1268 s3cmci_set_clk(host, ios); [all...] |
H A D | sdhci.c | 222 static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios); 240 sdhci_set_ios(host->mmc, &host->mmc->ios); 1310 static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios) argument 1320 if (host->vmmc && ios->power_mode == MMC_POWER_OFF) 1329 if (ios->power_mode == MMC_POWER_OFF) { 1334 sdhci_set_clock(host, ios->clock); 1336 if (ios->power_mode == MMC_POWER_OFF) 1339 vdd_bit = sdhci_set_power(host, ios->vdd); 1348 host->ops->platform_send_init_74_clocks(host, ios->power_mode); 1356 host->ops->platform_8bit_width(host, ios 1476 sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 1578 sdhci_do_start_signal_voltage_switch(struct sdhci_host *host, struct mmc_ios *ios) argument 1677 sdhci_start_signal_voltage_switch(struct mmc_host *mmc, struct mmc_ios *ios) argument [all...] |
H A D | tifm_sd.c | 797 static void tifm_sd_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 806 dev_dbg(&sock->dev, "ios: clock = %u, vdd = %x, bus_mode = %x, " 808 ios->clock, ios->vdd, ios->bus_mode, ios->chip_select, 809 ios->power_mode, ios->bus_width); 811 if (ios->bus_width == MMC_BUS_WIDTH_4) { 820 if (ios [all...] |
H A D | wbsd.c | 851 static void wbsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 862 if (ios->power_mode == MMC_POWER_OFF) 865 if (ios->clock >= 24000000) 867 else if (ios->clock >= 16000000) 869 else if (ios->clock >= 12000000) 886 if (ios->power_mode != MMC_POWER_OFF) { 898 if (ios->chip_select == MMC_CS_HIGH) { 899 BUG_ON(ios->bus_width != MMC_BUS_WIDTH_1); 919 host->bus_width = ios->bus_width;
|
H A D | atmel-mci.c | 553 if (mmc->ios.bus_mode == MMC_BUSMODE_OPENDRAIN) 1097 static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 1104 switch (ios->bus_width) { 1113 if (ios->clock) { 1127 * Use mirror of ios->clock to prevent race with mmc 1128 * core ios update when finding the minimum. 1130 slot->clock = ios->clock; 1169 if (ios->timing == MMC_TIMING_SD_HS) 1206 switch (ios->power_mode) {
|
H A D | davinci_mmc.c | 786 static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios) argument 792 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) { 812 mmc_push_pull_freq = calculate_freq_for_card(host, ios->clock); 832 static void mmc_davinci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 840 ios->clock, ios->bus_mode, ios->power_mode, 841 ios->vdd); 843 switch (ios->power_mode) { 854 switch (ios [all...] |
H A D | mxcmmc.c | 720 static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 729 if (ios->bus_width == MMC_BUS_WIDTH_4) 746 if (ios->bus_width == MMC_BUS_WIDTH_4) 751 if (host->power_mode != ios->power_mode) { 752 mxcmci_set_power(host, ios->power_mode, ios->vdd); 753 host->power_mode = ios->power_mode; 755 if (ios->power_mode == MMC_POWER_ON) 759 if (ios->clock) { 760 mxcmci_set_clk_rate(host, ios [all...] |
H A D | mxs-mmc.c | 613 static void mxs_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument 617 if (ios->bus_width == MMC_BUS_WIDTH_8) 619 else if (ios->bus_width == MMC_BUS_WIDTH_4) 624 if (ios->clock) 625 mxs_mmc_set_clk_rate(host, ios->clock);
|