Home
last modified time | relevance | path

Searched refs:blockNo (Results 1 – 11 of 11) sorted by relevance

/fs/yaffs2/
Dyaffs_nand.c93 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()
Dyaffs_mtdif2.c190 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()
Dyaffs_mtdif1.c281 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()
Dyaffs_mtdif2.h25 int nandmtd2_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
26 int nandmtd2_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
Dyaffs_mtdif1.h23 int nandmtd1_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
25 int nandmtd1_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
Dyaffs_nand.h31 int yaffs_MarkBlockBad(yaffs_Device *dev, int blockNo);
34 int blockNo,
Dyaffs_tagscompat.h29 int blockNo);
31 int blockNo,
Dyaffs_nandemul2k.h29 int nandemul2k_MarkNANDBlockBad(struct yaffs_DeviceStruct *dev, int blockNo);
30 int nandemul2k_QueryNANDBlock(struct yaffs_DeviceStruct *dev, int blockNo,
Dyaffs_tagscompat.c508 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()
Dyaffs_guts.h587 int (*markNANDBlockBad) (struct yaffs_DeviceStruct *dev, int blockNo);
588 int (*queryNANDBlock) (struct yaffs_DeviceStruct *dev, int blockNo,
Dyaffs_guts.c77 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 …]