Home
last modified time | relevance | path

Searched refs:driveSize (Results 1 – 6 of 6) sorted by relevance

/openbmc/estoraged/src/erase/
H A Dzero.cpp23 void Zero::writeZero(const uint64_t driveSize, Fd& fd) in writeZero() argument
28 while (currentIndex < driveSize) in writeZero()
30 uint32_t writeSize = currentIndex + blockSize < driveSize in writeZero()
32 : driveSize - currentIndex; in writeZero()
72 void Zero::verifyZero(uint64_t driveSize, Fd& fd) in verifyZero() argument
78 while (currentIndex < driveSize) in verifyZero()
80 uint32_t readSize = currentIndex + blockSize < driveSize in verifyZero()
82 : driveSize - currentIndex; in verifyZero()
H A Dpattern.cpp26 void Pattern::writePattern(const uint64_t driveSize, Fd& fd) in writePattern() argument
37 while (currentIndex < driveSize) in writePattern()
47 size_t writeSize = currentIndex + blockSize < driveSize in writePattern()
49 : driveSize - currentIndex; in writePattern()
77 void Pattern::verifyPattern(const uint64_t driveSize, Fd& fd) in verifyPattern() argument
86 while (currentIndex < driveSize) in verifyPattern()
88 size_t readSize = currentIndex + blockSize < driveSize in verifyPattern()
90 : driveSize - currentIndex; in verifyPattern()
H A Dsanitize.cpp57 void Sanitize::doSanitize(uint64_t driveSize) in doSanitize() argument
61 emmcErase(driveSize); in doSanitize()
74 void Sanitize::emmcErase(uint64_t driveSize) in emmcErase() argument
88 eraseCmd.cmds[1].arg = (driveSize / sectorSize) - 1; in emmcErase()
/openbmc/estoraged/include/
H A Dzero.hpp29 void writeZero(uint64_t driveSize, Fd& fd);
46 void verifyZero(uint64_t driveSize, Fd& fd);
H A Dpattern.hpp42 void writePattern(uint64_t driveSize, Fd& fd);
60 void verifyPattern(uint64_t driveSize, Fd& fd);
H A Dsanitize.hpp89 void doSanitize(uint64_t driveSize);
111 void emmcErase(uint64_t driveSize);