Home
last modified time | relevance | path

Searched refs:chunkInNAND (Results 1 – 18 of 18) sorted by relevance

/external/yaffs2/yaffs2/
Dyaffs_tagscompat.c20 static void yaffs_HandleReadDataError(yaffs_Device * dev, int chunkInNAND);
22 static void yaffs_CheckWrittenBlock(yaffs_Device * dev, int chunkInNAND);
23 static void yaffs_HandleWriteChunkOk(yaffs_Device * dev, int chunkInNAND,
26 static void yaffs_HandleUpdateChunk(yaffs_Device * dev, int chunkInNAND,
28 static void yaffs_HandleWriteChunkError(yaffs_Device * dev, int chunkInNAND);
166 int chunkInNAND, const __u8 * data, in yaffs_WriteChunkToNAND() argument
169 if (chunkInNAND < dev->startBlock * dev->nChunksPerBlock) { in yaffs_WriteChunkToNAND()
172 chunkInNAND)); in yaffs_WriteChunkToNAND()
177 return dev->writeChunkToNAND(dev, chunkInNAND, data, spare); in yaffs_WriteChunkToNAND()
181 int chunkInNAND, in yaffs_ReadChunkFromNAND() argument
[all …]
Dyaffs_nand.c23 int yaffs_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND, in yaffs_ReadChunkWithTagsFromNAND() argument
30 int realignedChunkInNAND = chunkInNAND - dev->chunkOffset; in yaffs_ReadChunkWithTagsFromNAND()
47 yaffs_BlockInfo *bi = yaffs_GetBlockInfo(dev, chunkInNAND/dev->nChunksPerBlock); in yaffs_ReadChunkWithTagsFromNAND()
55 int chunkInNAND, in yaffs_WriteChunkWithTagsToNAND() argument
59 chunkInNAND -= dev->chunkOffset; in yaffs_WriteChunkWithTagsToNAND()
71 (TSTR("Writing chunk %d tags %d %d" TENDSTR), chunkInNAND, in yaffs_WriteChunkWithTagsToNAND()
79 return dev->writeChunkWithTagsToNAND(dev, chunkInNAND, buffer, in yaffs_WriteChunkWithTagsToNAND()
83 chunkInNAND, in yaffs_WriteChunkWithTagsToNAND()
Dyaffs_mtdif2.c119 int nandmtd2_WriteChunkWithTagsToNAND(yaffs_Device * dev, int chunkInNAND, in nandmtd2_WriteChunkWithTagsToNAND() argument
131 loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; in nandmtd2_WriteChunkWithTagsToNAND()
138 TENDSTR), chunkInNAND, data, tags)); in nandmtd2_WriteChunkWithTagsToNAND()
180 int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND, in nandmtd2_ReadChunkWithTagsFromNAND() argument
190 loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; in nandmtd2_ReadChunkWithTagsFromNAND()
197 TENDSTR), chunkInNAND, data, tags)); in nandmtd2_ReadChunkWithTagsFromNAND()
Dyaffs_mtdif.h25 int nandmtd_WriteChunkToNAND(yaffs_Device * dev, int chunkInNAND,
27 int nandmtd_ReadChunkFromNAND(yaffs_Device * dev, int chunkInNAND, __u8 * data,
Dyaffs_tagscompat.h25 int chunkInNAND,
30 int chunkInNAND,
Dyaffs_mtdif2.h20 int nandmtd2_WriteChunkWithTagsToNAND(yaffs_Device * dev, int chunkInNAND,
23 int nandmtd2_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND,
Dyaffs_nand.h21 int yaffs_ReadChunkWithTagsFromNAND(yaffs_Device * dev, int chunkInNAND,
26 int chunkInNAND,
Dyaffs_nandemul2k.h27 int chunkInNAND, const __u8 * data,
30 int chunkInNAND, __u8 * data,
Dyaffs_mtdif.c74 int nandmtd_WriteChunkToNAND(yaffs_Device * dev, int chunkInNAND, in nandmtd_WriteChunkToNAND() argument
84 loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; in nandmtd_WriteChunkToNAND()
138 int nandmtd_ReadChunkFromNAND(yaffs_Device * dev, int chunkInNAND, __u8 * data, in nandmtd_ReadChunkFromNAND() argument
148 loff_t addr = ((loff_t) chunkInNAND) * dev->nDataBytesPerChunk; in nandmtd_ReadChunkFromNAND()
Dyaffs_guts.h566 int chunkInNAND, const __u8 * data,
569 int chunkInNAND, __u8 * data,
577 int chunkInNAND, const __u8 * data,
580 int chunkInNAND, __u8 * data,
Dyaffs_guts.c48 static void yaffs_HandleWriteChunkError(yaffs_Device * dev, int chunkInNAND, int erasedOk);
49 static void yaffs_HandleWriteChunkOk(yaffs_Device * dev, int chunkInNAND,
52 static void yaffs_HandleUpdateChunk(yaffs_Device * dev, int chunkInNAND,
66 int chunkInNAND, int inScan);
87 int chunkInNAND);
364 int chunkInNAND) in yaffs_CheckChunkErased() argument
372 result = yaffs_ReadChunkWithTagsFromNAND(dev, chunkInNAND, data, &tags); in yaffs_CheckChunkErased()
380 (TSTR("Chunk %d not erased" TENDSTR), chunkInNAND)); in yaffs_CheckChunkErased()
503 static void yaffs_HandleWriteChunkOk(yaffs_Device * dev, int chunkInNAND, in yaffs_HandleWriteChunkOk() argument
509 static void yaffs_HandleUpdateChunk(yaffs_Device * dev, int chunkInNAND, in yaffs_HandleUpdateChunk() argument
[all …]
/external/yaffs2/yaffs2/direct/
Dyaffs_ramdisk.c119 int yramdisk_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, yaffs_Ext… in yramdisk_WriteChunkWithTagsToNAND() argument
127 blk = chunkInNAND/32; in yramdisk_WriteChunkWithTagsToNAND()
128 pg = chunkInNAND%32; in yramdisk_WriteChunkWithTagsToNAND()
150 int yramdisk_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_Extende… in yramdisk_ReadChunkWithTagsFromNAND() argument
158 blk = chunkInNAND/32; in yramdisk_ReadChunkWithTagsFromNAND()
159 pg = chunkInNAND%32; in yramdisk_ReadChunkWithTagsFromNAND()
181 int yramdisk_CheckChunkErased(yaffs_Device *dev,int chunkInNAND) in yramdisk_CheckChunkErased() argument
190 blk = chunkInNAND/32; in yramdisk_CheckChunkErased()
191 pg = chunkInNAND%32; in yramdisk_CheckChunkErased()
Dyaffs_flashif.c115 int yflash_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, yaffs_Exten… in yflash_WriteChunkWithTagsToNAND() argument
123 blk = chunkInNAND/32; in yflash_WriteChunkWithTagsToNAND()
124 pg = chunkInNAND%32; in yflash_WriteChunkWithTagsToNAND()
145 int yflash_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_Tags *tag… in yflash_ReadChunkWithTagsFromNAND() argument
153 blk = chunkInNAND/32; in yflash_ReadChunkWithTagsFromNAND()
154 pg = chunkInNAND%32; in yflash_ReadChunkWithTagsFromNAND()
174 int yflash_CheckChunkErased(yaffs_Device *dev,int chunkInNAND) in yflash_CheckChunkErased() argument
183 blk = chunkInNAND/32; in yflash_CheckChunkErased()
184 pg = chunkInNAND%32; in yflash_CheckChunkErased()
Dyaffs_fileem2k.c142 int yflash_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, yaffs_Exten… in yflash_WriteChunkWithTagsToNAND() argument
154 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE; in yflash_WriteChunkWithTagsToNAND()
155 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_WriteChunkWithTagsToNAND()
170 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE + PAGE_DATA_SIZE ; in yflash_WriteChunkWithTagsToNAND()
171 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_WriteChunkWithTagsToNAND()
210 int yflash_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_ExtendedT… in yflash_ReadChunkWithTagsFromNAND() argument
223 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE; in yflash_ReadChunkWithTagsFromNAND()
224 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_ReadChunkWithTagsFromNAND()
233 pos = (chunkInNAND % (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE)) * PAGE_SIZE + PAGE_DATA_SIZE; in yflash_ReadChunkWithTagsFromNAND()
234 h = filedisk.handle[(chunkInNAND / (PAGES_PER_BLOCK * BLOCKS_PER_HANDLE))]; in yflash_ReadChunkWithTagsFromNAND()
[all …]
Dyaffs_ramem2k.c192 int nandemul2k_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, yaffs_E… in nandemul2k_WriteChunkWithTagsToNAND() argument
201 blk = chunkInNAND/PAGES_PER_BLOCK; in nandemul2k_WriteChunkWithTagsToNAND()
202 pg = chunkInNAND%PAGES_PER_BLOCK; in nandemul2k_WriteChunkWithTagsToNAND()
235 int nandemul2k_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_Exten… in nandemul2k_ReadChunkWithTagsFromNAND() argument
244 blk = chunkInNAND/PAGES_PER_BLOCK; in nandemul2k_ReadChunkWithTagsFromNAND()
245 pg = chunkInNAND%PAGES_PER_BLOCK; in nandemul2k_ReadChunkWithTagsFromNAND()
265 static int nandemul2k_CheckChunkErased(yaffs_Device *dev,int chunkInNAND) in nandemul2k_CheckChunkErased() argument
273 blk = chunkInNAND/PAGES_PER_BLOCK; in nandemul2k_CheckChunkErased()
274 pg = chunkInNAND%PAGES_PER_BLOCK; in nandemul2k_CheckChunkErased()
Dyaffs_fileem.c119 int yflash_WriteChunkToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, const yaffs_Spare *… in yflash_WriteChunkToNAND() argument
129 lseek(filedisk.handle,chunkInNAND * 528,SEEK_SET); in yflash_WriteChunkToNAND()
137 lseek(filedisk.handle,chunkInNAND * 528 + 512,SEEK_SET); in yflash_WriteChunkToNAND()
149 int yflash_ReadChunkFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_Spare *spare) in yflash_ReadChunkFromNAND() argument
159 lseek(filedisk.handle,chunkInNAND * 528,SEEK_SET); in yflash_ReadChunkFromNAND()
167 lseek(filedisk.handle,chunkInNAND * 528 + 512,SEEK_SET); in yflash_ReadChunkFromNAND()
Dyaffs_flashif.h26 int yflash_WriteChunkToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, const yaffs_Spare *…
27 int yflash_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, yaffs_Exten…
28 int yflash_ReadChunkFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_Spare *spare);
29 int yflash_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_ExtendedT…
Dyaffs_ramdisk.h26 int yramdisk_WriteChunkWithTagsToNAND(yaffs_Device *dev,int chunkInNAND,const __u8 *data, yaffs_Ext…
27 int yramdisk_ReadChunkWithTagsFromNAND(yaffs_Device *dev,int chunkInNAND, __u8 *data, yaffs_Extende…