Lines Matching full:bch

21 #include <linux/bch.h>
41 * - a 7 bytes BCH code stored in the OOB for each page
42 * The BCH ECC is :
43 * - BCH is in GF(2^14)
44 * - BCH is over data of 520 bytes (512 page + 7 page_info bytes
46 * - BCH can correct up to 4 bits (t = 4)
47 * - BCH syndroms are calculated in hardware, and checked in hardware as well
62 /* byte 7 is Hamming ECC, byte 8-14 are BCH ECC */ in docg3_ooblayout_ecc()
550 * @len: the number of bytes covered by the ECC (BCH covered)
553 * ECC (on 1 byte) and the BCH hardware ECC (on 7 bytes).
569 * doc_write_page_ecc_init - Initialize hardware BCH ECC engine
571 * @len: the number of bytes covered by the ECC (BCH covered)
574 * ECC (on 1 byte) and the BCH hardware ECC (on 7 bytes).
590 * doc_ecc_disable - Disable Hamming and BCH ECC hardware calculator
631 * the BCH library, the function reverses the order of bits (ie. bit7 and bit0,
634 * The hardware ecc unit produces oob_ecc ^ calc_ecc. The kernel's bch
636 * data in a bit order that is the reverse of that of the bch alg,
650 numerrs = decode_bch(docg3->cascade->bch, NULL, in doc_ecc_bch_fix_data()
781 * doc_get_bch_hw_ecc - Get hardware calculated BCH ECC
1213 * BCH computations. If 1, only bytes 0-7 and byte 15 are taken,
1214 * remaining ones are filled with hardware Hamming and BCH
1219 * BCH generator if autoecc is not null.
1987 cascade->bch = init_bch(DOC_ECC_BCH_M, DOC_ECC_BCH_T, in docg3_probe()
1989 if (!cascade->bch) in docg3_probe()
2024 free_bch(cascade->bch); in docg3_probe()
2048 free_bch(docg3->cascade->bch); in docg3_release()