函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:compute_error_locator_polynomial

函数原型:static int compute_error_locator_polynomial(struct bch_control *bch, const unsigned int *syn)

返回类型:int

参数:

类型参数名称
struct bch_control *bch
const unsigned int *syn
389  t等于GF_T(bch)
390  n等于GF_N(bch)
391  pd等于1, d等于syn[0]
392  elp等于elp
393  pelp等于poly_2t[0]
394  elp_copy等于poly_2t[1]
395  pp等于负1
397  memset(pelp, 0, given its degree, compute a polynomial size in bytes (2 * t))
398  memset(elp, 0, given its degree, compute a polynomial size in bytes (2 * t))
400  polynomial degree 等于0
401  polynomial terms [0]等于1
402  polynomial degree 等于0
403  polynomial terms [0]等于1
406 i小于tpolynomial degree 小于等于t循环
407  如果d
408  k等于2乘ipp
411  tmp等于a_log(bch, d)加na_log(bch, pd)
412 j小于等于polynomial degree 循环
413  如果polynomial terms [j]则
414  l等于a_log(bch, polynomial terms [j])
415  polynomial terms [j + k]异或等于a_pow(bch, tmp + l)
419  tmp等于polynomial degree k
420  如果tmp大于polynomial degree
421  polynomial degree 等于tmp
423  pd等于d
424  pp等于2乘i
428  如果i小于t减1则
429  d等于syn[2 * i + 2]
434  dbg("elp=%s\n", gf_poly_str(elp))
435  返回:如果polynomial degree 大于t则负1否则polynomial degree
调用者
名称描述
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