gem5
v20.1.0.0
|
These methods relate to the ChunkGenerator interface. More...
Functions | |
ChunkGenerator::ChunkGenerator (Addr _startAddr, unsigned totalSize, unsigned _chunkSize) | |
Constructor. More... | |
Addr | ChunkGenerator::addr () const |
Return starting address of current chunk. More... | |
unsigned | ChunkGenerator::size () const |
Return size in bytes of current chunk. More... | |
unsigned | ChunkGenerator::complete () const |
Number of bytes we have already chunked up. More... | |
bool | ChunkGenerator::done () const |
Are we done? That is, did the last call to next() advance past the end of the region? More... | |
bool | ChunkGenerator::last () const |
Is this the last chunk? More... | |
bool | ChunkGenerator::next () |
Advance generator to next chunk. More... | |
These methods relate to the ChunkGenerator interface.
|
inline |
Return starting address of current chunk.
Definition at line 115 of file chunk_generator.hh.
References ChunkGenerator::curAddr.
Referenced by IdeDisk::doDmaRead(), IdeDisk::doDmaWrite(), and TEST().
|
inline |
Constructor.
_startAddr | The starting address of the region. |
totalSize | The total size of the region. |
_chunkSize | The size/alignment of chunks into which the region should be decomposed. |
Definition at line 81 of file chunk_generator.hh.
References ChunkGenerator::chunkSize, ChunkGenerator::curAddr, ChunkGenerator::curSize, isPowerOf2(), ChunkGenerator::nextAddr, roundUp(), ChunkGenerator::sizeLeft, and ChunkGenerator::startAddr.
|
inline |
Number of bytes we have already chunked up.
Definition at line 128 of file chunk_generator.hh.
References ChunkGenerator::curAddr, and ChunkGenerator::startAddr.
Referenced by IdeDisk::doDmaRead(), IdeDisk::doDmaWrite(), and TEST().
|
inline |
Are we done? That is, did the last call to next() advance past the end of the region?
Definition at line 137 of file chunk_generator.hh.
References ChunkGenerator::curSize.
Referenced by ArmISA::RemoteGDB::acc(), Shader::AccessMem(), DmaPort::dmaAction(), HSADevice::dmaVirt(), HSAPacketProcessor::dmaVirt(), IdeDisk::doDmaRead(), IdeDisk::doDmaWrite(), PortProxy::readBlobPhys(), TEST(), TranslatingPortProxy::tryMemsetBlob(), TranslatingPortProxy::tryReadBlob(), TranslatingPortProxy::tryWriteBlob(), and PortProxy::writeBlobPhys().
|
inline |
Is this the last chunk?
Definition at line 145 of file chunk_generator.hh.
References ChunkGenerator::sizeLeft.
Referenced by TEST().
|
inline |
Advance generator to next chunk.
Definition at line 155 of file chunk_generator.hh.
References ChunkGenerator::chunkSize, ChunkGenerator::curAddr, ChunkGenerator::curSize, ChunkGenerator::nextAddr, and ChunkGenerator::sizeLeft.
Referenced by IdeDisk::doDmaRead(), IdeDisk::doDmaWrite(), and TEST().
|
inline |
Return size in bytes of current chunk.
Definition at line 121 of file chunk_generator.hh.
References ChunkGenerator::curSize.
Referenced by IdeDisk::doDmaRead(), IdeDisk::doDmaWrite(), and TEST().