Home
last modified time | relevance | path

Searched refs:writeSize (Results 1 – 7 of 7) sorted by relevance

/openbmc/estoraged/src/erase/
H A Dzero.cpp30 uint32_t writeSize = currentIndex + blockSize < driveSize in writeZero() local
37 while (written < writeSize) in writeZero()
40 writeSize - written}) in writeZero()
42 if (written == writeSize) in writeZero()
46 if (written > writeSize) in writeZero()
68 currentIndex += writeSize; in writeZero()
H A Dpattern.cpp47 size_t writeSize = currentIndex + blockSize < driveSize in writePattern() local
52 while (written < writeSize) in writePattern()
54 written += fd.write({randArr.data() + written, writeSize - written}) in writePattern()
56 if (written == writeSize) in writePattern()
60 if (written > writeSize) in writePattern()
73 currentIndex = currentIndex + writeSize; in writePattern()
/openbmc/phosphor-power/tools/i2c/
H A Di2c.cpp154 void I2CDevice::processCallSMBus(uint8_t addr, uint8_t writeSize, in processCallSMBus() argument
164 std::memcpy(buffer, writeData, writeSize); in processCallSMBus()
165 ret = i2c_smbus_block_process_call(fd, addr, writeSize, buffer); in processCallSMBus()
178 void I2CDevice::processCallI2C(uint8_t addr, uint8_t writeSize, in processCallI2C() argument
204 writeBuffer[1] = writeSize; in processCallI2C()
205 std::memcpy(&(writeBuffer[2]), writeData, writeSize); in processCallI2C()
210 messages[0].len = writeSize + 2; // 2 == reg addr + byte count in processCallI2C()
497 void I2CDevice::processCall(uint8_t addr, uint8_t writeSize, in processCall() argument
505 (writeSize <= I2C_SMBUS_BLOCK_MAX)) in processCall()
508 processCallSMBus(addr, writeSize, writeData, readSize, readData); in processCall()
[all …]
H A Di2c.hpp130 void processCallSMBus(uint8_t addr, uint8_t writeSize,
157 void processCallI2C(uint8_t addr, uint8_t writeSize,
216 void processCall(uint8_t addr, uint8_t writeSize, const uint8_t* writeData,
H A Di2c_interface.hpp222 virtual void processCall(uint8_t addr, uint8_t writeSize,
/openbmc/ipmitool/lib/
H A Dipmi_fwum.c856 unsigned char writeSize; in KfwumUploadFirmware() local
862 writeSize = save_fw_nfo.bufferSize - save_fw_nfo.overheadSize; in KfwumUploadFirmware()
864 if (address + writeSize > totalSize) { in KfwumUploadFirmware()
865 writeSize = (totalSize - address); in KfwumUploadFirmware()
867 + writeSize) > KFWUM_PAGE_SIZE) { in KfwumUploadFirmware()
869 writeSize = (KFWUM_PAGE_SIZE - (address % KFWUM_PAGE_SIZE)); in KfwumUploadFirmware()
871 oldWriteSize = writeSize; in KfwumUploadFirmware()
873 address, &pBuffer[address], &writeSize); in KfwumUploadFirmware()
877 } else if ( writeSize == 0) { in KfwumUploadFirmware()
880 if (writeSize != oldWriteSize) { in KfwumUploadFirmware()
[all …]
/openbmc/phosphor-power/tools/i2c/test/
H A Dmocked_i2c_interface.hpp37 (uint8_t addr, uint8_t writeSize, const uint8_t* writeData,