函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:same as encode_bch(), but process input data one byte at a time

函数原型:static void encode_bch_unaligned(struct bch_control *bch, const unsigned char *data, unsigned int len, uint32_t *ecc)

返回类型:void

参数:

类型参数名称
struct bch_control *bch
const unsigned char *data
unsigned intlen
uint32_t *ecc
126  l等于BCH_ECC_WORDS(bch)减1
128 len自减循环
129  p等于mod8_tabl加1的和乘ecc[0]右移24位按位异或data自加的值按位与0xff的值
131 i小于l循环ecc[i]等于ecc[i]左移8位按位或ecc[i + 1]右移24位的值按位异或p自加
134  ecc[l]等于ecc[l]左移8位按位异或p
调用者
名称描述
encode_bchde_bch - calculate BCH ecc parity of data*@bch: BCH control structure*@data: data to encode*@len: data length in bytes*@ecc: ecc parity data, must be initialized by caller* The @ecc parity array is used both as input and output parameter, in order to