Home
last modified time | relevance | path

Searched refs:blockNumber (Results 1 – 12 of 12) sorted by relevance

/external/yaffs2/yaffs2/direct/
Dyaffs_ramem2k.c89 static void nandemul_ReallyEraseBlock(int blockNumber) in nandemul_ReallyEraseBlock() argument
95 if(blockNumber < 0 || blockNumber >= ned.nBlocks) in nandemul_ReallyEraseBlock()
100 blk = ned.block[blockNumber]; in nandemul_ReallyEraseBlock()
289 int nandemul2k_EraseBlockInNAND(yaffs_Device *dev, int blockNumber) in nandemul2k_EraseBlockInNAND() argument
293 if(blockNumber < 0 || blockNumber >= ned.nBlocks) in nandemul2k_EraseBlockInNAND()
295 T(YAFFS_TRACE_ALWAYS,("Attempt to erase non-existant block %d\n",blockNumber)); in nandemul2k_EraseBlockInNAND()
297 else if(ned.block[blockNumber]->damaged) in nandemul2k_EraseBlockInNAND()
299 T(YAFFS_TRACE_ALWAYS,("Attempt to erase damaged block %d\n",blockNumber)); in nandemul2k_EraseBlockInNAND()
303 nandemul_ReallyEraseBlock(blockNumber); in nandemul2k_EraseBlockInNAND()
Dyaffs_fileem.c179 int yflash_EraseBlockInNAND(yaffs_Device *dev, int blockNumber) in yflash_EraseBlockInNAND() argument
186 if(blockNumber < 0 || blockNumber >= filedisk.nBlocks) in yflash_EraseBlockInNAND()
188 T(YAFFS_TRACE_ALWAYS,("Attempt to erase non-existant block %d\n",blockNumber)); in yflash_EraseBlockInNAND()
198 lseek(filedisk.handle, blockNumber * 32 * 528, SEEK_SET); in yflash_EraseBlockInNAND()
Dyaffs_ramdisk.c206 int yramdisk_EraseBlockInNAND(yaffs_Device *dev, int blockNumber) in yramdisk_EraseBlockInNAND() argument
211 if(blockNumber < 0 || blockNumber >= ramdisk.nBlocks) in yramdisk_EraseBlockInNAND()
213 T(YAFFS_TRACE_ALWAYS,("Attempt to erase non-existant block %d\n",blockNumber)); in yramdisk_EraseBlockInNAND()
218 memset(ramdisk.block[blockNumber],0xFF,sizeof(yramdisk_Block)); in yramdisk_EraseBlockInNAND()
Dyaffs_ramdisk.h25 int yramdisk_EraseBlockInNAND(yaffs_Device *dev, int blockNumber);
28 int yramdisk_EraseBlockInNAND(yaffs_Device *dev, int blockNumber);
30 int yramdisk_MarkNANDBlockBad(yaffs_Device *dev,int blockNumber);
Dyaffs_flashif.c199 int yflash_EraseBlockInNAND(yaffs_Device *dev, int blockNumber) in yflash_EraseBlockInNAND() argument
204 if(blockNumber < 0 || blockNumber >= ramdisk.nBlocks) in yflash_EraseBlockInNAND()
206 T(YAFFS_TRACE_ALWAYS,("Attempt to erase non-existant block %d\n",blockNumber)); in yflash_EraseBlockInNAND()
211 memset(ramdisk.block[blockNumber],0xFF,sizeof(yflash_Block)); in yflash_EraseBlockInNAND()
Dyaffs_fileem2k.c299 int yflash_EraseBlockInNAND(yaffs_Device *dev, int blockNumber) in yflash_EraseBlockInNAND() argument
307 if(blockNumber == 320) in yflash_EraseBlockInNAND()
310 if(blockNumber < 0 || blockNumber >= filedisk.nBlocks) in yflash_EraseBlockInNAND()
312 T(YAFFS_TRACE_ALWAYS,("Attempt to erase non-existant block %d\n",blockNumber)); in yflash_EraseBlockInNAND()
325 h = filedisk.handle[(blockNumber / ( BLOCKS_PER_HANDLE))]; in yflash_EraseBlockInNAND()
326 lseek(h,((blockNumber % BLOCKS_PER_HANDLE) * dev->nChunksPerBlock) * PAGE_SIZE,SEEK_SET); in yflash_EraseBlockInNAND()
Dyaffs_flashif.h25 int yflash_EraseBlockInNAND(yaffs_Device *dev, int blockNumber);
30 int yflash_EraseBlockInNAND(yaffs_Device *dev, int blockNumber);
/external/yaffs2/yaffs2/
Dyaffs_mtdif.h29 int nandmtd_EraseBlockInNAND(yaffs_Device * dev, int blockNumber);
Dyaffs_mtdif.c208 int nandmtd_EraseBlockInNAND(yaffs_Device * dev, int blockNumber) in nandmtd_EraseBlockInNAND() argument
212 ((loff_t) blockNumber) * dev->nDataBytesPerChunk in nandmtd_EraseBlockInNAND()
/external/yaffs2/yaffs2/mtdemul/
Dnandemul2k.c130 static void nandemul2k_DoErase(int blockNumber) in nandemul2k_DoErase() argument
136 if(blockNumber < 0 || blockNumber >= ned.nBlocks) in nandemul2k_DoErase()
141 blk = ned.block[blockNumber]; in nandemul2k_DoErase()
/external/aac/libAACdec/src/
Daacdecoder.h165 …INT blockNumber; /*!< frame counter … member
Daacdecoder.cpp1723 self->blockNumber++; in CAacDecoder_DecodeFrame()