Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\reed_solomon\test_rslib.c Create Date:2022-07-28 06:59:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ex_rs_helper

Proto:static int ex_rs_helper(struct rs_control *rs, struct wspace *ws, int len, int trials, int method)

Type:int

Parameter:

TypeParameterName
struct rs_control *rs
struct wspace *ws
intlen
inttrials
intmethod
316  static const char * const desc[] = {"Testing correction buffer interface...", "Testing with caller provided syndrome...", "Testing in-place interface..."}
322  struct estat stat = {0, 0, 0, 0}
323  nroots = nroots
326  If v >= V_PROGRESS Then pr_info(" %s\n", desc[method])
329  When errs <= nroots / 2 cycle When eras <= nroots - 2 * errs cycle
331  Test up to error correction capacity
333  If v >= V_CSUMMARY Then
334  pr_info(" Decodes wrong: %d / %d\n", dwrong, nwords)
336  pr_info(" Wrong return value: %d / %d\n", irv, nwords)
338  If method != IN_PLACE Then pr_info(" Wrong error position: %d\n", wepos)
342  retval = dwrong + wepos + irv
343  If retval && v >= V_PROGRESS Then pr_warn(" FAIL: %d decoding failures!\n", retval)
346  Return retval
Caller
NameDescribe
exercise_rs