Searched refs:nBlocks (Results 1 – 9 of 9) sorted by relevance
/external/yaffs2/yaffs2/direct/ |
D | yaffs_ramem2k.c | 72 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()
|
D | yaffs_ramdisk.c | 56 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()
|
D | yaffs_flashif.c | 52 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()
|
D | yaffs_fileem2k.c | 56 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()
|
D | yaffs_fileem.c | 58 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/ |
D | nandemul2k.c | 84 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/ |
D | yaffsinterface.h | 21 int yaffs_Initialise(unsigned nBlocks);
|
D | yaffs_guts.c | 1926 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 …]
|
D | yaffs_fs.c | 1455 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++)
|