Lines Matching refs:nwords
139 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8() local
141 for (i = 0; i < nwords; i++, src += 4) in load_ecc8()
144 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
145 dst[nwords] = (pad[0] << 24)|(pad[1] << 16)|(pad[2] << 8)|pad[3]; in load_ecc8()
155 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8() local
157 for (i = 0; i < nwords; i++) { in store_ecc8()
163 pad[0] = (src[nwords] >> 24); in store_ecc8()
164 pad[1] = (src[nwords] >> 16) & 0xff; in store_ecc8()
165 pad[2] = (src[nwords] >> 8) & 0xff; in store_ecc8()
166 pad[3] = (src[nwords] >> 0) & 0xff; in store_ecc8()
167 memcpy(dst, pad, BCH_ECC_BYTES(bch)-4*nwords); in store_ecc8()