Home
last modified time | relevance | path

Searched refs:bch (Results 1 – 2 of 2) sorted by relevance

/lib/
Dbch.c114 static void encode_bch_unaligned(struct bch_control *bch, in encode_bch_unaligned() argument
120 const int l = BCH_ECC_WORDS(bch)-1; in encode_bch_unaligned()
123 p = bch->mod8_tab + (l+1)*(((ecc[0] >> 24)^(*data++)) & 0xff); in encode_bch_unaligned()
135 static void load_ecc8(struct bch_control *bch, uint32_t *dst, in load_ecc8() argument
139 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in load_ecc8()
144 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
151 static void store_ecc8(struct bch_control *bch, uint8_t *dst, in store_ecc8() argument
155 unsigned int i, nwords = BCH_ECC_WORDS(bch)-1; in store_ecc8()
167 memcpy(dst, pad, BCH_ECC_BYTES(bch)-4*nwords); in store_ecc8()
184 void encode_bch(struct bch_control *bch, const uint8_t *data, in encode_bch() argument
[all …]
DMakefile104 obj-$(CONFIG_BCH) += bch.o