Lines Matching refs:bytes

18 NAND flash (at least SLC one) typically has sectors of 256 bytes.
28 bytes. This is done by calculating several parity bits over the rows and
52 This figure represents a sector of 256 bytes.
66 rp0 is the parity of all even bytes (0, 2, 4, 6, ... 252, 254)
67 rp1 is the parity of all odd bytes (1, 3, 5, 7, ..., 253, 255)
68 rp2 is the parity of all bytes 0, 1, 4, 5, 8, 9, ...
69 (so handle two bytes, then skip 2 bytes).
70 rp3 is covers the half rp2 does not cover (bytes 2, 3, 6, 7, 10, 11, ...)
71 for rp4 the rule is cover 4 bytes, skip 4 bytes, cover 4 bytes, skip 4 etc.
72 so rp4 calculates parity over bytes 0, 1, 2, 3, 8, 9, 10, 11, 16, ...)
73 and rp5 covers the other half, so bytes 4, 5, 6, 7, 12, 13, 14, 15, 20, ..
75 rp6 covers 8 bytes then skips 8 etc
76 rp7 skips 8 bytes then covers 8 etc
77 rp8 covers 16 bytes then skips 16 etc
78 rp9 skips 16 bytes then covers 16 etc
79 rp10 covers 32 bytes then skips 32 etc
80 rp11 skips 32 bytes then covers 32 etc
81 rp12 covers 64 bytes then skips 64 etc
82 rp13 skips 64 bytes then covers 64 etc
83 rp14 covers 128 bytes then skips 128
84 rp15 skips 128 bytes then covers 128
86 In the end the parity bits are grouped together in three bytes as
159 For the column parity this is easy. We can just xor the bytes and in the
163 Similarly we can first xor the bytes for the various rows.
275 (because par now consists of 4 bytes, contributing to rp1, rp0, rp1, rp0
278 first two bytes and rp2 the last two bytes.
281 And note that care must taken wrt byte ordering. The way bytes are
483 bytes and rp4 and rp5 each contain the xor of half of the bytes.
678 tripled (from 562 bytes to 1434 bytes). Then again, it is not that much.
687 the calculated ecc. If all bytes are 0 there is no problem. If 11 bits
693 Code size increased from 330 bytes to 686 bytes for this function.