Home
last modified time | relevance | path

Searched refs:fileSize (Results 1 – 25 of 33) sorted by relevance

12

/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_io_by_type.cpp88 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 Dfile_table.cpp34 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 Dfile_io.cpp403 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 Dfile_io_type_pel.cpp144 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 Dfile_io_type_lid.hpp207 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()
H A Dinband_code_update.cpp492 auto fileSize = fs::file_size(filePath); in processCodeUpdateLid() local
493 fileSize -= htonl(header.headerSize); in processCodeUpdateLid()
494 if (fileSize < htonl(header.lidSize)) in processCodeUpdateLid()
/openbmc/phosphor-mboxd/vpnor/
H A Dpnor_partition.cpp102 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/pldm/oem/ibm/requester/
H A Ddbus_to_file_handler.cpp33 void DbusToFileHandler::sendNewFileAvailableCmd(uint64_t fileSize) in sendNewFileAvailableCmd() argument
52 fileHandle, fileSize, request); in sendNewFileAvailableCmd()
189 size_t fileSize = fs::file_size(resDumpFilePath); in processNewResourceDump() local
191 sendNewFileAvailableCmd(fileSize); in processNewResourceDump()
239 uint32_t fileSize = fs::file_size(certFilePath); in newCsrFileAvailable() local
241 newFileAvailableSendToHost(fileSize, (uint32_t)stoi(fileHandle), in newCsrFileAvailable()
246 const uint32_t fileSize, const uint32_t fileHandle, const uint16_t type) in newFileAvailableSendToHost() argument
261 encode_new_file_req(instanceId, type, fileHandle, fileSize, request); in newFileAvailableSendToHost()
H A Ddbus_to_file_handler.hpp64 void sendNewFileAvailableCmd(uint64_t fileSize);
71 void newFileAvailableSendToHost(const uint32_t fileSize,
/openbmc/bmcweb/http/
H A Dhttp_body.hpp55 std::optional<size_t> fileSize; member in bmcweb::HttpBody::value_type
85 if (fileSize) in payloadSize()
89 return crow::utility::Base64Encoder::encodedSize(*fileSize); in payloadSize()
92 return fileSize; in payloadSize()
100 fileSize = std::nullopt; in clear()
117 fileSize = static_cast<size_t>(size); in open()
143 fileSize = static_cast<size_t>(size); in setFd()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/open-vm-tools/open-vm-tools/
H A D0010-Use-uintmax_t-for-handling-rlim_t.patch30 - __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 Dbmc_dump_entry.hpp58 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 Dfaultlog_dump_entry.hpp48 uint64_t timeStamp, uint64_t fileSize, in Entry() argument
52 phosphor::dump::Entry(bus, objPath.c_str(), dumpId, timeStamp, fileSize, in Entry()
H A Ddump_manager_bmc.cpp313 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/hiomapd/vpnor/
H A Dpartition.cpp141 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/phosphor-ipmi-flash/tools/
H A Dp2a.cpp54 std::int64_t fileSize; in sendContents() local
95 fileSize = sys->getSize(input.c_str()); in sendContents()
96 progress->start(fileSize); in sendContents()
H A Dbt.cpp20 std::int64_t fileSize = sys->getSize(input.c_str()); in sendContents() local
21 progress->start(fileSize); in sendContents()
H A Dlpc.cpp107 std::int64_t fileSize = sys->getSize(input.c_str()); in sendContents() local
117 progress->start(fileSize); in sendContents()
H A Dnet.cpp67 std::int64_t fileSize = sys->getSize(input.c_str()); in sendContents() local
112 progress->start(fileSize); in sendContents()
/openbmc/pldm/pldmtool/oem/ibm/
H A Dpldm_oem_ibm.cpp185 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 Dipmi_fwum.c55 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 D0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch20 @@ -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 Dbios_table.cpp44 auto fileSize = fs::file_size(filePath); in load() local
45 response.resize(currSize + fileSize); in load()
47 stream.read(reinterpret_cast<char*>(response.data() + currSize), fileSize); in load()
/openbmc/phosphor-host-ipmid/user_channel/
H A Dpasswd_mgr.cpp298 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/ipmitool/include/ipmitool/
H A Dipmi_fwum.h106 unsigned long fileSize; member

12