Home
last modified time | relevance | path

Searched refs:nBlocks (Results 1 – 9 of 9) sorted by relevance

/external/yaffs2/yaffs2/direct/
Dyaffs_ramem2k.c72 int nBlocks; member
95 if(blockNumber < 0 || blockNumber >= ned.nBlocks) in nandemul_ReallyEraseBlock()
125 int nBlocks; in CheckInit() local
135 ned.nBlocks = nBlocks = nandemul2k_CalcNBlocks(); in CheckInit()
138 ned.block = YMALLOC(sizeof(nandemul_Block*) * nBlocks ); in CheckInit()
146 for(i=fail=0; i <nBlocks; i++) in CheckInit()
185 ned.nBlocks = nBlocks; in CheckInit()
293 if(blockNumber < 0 || blockNumber >= ned.nBlocks) in nandemul2k_EraseBlockInNAND()
Dyaffs_ramdisk.c56 int nBlocks; member
78 ramdisk.nBlocks = (SIZE_IN_MB * 1024 * 1024)/(16 * 1024); in CheckInit()
80 ramdisk.block = YMALLOC(sizeof(yramdisk_Block *) * ramdisk.nBlocks); in CheckInit()
84 for(i=0; i <ramdisk.nBlocks; i++) in CheckInit()
89 for(i=0; i <ramdisk.nBlocks && !fail; i++) in CheckInit()
111 nAllocated/64,ramdisk.nBlocks * 528)); in CheckInit()
211 if(blockNumber < 0 || blockNumber >= ramdisk.nBlocks) in yramdisk_EraseBlockInNAND()
Dyaffs_flashif.c52 int nBlocks; member
73 ramdisk.nBlocks = (SIZE_IN_MB * 1024 * 1024)/(16 * 1024); in CheckInit()
75 ramdisk.block = YMALLOC(sizeof(yflash_Block *) * ramdisk.nBlocks); in CheckInit()
79 for(i=0; i <ramdisk.nBlocks; i++) in CheckInit()
84 for(i=0; i <ramdisk.nBlocks && !fail; i++) in CheckInit()
106 nAllocated/64,ramdisk.nBlocks * YAFFS_BYTES_PER_BLOCK)); in CheckInit()
204 if(blockNumber < 0 || blockNumber >= ramdisk.nBlocks) in yflash_EraseBlockInNAND()
Dyaffs_fileem2k.c56 int nBlocks; member
122 filedisk.nBlocks = SIZE_IN_MB * BLOCKS_PER_MB; in CheckInit()
127 for(i = 0,blk = 0; blk < filedisk.nBlocks; blk+=BLOCKS_PER_HANDLE,i++) in CheckInit()
139 return filedisk.nBlocks; in yflash_GetNumberOfBlocks()
310 if(blockNumber < 0 || blockNumber >= filedisk.nBlocks) in yflash_EraseBlockInNAND()
Dyaffs_fileem.c58 int nBlocks; member
83 filedisk.nBlocks = (SIZE_IN_MB * 1024 * 1024)/(16 * 1024); in CheckInit()
186 if(blockNumber < 0 || blockNumber >= filedisk.nBlocks) in yflash_EraseBlockInNAND()
/external/yaffs2/yaffs2/mtdemul/
Dnandemul2k.c84 int nBlocks; member
136 if(blockNumber < 0 || blockNumber >= ned.nBlocks) in nandemul2k_DoErase()
166 int nBlocks; in CheckInit() local
176 ned.nBlocks = nBlocks = nandemul2k_CalcNBlocks(); in CheckInit()
179 ned.block = ALLOCATE(sizeof(nandemul_Block*) * nBlocks ); in CheckInit()
187 for(i=fail=0; i <nBlocks; i++) in CheckInit()
224 ned.nBlocks = nBlocks; in CheckInit()
237 for(i = 0; i < ned.nBlocks; i++) in nandemul2k_CleanUp()
534 int i, nBlocks,block; in nand_erase() local
561 nBlocks = instr->len >> (NAND_SHIFT + BLK_SHIFT); in nand_erase()
[all …]
/external/yaffs2/yaffs2/
Dyaffsinterface.h21 int yaffs_Initialise(unsigned nBlocks);
Dyaffs_guts.c1926 int nBlocks = dev->internalEndBlock - dev->internalStartBlock + 1; in yaffs_InitialiseBlocks() local
1931 dev->blockInfo = YMALLOC(nBlocks * sizeof(yaffs_BlockInfo)); in yaffs_InitialiseBlocks()
1933 dev->blockInfo = YMALLOC_ALT(nBlocks * sizeof(yaffs_BlockInfo)); in yaffs_InitialiseBlocks()
1941 dev->chunkBits = YMALLOC(dev->chunkBitmapStride * nBlocks); in yaffs_InitialiseBlocks()
1943 dev->chunkBits = YMALLOC_ALT(dev->chunkBitmapStride * nBlocks); in yaffs_InitialiseBlocks()
1950 memset(dev->blockInfo, 0, nBlocks * sizeof(yaffs_BlockInfo)); in yaffs_InitialiseBlocks()
1951 memset(dev->chunkBits, 0, dev->chunkBitmapStride * nBlocks); in yaffs_InitialiseBlocks()
3489 __u32 nBlocks = (dev->internalEndBlock - dev->internalStartBlock + 1); in yaffs_WriteCheckpointDevice() local
3501 nBytes = nBlocks * sizeof(yaffs_BlockInfo); in yaffs_WriteCheckpointDevice()
3507 nBytes = nBlocks * dev->chunkBitmapStride; in yaffs_WriteCheckpointDevice()
[all …]
Dyaffs_fs.c1455 int nBlocks; local
1638 nBlocks = mtd->size / (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK);
1640 dev->endBlock = nBlocks - 1;
1663 nBlocks = mtd->size / mtd->erasesize;
1667 dev->endBlock = nBlocks - 1;
1703 for(i = 0; i < nBlocks; i++)