Searched refs:SectorSize (Results 1 - 8 of 8) sorted by relevance
/gem5/src/dev/sparc/ |
H A D | mm_disk.cc | 49 : BasicPioDevice(p, p->image->size() * SectorSize), 52 std::memset(&diskData, 0, SectorSize); 67 sector = accessAddr / SectorSize; 75 assert(bytes_written == SectorSize); 81 assert(bytes_read == SectorSize); 86 pkt->setRaw(diskData[accessAddr % SectorSize]); 88 accessAddr, diskData[accessAddr % SectorSize]); 91 memcpy(&d16, diskData + (accessAddr % SectorSize), 2); 96 memcpy(&d32, diskData + (accessAddr % SectorSize), 4); 101 memcpy(&d64, diskData + (accessAddr % SectorSize), [all...] |
H A D | mm_disk.hh | 49 uint8_t diskData[SectorSize];
|
/gem5/src/dev/virtio/ |
H A D | block.cc | 80 if (size % SectorSize != 0) 83 for (Addr offset = 0; offset < size; offset += SectorSize) { 84 if (image.read(&data[offset], sector) != SectorSize) { 106 if (size % SectorSize != 0) 112 for (Addr offset = 0; offset < size; offset += SectorSize) { 113 if (image.write(&data[offset], sector) != SectorSize) {
|
/gem5/src/dev/storage/ |
H A D | simple_disk.cc | 66 uint8_t *data = new uint8_t[SectorSize * count]; 68 if (count & (SectorSize - 1)) 71 for (int i = 0, j = 0; i < count; i += SectorSize, j++)
|
H A D | disk_image.cc | 111 return disk_size / SectorSize; 123 stream.seekg(offset * SectorSize, ios::beg); 128 stream.read((char *)data, SectorSize); 131 DDUMP(DiskImageRead, data, SectorSize); 148 stream.seekp(offset * SectorSize, ios::beg); 153 DDUMP(DiskImageWrite, data, SectorSize); 156 stream.write((const char *)data, SectorSize); 405 memcpy(data, (*i).second->data, SectorSize); 407 DDUMP(DiskImageRead, data, SectorSize); 408 return SectorSize; [all...] |
H A D | ide_disk.cc | 373 curPrd.getByteCount(), (cmdBytesLeft/SectorSize), 389 Tick totalDiskDelay = diskDelay + (curPrd.getByteCount() / SectorSize); 476 bytesWritten += SectorSize) { 478 cmdBytesLeft -= SectorSize; 496 Tick totalDiskDelay = diskDelay + (curPrd.getByteCount() / SectorSize); 506 bytesRead += SectorSize; 507 cmdBytesLeft -= SectorSize; 580 if (bytesRead != SectorSize) 582 name(), bytesRead, SectorSize, errno); 590 if (bytesWritten != SectorSize) [all...] |
H A D | disk_image.hh | 46 #define SectorSize (512) macro 114 uint8_t data[SectorSize];
|
/gem5/src/dev/arm/ |
H A D | ufs_device.cc | 87 capacityUpper((diskSize - SectorSize) >> 32), 127 flashDevice->initializeMemory(diskSize, SectorSize); 696 for (int count = 0; count < (size / SectorSize); count++) 697 flashDisk->read(&(readaddr[SectorSize*count]), (offset / 698 SectorSize) + count); 710 for (int count = 0; count < (size / SectorSize); count++) 711 flashDisk->write(&(writeaddr[SectorSize * count]), 712 (offset / SectorSize) + count);
|
Completed in 11 milliseconds