Searched defs:ios (Results 1 - 25 of 32) sorted by relevance

12

/drivers/mmc/core/
H A Ddebugfs.c56 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 Dcore.c855 * Internal function that does the actual ios call to the host driver,
860 struct mmc_ios *ios = &host->ios; local
864 mmc_hostname(host), ios->clock, ios->bus_mode,
865 ios->power_mode, ios->chip_select, ios->vdd,
866 ios->bus_width, ios
[all...]
/drivers/mmc/host/
H A Dcb710-mmc.c561 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 Dsdricoh_cs.c355 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 Dat91_mci.c706 static void at91_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
712 host->bus_mode = ios->bus_mode;
714 if (ios->clock == 0) {
723 if ((at91_master_clock % (ios->clock * 2)) == 0)
724 clkdiv = ((at91_master_clock / ios->clock) / 2) - 1;
726 clkdiv = (at91_master_clock / ios->clock) / 2;
731 if (ios->bus_width == MMC_BUS_WIDTH_4 && host->board->wire4) {
745 switch (ios->power_mode) {
H A Dbfin_sdh.c343 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 Dimxmmc.c219 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 Dmmc_spi.c1186 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 Dmmci.c151 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4)
153 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8)
1015 static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
1022 switch (ios->power_mode) {
1029 ret = mmc_regulator_set_ocr(mmc, host->vcc, ios->vdd);
1042 pwr |= host->plat->vdd_handler(mmc_dev(mmc), ios->vdd,
1043 ios->power_mode);
1054 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) {
1068 mmci_set_clkreg(host, ios->clock);
H A Dmvsdio.c609 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 Dpxamci.c465 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 Dtmio_mmc_pio.c684 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) {
757 static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
771 ios->clock, ios->power_mode);
793 if (ios->power_mode == MMC_POWER_ON && ios->clock) {
798 tmio_mmc_set_clock(host, ios->clock);
804 } else if (ios->power_mode != MMC_POWER_UP) {
805 if (host->set_pwr && ios->power_mode == MMC_POWER_OFF)
814 switch (ios
[all...]
H A Dushc.c375 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 Dau1xmmc.c754 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 Ddw_mmc.c695 static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
703 switch (ios->bus_width) {
718 if (ios->timing == MMC_TIMING_UHS_DDR50)
725 if (ios->clock) {
727 * Use mirror of ios->clock to prevent race with mmc
728 * core ios update when finding the minimum.
730 slot->clock = ios->clock;
733 switch (ios->power_mode) {
H A Djz4740_mmc.c616 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 Dmsm_sdcc.c982 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 Ds3cmci.c1205 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 Dsdhci.c222 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 Dtifm_sd.c797 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 Dwbsd.c851 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 Datmel-mci.c543 if (mmc->ios.bus_mode == MMC_BUSMODE_OPENDRAIN)
1086 static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
1093 switch (ios->bus_width) {
1102 if (ios->clock) {
1116 * Use mirror of ios->clock to prevent race with mmc
1117 * core ios update when finding the minimum.
1119 slot->clock = ios->clock;
1147 if (ios->timing == MMC_TIMING_SD_HS)
1184 switch (ios->power_mode) {
H A Ddavinci_mmc.c761 static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios) argument
767 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) {
787 mmc_push_pull_freq = calculate_freq_for_card(host, ios->clock);
807 static void mmc_davinci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
815 ios->clock, ios->bus_mode, ios->power_mode,
816 ios->vdd);
818 switch (ios->power_mode) {
829 switch (ios
[all...]
H A Dmxcmmc.c717 static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
726 if (ios->bus_width == MMC_BUS_WIDTH_4)
743 if (ios->bus_width == MMC_BUS_WIDTH_4)
748 if (host->power_mode != ios->power_mode) {
749 mxcmci_set_power(host, ios->power_mode, ios->vdd);
750 host->power_mode = ios->power_mode;
752 if (ios->power_mode == MMC_POWER_ON)
756 if (ios->clock) {
757 mxcmci_set_clk_rate(host, ios
[all...]
H A Dmxs-mmc.c610 static void mxs_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) argument
614 if (ios->bus_width == MMC_BUS_WIDTH_8)
616 else if (ios->bus_width == MMC_BUS_WIDTH_4)
621 if (ios->clock)
622 mxs_mmc_set_clk_rate(host, ios->clock);

Completed in 218 milliseconds

12