• Home
  • Raw
  • Download

Lines Matching refs:i

35 	int i;  in yaffs_CheckpointErase()  local
42 for (i = dev->internalStartBlock; i <= dev->internalEndBlock; i++) { in yaffs_CheckpointErase()
43 yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, i); in yaffs_CheckpointErase()
45 T(YAFFS_TRACE_CHECKPOINT, (TSTR("erasing checkpt block %d"TENDSTR), i)); in yaffs_CheckpointErase()
49 if (dev->eraseBlockInNAND(dev, i - dev->blockOffset /* realign */)) { in yaffs_CheckpointErase()
54 dev->markNANDBlockBad(dev, i); in yaffs_CheckpointErase()
68 int i; in yaffs_CheckpointFindNextErasedBlock() local
78 for (i = dev->checkpointNextBlock; i <= dev->internalEndBlock; i++) { in yaffs_CheckpointFindNextErasedBlock()
79 yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, i); in yaffs_CheckpointFindNextErasedBlock()
81 dev->checkpointNextBlock = i + 1; in yaffs_CheckpointFindNextErasedBlock()
82 dev->checkpointCurrentBlock = i; in yaffs_CheckpointFindNextErasedBlock()
83 T(YAFFS_TRACE_CHECKPOINT, (TSTR("allocating checkpt block %d"TENDSTR), i)); in yaffs_CheckpointFindNextErasedBlock()
96 int i; in yaffs_CheckpointFindNextCheckpointBlock() local
103 for (i = dev->checkpointNextBlock; i <= dev->internalEndBlock; i++) { in yaffs_CheckpointFindNextCheckpointBlock()
104 int chunk = i * dev->nChunksPerBlock; in yaffs_CheckpointFindNextCheckpointBlock()
110 i, tags.objectId, tags.sequenceNumber, tags.eccResult)); in yaffs_CheckpointFindNextCheckpointBlock()
115 dev->checkpointCurrentBlock = i; in yaffs_CheckpointFindNextCheckpointBlock()
116 dev->checkpointBlockList[dev->blocksInCheckpoint] = i; in yaffs_CheckpointFindNextCheckpointBlock()
118 T(YAFFS_TRACE_CHECKPOINT, (TSTR("found checkpt block %d"TENDSTR), i)); in yaffs_CheckpointFindNextCheckpointBlock()
166 int i; in yaffs_CheckpointOpen() local
177 for (i = 0; i < dev->checkpointMaxBlocks; i++) in yaffs_CheckpointOpen()
178 dev->checkpointBlockList[i] = -1; in yaffs_CheckpointOpen()
247 int i = 0; in yaffs_CheckpointWrite() local
261 while (i < nBytes && ok) { in yaffs_CheckpointWrite()
267 i++; in yaffs_CheckpointWrite()
277 return i; in yaffs_CheckpointWrite()
282 int i = 0; in yaffs_CheckpointRead() local
298 while (i < nBytes && ok) { in yaffs_CheckpointRead()
346 i++; in yaffs_CheckpointRead()
352 return i; in yaffs_CheckpointRead()
362 int i; in yaffs_CheckpointClose() local
363 for (i = 0; i < dev->blocksInCheckpoint && dev->checkpointBlockList[i] >= 0; i++) { in yaffs_CheckpointClose()
364 int blk = dev->checkpointBlockList[i]; in yaffs_CheckpointClose()