Home
last modified time | relevance | path

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

/openbmc/phosphor-ipmi-flash/tools/
H A Dbt.cpp27 int bytesRead; in sendContents() local
32 bytesRead = sys->read(inputFd, readBuffer, sizeof(readBuffer)); in sendContents()
33 if (bytesRead > 0) in sendContents()
37 &readBuffer[bytesRead]); in sendContents()
39 offset += bytesRead; in sendContents()
40 progress->updateProgress(bytesRead); in sendContents()
42 } while (bytesRead > 0); in sendContents()
H A Dp2a.cpp100 int bytesRead = 0; in sendContents() local
105 bytesRead = sys->read(*inputFd, readBuffer.data(), readBuffer.size()); in sendContents()
106 if (bytesRead > 0) in sendContents()
109 std::span<const std::uint8_t>(readBuffer.data(), bytesRead)); in sendContents()
115 chunk.length = bytesRead; in sendContents()
121 offset += bytesRead; in sendContents()
122 progress->updateProgress(bytesRead); in sendContents()
124 } while (bytesRead > 0); in sendContents()
H A Dlpc.cpp123 int bytesRead = 0; in sendContents() local
128 bytesRead = in sendContents()
130 if (bytesRead > 0) in sendContents()
132 if (!io->write(host_lpc_buf.address, bytesRead, in sendContents()
140 chunk.length = bytesRead; in sendContents()
146 offset += bytesRead; in sendContents()
147 progress->updateProgress(bytesRead); in sendContents()
149 } while (bytesRead > 0); in sendContents()
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/
H A Dnet_handler.cpp114 std::uint32_t bytesRead = 0; in copyFrom() local
118 ret = read(*connFd, data.data() + bytesRead, length - bytesRead); in copyFrom()
127 bytesRead += ret; in copyFrom()
128 } while (ret > 0 && bytesRead < length); in copyFrom()
130 if (bytesRead != length) in copyFrom()
134 length, bytesRead); in copyFrom()
135 data.resize(bytesRead); in copyFrom()
/openbmc/pldm/fw-update/
H A Dupdate.cpp32 ssize_t bytesRead; in startUpdate() local
35 while ((bytesRead = read(image, buffer, sizeof(buffer))) > 0) in startUpdate()
37 imageStream.write(buffer, bytesRead); in startUpdate()
40 if (bytesRead < 0) in startUpdate()
/openbmc/bios-bmc-smm-error-logger/src/
H A Dbuffer.cpp80 std::vector<uint8_t> bytesRead = in readBufferHeader() local
83 if (bytesRead.size() != headerSize) in readBufferHeader()
87 bytesRead.size(), headerSize)); in readBufferHeader()
91 *reinterpret_cast<struct CircularBufferHeader*>(bytesRead.data()); in readBufferHeader()
175 std::vector<uint8_t> bytesRead = dataInterface->read( in wraparoundRead() local
177 if (bytesRead.size() != numBytesToReadTillQueueEnd) in wraparoundRead()
182 bytesRead.size(), numBytesToReadTillQueueEnd)); in wraparoundRead()
205 bytesRead.insert(bytesRead.end(), wrappedBytesRead.begin(), in wraparoundRead()
211 return bytesRead; in wraparoundRead()
219 std::vector<uint8_t> bytesRead = wraparoundRead( in readEntryHeader() local
[all …]
/openbmc/bmcweb/features/kvm/
H A Dkvm_websocket.hpp87 std::size_t bytesRead) { in doRead() argument
94 logPtr(&conn), bytesRead); in doRead()
107 outputBuffer.commit(bytesRead); in doRead()
110 bytesRead); in doRead()
114 outputBuffer.consume(bytesRead); in doRead()
/openbmc/dbus-sensors/src/psu/
H A DPSUSensor.cpp171 size_t bytesRead) { in setupRead() argument
178 self->handleResponse(ec, bytesRead); in setupRead()
203 size_t bytesRead) in handleResponse() argument
216 if (err || bytesRead == 0) in handleResponse()
228 bufferRef[bytesRead] = '\0'; in handleResponse()
H A DPSUSensor.hpp60 void handleResponse(const boost::system::error_code& err, size_t bytesRead);
/openbmc/dbus-sensors/src/hwmon-temp/
H A DHwmonTempSensor.cpp147 [weakRef](const boost::system::error_code& ec, std::size_t bytesRead) { in setupRead() argument
151 self->handleResponse(ec, bytesRead); in setupRead()
175 size_t bytesRead) in handleResponse() argument
187 const char* bufEnd = readBuf.data() + bytesRead; in handleResponse()
H A DHwmonTempSensor.hpp69 void handleResponse(const boost::system::error_code& err, size_t bytesRead);
/openbmc/bmcweb/http/
H A Dwebsocket_impl.hpp240 const boost::beast::error_code& ec, size_t bytesRead) in afterRead() argument
267 handleMessage(bytesRead); in afterRead()
327 void handleMessage(size_t bytesRead) in handleMessage() argument
334 [this, self(shared_from_this()), bytesRead]() { in handleMessage()
340 inBuffer.consume(bytesRead); in handleMessage()
352 inBuffer.consume(bytesRead); in handleMessage()
H A Dserver_sent_event_impl.hpp116 const boost::system::error_code& ec, size_t bytesRead) in afterReadError() argument
118 BMCWEB_LOG_DEBUG("Read {}", bytesRead); in afterReadError()
/openbmc/bmcweb/redfish-core/include/
H A Dgzfile.hpp67 int bytesRead = gzread(logStream, bufferStr.data(), in readFile() local
70 if (bytesRead < 0) in readFile()
75 bufferStr.resize(static_cast<size_t>(bytesRead)); in readFile()
/openbmc/dbus-sensors/src/fan/
H A DTachSensor.cpp121 [weakRef](const boost::system::error_code& ec, std::size_t bytesRead) { in setupRead() argument
125 self->handleResponse(ec, bytesRead); in setupRead()
149 size_t bytesRead) in handleResponse() argument
175 const char* bufEnd = readBuf.data() + bytesRead; in handleResponse()
H A DTachSensor.hpp96 void handleResponse(const boost::system::error_code& err, size_t bytesRead);
/openbmc/bmcweb/features/virtual_media/
H A Dvm_websocket.hpp151 const boost::system::error_code& ec, std::size_t bytesRead) { in doRead() argument
152 BMCWEB_LOG_DEBUG("Read done. Read {} bytes", bytesRead); in doRead()
167 outputBuffer.commit(bytesRead); in doRead()
170 bytesRead); in doRead()
172 outputBuffer.consume(bytesRead); in doRead()
322 const boost::system::error_code& ec, size_t bytesRead) in afterRead()
337 self->ux2wsBuf.commit(bytesRead); in afterRead()
/openbmc/phosphor-bmc-code-mgmt/common/src/
H A Dutils.cpp74 ssize_t bytesRead = read(exitPipefd[0], &exitCode, sizeof(exitCode)); in asyncSystem() local
77 if (bytesRead != sizeof(exitCode)) in asyncSystem()
/openbmc/bmcweb/features/serial/
H A Dobmc_console.hpp113 const boost::system::error_code& ec, std::size_t bytesRead) { in doRead() argument
114 BMCWEB_LOG_DEBUG("read done. Read {} bytes", bytesRead); in doRead()
127 std::string_view payload(outputBuffer.data(), bytesRead); in doRead()
/openbmc/ipmi-fru-parser/
H A Dwritefrudata.cpp603 size_t bytesRead = 0; in validateFRUArea() local
646 bytesRead = std::fread(fruData.data(), dataLen, 1, fruFilePointer); in validateFRUArea()
647 if (bytesRead != 1) in validateFRUArea()
651 "BYTESREAD", bytesRead, "ERRNO", std::strerror(errno)); in validateFRUArea()
/openbmc/phosphor-power/tools/power-utils/
H A Daei_updater.cpp513 size_t bytesRead = 0; in downloadPsuFirmware() local
520 while ((bytesRead < fileSize) && !downloadFailed) in downloadPsuFirmware()
524 bytesRead += dataRead.size(); in downloadPsuFirmware()
546 "BYTESREAD", bytesRead); in downloadPsuFirmware()
H A Dupdater.cpp168 size_t bytesRead = inputFile.gcount(); in readFirmwareBytes() local
169 if (bytesRead != numberOfBytesToRead) in readFirmwareBytes()
171 readDataBytes.resize(bytesRead); in readFirmwareBytes()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dmocks.hpp265 auto bytesRead = read(newFD, &data, sizeof(data)); in receive() local
266 EXPECT_EQ(bytesRead, sizeof(data)); in receive()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dmanager.cpp600 auto bytesRead = read(_pelFileDeleteFD, data.data(), data.size()); in pelFileDeleted() local
601 if (bytesRead < 0) in pelFileDeleted()
610 while (offset < bytesRead) in pelFileDeleted()
/openbmc/ipmitool/lib/
H A Dipmi_sel.c2582 size_t bytesRead; in ipmi_sel_readraw() local
2585 if ((bytesRead = fread(&evt, 1, 16, fp)) == 16) in ipmi_sel_readraw()
2594 if (bytesRead != 0) in ipmi_sel_readraw()