Lines Matching refs:bch_control

152 static u8 swap_bits(struct bch_control *bch, u8 in)  in swap_bits()
163 static void bch_encode_unaligned(struct bch_control *bch, in bch_encode_unaligned()
186 static void load_ecc8(struct bch_control *bch, uint32_t *dst, in load_ecc8()
208 static void store_ecc8(struct bch_control *bch, uint8_t *dst, in store_ecc8()
241 void bch_encode(struct bch_control *bch, const uint8_t *data, in bch_encode()
323 static inline int modulo(struct bch_control *bch, unsigned int v) in modulo()
336 static inline int mod_s(struct bch_control *bch, unsigned int v) in mod_s()
362 static inline unsigned int gf_mul(struct bch_control *bch, unsigned int a, in gf_mul()
369 static inline unsigned int gf_sqr(struct bch_control *bch, unsigned int a) in gf_sqr()
374 static inline unsigned int gf_div(struct bch_control *bch, unsigned int a, in gf_div()
381 static inline unsigned int gf_inv(struct bch_control *bch, unsigned int a) in gf_inv()
386 static inline unsigned int a_pow(struct bch_control *bch, int i) in a_pow()
391 static inline int a_log(struct bch_control *bch, unsigned int x) in a_log()
396 static inline int a_ilog(struct bch_control *bch, unsigned int x) in a_ilog()
404 static void compute_syndromes(struct bch_control *bch, uint32_t *ecc, in compute_syndromes()
443 static int compute_error_locator_polynomial(struct bch_control *bch, in compute_error_locator_polynomial()
499 static int solve_linear_system(struct bch_control *bch, unsigned int *rows, in solve_linear_system()
575 static int find_affine4_roots(struct bch_control *bch, unsigned int a, in find_affine4_roots()
612 static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg1_roots()
627 static int find_poly_deg2_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg2_roots()
669 static int find_poly_deg3_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg3_roots()
702 static int find_poly_deg4_roots(struct bch_control *bch, struct gf_poly *poly, in find_poly_deg4_roots()
766 static void gf_poly_logrep(struct bch_control *bch, in gf_poly_logrep()
779 static void gf_poly_mod(struct bch_control *bch, struct gf_poly *a, in gf_poly_mod()
815 static void gf_poly_div(struct bch_control *bch, struct gf_poly *a, in gf_poly_div()
833 static struct gf_poly *gf_poly_gcd(struct bch_control *bch, struct gf_poly *a, in gf_poly_gcd()
862 static void compute_trace_bk_mod(struct bch_control *bch, int k, in compute_trace_bk_mod()
905 static void factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f, in factor_polynomial()
941 static int find_poly_roots(struct bch_control *bch, unsigned int k, in find_poly_roots()
981 static int chien_search(struct bch_control *bch, unsigned int len, in chien_search()
1053 int bch_decode(struct bch_control *bch, const uint8_t *data, unsigned int len, in bch_decode()
1120 static int build_gf_tables(struct bch_control *bch, unsigned int poly) in build_gf_tables()
1148 static void build_mod8_tables(struct bch_control *bch, const uint32_t *g) in build_mod8_tables()
1182 static int build_deg2_base(struct bch_control *bch) in build_deg2_base()
1233 static uint32_t *compute_generator_polynomial(struct bch_control *bch) in compute_generator_polynomial()
1319 struct bch_control *bch_init(int m, int t, unsigned int prim_poly, in bch_init()
1325 struct bch_control *bch = NULL; in bch_init()
1421 void bch_free(struct bch_control *bch) in bch_free()