Home
last modified time | relevance | path

Searched refs:fileHandle (Results 1 – 22 of 22) sorted by relevance

/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dfile_io_by_type.cpp127 getHandlerByType(uint16_t fileType, uint32_t fileHandle) in getHandlerByType() argument
133 return std::make_unique<PelHandler>(fileHandle); in getHandlerByType()
137 return std::make_unique<LidHandler>(fileHandle, true); in getHandlerByType()
141 return std::make_unique<LidHandler>(fileHandle, false); in getHandlerByType()
145 return std::make_unique<LidHandler>(fileHandle, false, in getHandlerByType()
152 return std::make_unique<DumpHandler>(fileHandle, fileType); in getHandlerByType()
158 return std::make_unique<CertHandler>(fileHandle, fileType); in getHandlerByType()
162 return std::make_unique<ProgressCodeHandler>(fileHandle); in getHandlerByType()
166 return std::make_unique<LidHandler>(fileHandle, false, in getHandlerByType()
171 return std::make_unique<keywordHandler>(fileHandle, fileType); in getHandlerByType()
[all …]
H A Dfile_io_type_cert.cpp59 filePath += "CSR_" + std::to_string(fileHandle); in readIntoMemory()
78 "FILE_HANDLE", fileHandle); in read()
80 filePath += "CSR_" + std::to_string(fileHandle); in read()
138 filePath += "ClientCert_" + std::to_string(fileHandle); in write()
168 certObjPath + std::to_string(fileHandle), certEntryIntf, in write()
174 "FILE_HANDLE", fileHandle); in write()
196 "FILE_HANDLE", fileHandle); in write()
228 "FILE_HANDLE", fileHandle); in newFileAvailable()
270 "FILE_HANDLE", fileHandle); in newFileAvailableWithMetaData()
279 "META_DATA", metaDataValue1, "FILE_HANDLE", fileHandle); in newFileAvailableWithMetaData()
[all …]
H A Dfile_io.cpp347 uint32_t fileHandle = 0; in readFileIntoMemory() local
380 value = table.at(fileHandle); in readFileIntoMemory()
450 uint32_t fileHandle = 0; in writeFileFromMemory() local
610 uint32_t fileHandle = 0; in readFile() local
685 fileHandle); in readFile()
713 uint32_t fileHandle = 0; in writeFile() local
824 uint32_t fileHandle{}; in rwFileByTypeIntoMemory() local
907 uint32_t fileHandle{}; in writeFileByType() local
964 uint32_t fileHandle{}; in readFileByType() local
1018 uint32_t fileHandle{}; in fileAck() local
[all …]
H A Dfile_io_by_type.hpp117 FileHandler(uint32_t fileHandle) : fileHandle(fileHandle) {} in FileHandler() argument
124 uint32_t fileHandle; //!< file handle indicating name of file or invalid member in pldm::responder::FileHandler
134 getHandlerByType(uint16_t fileType, uint32_t fileHandle);
H A Dfile_io_type_pel.cpp108 method.append(fileHandle); in readIntoMemory()
119 "FILE_HANDLE", lg2::hex, fileHandle, "ERROR", e); in readIntoMemory()
139 method.append(fileHandle); in read()
154 "OFFSET", offset, "SIZE", fileSize, "FILE_HANDLE", fileHandle); in read()
192 "FILE_HANDLE", lg2::hex, fileHandle, "ERROR", e); in read()
240 "FILE_HANDLE", lg2::hex, fileHandle, "ERROR", e); in fileAck()
251 method.append(fileHandle); in fileAck()
258 "FILE_HANDLE", lg2::hex, fileHandle, "ERROR", e); in fileAck()
278 fileHandle); in fileAck()
286 method.append(fileHandle, reason); in fileAck()
[all …]
H A Dfile_io_type_dump.hpp21 DumpHandler(uint32_t fileHandle, uint16_t fileType) : in DumpHandler() argument
22 FileHandler(fileHandle), dumpType(fileType) in DumpHandler()
43 std::string findDumpObjPath(uint32_t fileHandle);
44 std::string getOffloadUri(uint32_t fileHandle);
H A Dfile_io_type_dump.cpp44 std::string DumpHandler::findDumpObjPath(uint32_t fileHandle) in findDumpObjPath() argument
92 if (fileHandle == dumpId) in findDumpObjPath()
130 method.append(fileHandle, length); in newFileAvailable()
144 std::string DumpHandler::getOffloadUri(uint32_t fileHandle) in getOffloadUri() argument
146 auto path = findDumpObjPath(fileHandle); in getOffloadUri()
175 auto socketInterface = getOffloadUri(fileHandle); in writeFromMemory()
201 auto socketInterface = getOffloadUri(fileHandle); in write()
214 auto path = findDumpObjPath(fileHandle); in fileAck()
311 auto socketInterface = getOffloadUri(fileHandle); in fileAck()
H A Dfile_io_type_lid.hpp32 LidHandler(uint32_t fileHandle, bool permSide, uint8_t lidType = 0) : in LidHandler() argument
33 FileHandler(fileHandle), lidType(lidType) in LidHandler()
39 stream << std::hex << fileHandle; in LidHandler()
90 stream << std::hex << fileHandle; in constructLIDPath()
114 stream << std::hex << fileHandle; in writeFromMemory()
197 stream << std::hex << fileHandle; in write()
213 fileHandle); in write()
H A Dfile_io_type_pel.hpp20 PelHandler(uint32_t fileHandle) : FileHandler(fileHandle) {} in PelHandler() argument
H A Dfile_io_type_progress_src.hpp21 ProgressCodeHandler(uint32_t fileHandle) : FileHandler(fileHandle) {} in ProgressCodeHandler() argument
H A Dfile_io_type_vpd.hpp20 keywordHandler(uint32_t fileHandle, uint16_t /* fileType */) : in keywordHandler() argument
21 FileHandler(fileHandle) in keywordHandler()
H A Dfile_io_type_cert.hpp27 CertHandler(uint32_t fileHandle, uint16_t fileType) : in CertHandler() argument
28 FileHandler(fileHandle), certType(fileType) in CertHandler()
H A Dfile_io.hpp301 auto fileHandle = in Handler() local
311 ->newCsrFileAvailable(csr, fileHandle); in Handler()
H A Dfile_io_type_pcie.cpp86 PCIeInfoHandler::PCIeInfoHandler(uint32_t fileHandle, uint16_t fileType) : in PCIeInfoHandler() argument
87 FileHandler(fileHandle), infoType(fileType) in PCIeInfoHandler()
H A Dfile_io_type_pcie.hpp142 PCIeInfoHandler(uint32_t fileHandle, uint16_t fileType);
/openbmc/pldm/oem/ibm/test/
H A Dlibpldmresponder_fileio_test.cpp209 uint32_t fileHandle = 0; in TEST() local
219 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST()
239 uint32_t fileHandle = 2; in TEST_F() local
250 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST_F()
286 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST_F()
321 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST_F()
359 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST_F()
393 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST()
429 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST_F()
465 memcpy(request->payload, &fileHandle, sizeof(fileHandle)); in TEST_F()
[all …]
/openbmc/bmcweb/http/
H A Dhttp_body.hpp41 DuplicatableFileHandle fileHandle; member in bmcweb::HttpBody::value_type
53 return fileHandle.fileHandle; in file()
68 if (!fileHandle.fileHandle.is_open()) in payloadSize()
86 fileHandle.fileHandle = boost::beast::file_posix(); in clear()
94 fileHandle.fileHandle.open(path, mode, ec); in open()
100 uint64_t size = fileHandle.fileHandle.size(ec2); in open()
111 int fadvise = posix_fadvise(fileHandle.fileHandle.native_handle(), 0, 0, in open()
122 fileHandle.fileHandle.native_handle(fd); in setFd()
125 uint64_t size = fileHandle.fileHandle.size(ec2); in setFd()
/openbmc/libpldm/tests/oem/ibm/
H A Dfileio.cpp19 uint32_t fileHandle = 0x12345678; in TEST() local
60 uint32_t fileHandle = 0; in TEST() local
240 uint32_t fileHandle = 0; in TEST() local
659 uint32_t fileHandle = 0; in TEST() local
798 uint32_t fileHandle = 0; in TEST() local
941 uint32_t fileHandle = 0; in TEST() local
1103 uint32_t fileHandle = 0; in TEST() local
1179 uint32_t fileHandle = 0; in TEST() local
1294 uint32_t fileHandle = 0; in TEST() local
1376 uint32_t fileHandle = 0; in TEST() local
[all …]
/openbmc/pldm/oem/ibm/requester/
H A Ddbus_to_file_handler.cpp48 uint32_t fileHandle = 1; in sendNewFileAvailableCmd() local
52 fileHandle, fileSize, request); in sendNewFileAvailableCmd()
148 std::ofstream fileHandle; in processNewResourceDump() local
151 if (!fileHandle) in processNewResourceDump()
172 auto fileFunc = [&fileHandle](auto& paramBuf) { in processNewResourceDump()
174 fileHandle.write((char*)&paramSize, sizeof(paramSize)); in processNewResourceDump()
175 fileHandle << paramBuf; in processNewResourceDump()
188 fileHandle.close(); in processNewResourceDump()
211 const std::string fileHandle) in newCsrFileAvailable() argument
224 fs::path certFilePath = certDirPath / ("CSR_" + fileHandle); in newCsrFileAvailable()
[all …]
H A Ddbus_to_file_handler.hpp58 const std::string fileHandle);
72 const uint32_t fileHandle,
/openbmc/bmcweb/include/
H A Dduplicatable_file_handle.hpp5 boost::beast::file_posix fileHandle; member
13 fileHandle.native_handle(dup(other.fileHandle.native_handle())); in DuplicatableFileHandle()
21 fileHandle.native_handle(dup(other.fileHandle.native_handle())); in operator =()
/openbmc/dbus-sensors/src/nvme/
H A DNVMeBasicContext.cpp88 FileHandle fileHandle(devpath); in execBasicQuery() local
92 if (::ioctl(fileHandle.handle(), I2C_SLAVE, addr) == -1) in execBasicQuery()
104 size = i2c_smbus_read_block_data(fileHandle.handle(), cmd, resp.data()); in execBasicQuery()