| /linux/include/linux/mmc/ |
| H A D | host.h | 188 * ios->clock might be 0. For some controllers, setting 0Hz 193 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios); 220 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios); 229 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios); 251 struct mmc_ios *ios); 267 int (*init_sd_express)(struct mmc_host *host, struct mmc_ios *ios); 489 struct mmc_ios ios; /* current io bus settings */ 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 487 struct mmc_ios ios; /* current io bus settings */ global() member 666 mmc_regulator_set_vqmmc2(struct mmc_host * mmc,struct mmc_ios * ios) 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 in mmci_sdmmc_set_pwrreg() 666 sdmmc_post_sig_volt_switch(struct mmci_host * host,struct mmc_ios * ios) sdmmc_post_sig_volt_switch() argument [all...] |
| H A D | owl-mmc.c | 426 static void owl_mmc_set_clk(struct owl_mmc_host *owl_host, struct mmc_ios *ios) in owl_mmc_set_clk() argument 428 if (!ios->clock) in owl_mmc_set_clk() 431 owl_host->clock = ios->clock; in owl_mmc_set_clk() 432 owl_mmc_set_clk_rate(owl_host, ios->clock); in owl_mmc_set_clk() 436 struct mmc_ios *ios) in owl_mmc_set_bus_width() argument 442 switch (ios->bus_width) { in owl_mmc_set_bus_width() 484 static void owl_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in owl_mmc_set_ios() argument 488 switch (ios->power_mode) { in owl_mmc_set_ios() 517 if (ios->clock != owl_host->clock) in owl_mmc_set_ios() 518 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 | sunxi-mmc.c | 722 struct mmc_ios *ios, u32 rate) in sunxi_mmc_clk_set_phase() argument 740 if (ios->timing != MMC_TIMING_UHS_DDR50 && in sunxi_mmc_clk_set_phase() 741 ios->timing != MMC_TIMING_MMC_DDR52) { in sunxi_mmc_clk_set_phase() 743 } else if (ios->bus_width == MMC_BUS_WIDTH_8) { in sunxi_mmc_clk_set_phase() 760 struct mmc_ios *ios) in sunxi_mmc_clk_set_rate() argument 764 u32 rval, clock = ios->clock, div = 1; in sunxi_mmc_clk_set_rate() 774 if (!ios->clock) in sunxi_mmc_clk_set_rate() 786 if (ios->timing == MMC_TIMING_MMC_DDR52 && in sunxi_mmc_clk_set_rate() 788 ios->bus_width == MMC_BUS_WIDTH_8)) { in sunxi_mmc_clk_set_rate() 842 ret = sunxi_mmc_clk_set_phase(host, ios, rat in sunxi_mmc_clk_set_rate() 884 sunxi_mmc_set_clk(struct sunxi_mmc_host * host,struct mmc_ios * ios) sunxi_mmc_set_clk() argument 902 sunxi_mmc_card_power(struct sunxi_mmc_host * host,struct mmc_ios * ios) sunxi_mmc_card_power() argument 947 sunxi_mmc_set_ios(struct mmc_host * mmc,struct mmc_ios * ios) sunxi_mmc_set_ios() argument 956 sunxi_mmc_volt_switch(struct mmc_host * mmc,struct mmc_ios * ios) sunxi_mmc_volt_switch() argument [all...] |
| 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() 194 * ios->clock = (div == 0) ? bus_hz : (bus_hz / (2 * div)) 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 in dw_mci_rk3288_set_ios() [all...] |
| H A D | sdhci-sprd.c | 376 if (!mmc->ios.enhanced_strobe) in sdhci_sprd_set_uhs_signaling() 494 static int sdhci_sprd_voltage_switch(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_sprd_voltage_switch() argument 501 ret = mmc_regulator_set_vqmmc(mmc, ios); in sdhci_sprd_voltage_switch() 512 switch (ios->signal_voltage) { in sdhci_sprd_voltage_switch() 546 struct mmc_ios *ios) in sdhci_sprd_hs400_enhanced_strobe() argument 553 if (!ios->enhanced_strobe) in sdhci_sprd_hs400_enhanced_strobe() 649 dll_dly = p[mmc->ios.timing]; in sdhci_sprd_tuning() 676 p[mmc->ios.timing] &= ~SDHCI_SPRD_CMD_DLY_MASK; in sdhci_sprd_tuning() 677 p[mmc->ios.timing] |= ((best_clk_sample << 8) & SDHCI_SPRD_CMD_DLY_MASK); in sdhci_sprd_tuning() 679 p[mmc->ios in sdhci_sprd_tuning() [all...] |
| H A D | mmc_spi.c | 1034 static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_spi_set_ios() argument 1038 if (host->power_mode != ios->power_mode) { in mmc_spi_set_ios() 1044 mmc_powerstring(ios->power_mode), in mmc_spi_set_ios() 1045 ios->vdd, in mmc_spi_set_ios() 1052 switch (ios->power_mode) { in mmc_spi_set_ios() 1056 ios->vdd); in mmc_spi_set_ios() 1057 if (ios->power_mode == MMC_POWER_UP) in mmc_spi_set_ios() 1063 if (ios->power_mode == MMC_POWER_ON) in mmc_spi_set_ios() 1075 if (canpower && ios->power_mode == MMC_POWER_OFF) { in mmc_spi_set_ios() 1108 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 | rtsx_pci_sdmmc.c | 49 static int sdmmc_init_sd_express(struct mmc_host *mmc, struct mmc_ios *ios); 1086 static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdmmc_set_ios() argument 1101 sd_set_bus_width(host, ios->bus_width); in sdmmc_set_ios() 1102 sd_set_power_mode(host, ios->power_mode); in sdmmc_set_ios() 1103 sd_set_timing(host, ios->timing); in sdmmc_set_ios() 1108 switch (ios->timing) { in sdmmc_set_ios() 1125 host->initial_mode = (ios->clock <= 1000000) ? true : false; in sdmmc_set_ios() 1127 host->clock = ios->clock; in sdmmc_set_ios() 1128 rtsx_pci_switch_clock(pcr, ios->clock, host->ssc_depth, in sdmmc_set_ios() 1184 static int sdmmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) in sdmmc_switch_voltage() argument [all …]
|
| H A D | litex_mmc.c | 377 static void litex_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in litex_mmc_set_ios() argument 382 switch (ios->bus_width) { in litex_mmc_set_ios() 394 if (host->width != ios->bus_width) { in litex_mmc_set_ios() 396 host->width = ios->bus_width; in litex_mmc_set_ios() 403 if (ios->chip_select == MMC_CS_HIGH) { in litex_mmc_set_ios() 411 if (ios->clock != host->sd_clk) in litex_mmc_set_ios() 412 litex_mmc_setclk(host, ios->clock); in litex_mmc_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 | mmci.c | 487 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) in mmci_set_clkreg() 489 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) in mmci_set_clkreg() 492 if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || in mmci_set_clkreg() 493 host->mmc->ios.timing == MMC_TIMING_MMC_DDR52) in mmci_set_clkreg() 1283 if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || in mmci_start_data() 1284 host->mmc->ios.timing == MMC_TIMING_MMC_DDR52) in mmci_start_data() 1926 static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmci_set_ios() argument 1934 switch (ios->power_mode) { in mmci_set_ios() 1947 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in mmci_set_ios() 1971 if (variant->signal_direction && ios in mmci_set_ios() 2053 mmci_sig_volt_switch(struct mmc_host * mmc,struct mmc_ios * ios) mmci_sig_volt_switch() argument [all...] |
| 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()
|
| /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 | mmc.c | 913 switch (1 << host->ios.vdd) { in __mmc_select_powerclass() 915 if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) in __mmc_select_powerclass() 917 else if (host->ios.clock <= MMC_HIGH_52_MAX_DTR) in __mmc_select_powerclass() 921 else if (host->ios.clock <= MMC_HS200_MAX_DTR) in __mmc_select_powerclass() 933 if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) in __mmc_select_powerclass() 935 else if (host->ios.clock <= MMC_HIGH_52_MAX_DTR) in __mmc_select_powerclass() 939 else if (host->ios.clock <= MMC_HS200_MAX_DTR) in __mmc_select_powerclass() 978 bus_width = host->ios.bus_width; in mmc_select_powerclass() 1120 bus_width = host->ios.bus_width; in mmc_select_hs_ddr() 1192 host->ios in mmc_select_hs400() [all...] |
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.h | 213 struct ublk_io ios[UBLK_QUEUE_DEPTH]; member 433 return container_of(io, struct ublk_queue, ios[io->tag]); in ublk_get_registered_fd() 506 q->ios[tag].result = res; in ublk_io_buf_idx() 511 return q->ios[tag].result; in ublk_io_buf_idx() 543 return q->ios[tag].buf_index; 548 return &q->ios[tag]; 612 return base + q->ios[tag].auto_buf_phase * t->auto_buf_stride; 621 q->ios[tag].auto_buf_phase ^= 1; in ublk_complete_io() 656 struct ublk_io *io = &q->ios[tag];
|
| /linux/drivers/md/ |
| H A D | dm-stats.c | 27 unsigned long long ios[2]; member 605 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 | blk-cgroup.c | 636 dst->ios[i] = src->ios[i]; in __blkg_clear_stat() 986 dst->ios[i] += src->ios[i]; in blkcg_iostat_update() 996 dst->ios[i] -= src->ios[i]; in blkcg_iostat_update() 1128 tmp.ios[BLKG_IOSTAT_READ] += in blkcg_fill_root_iostats() 1129 cpu_dkstats->ios[STAT_READ]; in blkcg_fill_root_iostats() 1130 tmp.ios[BLKG_IOSTAT_WRITE] += in blkcg_fill_root_iostats() 1131 cpu_dkstats->ios[STAT_WRIT in blkcg_fill_root_iostats() [all...] |
| H A D | genhd.c | 120 stat->ios[group] += ptr->ios[group]; in part_stat_read_all() 1087 stat.ios[STAT_READ], in part_stat_show() 1091 stat.ios[STAT_WRITE], in part_stat_show() 1102 stat.ios[STAT_DISCARD], in part_stat_show() 1106 stat.ios[STAT_FLUSH], in part_stat_show() 1392 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_READ]); in diskstats_show() 1397 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_WRITE]); in diskstats_show() 1409 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_DISCARD]); in diskstats_show() 1414 seq_put_decimal_ull(seqf, " ", stat.ios[STAT_FLUS in diskstats_show() [all...] |