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]
/
yaffs_ecc.c
diff --git
a/yaffs_ecc.c
b/yaffs_ecc.c
index da6145aac27a1c3f8a583ea009ca70aecc9e1f79..71ebe765c9d29bd40056d28097128045fd3f3503 100644
(file)
--- a/
yaffs_ecc.c
+++ b/
yaffs_ecc.c
@@
-69,7
+69,7
@@
static const unsigned char column_parity_table[] = {
/* Count the bits in an unsigned char or a U32 */
/* Count the bits in an unsigned char or a U32 */
-static int yaffs_
CountB
its(unsigned char x)
+static int yaffs_
count_b
its(unsigned char x)
{
int r = 0;
while (x) {
{
int r = 0;
while (x) {
@@
-80,7
+80,7
@@
static int yaffs_CountBits(unsigned char x)
return r;
}
return r;
}
-static int yaffs_
CountB
its32(unsigned x)
+static int yaffs_
count_b
its32(unsigned x)
{
int r = 0;
while (x) {
{
int r = 0;
while (x) {
@@
-92,7
+92,7
@@
static int yaffs_CountBits32(unsigned x)
}
/* Calculate the ECC for a 256-byte block of data */
}
/* Calculate the ECC for a 256-byte block of data */
-void yaffs_
ECCCalculate
(const unsigned char *data, unsigned char *ecc)
+void yaffs_
ecc_cacl
(const unsigned char *data, unsigned char *ecc)
{
unsigned int i;
{
unsigned int i;
@@
-163,7
+163,7
@@
void yaffs_ECCCalculate(const unsigned char *data, unsigned char *ecc)
/* Correct the ECC on a 256 byte block of data */
/* Correct the ECC on a 256 byte block of data */
-int yaffs_
ECCC
orrect(unsigned char *data, unsigned char *read_ecc,
+int yaffs_
ecc_c
orrect(unsigned char *data, unsigned char *read_ecc,
const unsigned char *test_ecc)
{
unsigned char d0, d1, d2; /* deltas */
const unsigned char *test_ecc)
{
unsigned char d0, d1, d2; /* deltas */
@@
-223,9
+223,9
@@
int yaffs_ECCCorrect(unsigned char *data, unsigned char *read_ecc,
return 1; /* Corrected the error */
}
return 1; /* Corrected the error */
}
- if ((yaffs_
CountB
its(d0) +
- yaffs_
CountB
its(d1) +
- yaffs_
CountB
its(d2)) == 1) {
+ if ((yaffs_
count_b
its(d0) +
+ yaffs_
count_b
its(d1) +
+ yaffs_
count_b
its(d2)) == 1) {
/* Reccoverable error in ecc */
read_ecc[0] = test_ecc[0];
/* Reccoverable error in ecc */
read_ecc[0] = test_ecc[0];
@@
-245,7
+245,7
@@
int yaffs_ECCCorrect(unsigned char *data, unsigned char *read_ecc,
/*
* ECCxxxOther does ECC calcs on arbitrary n bytes of data
*/
/*
* ECCxxxOther does ECC calcs on arbitrary n bytes of data
*/
-void yaffs_
ECCCalculateO
ther(const unsigned char *data, unsigned nBytes,
+void yaffs_
ecc_calc_o
ther(const unsigned char *data, unsigned nBytes,
yaffs_ECCOther *eccOther)
{
unsigned int i;
yaffs_ECCOther *eccOther)
{
unsigned int i;
@@
-272,7
+272,7
@@
void yaffs_ECCCalculateOther(const unsigned char *data, unsigned nBytes,
eccOther->lineParityPrime = line_parity_prime;
}
eccOther->lineParityPrime = line_parity_prime;
}
-int yaffs_
ECCCorrectO
ther(unsigned char *data, unsigned nBytes,
+int yaffs_
ecc_correct_o
ther(unsigned char *data, unsigned nBytes,
yaffs_ECCOther *read_ecc,
const yaffs_ECCOther *test_ecc)
{
yaffs_ECCOther *read_ecc,
const yaffs_ECCOther *test_ecc)
{
@@
-309,8
+309,8
@@
int yaffs_ECCCorrectOther(unsigned char *data, unsigned nBytes,
return 1; /* corrected */
}
return 1; /* corrected */
}
- if ((yaffs_
CountBits32(lDelta) + yaffs_CountB
its32(lDeltaPrime) +
- yaffs_
CountB
its(cDelta)) == 1) {
+ if ((yaffs_
count_bits32(lDelta) + yaffs_count_b
its32(lDeltaPrime) +
+ yaffs_
count_b
its(cDelta)) == 1) {
/* Reccoverable error in ecc */
*read_ecc = *test_ecc;
/* Reccoverable error in ecc */
*read_ecc = *test_ecc;