Home
last modified time | relevance | path

Searched refs:ios (Results 76 – 100 of 234) sorted by relevance

12345678910

/openbmc/phosphor-state-manager/
H A Dscheduled_host_transition.cpp262 std::ofstream os(path.c_str(), std::ios::binary); in serializeScheduledValues()
278 std::ifstream is(path.c_str(), std::ios::in | std::ios::binary); in deserializeScheduledValues()
H A Dchassis_state_manager.cpp653 std::ofstream os(path.c_str(), std::ios::binary); in serializePOH()
666 std::ifstream is(path.c_str(), std::ios::in | std::ios::binary); in deserializePOH()
709 std::ofstream os(path.c_str(), std::ios::binary); in serializeStateChangeTime()
724 std::ifstream is(path.c_str(), std::ios::in | std::ios::binary); in deserializeStateChangeTime()
/openbmc/phosphor-event/
H A Dmessage.cpp94 f.open( buffer.str(), ios::binary); in is_file_a_log()
271 myfile.open(buffer.str() , ios::out|ios::binary); in create_log_event()
299 f.open( buffer.str(), ios::binary ); in open()
/openbmc/linux/drivers/mmc/host/
H A Drenesas_sdhi_core.c145 bool need_slow_clkh = host->mmc->ios.timing == MMC_TIMING_MMC_HS400; in renesas_sdhi_clk_update()
217 if (!(host->mmc->ios.timing == MMC_TIMING_MMC_HS400)) in renesas_sdhi_set_clock()
252 struct mmc_ios *ios) in renesas_sdhi_start_signal_voltage_switch() argument
259 switch (ios->signal_voltage) { in renesas_sdhi_start_signal_voltage_switch()
275 return ios->signal_voltage == in renesas_sdhi_start_signal_voltage_switch()
278 ret = mmc_regulator_set_vqmmc(host->mmc, ios); in renesas_sdhi_start_signal_voltage_switch()
556 static int renesas_sdhi_prepare_hs400_tuning(struct mmc_host *mmc, struct mmc_ios *ios) in renesas_sdhi_prepare_hs400_tuning() argument
736 host->mmc->ios.timing == MMC_TIMING_MMC_HS400) { in renesas_sdhi_manual_correction()
806 if (!(host->mmc->ios.timing == MMC_TIMING_UHS_SDR104) && in renesas_sdhi_check_scc_error()
807 !(host->mmc->ios.timing == MMC_TIMING_MMC_HS200) && in renesas_sdhi_check_scc_error()
[all …]
H A Dsdhci-pci-gli.c522 struct mmc_ios *ios = &host->mmc->ios; in sdhci_gl9750_set_clock() local
534 if (clock == 200000000 && ios->timing == MMC_TIMING_UHS_SDR104) { in sdhci_gl9750_set_clock()
719 struct mmc_ios *ios = &host->mmc->ios; in sdhci_gl9755_set_clock() local
733 if (clock == 200000000 && ios->timing == MMC_TIMING_UHS_SDR104) { in sdhci_gl9755_set_clock()
908 struct mmc_ios *ios = &host->mmc->ios; in sdhci_gl9767_set_clock() local
929 if (clock == 200000000 && ios->timing == MMC_TIMING_UHS_SDR104) { in sdhci_gl9767_set_clock()
1003 mmc->ios.timing &= ~(MMC_TIMING_SD_EXP | MMC_TIMING_SD_EXP_1_2V); in gl9767_init_sd_express()
1063 mmc->ios.timing &= ~(MMC_TIMING_SD_EXP | MMC_TIMING_SD_EXP_1_2V); in gl9767_init_sd_express()
1178 struct mmc_ios *ios) in gl9763e_hs400_enhanced_strobe() argument
1184 if (ios->enhanced_strobe) in gl9763e_hs400_enhanced_strobe()
[all …]
H A Ddw_mmc-exynos.c311 static void dw_mci_exynos_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_exynos_set_ios() argument
314 unsigned int wanted = ios->clock; in dw_mci_exynos_set_ios()
315 u32 timing = ios->timing, clksel; in dw_mci_exynos_set_ios()
327 if (ios->bus_width == MMC_BUS_WIDTH_8) in dw_mci_exynos_set_ios()
537 struct mmc_ios *ios) in dw_mci_exynos_prepare_hs400_tuning() argument
542 dw_mci_exynos_adjust_clock(host, (ios->clock) << 1); in dw_mci_exynos_prepare_hs400_tuning()
H A Dmxcmmc.c822 static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mxcmci_set_ios() argument
831 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios()
848 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios()
853 if (host->power_mode != ios->power_mode) { in mxcmci_set_ios()
854 host->power_mode = ios->power_mode; in mxcmci_set_ios()
855 mxcmci_set_power(host, ios->vdd); in mxcmci_set_ios()
857 if (ios->power_mode == MMC_POWER_ON) in mxcmci_set_ios()
861 if (ios->clock) { in mxcmci_set_ios()
862 mxcmci_set_clk_rate(host, ios->clock); in mxcmci_set_ios()
868 host->clock = ios->clock; in mxcmci_set_ios()
H A Dmoxart-mmc.c483 static void moxart_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in moxart_set_ios() argument
492 if (ios->clock) { in moxart_set_ios()
494 if (ios->clock >= host->sysclk / (2 * (div + 1))) in moxart_set_ios()
504 if (ios->power_mode == MMC_POWER_OFF) { in moxart_set_ios()
508 if (ios->vdd < MIN_POWER) in moxart_set_ios()
511 power = ios->vdd - MIN_POWER; in moxart_set_ios()
517 switch (ios->bus_width) { in moxart_set_ios()
H A Dsdricoh_cs.c335 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 Dsdhci-tegra.c530 struct mmc_ios *ios = &host->mmc->ios; in tegra_sdhci_pad_autocalib() local
536 switch (ios->timing) { in tegra_sdhci_pad_autocalib()
544 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) in tegra_sdhci_pad_autocalib()
579 ret = tegra_sdhci_set_padctrl(host, ios->signal_voltage, false); in tegra_sdhci_pad_autocalib()
793 struct mmc_ios *ios) in tegra_sdhci_hs400_enhanced_strobe() argument
800 if (ios->enhanced_strobe) { in tegra_sdhci_hs400_enhanced_strobe()
1104 struct mmc_ios *ios) in sdhci_tegra_start_signal_voltage_switch() argument
1111 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) { in sdhci_tegra_start_signal_voltage_switch()
1115 ret = sdhci_start_signal_voltage_switch(mmc, ios); in sdhci_tegra_start_signal_voltage_switch()
1116 } else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) { in sdhci_tegra_start_signal_voltage_switch()
[all …]
H A Dushc.c371 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 Djz4740_mmc.c938 static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in jz4740_mmc_set_ios() argument
943 if (ios->clock) in jz4740_mmc_set_ios()
944 jz4740_mmc_set_clock_rate(host, ios->clock); in jz4740_mmc_set_ios()
946 switch (ios->power_mode) { in jz4740_mmc_set_ios()
950 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in jz4740_mmc_set_ios()
976 switch (ios->bus_width) { in jz4740_mmc_set_ios()
999 static int jz4740_voltage_switch(struct mmc_host *mmc, struct mmc_ios *ios) in jz4740_voltage_switch() argument
1005 ret = mmc_regulator_set_vqmmc(mmc, ios); in jz4740_voltage_switch()
1010 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) in jz4740_voltage_switch()
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_io_type_pcie.cpp110 std::ofstream pcieData(infoFile, std::ios::out | std::ios::binary); in writeFromMemory()
139 std::ofstream pcieData(infoFile, std::ios::out | std::ios::binary | in write()
140 std::ios::app); in write()
/openbmc/linux/drivers/mmc/core/
H A Dmmc.c896 switch (1 << host->ios.vdd) { in __mmc_select_powerclass()
898 if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) in __mmc_select_powerclass()
916 if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) in __mmc_select_powerclass()
961 bus_width = host->ios.bus_width; in mmc_select_powerclass()
1103 bus_width = host->ios.bus_width; in mmc_select_hs_ddr()
1175 host->ios.bus_width == MMC_BUS_WIDTH_8)) in mmc_select_hs400()
1438 host->ios.enhanced_strobe = true; in mmc_select_hs400es()
1468 old_signal_voltage = host->ios.signal_voltage; in mmc_select_hs200()
1502 old_timing = host->ios.timing; in mmc_select_hs200()
1503 old_clock = host->ios.clock; in mmc_select_hs200()
[all …]
H A Dsd_ops.c224 host->ios.timing = MMC_TIMING_SD_EXP_1_2V; in mmc_send_if_cond_pcie()
226 host->ios.timing = MMC_TIMING_SD_EXP; in mmc_send_if_cond_pcie()
232 return host->ops->init_sd_express(host, &host->ios); in mmc_send_if_cond_pcie()
/openbmc/openpower-hw-diags/analyzer/
H A Dinitialize_isolator.cpp30 std::ifstream file{path, std::ios::binary}; in __getChipDataFiles()
91 std::ifstream file{i_path, std::ios::binary}; in __initialize()
/openbmc/phosphor-led-sysfs/test/
H A Dsysfs.cpp67 std::ofstream f(p, std::ios::out); in FakeSysfsLed()
72 std::ofstream f(p, std::ios::out); in FakeSysfsLed()
/openbmc/linux/block/
H A Dblk-cgroup.c629 dst->ios[i] = src->ios[i]; in blkg_iostat_set()
981 dst->ios[i] += src->ios[i]; in blkg_iostat_add()
991 dst->ios[i] -= src->ios[i]; in blkg_iostat_sub()
1123 tmp.ios[BLKG_IOSTAT_READ] += in blkcg_fill_root_iostats()
1124 cpu_dkstats->ios[STAT_READ]; in blkcg_fill_root_iostats()
1125 tmp.ios[BLKG_IOSTAT_WRITE] += in blkcg_fill_root_iostats()
1126 cpu_dkstats->ios[STAT_WRITE]; in blkcg_fill_root_iostats()
1127 tmp.ios[BLKG_IOSTAT_DISCARD] += in blkcg_fill_root_iostats()
1128 cpu_dkstats->ios[STAT_DISCARD]; in blkcg_fill_root_iostats()
1167 rios = bis->cur.ios[BLKG_IOSTAT_READ]; in blkcg_print_one_stat()
[all …]
H A Dgenhd.c113 stat->ios[group] += ptr->ios[group]; in part_stat_read_all()
969 stat.ios[STAT_READ], in part_stat_show()
973 stat.ios[STAT_WRITE], in part_stat_show()
984 stat.ios[STAT_DISCARD], in part_stat_show()
988 stat.ios[STAT_FLUSH], in part_stat_show()
1271 stat.ios[STAT_READ], in diskstats_show()
1276 stat.ios[STAT_WRITE], in diskstats_show()
1288 stat.ios[STAT_DISCARD], in diskstats_show()
1293 stat.ios[STAT_FLUSH], in diskstats_show()
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfirmware_state_notyetstarted_tarball_unittest.cpp68 EXPECT_CALL(*hashImageMock, open(blobId, std::ios::out)) in openToInProgress()
73 EXPECT_CALL(*imageMock, open(blobId, std::ios::out)) in openToInProgress()
/openbmc/openpower-pnor-code-mgmt/ubi/
H A Dserialize.cpp56 std::ifstream varInput(varPath.c_str(), std::ios::in); in restoreFromFile()
72 std::ifstream rwInput(rwPath.c_str(), std::ios::in); in restoreFromFile()
/openbmc/openpower-vpd-parser/test/vpd-manager-test/
H A Deditor_test.cpp40 std::ifstream vpdFile(pathToFile, std::ios::binary); in readFile()
55 std::ios::binary); in processJson()
/openbmc/phosphor-debug-collector/
H A Ddump_entry.cpp81 std::ofstream os(serializePath, std::ios::binary); in serialize()
125 std::ifstream is(serializePath, std::ios::binary); in deserialize()
/openbmc/pldm/libpldmresponder/
H A Dbios_table.cpp37 std::ofstream stream(filePath.string(), std::ios::out | std::ios::binary); in store()
46 std::ifstream stream(filePath.string(), std::ios::in | std::ios::binary); in load()
/openbmc/pldm/fw-update/
H A Dupdate_manager.cpp55 std::ios::binary | std::ios::in | std::ios::ate); in processPackage()

12345678910