Home
last modified time | relevance | path

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

/openbmc/entity-manager/src/
H A Dfru_reader.cpp35 size_t blk = cursor / cacheBlockSize; in read()
36 size_t blkOffset = cursor % cacheBlockSize; in read()
43 readFunc(blk * cacheBlockSize, cacheBlockSize, newData); in read()
46 if (ret >= 0 && static_cast<size_t>(ret) < cacheBlockSize) in read()
48 eof = (blk * cacheBlockSize) + ret; in read()
69 if (eof.has_value() && (eof.value() / cacheBlockSize == blk)) in read()
71 available = eof.value() % cacheBlockSize; in read()
75 available = cacheBlockSize; in read()
H A Dfru_reader.hpp51 static constexpr size_t cacheBlockSize = 32; member in FRUReader
52 static_assert(cacheBlockSize <= I2C_SMBUS_BLOCK_MAX);
53 using CacheBlock = std::array<uint8_t, cacheBlockSize>;