Lines Matching defs:block
120 DPRINTF(FlashDevice, "diskSize: %d Bytes; %d pages per block, %d pages "
145 locationTable[count].block = count % blocksPerDisk;
149 locationTable[count].block = count / pagesPerBlock;
183 uint32_t index = (locationTable[logic_page_addr].block *
186 DPRINTF(FlashDevice, "Index 0x%8x, Block 0x%8x, pages/block %d,"
188 locationTable[logic_page_addr].block, pagesPerBlock,
193 plane_address = locationTable[logic_page_addr].block & planeMask;
199 .block, ActionRead);
211 (locationTable[logic_page_addr].block, ActionWrite);
230 --blockEmptyEntries[locationTable[logic_page_addr].block];
231 ++blockValidEntries[locationTable[logic_page_addr].block];
358 if (blockEmptyEntries[locationTable[logic_page_addr].block] > 0) {
361 --blockEmptyEntries[locationTable[logic_page_addr].block];
364 //access new block
365 Tick time = accessTimes(locationTable[logic_page_addr].block,
373 uint32_t block = locationTable[logic_page_addr].block;
375 (accessTimes(block, ActionCopy) +
376 accessTimes(block, ActionErase)))
379 //use block as the logical start address of the block
380 block = locationTable[logic_page_addr].block * pagesPerBlock;
384 assert(block + count < pagesPerDisk);
385 locationTable[block + count].page = (block + count) %
389 blockEmptyEntries[locationTable[logic_page_addr].block] =
406 FlashDevice::accessTimes(uint64_t block, Actions action)
428 uint32_t validpages = blockValidEntries[block];
536 paramOut(cp, csprintf("locationTable[%d].block", count),
537 locationTable[count].block);
560 paramIn(cp, csprintf("locationTable[%d].block", count),
561 locationTable[count].block);