Home
last modified time | relevance | path

Searched refs:ios (Results 1 – 25 of 192) sorted by relevance

12345678

/OK3568_Linux_fs/kernel/drivers/mmc/core/
H A Ddebugfs.c55 struct mmc_ios *ios = &host->ios; in mmc_ios_show() local
58 seq_printf(s, "clock:\t\t%u Hz\n", ios->clock); in mmc_ios_show()
61 seq_printf(s, "vdd:\t\t%u ", ios->vdd); in mmc_ios_show()
62 if ((1 << ios->vdd) & MMC_VDD_165_195) in mmc_ios_show()
64 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) in mmc_ios_show()
65 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) in mmc_ios_show()
66 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], in mmc_ios_show()
67 vdd_str[ios->vdd + 1]); in mmc_ios_show()
71 switch (ios->bus_mode) { in mmc_ios_show()
82 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show()
[all …]
H A Dcore.c682 if (card->host->ios.clock) in mmc_set_data_timeout()
684 (card->host->ios.clock / 1000); in mmc_set_data_timeout()
884 struct mmc_ios *ios = &host->ios; in mmc_set_ios() local
888 mmc_hostname(host), ios->clock, ios->bus_mode, in mmc_set_ios()
889 ios->power_mode, ios->chip_select, ios->vdd, in mmc_set_ios()
890 1 << ios->bus_width, ios->timing); in mmc_set_ios()
892 host->ops->set_ios(host, ios); in mmc_set_ios()
900 host->ios.chip_select = mode; in mmc_set_chip_select()
915 host->ios.clock = hz; in mmc_set_clock()
956 host->ios.bus_mode = mode; in mmc_set_bus_mode()
[all …]
H A Dhost.h62 return card->host->ios.timing == MMC_TIMING_MMC_HS200; in mmc_card_hs200()
67 return card->host->ios.timing == MMC_TIMING_MMC_DDR52; in mmc_card_ddr52()
72 return card->host->ios.timing == MMC_TIMING_MMC_HS400; in mmc_card_hs400()
77 return card->host->ios.enhanced_strobe; in mmc_card_hs400es()
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Ddw_mmc-k3.c102 static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_k3_set_ios() argument
106 ret = clk_set_rate(host->ciu_clk, ios->clock); in dw_mci_k3_set_ios()
108 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_k3_set_ios()
141 static int dw_mci_hi6220_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) in dw_mci_hi6220_switch_voltage() argument
155 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) { in dw_mci_hi6220_switch_voltage()
160 } else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) { in dw_mci_hi6220_switch_voltage()
188 static void dw_mci_hi6220_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi6220_set_ios() argument
193 clock = (ios->clock <= 25000000) ? 25000000 : ios->clock; in dw_mci_hi6220_set_ios()
297 static void dw_mci_hi3660_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi3660_set_ios() argument
304 if (!ios->clock || ios->clock == priv->cur_speed) in dw_mci_hi3660_set_ios()
[all …]
H A Ddw_mmc-rockchip.c31 static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_rk3288_set_ios() argument
38 if (ios->clock == 0) in dw_mci_rk3288_set_ios()
50 if (ios->clock < priv->f_min) { in dw_mci_rk3288_set_ios()
51 ios->clock = priv->f_min; in dw_mci_rk3288_set_ios()
52 host->slot->clock = ios->clock; in dw_mci_rk3288_set_ios()
55 if (ios->bus_width == MMC_BUS_WIDTH_8 && in dw_mci_rk3288_set_ios()
56 ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_rk3288_set_ios()
57 cclkin = 2 * ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
59 cclkin = ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
63 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_rk3288_set_ios()
[all …]
H A Ddw_mmc-hi3798cv200.c32 static void dw_mci_hi3798cv200_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi3798cv200_set_ios() argument
38 if (ios->timing == MMC_TIMING_MMC_DDR52 || in dw_mci_hi3798cv200_set_ios()
39 ios->timing == MMC_TIMING_UHS_DDR50) in dw_mci_hi3798cv200_set_ios()
46 if (ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_hi3798cv200_set_ios()
53 if (ios->timing == MMC_TIMING_MMC_HS400) in dw_mci_hi3798cv200_set_ios()
59 if (ios->timing == MMC_TIMING_MMC_HS || in dw_mci_hi3798cv200_set_ios()
60 ios->timing == MMC_TIMING_LEGACY) in dw_mci_hi3798cv200_set_ios()
62 else if (ios->timing == MMC_TIMING_MMC_HS200) in dw_mci_hi3798cv200_set_ios()
H A Dmmci_stm32_sdmmc.c199 if (host->mmc->ios.timing == MMC_TIMING_MMC_DDR52 || in mmci_sdmmc_set_clkreg()
200 host->mmc->ios.timing == MMC_TIMING_UHS_DDR50) in mmci_sdmmc_set_clkreg()
228 if (host->mmc->ios.power_mode == MMC_POWER_ON) in mmci_sdmmc_set_clkreg()
233 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) in mmci_sdmmc_set_clkreg()
235 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) in mmci_sdmmc_set_clkreg()
246 if (host->mmc->ios.timing >= MMC_TIMING_UHS_SDR50) { in mmci_sdmmc_set_clkreg()
248 if (host->mmc->ios.timing == MMC_TIMING_UHS_SDR104) { in mmci_sdmmc_set_clkreg()
268 struct mmc_ios ios = host->mmc->ios; in mmci_sdmmc_set_pwrreg() local
276 if (ios.power_mode == MMC_POWER_OFF) { in mmci_sdmmc_set_pwrreg()
289 } else if (ios.power_mode == MMC_POWER_ON) { in mmci_sdmmc_set_pwrreg()
[all …]
H A Dalcor.c692 static void alcor_set_timing(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_timing() argument
696 if (ios->timing == MMC_TIMING_LEGACY) { in alcor_set_timing()
705 static void alcor_set_bus_width(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_bus_width() argument
710 if (ios->bus_width == MMC_BUS_WIDTH_1) { in alcor_set_bus_width()
712 } else if (ios->bus_width == MMC_BUS_WIDTH_4) { in alcor_set_bus_width()
845 static void alcor_set_power_mode(struct mmc_host *mmc, struct mmc_ios *ios) in alcor_set_power_mode() argument
850 switch (ios->power_mode) { in alcor_set_power_mode()
852 alcor_set_clock(host, ios->clock); in alcor_set_power_mode()
880 alcor_set_clock(host, ios->clock); in alcor_set_power_mode()
887 alcor_set_clock(host, ios->clock); in alcor_set_power_mode()
[all …]
H A Dowl-mmc.c427 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 Dsunxi-mmc.c718 struct mmc_ios *ios, u32 rate) in sunxi_mmc_clk_set_phase() argument
736 if (ios->timing != MMC_TIMING_UHS_DDR50 && in sunxi_mmc_clk_set_phase()
737 ios->timing != MMC_TIMING_MMC_DDR52) { in sunxi_mmc_clk_set_phase()
739 } else if (ios->bus_width == MMC_BUS_WIDTH_8) { in sunxi_mmc_clk_set_phase()
756 struct mmc_ios *ios) in sunxi_mmc_clk_set_rate() argument
760 u32 rval, clock = ios->clock, div = 1; in sunxi_mmc_clk_set_rate()
770 if (!ios->clock) in sunxi_mmc_clk_set_rate()
782 if (ios->timing == MMC_TIMING_MMC_DDR52 && in sunxi_mmc_clk_set_rate()
784 ios->bus_width == MMC_BUS_WIDTH_8)) { in sunxi_mmc_clk_set_rate()
838 ret = sunxi_mmc_clk_set_phase(host, ios, rate); in sunxi_mmc_clk_set_rate()
[all …]
H A Dsdhci-pci-arasan.c250 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 Dsdhci-msm.c338 struct mmc_ios ios = host->mmc->ios; in msm_get_clock_rate_for_bus_mode() local
345 if (ios.timing == MMC_TIMING_UHS_DDR50 || in msm_get_clock_rate_for_bus_mode()
346 ios.timing == MMC_TIMING_MMC_DDR52 || in msm_get_clock_rate_for_bus_mode()
347 ios.timing == MMC_TIMING_MMC_HS400 || in msm_get_clock_rate_for_bus_mode()
358 struct mmc_ios curr_ios = host->mmc->ios; in msm_set_clock_rate_for_bus_mode()
806 struct mmc_ios ios = host->mmc->ios; in msm_hc_select_hs400() local
822 if ((msm_host->tuning_done || ios.enhanced_strobe) && in msm_hc_select_hs400()
875 struct mmc_ios ios = host->mmc->ios; in sdhci_msm_hc_select_mode() local
877 if (ios.timing == MMC_TIMING_MMC_HS400 || in sdhci_msm_hc_select_mode()
1012 if (mmc->ios.enhanced_strobe) { in sdhci_msm_cm_dll_sdc4_calibration()
[all …]
H A Domap_hsmmc.c220 struct mmc_ios *ios = &mmc->ios; in omap_hsmmc_enable_supply() local
223 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in omap_hsmmc_enable_supply()
520 static u16 calc_divisor(struct omap_hsmmc_host *host, struct mmc_ios *ios) in calc_divisor() argument
524 if (ios->clock) { in calc_divisor()
525 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
535 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_clock() local
540 dev_vdbg(mmc_dev(host->mmc), "Set clock to %uHz\n", ios->clock); in omap_hsmmc_set_clock()
546 clkdiv = calc_divisor(host, ios); in omap_hsmmc_set_clock()
568 (ios->timing != MMC_TIMING_MMC_DDR52) && in omap_hsmmc_set_clock()
569 (ios->timing != MMC_TIMING_UHS_DDR50) && in omap_hsmmc_set_clock()
[all …]
H A Dsdhci-xenon.c265 static void xenon_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in xenon_set_ios() argument
279 if ((ios->timing == MMC_TIMING_MMC_HS400) || in xenon_set_ios()
280 (ios->timing == MMC_TIMING_MMC_HS200) || in xenon_set_ios()
281 (ios->timing == MMC_TIMING_MMC_HS)) { in xenon_set_ios()
293 sdhci_set_ios(mmc, ios); in xenon_set_ios()
294 xenon_phy_adj(host, ios); in xenon_set_ios()
301 struct mmc_ios *ios) in xenon_start_signal_voltage_switch() argument
317 xenon_soc_pad_ctrl(host, ios->signal_voltage); in xenon_start_signal_voltage_switch()
327 return sdhci_start_signal_voltage_switch(mmc, ios); in xenon_start_signal_voltage_switch()
H A Dsdhci.c344 mmc->ops->set_ios(mmc, &mmc->ios); in sdhci_init()
901 struct mmc_ios *ios = &mmc->ios; in sdhci_calc_sw_timeout() local
902 unsigned char bus_width = 1 << ios->bus_width; in sdhci_calc_sw_timeout()
2251 void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_set_ios() argument
2256 if (ios->power_mode == MMC_POWER_UNDEFINED) in sdhci_set_ios()
2261 ios->power_mode == MMC_POWER_OFF) in sdhci_set_ios()
2270 if (ios->power_mode == MMC_POWER_OFF) { in sdhci_set_ios()
2276 (ios->power_mode == MMC_POWER_UP) && in sdhci_set_ios()
2280 if (!ios->clock || ios->clock != host->clock) { in sdhci_set_ios()
2281 host->ops->set_clock(host, ios->clock); in sdhci_set_ios()
[all …]
H A Dmvsdio.c598 static void mvsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mvsd_set_ios() argument
604 if (ios->power_mode == MMC_POWER_UP) in mvsd_set_ios()
607 if (ios->clock == 0) { in mvsd_set_ios()
612 } else if (ios->clock != host->clock) { in mvsd_set_ios()
613 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; in mvsd_set_ios()
617 host->clock = ios->clock; in mvsd_set_ios()
620 ios->clock, host->base_clock / (m+1), m); in mvsd_set_ios()
631 if (ios->bus_mode == MMC_BUSMODE_PUSHPULL) in mvsd_set_ios()
634 if (ios->bus_width == MMC_BUS_WIDTH_4) in mvsd_set_ios()
645 if (ios->timing == MMC_TIMING_MMC_HS || in mvsd_set_ios()
[all …]
H A Dpxamci.c441 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in pxamci_set_ios() argument
445 if (ios->clock) { in pxamci_set_ios()
447 unsigned int clk = rate / ios->clock; in pxamci_set_ios()
452 if (ios->clock == 26000000) { in pxamci_set_ios()
465 if (rate / clk > ios->clock) in pxamci_set_ios()
481 if (host->power_mode != ios->power_mode) { in pxamci_set_ios()
484 host->power_mode = ios->power_mode; in pxamci_set_ios()
486 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); in pxamci_set_ios()
498 if (ios->power_mode == MMC_POWER_ON) in pxamci_set_ios()
502 if (ios->bus_width == MMC_BUS_WIDTH_4) in pxamci_set_ios()
H A Dmeson-mx-sdhc-mmc.c269 static int meson_mx_sdhc_set_clk(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_clk() argument
277 if (ios->clock) { in meson_mx_sdhc_set_clk()
278 ret = clk_set_rate(host->sd_clk, ios->clock); in meson_mx_sdhc_set_clk()
282 ios->clock, host->error); in meson_mx_sdhc_set_clk()
300 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) in meson_mx_sdhc_set_clk()
325 static void meson_mx_sdhc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_ios() argument
328 unsigned short vdd = ios->vdd; in meson_mx_sdhc_set_ios()
330 switch (ios->power_mode) { in meson_mx_sdhc_set_ios()
350 host->error = meson_mx_sdhc_set_clk(mmc, ios); in meson_mx_sdhc_set_ios()
354 switch (ios->bus_width) { in meson_mx_sdhc_set_ios()
[all …]
/OK3568_Linux_fs/kernel/include/linux/mmc/
H A Dhost.h117 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
144 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
153 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
166 struct mmc_ios *ios);
410 struct mmc_ios ios; /* current io bus settings */ member
557 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
567 struct mmc_ios *ios) in mmc_regulator_set_vqmmc() argument
593 return card->host->ios.timing == MMC_TIMING_SD_HS || in mmc_card_hs()
594 card->host->ios.timing == MMC_TIMING_MMC_HS; in mmc_card_hs()
600 return card->host->ios.timing >= MMC_TIMING_UHS_SDR12 && in mmc_card_uhs()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/iostreams/detail/
H A Dios.hpp38 #define BOOST_IOS std::ios
39 #define BOOST_IOSTREAMS_FAILURE std::ios::failure
49 #define BOOST_IOS std::ios
50 #define BOOST_IOSTREAMS_BASIC_IOS(ch, tr) std::ios
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/flann/
H A Dlsh_table.h104 … out << "Lsh Table Stats:\n" << std::setw(w) << std::setiosflags(std::ios::right) << "N buckets : "
105 … << stats.n_buckets_ << "\n" << std::setw(w) << std::setiosflags(std::ios::right) << "mean size : "
106 << std::setiosflags(std::ios::left) << stats.bucket_size_mean_ << "\n" << std::setw(w)
107 …<< std::setiosflags(std::ios::right) << "median size : " << stats.bucket_size_median_ << "\n" << s…
108 << std::setiosflags(std::ios::right) << "min size : " << std::setiosflags(std::ios::left)
109 …<< stats.bucket_size_min_ << "\n" << std::setw(w) << std::setiosflags(std::ios::right) << "max siz…
110 << std::setiosflags(std::ios::left) << stats.bucket_size_max_;
113 out << std::endl << std::setw(w) << std::setiosflags(std::ios::right) << "histogram : "
114 << std::setiosflags(std::ios::left);
/OK3568_Linux_fs/kernel/drivers/net/wireless/rsi/
H A Drsi_91x_sdio.c187 host->ios.chip_select = MMC_CS_DONTCARE; in rsi_reset_card()
188 host->ios.bus_mode = MMC_BUSMODE_OPENDRAIN; in rsi_reset_card()
189 host->ios.power_mode = MMC_POWER_UP; in rsi_reset_card()
190 host->ios.bus_width = MMC_BUS_WIDTH_1; in rsi_reset_card()
191 host->ios.timing = MMC_TIMING_LEGACY; in rsi_reset_card()
192 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
200 host->ios.clock = host->f_min; in rsi_reset_card()
201 host->ios.power_mode = MMC_POWER_ON; in rsi_reset_card()
202 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
211 host->ios.chip_select = MMC_CS_HIGH; in rsi_reset_card()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/util/
H A Dio.cpp28 std::ifstream file(filename, std::ios::binary); in read_file()
39 std::ifstream file(filename, std::ios::binary); in readFile()
56 std::ifstream src(source, std::ios::binary); in copyFile()
60 std::ofstream dst(destination, std::ios::binary); in copyFile()
/OK3568_Linux_fs/app/forlinx/quectelCM/
H A Dutil.c51 struct termios ios; in cm_open_dev() local
53 memset(&ios, 0, sizeof(ios)); in cm_open_dev()
54 tcgetattr( fd, &ios ); in cm_open_dev()
55 cfmakeraw(&ios); in cm_open_dev()
56 cfsetispeed(&ios, B115200); in cm_open_dev()
57 cfsetospeed(&ios, B115200); in cm_open_dev()
58 tcsetattr( fd, TCSANOW, &ios ); in cm_open_dev()
/OK3568_Linux_fs/kernel/drivers/staging/greybus/
H A Dsdio.c589 static void gb_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in gb_mmc_set_ios() argument
602 request.clock = cpu_to_le32(ios->clock); in gb_mmc_set_ios()
604 if (ios->vdd) in gb_mmc_set_ios()
605 vdd = 1 << (ios->vdd - GB_SDIO_VDD_SHIFT); in gb_mmc_set_ios()
608 request.bus_mode = ios->bus_mode == MMC_BUSMODE_OPENDRAIN ? in gb_mmc_set_ios()
612 switch (ios->power_mode) { in gb_mmc_set_ios()
629 switch (ios->bus_width) { in gb_mmc_set_ios()
643 switch (ios->timing) { in gb_mmc_set_ios()
681 switch (ios->signal_voltage) { in gb_mmc_set_ios()
695 switch (ios->drv_type) { in gb_mmc_set_ios()
[all …]

12345678