/fs/yaffs2/ |
D | yaffs_nand.c | 93 int yaffs_MarkBlockBad(yaffs_Device *dev, int blockNo) in yaffs_MarkBlockBad() argument 95 blockNo -= dev->blockOffset; in yaffs_MarkBlockBad() 99 return dev->markNANDBlockBad(dev, blockNo); in yaffs_MarkBlockBad() 101 return yaffs_TagsCompatabilityMarkNANDBlockBad(dev, blockNo); in yaffs_MarkBlockBad() 105 int blockNo, in yaffs_QueryInitialBlockState() argument 109 blockNo -= dev->blockOffset; in yaffs_QueryInitialBlockState() 112 return dev->queryNANDBlock(dev, blockNo, state, sequenceNumber); in yaffs_QueryInitialBlockState() 114 return yaffs_TagsCompatabilityQueryNANDBlock(dev, blockNo, in yaffs_QueryInitialBlockState()
|
D | yaffs_mtdif2.c | 190 int nandmtd2_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo) in nandmtd2_MarkNANDBlockBad() argument 195 (TSTR("nandmtd2_MarkNANDBlockBad %d" TENDSTR), blockNo)); in nandmtd2_MarkNANDBlockBad() 199 blockNo * dev->nChunksPerBlock * in nandmtd2_MarkNANDBlockBad() 209 int nandmtd2_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo, in nandmtd2_QueryNANDBlock() argument 216 (TSTR("nandmtd2_QueryNANDBlock %d" TENDSTR), blockNo)); in nandmtd2_QueryNANDBlock() 219 blockNo * dev->nChunksPerBlock * in nandmtd2_QueryNANDBlock() 230 blockNo * in nandmtd2_QueryNANDBlock()
|
D | yaffs_mtdif1.c | 281 int nandmtd1_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo) in nandmtd1_MarkNANDBlockBad() argument 287 yaffs_trace(YAFFS_TRACE_BAD_BLOCKS, "marking block %d bad\n", blockNo); in nandmtd1_MarkNANDBlockBad() 289 retval = mtd->block_markbad(mtd, (loff_t)blocksize * blockNo); in nandmtd1_MarkNANDBlockBad() 321 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo, in nandmtd1_QueryNANDBlock() argument 325 int chunkNo = blockNo * dev->nChunksPerBlock; in nandmtd1_QueryNANDBlock() 342 "block %d is marked bad\n", blockNo); in nandmtd1_QueryNANDBlock()
|
D | yaffs_mtdif2.h | 25 int nandmtd2_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo); 26 int nandmtd2_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
|
D | yaffs_mtdif1.h | 23 int nandmtd1_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo); 25 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
|
D | yaffs_nand.h | 31 int yaffs_MarkBlockBad(yaffs_Device *dev, int blockNo); 34 int blockNo,
|
D | yaffs_tagscompat.h | 29 int blockNo); 31 int blockNo,
|
D | yaffs_nandemul2k.h | 29 int nandemul2k_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo); 30 int nandemul2k_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
|
D | yaffs_tagscompat.c | 508 int blockNo, in yaffs_TagsCompatabilityQueryNANDBlock() argument 525 yaffs_ReadChunkFromNAND(dev, blockNo * dev->nChunksPerBlock, NULL, in yaffs_TagsCompatabilityQueryNANDBlock() 527 yaffs_ReadChunkFromNAND(dev, blockNo * dev->nChunksPerBlock + 1, NULL, in yaffs_TagsCompatabilityQueryNANDBlock()
|
D | yaffs_guts.h | 587 int (*markNANDBlockBad) (struct yaffs_DeviceStruct *dev, int blockNo); 588 int (*queryNANDBlock) (struct yaffs_DeviceStruct *dev, int blockNo,
|
D | yaffs_guts.c | 77 static yaffs_BlockInfo *yaffs_GetBlockInfo(yaffs_Device *dev, int blockNo); 2716 static void yaffs_BlockBecameDirty(yaffs_Device *dev, int blockNo) in yaffs_BlockBecameDirty() argument 2718 yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, blockNo); in yaffs_BlockBecameDirty() 2728 blockNo, bi->blockState, (bi->needsRetiring) ? "needs retiring" : "")); in yaffs_BlockBecameDirty() 2734 erasedOk = yaffs_EraseBlockInNAND(dev, blockNo); in yaffs_BlockBecameDirty() 2738 (TSTR("**>> Erasure failed %d" TENDSTR), blockNo)); in yaffs_BlockBecameDirty() 2747 (dev, blockNo * dev->nChunksPerBlock + i)) { in yaffs_BlockBecameDirty() 2751 TENDSTR), blockNo, i)); in yaffs_BlockBecameDirty() 2765 yaffs_ClearChunkBits(dev, blockNo); in yaffs_BlockBecameDirty() 2768 (TSTR("Erased block %d" TENDSTR), blockNo)); in yaffs_BlockBecameDirty() [all …]
|