projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs First round of name changes
[yaffs2.git]
/
utils
/
mkyaffsimage.c
diff --git
a/utils/mkyaffsimage.c
b/utils/mkyaffsimage.c
index e8434e8bd621a1fab7ac99015060cab41312d529..b7173eb3b91c354c81fc17d604362c2ea20cbbdd 100644
(file)
--- a/
utils/mkyaffsimage.c
+++ b/
utils/mkyaffsimage.c
@@
-113,7
+113,7
@@
static int find_obj_in_list(dev_t dev, ino_t ino)
}
// NCB added 10/9/2002
}
// NCB added 10/9/2002
-static __u16 yaffs_
CalcNameS
um(const char *name)
+static __u16 yaffs_
calc_name_s
um(const char *name)
{
__u16 sum = 0;
__u16 i = 1;
{
__u16 sum = 0;
__u16 i = 1;
@@
-130,13
+130,13
@@
static __u16 yaffs_CalcNameSum(const char *name)
}
}
-static void yaffs_
CalcECC
(const __u8 *data, yaffs_Spare *spare)
+static void yaffs_
calc_ecc
(const __u8 *data, yaffs_Spare *spare)
{
{
- yaffs_
ECCCalculate
(data , spare->ecc1);
- yaffs_
ECCCalculate
(&data[256] , spare->ecc2);
+ yaffs_
ecc_cacl
(data , spare->ecc1);
+ yaffs_
ecc_cacl
(&data[256] , spare->ecc2);
}
}
-static void yaffs_
CalcTagsECC
(yaffs_Tags *tags)
+static void yaffs_
calc_tags_ecc
(yaffs_Tags *tags)
{
// Todo don't do anything yet. Need to calculate ecc
unsigned char *b = ((yaffs_TagsUnion *)tags)->asBytes;
{
// Todo don't do anything yet. Need to calculate ecc
unsigned char *b = ((yaffs_TagsUnion *)tags)->asBytes;
@@
-181,11
+181,11
@@
static void yaffs_CalcTagsECC(yaffs_Tags *tags)
b[7] |= ((ecc & 0x3F) << 2);
}
}
b[7] |= ((ecc & 0x3F) << 2);
}
}
-static void yaffs_
LoadTagsIntoS
pare(yaffs_Spare *sparePtr, yaffs_Tags *tagsPtr)
+static void yaffs_
load_tags_to_s
pare(yaffs_Spare *sparePtr, yaffs_Tags *tagsPtr)
{
yaffs_TagsUnion *tu = (yaffs_TagsUnion *)tagsPtr;
{
yaffs_TagsUnion *tu = (yaffs_TagsUnion *)tagsPtr;
- //yaffs_
CalcTagsECC
(tagsPtr);
+ //yaffs_
calc_tags_ecc
(tagsPtr);
sparePtr->tagByte0 = tu->asBytes[0];
sparePtr->tagByte1 = tu->asBytes[1];
sparePtr->tagByte0 = tu->asBytes[0];
sparePtr->tagByte1 = tu->asBytes[1];
@@
-249,9
+249,9
@@
static int write_chunk(__u8 *data, __u32 objId, __u32 chunkId, __u32 nBytes)
little_to_big_endian(&t);
}
little_to_big_endian(&t);
}
- yaffs_
CalcTagsECC
(&t);
- yaffs_
LoadTagsIntoS
pare(&s,&t);
- yaffs_
CalcECC
(data,&s);
+ yaffs_
calc_tags_ecc
(&t);
+ yaffs_
load_tags_to_s
pare(&s,&t);
+ yaffs_
calc_ecc
(data,&s);
nPages++;
nPages++;