Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 24 of 24) 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/bios-bmc-smm-error-logger/src/
H A Dbuffer.cpp79 std::vector<uint8_t> bytesRead = in readBufferHeader() local
82 if (bytesRead.size() != headerSize) in readBufferHeader()
86 bytesRead.size(), headerSize)); in readBufferHeader()
90 *reinterpret_cast<struct CircularBufferHeader*>(bytesRead.data()); in readBufferHeader()
174 std::vector<uint8_t> bytesRead = dataInterface->read( in wraparoundRead() local
176 if (bytesRead.size() != numBytesToReadTillQueueEnd) in wraparoundRead()
181 bytesRead.size(), numBytesToReadTillQueueEnd)); in wraparoundRead()
204 bytesRead.insert(bytesRead.end(), wrappedBytesRead.begin(), in wraparoundRead()
210 return bytesRead; in wraparoundRead()
218 std::vector<uint8_t> bytesRead = wraparoundRead( in readEntryHeader() local
[all …]
/openbmc/bmcweb/include/
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()
H A Dvm_websocket.hpp152 const boost::system::error_code& ec, std::size_t bytesRead) { in doRead() argument
153 BMCWEB_LOG_DEBUG("Read done. Read {} bytes", bytesRead); in doRead()
168 outputBuffer.commit(bytesRead); in doRead()
171 bytesRead); in doRead()
173 outputBuffer.consume(bytesRead); in doRead()
323 const boost::system::error_code& ec, size_t bytesRead) in afterRead()
338 self->ux2wsBuf.commit(bytesRead); in afterRead()
H A Dobmc_console.hpp114 const boost::system::error_code& ec, std::size_t bytesRead) { in doRead() argument
115 BMCWEB_LOG_DEBUG("read done. Read {} bytes", bytesRead); in doRead()
128 std::string_view payload(outputBuffer.data(), bytesRead); in doRead()
/openbmc/dbus-sensors/src/psu/
H A DPSUSensor.cpp176 size_t bytesRead) { in setupRead()
183 self->handleResponse(ec, bytesRead); in setupRead()
208 size_t bytesRead) in handleResponse()
221 if (err || bytesRead == 0) in handleResponse()
233 bufferRef[bytesRead] = '\0'; in handleResponse()
174 __anon92d4af8a0102(const boost::system::error_code& ec, size_t bytesRead) setupRead() argument
206 handleResponse(const boost::system::error_code & err,size_t bytesRead) handleResponse() argument
H A DPSUSensor.hpp60 void handleResponse(const boost::system::error_code& err, size_t bytesRead);
/openbmc/bmcweb/http/
H A Dwebsocket_impl.hpp247 size_t bytesRead) { in doRead() argument
264 handleMessage(bytesRead); in doRead()
304 void handleMessage(size_t bytesRead) in handleMessage() argument
311 [this, self(shared_from_this()), bytesRead]() { in handleMessage()
317 inBuffer.consume(bytesRead); in handleMessage()
329 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/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/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/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/phosphor-power/tools/power-utils/
H A Daei_updater.cpp514 size_t bytesRead = 0; in downloadPsuFirmware() local
521 while ((bytesRead < fileSize) && !downloadFailed) in downloadPsuFirmware()
525 bytesRead += dataRead.size(); in downloadPsuFirmware()
547 "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/libcper/tests/
H A Dir-tests.cpp51 size_t bytesRead; in cper_create_examples() local
52 while ((bytesRead = fread(buffer, 1, sizeof(buffer), record)) > 0) { in cper_create_examples()
53 outFile.write(buffer, bytesRead); in cper_create_examples()
/openbmc/ipmi-fru-parser/
H A Dwritefrudata.cpp634 size_t bytesRead = 0; in validateFRUArea() local
679 bytesRead = std::fread(fruData.data(), dataLen, 1, fruFilePointer); in validateFRUArea()
680 if (bytesRead != 1) in validateFRUArea()
683 entry("BYTESREAD=%d", bytesRead), in validateFRUArea()
/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.cpp603 auto bytesRead = read(_pelFileDeleteFD, data.data(), data.size()); in pelFileDeleted() local
604 if (bytesRead < 0) in pelFileDeleted()
613 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()