| /linux/include/linux/mmc/ |
| H A D | host.h | 192 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios); 219 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios); 228 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios); 250 struct mmc_ios *ios); 266 int (*init_sd_express)(struct mmc_host *host, struct mmc_ios *ios); 487 struct mmc_ios ios; /* current io bus settings */ member 649 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios); 650 int mmc_regulator_set_vqmmc2(struct mmc_host *mmc, struct mmc_ios *ios); 660 struct mmc_ios *ios) in mmc_regulator_set_vqmmc() argument 666 struct mmc_ios *ios) in mmc_regulator_set_vqmmc2() argument [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | mmci_stm32_sdmmc.c | 302 if (host->mmc->ios.timing == MMC_TIMING_MMC_DDR52 || in mmci_sdmmc_set_clkreg() 303 host->mmc->ios.timing == MMC_TIMING_UHS_DDR50) in mmci_sdmmc_set_clkreg() 331 if (host->mmc->ios.power_mode == MMC_POWER_ON) in mmci_sdmmc_set_clkreg() 336 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) in mmci_sdmmc_set_clkreg() 338 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) in mmci_sdmmc_set_clkreg() 345 if (host->mmc->ios.timing >= MMC_TIMING_UHS_SDR50) in mmci_sdmmc_set_clkreg() 362 struct mmc_ios ios = host->mmc->ios; in mmci_sdmmc_set_pwrreg() local 371 if (ios.power_mode == MMC_POWER_OFF) { in mmci_sdmmc_set_pwrreg() 384 } else if (ios.power_mode == MMC_POWER_ON) { in mmci_sdmmc_set_pwrreg() 417 if (host->mmc->ios.timing == MMC_TIMING_UHS_SDR104 || in sdmmc_get_dctrl_cfg() [all …]
|
| H A D | owl-mmc.c | 427 static void owl_mmc_set_clk(struct owl_mmc_host *owl_host, struct mmc_ios *ios) in owl_mmc_set_clk() argument 429 if (!ios->clock) in owl_mmc_set_clk() 432 owl_host->clock = ios->clock; in owl_mmc_set_clk() 433 owl_mmc_set_clk_rate(owl_host, ios->clock); in owl_mmc_set_clk() 437 struct mmc_ios *ios) in owl_mmc_set_bus_width() argument 443 switch (ios->bus_width) { in owl_mmc_set_bus_width() 485 static void owl_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in owl_mmc_set_ios() argument 489 switch (ios->power_mode) { in owl_mmc_set_ios() 518 if (ios->clock != owl_host->clock) in owl_mmc_set_ios() 519 owl_mmc_set_clk(owl_host, ios); in owl_mmc_set_ios() [all …]
|
| H A D | sdhci-pci-arasan.c | 250 if (arasan_host->chg_clk == host->mmc->ios.clock) in arasan_select_phy_clock() 253 arasan_host->chg_clk = host->mmc->ios.clock; in arasan_select_phy_clock() 254 if (host->mmc->ios.clock == 200000000) in arasan_select_phy_clock() 256 else if (host->mmc->ios.clock == 100000000) in arasan_select_phy_clock() 258 else if (host->mmc->ios.clock == 50000000) in arasan_select_phy_clock() 267 switch (host->mmc->ios.timing) { in arasan_select_phy_clock() 280 host->mmc->ios.drv_type, 0x0, in arasan_select_phy_clock() 290 host->mmc->ios.drv_type, 0xa, in arasan_select_phy_clock()
|
| H A D | dw_mmc-rockchip.c | 179 static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_rk3288_set_ios() argument 182 struct mmc_clk_phase phase = host->phase_map.phase[ios->timing]; in dw_mci_rk3288_set_ios() 187 if (ios->clock == 0) in dw_mci_rk3288_set_ios() 199 if (ios->bus_width == MMC_BUS_WIDTH_8 && in dw_mci_rk3288_set_ios() 200 ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_rk3288_set_ios() 201 cclkin = 2 * ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios() 203 cclkin = ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios() 219 if (ios->timing <= MMC_TIMING_SD_HS) { in dw_mci_rk3288_set_ios() 262 switch (ios->timing) { in dw_mci_rk3288_set_ios() 269 if (ios->bus_width == MMC_BUS_WIDTH_8) in dw_mci_rk3288_set_ios()
|
| H A D | sdhci.c | 385 mmc->ops->set_ios(mmc, &mmc->ios); in sdhci_init() 941 struct mmc_ios *ios = &mmc->ios; in sdhci_calc_sw_timeout() local 942 unsigned char bus_width = 1 << ios->bus_width; in sdhci_calc_sw_timeout() 2342 static bool sdhci_presetable_values_change(struct sdhci_host *host, struct mmc_ios *ios) in sdhci_presetable_values_change() argument 2350 (sdhci_preset_needed(host, ios->timing) || host->drv_type != ios->drv_type); in sdhci_presetable_values_change() 2353 void sdhci_set_ios_common(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_set_ios_common() argument 2361 if (ios->power_mode == MMC_POWER_OFF) { in sdhci_set_ios_common() 2367 (ios->power_mode == MMC_POWER_UP) && in sdhci_set_ios_common() 2373 void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_set_ios() argument 2382 if (ios->power_mode == MMC_POWER_UNDEFINED) in sdhci_set_ios() [all …]
|
| H A D | pxamci.c | 440 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in pxamci_set_ios() argument 444 if (ios->clock) { in pxamci_set_ios() 446 unsigned int clk = rate / ios->clock; in pxamci_set_ios() 451 if (ios->clock == 26000000) { in pxamci_set_ios() 464 if (rate / clk > ios->clock) in pxamci_set_ios() 480 if (host->power_mode != ios->power_mode) { in pxamci_set_ios() 483 host->power_mode = ios->power_mode; in pxamci_set_ios() 485 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); in pxamci_set_ios() 497 if (ios->power_mode == MMC_POWER_ON) in pxamci_set_ios() 501 if (ios->bus_width == MMC_BUS_WIDTH_4) in pxamci_set_ios()
|
| H A D | mmc_spi.c | 1033 static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_spi_set_ios() argument 1037 if (host->power_mode != ios->power_mode) { in mmc_spi_set_ios() 1043 mmc_powerstring(ios->power_mode), in mmc_spi_set_ios() 1044 ios->vdd, in mmc_spi_set_ios() 1051 switch (ios->power_mode) { in mmc_spi_set_ios() 1055 ios->vdd); in mmc_spi_set_ios() 1056 if (ios->power_mode == MMC_POWER_UP) in mmc_spi_set_ios() 1062 if (ios->power_mode == MMC_POWER_ON) in mmc_spi_set_ios() 1074 if (canpower && ios->power_mode == MMC_POWER_OFF) { in mmc_spi_set_ios() 1107 host->power_mode = ios->power_mode; in mmc_spi_set_ios() [all …]
|
| H A D | usdhi6rol0.c | 727 static void usdhi6_clk_set(struct usdhi6_host *host, struct mmc_ios *ios) in usdhi6_clk_set() argument 729 unsigned long rate = ios->clock; in usdhi6_clk_set() 750 if (ios->timing != MMC_TIMING_UHS_DDR50) { in usdhi6_clk_set() 794 static void usdhi6_set_power(struct usdhi6_host *host, struct mmc_ios *ios) in usdhi6_set_power() argument 801 ios->power_mode ? ios->vdd : 0); in usdhi6_set_power() 818 static void usdhi6_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in usdhi6_set_ios() argument 825 ios->clock, ios->vdd, ios->power_mode, ios->bus_width, ios->timing); in usdhi6_set_ios() 827 switch (ios->power_mode) { in usdhi6_set_ios() 829 usdhi6_set_power(host, ios); in usdhi6_set_ios() 841 usdhi6_set_power(host, ios); in usdhi6_set_ios() [all …]
|
| H A D | meson-mx-sdhc-mmc.c | 267 static int meson_mx_sdhc_set_clk(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_clk() argument 275 if (ios->clock) { in meson_mx_sdhc_set_clk() 276 ret = clk_set_rate(host->sd_clk, ios->clock); in meson_mx_sdhc_set_clk() 280 ios->clock, host->error); in meson_mx_sdhc_set_clk() 307 static void meson_mx_sdhc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_ios() argument 310 unsigned short vdd = ios->vdd; in meson_mx_sdhc_set_ios() 312 switch (ios->power_mode) { in meson_mx_sdhc_set_ios() 332 host->error = meson_mx_sdhc_set_clk(mmc, ios); in meson_mx_sdhc_set_ios() 336 switch (ios->bus_width) { in meson_mx_sdhc_set_ios() 357 ios->bus_width); in meson_mx_sdhc_set_ios()
|
| H A D | sdhci-xenon-phy.c | 493 if (host->mmc->ios.enhanced_strobe) in xenon_emmc_phy_strobe_delay_adj() 810 int xenon_phy_adj(struct sdhci_host *host, struct mmc_ios *ios) in xenon_phy_adj() argument 827 (ios->bus_width == priv->bus_width) && in xenon_phy_adj() 828 (ios->timing == priv->timing)) in xenon_phy_adj() 831 xenon_emmc_phy_set(host, ios->timing); in xenon_phy_adj() 834 priv->bus_width = ios->bus_width; in xenon_phy_adj() 836 priv->timing = ios->timing; in xenon_phy_adj() 840 if (ios->timing == MMC_TIMING_LEGACY) in xenon_phy_adj()
|
| H A D | moxart-mmc.c | 488 static void moxart_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in moxart_set_ios() argument 497 if (ios->clock) { in moxart_set_ios() 499 if (ios->clock >= host->sysclk / (2 * (div + 1))) in moxart_set_ios() 509 if (ios->power_mode == MMC_POWER_OFF) { in moxart_set_ios() 513 if (ios->vdd < MIN_POWER) in moxart_set_ios() 516 power = ios->vdd - MIN_POWER; in moxart_set_ios() 522 switch (ios->bus_width) { in moxart_set_ios()
|
| H A D | mxcmmc.c | 835 static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mxcmci_set_ios() argument 844 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios() 861 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios() 866 if (host->power_mode != ios->power_mode) { in mxcmci_set_ios() 867 host->power_mode = ios->power_mode; in mxcmci_set_ios() 868 mxcmci_set_power(host, ios->vdd); in mxcmci_set_ios() 870 if (ios->power_mode == MMC_POWER_ON) in mxcmci_set_ios() 874 if (ios->clock) { in mxcmci_set_ios() 875 mxcmci_set_clk_rate(host, ios->clock); in mxcmci_set_ios() 881 host->clock = ios->clock; in mxcmci_set_ios()
|
| H A D | sdricoh_cs.c | 335 static void sdricoh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdricoh_set_ios() argument 340 if (ios->power_mode == MMC_POWER_ON) { in sdricoh_set_ios() 343 if (ios->bus_width == MMC_BUS_WIDTH_4) { in sdricoh_set_ios() 350 } else if (ios->power_mode == MMC_POWER_UP) { in sdricoh_set_ios()
|
| H A D | ushc.c | 371 static void ushc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in ushc_set_ios() argument 375 ushc_set_power(ushc, ios->power_mode); in ushc_set_ios() 376 ushc_set_bus_width(ushc, 1 << ios->bus_width); in ushc_set_ios() 377 ushc_set_bus_freq(ushc, ios->clock, ios->timing == MMC_TIMING_SD_HS); in ushc_set_ios()
|
| H A D | sdhci-pci-gli.c | 607 struct mmc_ios *ios = &host->mmc->ios; in sdhci_gl9750_set_clock() local 619 if (clock == 200000000 && ios->timing == MMC_TIMING_UHS_SDR104) { in sdhci_gl9750_set_clock() 799 struct mmc_ios *ios = &host->mmc->ios; in sdhci_gl9755_set_clock() local 813 if (clock == 200000000 && ios->timing == MMC_TIMING_UHS_SDR104) { in sdhci_gl9755_set_clock() 1255 struct mmc_ios *ios = &host->mmc->ios; in sdhci_gl9767_set_clock() local 1272 if (clock == 200000000 && ios->timing == MMC_TIMING_UHS_SDR104) { in sdhci_gl9767_set_clock() 1402 static int gl9767_init_sd_express(struct mmc_host *mmc, struct mmc_ios *ios) in gl9767_init_sd_express() argument 1413 mmc->ios.timing &= ~(MMC_TIMING_SD_EXP | MMC_TIMING_SD_EXP_1_2V); in gl9767_init_sd_express() 1473 mmc->ios.timing &= ~(MMC_TIMING_SD_EXP | MMC_TIMING_SD_EXP_1_2V); in gl9767_init_sd_express() 1673 struct mmc_ios *ios) in gl9763e_hs400_enhanced_strobe() argument [all …]
|
| H A D | sdhci-of-ma35d1.c | 109 static int ma35_start_signal_voltage_switch(struct mmc_host *mmc, struct mmc_ios *ios) in ma35_start_signal_voltage_switch() argument 115 switch (ios->signal_voltage) { in ma35_start_signal_voltage_switch() 129 return sdhci_start_signal_voltage_switch(mmc, ios); in ma35_start_signal_voltage_switch()
|
| H A D | wbsd.c | 837 static void wbsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in wbsd_set_ios() argument 848 if (ios->power_mode == MMC_POWER_OFF) in wbsd_set_ios() 851 if (ios->clock >= 24000000) in wbsd_set_ios() 853 else if (ios->clock >= 16000000) in wbsd_set_ios() 855 else if (ios->clock >= 12000000) in wbsd_set_ios() 872 if (ios->power_mode != MMC_POWER_OFF) { in wbsd_set_ios() 884 if (ios->chip_select == MMC_CS_HIGH) { in wbsd_set_ios() 885 BUG_ON(ios->bus_width != MMC_BUS_WIDTH_1); in wbsd_set_ios() 905 host->bus_width = ios->bus_width; in wbsd_set_ios()
|
| /linux/drivers/net/wireless/rsi/ |
| H A D | rsi_91x_sdio.c | 186 host->ios.chip_select = MMC_CS_DONTCARE; in rsi_reset_card() 187 host->ios.bus_mode = MMC_BUSMODE_OPENDRAIN; in rsi_reset_card() 188 host->ios.power_mode = MMC_POWER_UP; in rsi_reset_card() 189 host->ios.bus_width = MMC_BUS_WIDTH_1; in rsi_reset_card() 190 host->ios.timing = MMC_TIMING_LEGACY; in rsi_reset_card() 191 host->ops->set_ios(host, &host->ios); in rsi_reset_card() 199 host->ios.clock = host->f_min; in rsi_reset_card() 200 host->ios.power_mode = MMC_POWER_ON; in rsi_reset_card() 201 host->ops->set_ios(host, &host->ios); in rsi_reset_card() 210 host->ios.chip_select = MMC_CS_HIGH; in rsi_reset_card() [all …]
|
| /linux/drivers/mmc/core/ |
| H A D | sd_uhs2.c | 51 if (host->ios.power_mode == MMC_POWER_ON) in sd_uhs2_power_up() 54 host->ios.vdd = fls(host->ocr_avail) - 1; in sd_uhs2_power_up() 55 host->ios.clock = host->f_init; in sd_uhs2_power_up() 56 host->ios.timing = MMC_TIMING_UHS2_SPEED_A; in sd_uhs2_power_up() 57 host->ios.power_mode = MMC_POWER_ON; in sd_uhs2_power_up() 66 if (host->ios.power_mode == MMC_POWER_OFF) in sd_uhs2_power_off() 69 host->ios.vdd = 0; in sd_uhs2_power_off() 70 host->ios.clock = 0; in sd_uhs2_power_off() 71 host->ios.power_mode = MMC_POWER_OFF; in sd_uhs2_power_off() 79 host->ios.timing = MMC_TIMING_LEGACY; in sd_uhs2_power_off() [all …]
|
| H A D | sd_ops.c | 277 host->ios.timing = MMC_TIMING_SD_EXP_1_2V; in mmc_send_if_cond_pcie() 279 host->ios.timing = MMC_TIMING_SD_EXP; in mmc_send_if_cond_pcie() 285 return host->ops->init_sd_express(host, &host->ios); in mmc_send_if_cond_pcie()
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.h | 190 struct ublk_io ios[UBLK_QUEUE_DEPTH]; 377 return container_of(io, struct ublk_queue, ios[io->tag]); in ublk_io_alloc_sqes() 450 q->ios[tag].result = res; in ublk_get_io_res() 455 return q->ios[tag].result; in ublk_mark_io_done() 487 return q->ios[tag].buf_index; in ublk_get_io() 492 return &q->ios[tag]; in ublk_completed_tgt_io() 587 struct ublk_io *io = &q->ios[tag]; 184 struct ublk_io ios[UBLK_QUEUE_DEPTH]; global() member
|
| /linux/drivers/md/ |
| H A D | dm-stats.c | 27 unsigned long long ios[2]; member 603 p->ios[idx] += 1; in dm_stat_for_entry() 733 shared->tmp.ios[READ] = 0; in __dm_stat_init_temporary_percpu_totals() 734 shared->tmp.ios[WRITE] = 0; in __dm_stat_init_temporary_percpu_totals() 751 shared->tmp.ios[READ] += READ_ONCE(p->ios[READ]); in __dm_stat_init_temporary_percpu_totals() 752 shared->tmp.ios[WRITE] += READ_ONCE(p->ios[WRITE]); in __dm_stat_init_temporary_percpu_totals() 785 p->ios[READ] -= shared->tmp.ios[READ]; in __dm_stat_clear() 786 p->ios[WRITE] -= shared->tmp.ios[WRITE]; in __dm_stat_clear() 899 shared->tmp.ios[READ], in dm_stats_print() 903 shared->tmp.ios[WRITE], in dm_stats_print()
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_io.c | 15 struct efct_io *ios[EFCT_NUM_SCSI_IOS]; member 43 io_pool->ios[i] = io; in efct_io_pool_create() 86 io = io_pool->ios[i]; in efct_io_pool_free()
|
| /linux/block/ |
| H A D | genhd.c | 120 stat->ios[group] += ptr->ios[group]; in part_stat_read_all() 1083 stat.ios[STAT_READ], in part_stat_show() 1087 stat.ios[STAT_WRITE], in part_stat_show() 1098 stat.ios[STAT_DISCARD], in part_stat_show() 1102 stat.ios[STAT_FLUSH], in part_stat_show() 1384 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_READ]); in diskstats_show() 1389 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_WRITE]); in diskstats_show() 1401 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_DISCARD]); in diskstats_show() 1406 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_FLUSH]); in diskstats_show()
|