projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Working on timothy_tests and have updated yaffs_importer.py
[yaffs2.git]
/
yaffs_ecc.c
diff --git
a/yaffs_ecc.c
b/yaffs_ecc.c
index 71ebe765c9d29bd40056d28097128045fd3f3503..4030908d518178c01de13b195290a3970337e627 100644
(file)
--- a/
yaffs_ecc.c
+++ b/
yaffs_ecc.c
@@
-245,7
+245,7
@@
int yaffs_ecc_correct(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_ecc_calc_other(const unsigned char *data, unsigned n
B
ytes,
+void yaffs_ecc_calc_other(const unsigned char *data, unsigned n
_b
ytes,
yaffs_ECCOther *eccOther)
{
unsigned int i;
yaffs_ECCOther *eccOther)
{
unsigned int i;
@@
-255,7
+255,7
@@
void yaffs_ecc_calc_other(const unsigned char *data, unsigned nBytes,
unsigned line_parity_prime = 0;
unsigned char b;
unsigned line_parity_prime = 0;
unsigned char b;
- for (i = 0; i < n
B
ytes; i++) {
+ for (i = 0; i < n
_b
ytes; i++) {
b = column_parity_table[*data++];
col_parity ^= b;
b = column_parity_table[*data++];
col_parity ^= b;
@@
-272,7
+272,7
@@
void yaffs_ecc_calc_other(const unsigned char *data, unsigned nBytes,
eccOther->lineParityPrime = line_parity_prime;
}
eccOther->lineParityPrime = line_parity_prime;
}
-int yaffs_ecc_correct_other(unsigned char *data, unsigned n
B
ytes,
+int yaffs_ecc_correct_other(unsigned char *data, unsigned n
_b
ytes,
yaffs_ECCOther *read_ecc,
const yaffs_ECCOther *test_ecc)
{
yaffs_ECCOther *read_ecc,
const yaffs_ECCOther *test_ecc)
{
@@
-301,7
+301,7
@@
int yaffs_ecc_correct_other(unsigned char *data, unsigned nBytes,
if (cDelta & 0x02)
bit |= 0x01;
if (cDelta & 0x02)
bit |= 0x01;
- if (lDelta >= n
B
ytes)
+ if (lDelta >= n
_b
ytes)
return -1;
data[lDelta] ^= (1 << bit);
return -1;
data[lDelta] ^= (1 << bit);