| /openbmc/pldm/oem/ibm/libpldmresponder/ |
| H A D | file_io_by_type.cpp | 88 size_t fileSize = fs::file_size(path); in transferFileData() local 89 if (offset >= fileSize) in transferFileData() 93 "OFFSET", offset, "SIZE", fileSize, "FILE_HANDLE", fileHandle); in transferFileData() 96 if (offset + length > fileSize) in transferFileData() 98 length = fileSize - offset; in transferFileData() 197 size_t fileSize = fs::file_size(filePath); in readFile() local 198 if (offset >= fileSize) in readFile() 202 "OFFSET", offset, "SIZE", fileSize, "FILE_HANDLE", fileHandle); in readFile() 206 if (offset + length > fileSize) in readFile() 208 length = fileSize - offset; in readFile()
|
| H A D | file_table.cpp | 34 uint32_t fileSize = 0; in FileTable() local 72 fileSize = static_cast<uint32_t>(fs::file_size(fsPath)); in FileTable() 76 fileNameLength + sizeof(fileSize) + sizeof(traits)); in FileTable() 91 std::copy_n(reinterpret_cast<uint8_t*>(&fileSize), sizeof(fileSize), in FileTable() 93 std::advance(iter, sizeof(fileSize)); in FileTable()
|
| H A D | file_io.cpp | 403 auto fileSize = fs::file_size(value.fsPath); in readFileIntoMemory() local 404 if (!fileSize) in readFileIntoMemory() 408 "PATH", value.fsPath, "SIZE", fileSize); in readFileIntoMemory() 414 if (offset >= fileSize) in readFileIntoMemory() 418 "OFFSET", offset, "SIZE", fileSize, "FILE_HANDLE", fileHandle); in readFileIntoMemory() 425 if (offset + length > fileSize) in readFileIntoMemory() 427 length = fileSize - offset; in readFileIntoMemory() 517 auto fileSize = fs::file_size(value.fsPath); in writeFileFromMemory() local 518 if (!fileSize) in writeFileFromMemory() 522 "PATH", value.fsPath, "SIZE", fileSize); in writeFileFromMemory() [all …]
|
| H A D | file_io_type_pel.cpp | 144 off_t fileSize = lseek(fd, 0, SEEK_END); in read() local 145 if (fileSize == -1) in read() 150 if (offset >= fileSize) in read() 154 "OFFSET", offset, "SIZE", fileSize, "FILE_HANDLE", fileHandle); in read() 157 if (offset + length > fileSize) in read() 159 length = fileSize - offset; in read()
|
| H A D | file_io_type_lid.hpp | 207 size_t fileSize = fs::file_size(lidPath); in write() local 208 if (offset > fileSize) in write() 212 "OFFSET", offset, "SIZE", fileSize, "FILE_HANDLE", in write()
|
| /openbmc/phosphor-mboxd/vpnor/ |
| H A D | pnor_partition.cpp | 102 size_t fileSize = fs::file_size(path); in resize() local 103 if (maxAccess < fileSize) in resize() 134 size_t fileSize = fs::file_size(path); in fulfil() local 136 auto map = mmap(NULL, fileSize, mprot, MAP_SHARED, fd, 0); in fulfil() 141 path.c_str(), fileSize, errno); in fulfil() 149 memcpy(buf, (char *)map + offset, std::min(len, fileSize)); in fulfil() 156 munmap(map, fileSize); in fulfil()
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/open-vm-tools/open-vm-tools/ |
| H A D | 0010-Use-uintmax_t-for-handling-rlim_t.patch | 30 - __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max); 32 + // __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max));
|
| /openbmc/phosphor-debug-collector/ |
| H A D | bmc_dump_entry.hpp | 58 uint64_t timeStamp, uint64_t fileSize, in Entry() argument 62 phosphor::dump::Entry(bus, objPath.c_str(), dumpId, timeStamp, fileSize, in Entry() 87 void update(uint64_t timeStamp, uint64_t fileSize, in update() argument 91 size(fileSize); in update()
|
| H A D | faultlog_dump_entry.hpp | 48 uint64_t timeStamp, uint64_t fileSize, in Entry() argument 52 phosphor::dump::Entry(bus, objPath.c_str(), dumpId, timeStamp, fileSize, in Entry()
|
| H A D | dump_manager_bmc.cpp | 313 std::uintmax_t fileSize = std::filesystem::file_size(p); in getDirectorySize() local 314 size += std::ceil(static_cast<double>(fileSize) / 1024.0); in getDirectorySize()
|
| /openbmc/bmcweb/http/ |
| H A D | http_body.hpp | 64 std::optional<size_t> fileSize; 107 if (fileSize) in payloadSize() 111 return crow::utility::Base64Encoder::encodedSize(*fileSize); in payloadSize() 114 return fileSize; in payloadSize() 122 fileSize = std::nullopt; in clear() 139 fileSize = static_cast<size_t>(size); in open() 165 fileSize = static_cast<size_t>(size); in setFd() 63 std::optional<size_t> fileSize; global() member in bmcweb::HttpBody::value_type
|
| /openbmc/phosphor-ipmi-flash/tools/ |
| H A D | p2a.cpp | 54 std::int64_t fileSize; in sendContents() local 95 fileSize = sys->getSize(input.c_str()); in sendContents() 96 progress->start(fileSize); in sendContents()
|
| H A D | bt.cpp | 20 std::int64_t fileSize = sys->getSize(input.c_str()); in sendContents() local 21 progress->start(fileSize); in sendContents()
|
| H A D | lpc.cpp | 107 std::int64_t fileSize = sys->getSize(input.c_str()); in sendContents() local 117 progress->start(fileSize); in sendContents()
|
| H A D | net.cpp | 67 std::int64_t fileSize = sys->getSize(input.c_str()); in sendContents() local 112 progress->start(fileSize); in sendContents()
|
| /openbmc/hiomapd/vpnor/ |
| H A D | partition.cpp | 141 size_t fileSize = fs::file_size(path); in read() local 144 if (offset < fileSize) in read() 160 path.c_str(), fileSize, lerrno); in read() 164 access_len = std::min(len, fileSize - offset); in read() 173 len, access_len, path.c_str(), fileSize, offset, lerrno); in read()
|
| /openbmc/pldm/oem/ibm/requester/ |
| H A D | dbus_to_file_handler.hpp | 64 void sendNewFileAvailableCmd(uint64_t fileSize); 71 void newFileAvailableSendToHost(const uint32_t fileSize,
|
| /openbmc/pldm/pldmtool/oem/ibm/ |
| H A D | pldm_oem_ibm.cpp | 185 auto fileSize = *(reinterpret_cast<uint32_t*>(startptr)); in printFileAttrTable() local 186 fdata["FileSize"] = le32toh(fileSize); in printFileAttrTable() 187 startptr += sizeof(fileSize); in printFileAttrTable()
|
| /openbmc/ipmitool/lib/ |
| H A D | ipmi_fwum.c | 55 unsigned long fileSize); 336 KfwumSetupBuffersFromFile(const char *pFileName, unsigned long fileSize) in KfwumSetupBuffersFromFile() argument 350 count = fileSize / MAX_BUFFER_SIZE; in KfwumSetupBuffersFromFile() 351 modulus = fileSize % MAX_BUFFER_SIZE; in KfwumSetupBuffersFromFile() 1017 pInfo->fileSize = KWUM_GET_BYTE_AT_OFFSET(pBuf, in KfwumGetInfoFromFirmware() 1020 pInfo->fileSize|= (unsigned long)KWUM_GET_BYTE_AT_OFFSET(pBuf, in KfwumGetInfoFromFirmware() 1023 pInfo->fileSize|= (unsigned long)KWUM_GET_BYTE_AT_OFFSET(pBuf, in KfwumGetInfoFromFirmware() 1026 pInfo->fileSize|= (unsigned long)KWUM_GET_BYTE_AT_OFFSET(pBuf, in KfwumGetInfoFromFirmware() 1124 "File Size : %lu bytes\n", firmInfo.fileSize); in printf_kfwum_info()
|
| /openbmc/openbmc/poky/meta/recipes-extended/pbzip2/pbzip2/ |
| H A D | 0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch | 20 @@ -1220,7 +1220,7 @@ int producer_decompress(int hInfile, OFF_T fileSize, queue *fifo) 38 @@ -2072,7 +2072,7 @@ int directcompress(int hInfile, OFF_T fileSize, int blockSize, const char *Ou…
|
| /openbmc/pldm/libpldmresponder/ |
| H A D | bios_table.cpp | 43 auto fileSize = fs::file_size(filePath); in load() local 44 response.resize(currSize + fileSize); in load() 46 stream.read(reinterpret_cast<char*>(response.data() + currSize), fileSize); in load()
|
| /openbmc/ipmitool/include/ipmitool/ |
| H A D | ipmi_fwum.h | 106 unsigned long fileSize; member
|
| /openbmc/phosphor-host-ipmid/user_channel/ |
| H A D | passwd_mgr.cpp | 298 ssize_t fileSize = passwdFile.tellg(); in readPasswdFileData() local 300 std::vector<uint8_t> input(fileSize); in readPasswdFileData() 301 passwdFile.read(reinterpret_cast<char*>(input.data()), fileSize); in readPasswdFileData()
|
| /openbmc/phosphor-power/tools/power-utils/ |
| H A D | updater.cpp | 130 auto fileSize = std::filesystem::file_size(fileName); in validateFWFile() local 131 if (fileSize == 0) in validateFWFile()
|
| H A D | aei_updater.cpp | 514 const auto fileSize = std::filesystem::file_size(fspath); in downloadPsuFirmware() local 520 while ((bytesRead < fileSize) && !downloadFailed) in downloadPsuFirmware()
|