Lines Matching refs:nwords
156 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1;
158 for (i = 0; i < nwords; i++, src += 4)
164 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords);
165 dst[nwords] = ((u32)swap_bits(bch, pad[0]) << 24) |
178 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1;
180 for (i = 0; i < nwords; i++) {
186 pad[0] = swap_bits(bch, src[nwords] >> 24);
187 pad[1] = swap_bits(bch, src[nwords] >> 16);
188 pad[2] = swap_bits(bch, src[nwords] >> 8);
189 pad[3] = swap_bits(bch, src[nwords]);
190 memcpy(dst, pad, BCH_ECC_BYTES(bch)-4*nwords);