Home
last modified time | relevance | path

Searched refs:cacheBlockSize (Results 1 – 2 of 2) sorted by relevance

/openbmc/entity-manager/src/fru_device/
H A Dfru_reader.cpp22 size_t blk = cursor / cacheBlockSize; in read()
23 size_t blkOffset = cursor % cacheBlockSize; in read()
30 readFunc(blk * cacheBlockSize, cacheBlockSize, newData); in read()
33 if (ret >= 0 && static_cast<size_t>(ret) < cacheBlockSize) in read()
35 eof = (blk * cacheBlockSize) + ret; in read()
56 if (eof.has_value() && (eof.value() / cacheBlockSize == blk)) in read()
58 available = eof.value() % cacheBlockSize; in read()
62 available = cacheBlockSize; in read()
H A Dfru_reader.hpp38 static constexpr size_t cacheBlockSize = 32; member in FRUReader
39 static_assert(cacheBlockSize <= I2C_SMBUS_BLOCK_MAX);
40 using CacheBlock = std::array<uint8_t, cacheBlockSize>;