Lines Matching defs:bch
120 static void encode_bch_unaligned(struct bch_control *bch, in encode_bch_unaligned()
141 static void load_ecc8(struct bch_control *bch, uint32_t *dst, in load_ecc8()
157 static void store_ecc8(struct bch_control *bch, uint8_t *dst, in store_ecc8()
190 void encode_bch(struct bch_control *bch, const uint8_t *data, in encode_bch()
266 static inline int modulo(struct bch_control *bch, unsigned int v) in modulo()
279 static inline int mod_s(struct bch_control *bch, unsigned int v) in mod_s()
305 static inline unsigned int gf_mul(struct bch_control *bch, unsigned int a, in gf_mul()
312 static inline unsigned int gf_sqr(struct bch_control *bch, unsigned int a) in gf_sqr()
317 static inline unsigned int gf_div(struct bch_control *bch, unsigned int a, in gf_div()
324 static inline unsigned int gf_inv(struct bch_control *bch, unsigned int a) in gf_inv()
329 static inline unsigned int a_pow(struct bch_control *bch, int i) in a_pow()
334 static inline int a_log(struct bch_control *bch, unsigned int x) in a_log()
339 static inline int a_ilog(struct bch_control *bch, unsigned int x) in a_ilog()
347 static void compute_syndromes(struct bch_control *bch, uint32_t *ecc, in compute_syndromes()
386 static int compute_error_locator_polynomial(struct bch_control *bch, in compute_error_locator_polynomial()
442 static int solve_linear_system(struct bch_control *bch, unsigned int *rows, in solve_linear_system()
518 static int find_affine4_roots(struct bch_control *bch, unsigned int a, in find_affine4_roots()
555 static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg1_roots()
570 static int find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg2_roots()
612 static int find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg3_roots()
645 static int find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg4_roots()
709 static void gf_poly_logrep(struct bch_control *bch, in gf_poly_logrep()
722 static void gf_poly_mod(struct bch_control *bch, struct gf_poly *a, in gf_poly_mod()
758 static void gf_poly_div(struct bch_control *bch, struct gf_poly *a, in gf_poly_div()
776 static struct gf_poly *gf_poly_gcd(struct bch_control *bch, struct gf_poly *a, in gf_poly_gcd()
805 static void compute_trace_bk_mod(struct bch_control *bch, int k, in compute_trace_bk_mod()
848 static void factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f, in factor_polynomial()
884 static int find_poly_roots(struct bch_control *bch, unsigned int k, in find_poly_roots()
924 static int chien_search(struct bch_control *bch, unsigned int len, in chien_search()
996 int decode_bch(struct bch_control *bch, const uint8_t *data, unsigned int len, in decode_bch()
1061 static int build_gf_tables(struct bch_control *bch, unsigned int poly) in build_gf_tables()
1089 static void build_mod8_tables(struct bch_control *bch, const uint32_t *g) in build_mod8_tables()
1123 static int build_deg2_base(struct bch_control *bch) in build_deg2_base()
1174 static uint32_t *compute_generator_polynomial(struct bch_control *bch) in compute_generator_polynomial()
1264 struct bch_control *bch = NULL; in init_bch() local
1359 void free_bch(struct bch_control *bch) in free_bch()