Lines Matching refs:nwords
179 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8() local
181 for (i = 0; i < nwords; i++, src += 4) in load_ecc8()
184 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
185 dst[nwords] = (pad[0] << 24)|(pad[1] << 16)|(pad[2] << 8)|pad[3]; in load_ecc8()
195 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8() local
197 for (i = 0; i < nwords; i++) { in store_ecc8()
203 pad[0] = (src[nwords] >> 24); in store_ecc8()
204 pad[1] = (src[nwords] >> 16) & 0xff; in store_ecc8()
205 pad[2] = (src[nwords] >> 8) & 0xff; in store_ecc8()
206 pad[3] = (src[nwords] >> 0) & 0xff; in store_ecc8()
207 memcpy(dst, pad, BCH_ECC_BYTES(bch)-4*nwords); in store_ecc8()