函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\bch.c Create Date:2022-07-27 07:57:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mpute 2t syndromes of ecc polynomial, i.e. ecc(a^j) for j=1..2t

函数原型:static void compute_syndromes(struct bch_control *bch, uint32_t *ecc, unsigned int *syn)

返回类型:void

参数:

类型参数名称
struct bch_control *bch
uint32_t *ecc
unsigned int *syn
353  t等于GF_T(bch)
355  s等于ecc_bits
358  m等于s按位与31
359  如果mecc[s / 32]与等于1u左移32减m位的值减1的差的反
361  memset(syn, 0, 2 * t * syn的长度)
364  循环
365  poly等于ecc自加
366  s减等于32
367 poly循环
368  i等于deg(poly)
369 j小于2乘t循环syn[j]异或等于a_pow(bch, (j + 1) * (i + s))
372  poly异或等于1左移i
374 s大于0循环
377 j小于t循环syn[2 * j + 1]等于gf_sqr(bch, syn[j])
调用者
名称描述
decode_bchdecode_bch - decode received codeword and find bit error locations*@bch: BCH control structure*@data: received data, ignored if @calc_ecc is provided*@len: data length in bytes, must always be provided*@recv_ecc: received ecc, if NULL then assume it was