Home
last modified time | relevance | path

Searched refs:PAGES_PER_BLOCK (Results 1 – 4 of 4) sorted by relevance

/external/yaffs2/yaffs2/direct/
Dyaffs_ramem2k.c41 #define PAGES_PER_BLOCK (64) macro
49 #define BLOCK_TOTAL_SIZE (PAGES_PER_BLOCK * PAGE_TOTAL_SIZE)
51 #define BLOCKS_PER_MEG ((1<<20)/(PAGES_PER_BLOCK * PAGE_DATA_SIZE))
63 nandemul_Page *page[PAGES_PER_BLOCK];
102 for(i = 0; i < PAGES_PER_BLOCK; i++) in nandemul_ReallyEraseBlock()
157 for(j = 0; j < PAGES_PER_BLOCK; j++) in CheckInit()
201 blk = chunkInNAND/PAGES_PER_BLOCK; in nandemul2k_WriteChunkWithTagsToNAND()
202 pg = chunkInNAND%PAGES_PER_BLOCK; in nandemul2k_WriteChunkWithTagsToNAND()
244 blk = chunkInNAND/PAGES_PER_BLOCK; in nandemul2k_ReadChunkWithTagsFromNAND()
245 pg = chunkInNAND%PAGES_PER_BLOCK; in nandemul2k_ReadChunkWithTagsFromNAND()
[all …]
Dyaffs_fileem2k.h25 #define PAGES_PER_BLOCK (64) macro
26 #define BLOCK_DATA_SIZE (PAGE_DATA_SIZE * PAGES_PER_BLOCK)
27 #define BLOCK_SIZE (PAGES_PER_BLOCK * (PAGE_SIZE))
37 #define PAGES_PER_BLOCK (32) macro
38 #define BLOCK_DATA_SIZE (PAGE_SIZE * PAGES_PER_BLOCK)
39 #define BLOCK_SIZE (PAGES_PER_BLOCK * (PAGE_SIZE))
Dyaffs_fileem2k.c44 yflash_Page page[PAGES_PER_BLOCK]; // The pages in the block
154 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE; in yflash_WriteChunkWithTagsToNAND()
155 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_WriteChunkWithTagsToNAND()
170 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE + PAGE_DATA_SIZE ; in yflash_WriteChunkWithTagsToNAND()
171 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_WriteChunkWithTagsToNAND()
223 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE; in yflash_ReadChunkWithTagsFromNAND()
224 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_ReadChunkWithTagsFromNAND()
233 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE + PAGE_DATA_SIZE; in yflash_ReadChunkWithTagsFromNAND()
234 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_ReadChunkWithTagsFromNAND()
/external/yaffs2/yaffs2/mtdemul/
Dnandemul2k.c51 #define PAGES_PER_BLOCK (1 << BLK_SHIFT) // = 64 macro
59 #define BLOCK_TOTAL_SIZE (PAGES_PER_BLOCK * PAGE_TOTAL_SIZE)
61 #define BLOCKS_PER_MEG ((1<<20)/(PAGES_PER_BLOCK * PAGE_DATA_SIZE))
75 nandemul_Page *page[PAGES_PER_BLOCK];
103 int pg = page%PAGES_PER_BLOCK; in nandemul2k_Read()
104 int blk = page/PAGES_PER_BLOCK; in nandemul2k_Read()
114 int pg = page%PAGES_PER_BLOCK; in nandemul2k_Program()
115 int blk = page/PAGES_PER_BLOCK; in nandemul2k_Program()
143 for(i = 0; i < PAGES_PER_BLOCK; i++) in nandemul2k_DoErase()
198 for(j = 0; j < PAGES_PER_BLOCK; j++) in CheckInit()
[all …]