/drivers/mmc/core/ |
D | debugfs.c | 44 struct mmc_ios *ios = &host->ios; in mmc_ios_show() local 47 seq_printf(s, "clock:\t\t%u Hz\n", ios->clock); in mmc_ios_show() 48 seq_printf(s, "vdd:\t\t%u ", ios->vdd); in mmc_ios_show() 49 if ((1 << ios->vdd) & MMC_VDD_165_195) in mmc_ios_show() 51 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) in mmc_ios_show() 52 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) in mmc_ios_show() 53 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], in mmc_ios_show() 54 vdd_str[ios->vdd + 1]); in mmc_ios_show() 58 switch (ios->bus_mode) { in mmc_ios_show() 69 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show() [all …]
|
D | core.c | 284 (card->host->ios.clock / 1000); in mmc_set_data_timeout() 402 struct mmc_ios *ios = &host->ios; in mmc_set_ios() local 406 mmc_hostname(host), ios->clock, ios->bus_mode, in mmc_set_ios() 407 ios->power_mode, ios->chip_select, ios->vdd, in mmc_set_ios() 408 ios->bus_width, ios->timing); in mmc_set_ios() 410 host->ops->set_ios(host, ios); in mmc_set_ios() 418 host->ios.chip_select = mode; in mmc_set_chip_select() 433 host->ios.clock = hz; in mmc_set_clock() 442 host->ios.bus_mode = mode; in mmc_set_bus_mode() 451 host->ios.bus_width = width; in mmc_set_bus_width() [all …]
|
/drivers/mmc/host/ |
D | s3cmci.c | 1071 static void s3cmci_set_clk(struct s3cmci_host *host, struct mmc_ios *ios) in s3cmci_set_clk() argument 1079 if (host->real_rate <= ios->clock) in s3cmci_set_clk() 1090 if (ios->clock == 0) in s3cmci_set_clk() 1094 static void s3cmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in s3cmci_set_ios() argument 1103 switch (ios->power_mode) { in s3cmci_set_ios() 1114 host->pdata->set_power(ios->power_mode, ios->vdd); in s3cmci_set_ios() 1130 host->pdata->set_power(ios->power_mode, ios->vdd); in s3cmci_set_ios() 1135 s3cmci_set_clk(host, ios); in s3cmci_set_ios() 1138 if (ios->clock) in s3cmci_set_ios() 1145 if ((ios->power_mode == MMC_POWER_ON) || in s3cmci_set_ios() [all …]
|
D | pxamci.c | 399 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in pxamci_set_ios() argument 403 if (ios->clock) { in pxamci_set_ios() 405 unsigned int clk = rate / ios->clock; in pxamci_set_ios() 410 if (ios->clock == 26000000) { in pxamci_set_ios() 423 if (rate / clk > ios->clock) in pxamci_set_ios() 439 if (host->power_mode != ios->power_mode) { in pxamci_set_ios() 440 host->power_mode = ios->power_mode; in pxamci_set_ios() 443 host->pdata->setpower(mmc_dev(mmc), ios->vdd); in pxamci_set_ios() 445 if (ios->power_mode == MMC_POWER_ON) in pxamci_set_ios() 449 if (ios->bus_width == MMC_BUS_WIDTH_4) in pxamci_set_ios()
|
D | tifm_sd.c | 797 static void tifm_sd_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tifm_sd_ios() argument 808 ios->clock, ios->vdd, ios->bus_mode, ios->chip_select, in tifm_sd_ios() 809 ios->power_mode, ios->bus_width); in tifm_sd_ios() 811 if (ios->bus_width == MMC_BUS_WIDTH_4) { in tifm_sd_ios() 820 if (ios->clock) { in tifm_sd_ios() 821 clk_div1 = 20000000 / ios->clock; in tifm_sd_ios() 825 clk_div2 = 24000000 / ios->clock; in tifm_sd_ios() 829 if ((20000000 / clk_div1) > ios->clock) in tifm_sd_ios() 831 if ((24000000 / clk_div2) > ios->clock) in tifm_sd_ios() 855 host->open_drain = (ios->bus_mode == MMC_BUSMODE_OPENDRAIN); in tifm_sd_ios()
|
D | mxcmmc.c | 588 static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mxcmci_set_ios() argument 597 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios() 604 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios() 609 if (host->power_mode != ios->power_mode) { in mxcmci_set_ios() 611 host->pdata->setpower(mmc_dev(mmc), ios->vdd); in mxcmci_set_ios() 612 host->power_mode = ios->power_mode; in mxcmci_set_ios() 613 if (ios->power_mode == MMC_POWER_ON) in mxcmci_set_ios() 617 if (ios->clock) { in mxcmci_set_ios() 618 mxcmci_set_clk_rate(host, ios->clock); in mxcmci_set_ios() 624 host->clock = ios->clock; in mxcmci_set_ios()
|
D | mmc_spi.c | 1046 static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_spi_set_ios() argument 1050 if (host->power_mode != ios->power_mode) { in mmc_spi_set_ios() 1056 mmc_powerstring(ios->power_mode), in mmc_spi_set_ios() 1057 ios->vdd, in mmc_spi_set_ios() 1064 switch (ios->power_mode) { in mmc_spi_set_ios() 1068 ios->vdd); in mmc_spi_set_ios() 1069 if (ios->power_mode == MMC_POWER_UP) in mmc_spi_set_ios() 1075 if (ios->power_mode == MMC_POWER_ON) in mmc_spi_set_ios() 1087 if (canpower && ios->power_mode == MMC_POWER_OFF) { in mmc_spi_set_ios() 1121 host->power_mode = ios->power_mode; in mmc_spi_set_ios() [all …]
|
D | omap.c | 1205 static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_omap_calc_divisor() argument 1212 if (ios->clock == 0) in mmc_omap_calc_divisor() 1215 dsor = func_clk_rate / ios->clock; in mmc_omap_calc_divisor() 1219 if (func_clk_rate / dsor > ios->clock) in mmc_omap_calc_divisor() 1227 if (ios->bus_width == MMC_BUS_WIDTH_4) in mmc_omap_calc_divisor() 1233 static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_omap_set_ios() argument 1242 dsor = mmc_omap_calc_divisor(mmc, ios); in mmc_omap_set_ios() 1244 if (ios->vdd != slot->vdd) in mmc_omap_set_ios() 1245 slot->vdd = ios->vdd; in mmc_omap_set_ios() 1248 switch (ios->power_mode) { in mmc_omap_set_ios() [all …]
|
D | omap_hsmmc.c | 779 static void omap_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in omap_mmc_set_ios() argument 786 switch (ios->power_mode) { in omap_mmc_set_ios() 801 host->mmc->ios.vdd = vdd; in omap_mmc_set_ios() 805 mmc_slot(host).set_power(host->dev, host->slot_id, 1, ios->vdd); in omap_mmc_set_ios() 809 switch (mmc->ios.bus_width) { in omap_mmc_set_ios() 825 (ios->vdd == DUAL_VOLT_OCR_BIT)) { in omap_mmc_set_ios() 832 if (omap_mmc_switch_opcond(host, ios->vdd) != 0) in omap_mmc_set_ios() 838 if (ios->clock) { in omap_mmc_set_ios() 839 dsor = OMAP_MMC_MASTER_CLOCK / ios->clock; in omap_mmc_set_ios() 843 if (OMAP_MMC_MASTER_CLOCK / dsor > ios->clock) in omap_mmc_set_ios() [all …]
|
D | tmio_mmc.c | 400 if (data->blksz < 4 && host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) { in tmio_mmc_start_data() 449 static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tmio_mmc_set_ios() argument 455 if (ios->clock) in tmio_mmc_set_ios() 456 tmio_mmc_set_clock(host, ios->clock); in tmio_mmc_set_ios() 459 switch (ios->power_mode) { in tmio_mmc_set_ios() 473 switch (ios->bus_width) { in tmio_mmc_set_ios()
|
D | mmci.c | 418 static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmci_set_ios() argument 423 if (ios->clock) { in mmci_set_ios() 424 if (ios->clock >= host->mclk) { in mmci_set_ios() 428 clk = host->mclk / (2 * ios->clock) - 1; in mmci_set_ios() 439 pwr |= host->plat->translate_vdd(mmc_dev(mmc), ios->vdd); in mmci_set_ios() 441 switch (ios->power_mode) { in mmci_set_ios() 455 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) { in mmci_set_ios()
|
D | at91_mci.c | 766 static void at91_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in at91_mci_set_ios() argument 772 host->bus_mode = ios->bus_mode; in at91_mci_set_ios() 774 if (ios->clock == 0) { in at91_mci_set_ios() 783 if ((at91_master_clock % (ios->clock * 2)) == 0) in at91_mci_set_ios() 784 clkdiv = ((at91_master_clock / ios->clock) / 2) - 1; in at91_mci_set_ios() 786 clkdiv = (at91_master_clock / ios->clock) / 2; in at91_mci_set_ios() 791 if (ios->bus_width == MMC_BUS_WIDTH_4 && host->board->wire4) { in at91_mci_set_ios() 805 switch (ios->power_mode) { in at91_mci_set_ios()
|
D | sdricoh_cs.c | 356 static void sdricoh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdricoh_set_ios() argument 361 if (ios->power_mode == MMC_POWER_ON) { in sdricoh_set_ios() 364 if (ios->bus_width == MMC_BUS_WIDTH_4) { in sdricoh_set_ios() 371 } else if (ios->power_mode == MMC_POWER_UP) { in sdricoh_set_ios()
|
D | wbsd.c | 850 static void wbsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in wbsd_set_ios() argument 861 if (ios->power_mode == MMC_POWER_OFF) in wbsd_set_ios() 864 if (ios->clock >= 24000000) in wbsd_set_ios() 866 else if (ios->clock >= 16000000) in wbsd_set_ios() 868 else if (ios->clock >= 12000000) in wbsd_set_ios() 885 if (ios->power_mode != MMC_POWER_OFF) { in wbsd_set_ios() 897 if (ios->chip_select == MMC_CS_HIGH) { in wbsd_set_ios() 898 BUG_ON(ios->bus_width != MMC_BUS_WIDTH_1); in wbsd_set_ios() 918 host->bus_width = ios->bus_width; in wbsd_set_ios()
|
D | au1xmmc.c | 750 static void au1xmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in au1xmmc_set_ios() argument 755 if (ios->power_mode == MMC_POWER_OFF) in au1xmmc_set_ios() 757 else if (ios->power_mode == MMC_POWER_ON) { in au1xmmc_set_ios() 761 if (ios->clock && ios->clock != host->clock) { in au1xmmc_set_ios() 762 au1xmmc_set_clock(host, ios->clock); in au1xmmc_set_ios() 763 host->clock = ios->clock; in au1xmmc_set_ios() 767 switch (ios->bus_width) { in au1xmmc_set_ios()
|
D | imxmmc.c | 218 if (!(stat_mask & STATUS_END_CMD_RESP) || (host->mmc->ios.clock >= 8000000)) in imxmci_busy_wait_for_status() 813 static void imxmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in imxmci_set_ios() argument 818 if (ios->bus_width == MMC_BUS_WIDTH_4) { in imxmci_set_ios() 826 if (host->power_mode != ios->power_mode) { in imxmci_set_ios() 827 switch (ios->power_mode) { in imxmci_set_ios() 836 host->power_mode = ios->power_mode; in imxmci_set_ios() 839 if (ios->clock) { in imxmci_set_ios() 869 if (x <= ios->clock) in imxmci_set_ios()
|
D | sdhci.c | 1019 static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_set_ios() argument 1036 if (ios->power_mode == MMC_POWER_OFF) { in sdhci_set_ios() 1041 sdhci_set_clock(host, ios->clock); in sdhci_set_ios() 1043 if (ios->power_mode == MMC_POWER_OFF) in sdhci_set_ios() 1046 sdhci_set_power(host, ios->vdd); in sdhci_set_ios() 1050 if (ios->bus_width == MMC_BUS_WIDTH_4) in sdhci_set_ios() 1055 if (ios->timing == MMC_TIMING_SD_HS) in sdhci_set_ios()
|
D | atmel-mci.c | 463 if (mmc->ios.bus_mode == MMC_BUSMODE_OPENDRAIN) in atmci_prepare_command() 803 static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in atmci_set_ios() argument 810 switch (ios->bus_width) { in atmci_set_ios() 819 if (ios->clock) { in atmci_set_ios() 834 slot->clock = ios->clock; in atmci_set_ios() 886 switch (ios->power_mode) { in atmci_set_ios()
|
D | goldfish.c | 428 static void goldfish_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in goldfish_mmc_set_ios() argument 432 host->bus_mode = ios->bus_mode; in goldfish_mmc_set_ios()
|
/drivers/md/ |
D | dm-io.c | 48 unsigned ios = pages_to_ios(num_pages); in dm_io_client_create() local 55 client->pool = mempool_create_kmalloc_pool(ios, sizeof(struct io)); in dm_io_client_create()
|
D | linear.c | 319 part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); in linear_make_request()
|
D | raid0.c | 406 part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); in raid0_make_request()
|
D | multipath.c | 154 part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); in multipath_make_request()
|
/drivers/mmc/card/ |
D | block.c | 185 (card->host->ios.clock / 1000); in mmc_sd_num_wr_blocks()
|
/drivers/block/aoe/ |
D | aoecmd.c | 736 part_stat_inc(cpu, part, ios[rw]); in diskstats()
|