Lines Matching refs:bch
4 * using binary BCH codes. It relies on the generic BCH library lib/bch.c.
17 #include <linux/bch.h>
21 * @bch: BCH control structure
26 struct bch_control *bch;
44 bch_encode(nbc->bch, buf, chip->ecc.size, code);
70 count = bch_decode(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc,
133 nbc->bch = bch_init(m, t, 0, false);
134 if (!nbc->bch)
138 if (nbc->bch->ecc_bytes != eccbytes) {
140 eccbytes, nbc->bch->ecc_bytes);
186 bch_encode(nbc->bch, erased_page, eccsize, nbc->eccmask);
209 bch_free(nbc->bch);