Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vert 32-bit ecc words to ecc bytes

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

Type:void

Parameter:

TypeParameterName
struct bch_control *bch
uint8_t *dst
const uint32_t *src
161  nwords = BCH_ECC_WORDS(bch) - 1
163  When i < nwords cycle
164  dst++ = src[i] >> 24
165  dst++ = src[i] >> 16 & 0xff
166  dst++ = src[i] >> 8 & 0xff
167  dst++ = src[i] >> 0 & 0xff
169  pad[0] = src[nwords] >> 24
170  pad[1] = src[nwords] >> 16 & 0xff
171  pad[2] = src[nwords] >> 8 & 0xff
172  pad[3] = src[nwords] >> 0 & 0xff
173  No 3D Now!(dst, pad, BCH_ECC_BYTES(bch) - 4 * nwords)
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