Home
last modified time | relevance | path

Searched refs:readSize (Results 1 – 12 of 12) sorted by relevance

/openbmc/estoraged/src/erase/
H A Dzero.cpp80 uint32_t readSize = currentIndex + blockSize < driveSize in verifyZero() local
87 while (read < readSize) in verifyZero()
90 fd.read(std::span{readArr}.subspan(read, readSize - read)) in verifyZero()
92 if (read == readSize) in verifyZero()
96 if (read > readSize) in verifyZero()
117 if (memcmp(readArr.data(), blockOfZeros.data(), readSize) != 0) in verifyZero()
124 currentIndex += readSize; in verifyZero()
H A Dpattern.cpp90 size_t readSize = currentIndex + blockSize < driveSize in verifyPattern() local
104 while (read < readSize) in verifyPattern()
107 fd.read(std::span{readArr}.subspan(read, readSize - read)) in verifyPattern()
109 if (read == readSize) in verifyPattern()
113 if (read > readSize) in verifyPattern()
135 if (!std::ranges::equal(std::span{randArr}.subspan(0, readSize), in verifyPattern()
136 std::span{readArr}.subspan(0, readSize))) in verifyPattern()
143 currentIndex = currentIndex + readSize; in verifyPattern()
/openbmc/phosphor-net-ipmid/sol/
H A Dsol_context.cpp236 auto readSize = std::min(bufferSize, MAX_PAYLOAD_SIZE); in prepareResponse() local
237 payloadCache.resize(sizeof(Payload) + readSize); in prepareResponse()
245 std::copy_n(handle, readSize, payloadCache.data() + sizeof(Payload)); in prepareResponse()
246 expectedCharCount = readSize; in prepareResponse()
262 auto readSize = std::min(bufferSize, MAX_PAYLOAD_SIZE); in sendOutboundPayload() local
264 payloadCache.resize(sizeof(Payload) + readSize); in sendOutboundPayload()
272 std::copy_n(handle, readSize, payloadCache.data() + sizeof(Payload)); in sendOutboundPayload()
273 expectedCharCount = readSize; in sendOutboundPayload()
H A Dsol_manager.cpp44 size_t readSize; in consoleInputHandler() local
47 readSize = cmd.get(); in consoleInputHandler()
56 std::vector<uint8_t> buffer(readSize); in consoleInputHandler()
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/
H A D0001-Fix-build-on-32bit.patch33 size_t readSize =
36 auto buf = bufReader->readBytes(readSize);
37 memcpy(buffer, buf.rawData(), readSize);
38 ret = readSize;
/openbmc/phosphor-power/tools/i2c/
H A Di2c.cpp155 const uint8_t* writeData, uint8_t& readSize, in processCallSMBus() argument
174 readSize = static_cast<uint8_t>(ret); in processCallSMBus()
175 std::memcpy(readData, buffer, readSize); in processCallSMBus()
179 const uint8_t* writeData, uint8_t& readSize, in processCallI2C() argument
244 readSize = readBuffer[0]; in processCallI2C()
245 std::memcpy(readData, &(readBuffer[1]), readSize); in processCallI2C()
498 const uint8_t* writeData, uint8_t& readSize, in processCall() argument
508 processCallSMBus(addr, writeSize, writeData, readSize, readData); in processCall()
513 processCallI2C(addr, writeSize, writeData, readSize, readData); in processCall()
H A Di2c.hpp131 const uint8_t* writeData, uint8_t& readSize,
158 const uint8_t* writeData, uint8_t& readSize,
217 uint8_t& readSize, uint8_t* readData) override;
H A Di2c_interface.hpp223 const uint8_t* writeData, uint8_t& readSize,
/openbmc/phosphor-bmc-code-mgmt/common/i2c/
H A Di2c.cpp36 uint8_t readSize) const in sendReceive()
59 if (readSize) in sendReceive()
63 msg[msgIndex].len = readSize; in sendReceive()
/openbmc/slpd-lite/
H A Dsock_channel.cpp25 int readSize = 0; in read() local
29 if (ioctl(sockfd, FIONREAD, &readSize) < 0) in read()
36 outBuffer.resize(readSize); in read()
/openbmc/phosphor-bmc-code-mgmt/common/include/i2c/
H A Di2c.hpp44 uint8_t readSize) const;
/openbmc/phosphor-power/tools/i2c/test/
H A Dmocked_i2c_interface.hpp38 uint8_t& readSize, uint8_t* readData),