Searched refs:smbiosFile (Results 1 – 4 of 4) sorted by relevance
/openbmc/smbios-mdr/src/smbios-ipmi-blobs/ |
H A D | handler.cpp | 215 std::ofstream smbiosFile(mdrDefaultFile, in commit() local 217 if (!smbiosFile.good()) in commit() 225 smbiosFile.exceptions(std::ofstream::badbit | std::ofstream::failbit); in commit() 228 smbiosFile.write(reinterpret_cast<char*>(&mdrHdr), in commit() 230 smbiosFile.write(reinterpret_cast<char*>(blobPtr->buffer.data()), in commit() 232 smbiosFile.close(); in commit()
|
/openbmc/smbios-mdr/src/ |
H A D | mdrv2.cpp | 38 std::ifstream smbiosFile(smbiosFilePath, std::ios_base::binary); in getDirectoryInformation() local 39 if (!smbiosFile.good()) in getDirectoryInformation() 219 std::ifstream smbiosFile(smbiosFilePath, std::ios_base::binary); in readDataFromFlash() local 220 if (!smbiosFile.good()) in readDataFromFlash() 226 smbiosFile.clear(); in readDataFromFlash() 227 smbiosFile.seekg(0, std::ios_base::end); in readDataFromFlash() 228 size_t fileLength = smbiosFile.tellg(); in readDataFromFlash() 229 smbiosFile.seekg(0, std::ios_base::beg); in readDataFromFlash() 236 smbiosFile.read(reinterpret_cast<char*>(mdrHdr), sizeof(MDRSMBIOSHeader)); in readDataFromFlash() 241 smbiosFile.close(); in readDataFromFlash() [all …]
|
H A D | system.cpp | 136 std::ofstream smbiosFile(smbiosFilePath, std::ios_base::trunc); in version() local 137 if (!smbiosFile.good()) in version() 143 smbiosFile.clear(); in version() 144 smbiosFile.close(); in version()
|
/openbmc/intel-ipmi-oem/src/ |
H A D | smbiosmdrv2handler.cpp | 821 std::ofstream smbiosFile(mdrType2File, in storeDatatoFlash() local 823 if (!smbiosFile.good()) in storeDatatoFlash() 832 smbiosFile.write(reinterpret_cast<char*>(mdrHdr), in storeDatatoFlash() 834 smbiosFile.write(reinterpret_cast<char*>(data), mdrHdr->dataSize); in storeDatatoFlash()
|