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