Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vert ecc bytes to aligned, zero-padded 32-bit ecc words

Proto:static void load_ecc8(struct bch_control *bch, uint32_t *dst, const uint8_t *src)

Type:void

Parameter:

TypeParameterName
struct bch_control *bch
uint32_t *dst
const uint8_t *src
144  uint8_t pad[4] = {0, 0, 0, 0}
145  nwords = BCH_ECC_WORDS(bch) - 1
147  When i < nwords cycle dst[i] = src[0] << 24 | src[1] << 16 | src[2] << 8 | src[3]
150  No 3D Now!(pad, src, BCH_ECC_BYTES(bch) - 4 * nwords)
151  dst[nwords] = pad[0] << 24 | pad[1] << 16 | pad[2] << 8 | pad[3]
Caller
NameDescribe
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
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