projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs More symbol changes
[yaffs2.git]
/
yaffs_packedtags2.c
diff --git
a/yaffs_packedtags2.c
b/yaffs_packedtags2.c
index e33e8a3ac37f1d3e118deb95624cb1243d6b5b29..f8030c7bea0ac89cf453d07e28924b430636945f 100644
(file)
--- a/
yaffs_packedtags2.c
+++ b/
yaffs_packedtags2.c
@@
-1,7
+1,7
@@
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
/*
* YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
*
- * Copyright (C) 2002-20
07
Aleph One Ltd.
+ * Copyright (C) 2002-20
10
Aleph One Ltd.
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
* for Toby Churchill Ltd and Brightstar Engineering
*
* Created by Charles Manning <charles@aleph1.co.uk>
@@
-97,24
+97,24
@@
void yaffs_PackTags2TagsPart(yaffs_PackedTags2TagsPart *ptt,
}
}
-void yaffs_PackTags2(yaffs_
Device *dev, yaffs_PackedTags2 *pt, const yaffs_ExtendedTags *t
)
+void yaffs_PackTags2(yaffs_
PackedTags2 *pt, const yaffs_ExtendedTags *t, int tagsECC
)
{
yaffs_PackTags2TagsPart(&pt->t, t);
{
yaffs_PackTags2TagsPart(&pt->t, t);
- if(
!dev->noT
agsECC)
- yaffs_
ECCCalculateO
ther((unsigned char *)&pt->t,
+ if(
t
agsECC)
+ yaffs_
ecc_calc_o
ther((unsigned char *)&pt->t,
sizeof(yaffs_PackedTags2TagsPart),
&pt->ecc);
}
sizeof(yaffs_PackedTags2TagsPart),
&pt->ecc);
}
-void yaffs_
UnpackTags2TagsP
art(yaffs_ExtendedTags *t,
+void yaffs_
unpack_tags2tags_p
art(yaffs_ExtendedTags *t,
yaffs_PackedTags2TagsPart *ptt)
{
memset(t, 0, sizeof(yaffs_ExtendedTags));
yaffs_PackedTags2TagsPart *ptt)
{
memset(t, 0, sizeof(yaffs_ExtendedTags));
- yaffs_
InitialiseT
ags(t);
+ yaffs_
init_t
ags(t);
if (ptt->sequenceNumber != 0xFFFFFFFF) {
t->blockBad = 0;
if (ptt->sequenceNumber != 0xFFFFFFFF) {
t->blockBad = 0;
@@
-156,21
+156,21
@@
void yaffs_UnpackTags2TagsPart(yaffs_ExtendedTags *t,
}
}
-void yaffs_
UnpackTags2(yaffs_Device *dev, yaffs_ExtendedTags *t, yaffs_PackedTags2 *pt
)
+void yaffs_
unpack_tags2(yaffs_ExtendedTags *t, yaffs_PackedTags2 *pt, int tagsECC
)
{
yaffs_ECCResult eccResult = YAFFS_ECC_RESULT_NO_ERROR;
if (pt->t.sequenceNumber != 0xFFFFFFFF &&
{
yaffs_ECCResult eccResult = YAFFS_ECC_RESULT_NO_ERROR;
if (pt->t.sequenceNumber != 0xFFFFFFFF &&
-
!dev->noT
agsECC){
+
t
agsECC){
/* Chunk is in use and we need to do ECC */
yaffs_ECCOther ecc;
int result;
/* Chunk is in use and we need to do ECC */
yaffs_ECCOther ecc;
int result;
- yaffs_
ECCCalculateO
ther((unsigned char *)&pt->t,
+ yaffs_
ecc_calc_o
ther((unsigned char *)&pt->t,
sizeof(yaffs_PackedTags2TagsPart),
&ecc);
sizeof(yaffs_PackedTags2TagsPart),
&ecc);
- result = yaffs_
ECCCorrectO
ther((unsigned char *)&pt->t,
+ result = yaffs_
ecc_correct_o
ther((unsigned char *)&pt->t,
sizeof(yaffs_PackedTags2TagsPart),
&pt->ecc, &ecc);
switch (result) {
sizeof(yaffs_PackedTags2TagsPart),
&pt->ecc, &ecc);
switch (result) {
@@
-188,7
+188,7
@@
void yaffs_UnpackTags2(yaffs_Device *dev, yaffs_ExtendedTags *t, yaffs_PackedTag
}
}
}
}
- yaffs_
UnpackTags2TagsP
art(t, &pt->t);
+ yaffs_
unpack_tags2tags_p
art(t, &pt->t);
t->eccResult = eccResult;
t->eccResult = eccResult;