diff options
Diffstat (limited to 'src/dev/arm')
-rw-r--r-- | src/dev/arm/flash_device.cc | 4 | ||||
-rw-r--r-- | src/dev/arm/ufs_device.cc | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/dev/arm/flash_device.cc b/src/dev/arm/flash_device.cc index 09b096790..60c910626 100644 --- a/src/dev/arm/flash_device.cc +++ b/src/dev/arm/flash_device.cc @@ -98,7 +98,7 @@ FlashDevice::FlashDevice(const FlashDeviceParams* p): * bitwise AND with those two numbers results in an integer with all bits * cleared. */ - if(numPlanes & planeMask) + if (numPlanes & planeMask) fatal("Number of planes is not a power of 2 in flash device.\n"); } @@ -245,7 +245,7 @@ FlashDevice::accessDevice(uint64_t address, uint32_t amount, Callback *event, DPRINTF(FlashDevice, "Plane %d is busy for %d ticks\n", count, time[count]); - if (time[count] != 0) { + if (time[count] != 0) { struct CallBackEntry cbe; /** diff --git a/src/dev/arm/ufs_device.cc b/src/dev/arm/ufs_device.cc index fbc3bd394..07d50903b 100644 --- a/src/dev/arm/ufs_device.cc +++ b/src/dev/arm/ufs_device.cc @@ -693,7 +693,7 @@ UFSHostDevice::UFSSCSIDevice::readFlash(uint8_t* readaddr, uint64_t offset, uint32_t size) { /** read from image, and get to memory */ - for(int count = 0; count < (size / SectorSize); count++) + for (int count = 0; count < (size / SectorSize); count++) flashDisk->read(&(readaddr[SectorSize*count]), (offset / SectorSize) + count); } @@ -707,7 +707,7 @@ UFSHostDevice::UFSSCSIDevice::writeFlash(uint8_t* writeaddr, uint64_t offset, uint32_t size) { /** Get from fifo and write to image*/ - for(int count = 0; count < (size / SectorSize); count++) + for (int count = 0; count < (size / SectorSize); count++) flashDisk->write(&(writeaddr[SectorSize * count]), (offset / SectorSize) + count); } @@ -745,7 +745,7 @@ UFSHostDevice::UFSHostDevice(const UFSHostDeviceParams* p) : memReadCallback = new MakeCallback<UFSHostDevice, &UFSHostDevice::readCallback>(this); - for(int count = 0; count < lunAvail; count++) { + for (int count = 0; count < lunAvail; count++) { UFSDevice[count] = new UFSSCSIDevice(p, count, transferDoneCallback, memReadCallback); } @@ -1672,7 +1672,7 @@ UFSHostDevice::LUNSignal() uint8_t this_lun = 0; //while we haven't found the right lun, keep searching - while((this_lun < lunAvail) && !UFSDevice[this_lun]->finishedCommand()) + while ((this_lun < lunAvail) && !UFSDevice[this_lun]->finishedCommand()) ++this_lun; if (this_lun < lunAvail) { @@ -1796,13 +1796,13 @@ UFSHostDevice::readDone() } /**done, generate interrupt if we havent got one already*/ - if(!(UFSHCIMem.ORInterruptStatus & 0x01)) { + if (!(UFSHCIMem.ORInterruptStatus & 0x01)) { UFSHCIMem.ORInterruptStatus |= UTPTransferREQCOMPL; generateInterrupt(); } - if(!readDoneEvent.empty()) { + if (!readDoneEvent.empty()) { readDoneEvent.pop_front(); } } @@ -1884,7 +1884,7 @@ UFSHostDevice::writeDevice(Event* additional_action, bool toDisk, Addr if (toDisk) { ++writePendingNum; - while(!writeDoneEvent.empty() && (writeDoneEvent.front().when() + while (!writeDoneEvent.empty() && (writeDoneEvent.front().when() < curTick())) writeDoneEvent.pop_front(); @@ -2243,7 +2243,7 @@ UFSHostDevice::readCallback() uint8_t this_lun = 0; //while we haven't found the right lun, keep searching - while((this_lun < lunAvail) && !UFSDevice[this_lun]->finishedRead()) + while ((this_lun < lunAvail) && !UFSDevice[this_lun]->finishedRead()) ++this_lun; DPRINTF(UFSHostDevice, "Found LUN %d messages pending for clean: %d\n", |