Home
last modified time | relevance | path

Searched refs:ecc_buf (Results 1 – 9 of 9) sorted by relevance

/OK3568_Linux_fs/kernel/lib/
H A Dbch.c260 load_ecc8(bch, bch->ecc_buf, ecc); in bch_encode()
262 memset(bch->ecc_buf, 0, r_bytes); in bch_encode()
269 bch_encode_unaligned(bch, data, mlen, bch->ecc_buf); in bch_encode()
279 memcpy(r, bch->ecc_buf, r_bytes); in bch_encode()
311 memcpy(bch->ecc_buf, r, r_bytes); in bch_encode()
315 bch_encode_unaligned(bch, data, len, bch->ecc_buf); in bch_encode()
319 store_ecc8(bch, ecc, bch->ecc_buf); in bch_encode()
1075 load_ecc8(bch, bch->ecc_buf, calc_ecc); in bch_decode()
1082 bch->ecc_buf[i] ^= bch->ecc_buf2[i]; in bch_decode()
1083 sum |= bch->ecc_buf[i]; in bch_decode()
[all …]
/OK3568_Linux_fs/u-boot/lib/
H A Dbch.c240 load_ecc8(bch, bch->ecc_buf, ecc); in encode_bch()
242 memset(bch->ecc_buf, 0, sizeof(r)); in encode_bch()
249 encode_bch_unaligned(bch, data, mlen, bch->ecc_buf); in encode_bch()
259 memcpy(r, bch->ecc_buf, sizeof(r)); in encode_bch()
285 memcpy(bch->ecc_buf, r, sizeof(r)); in encode_bch()
289 encode_bch_unaligned(bch, data, len, bch->ecc_buf); in encode_bch()
293 store_ecc8(bch, ecc, bch->ecc_buf); in encode_bch()
1048 load_ecc8(bch, bch->ecc_buf, calc_ecc); in decode_bch()
1055 bch->ecc_buf[i] ^= bch->ecc_buf2[i]; in decode_bch()
1056 sum |= bch->ecc_buf[i]; in decode_bch()
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Dlpc32xx_slc.c233 uint32_t *ecc_buf; member
545 &host->ecc_buf[i], 4, DMA_DEV_TO_MEM); in lpc32xx_xfer()
572 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer()
621 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome()
695 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome()
782 host->ecc_buf = (uint32_t *)(host->data_buf + LPC32XX_DMA_DATA_SIZE); in lpc32xx_nand_attach_chip()
H A Domap2.c724 static void gen_true_ecc(u8 *ecc_buf) in gen_true_ecc() argument
726 u32 tmp = ecc_buf[0] | (ecc_buf[1] << 16) | in gen_true_ecc()
727 ((ecc_buf[2] & 0xF0) << 20) | ((ecc_buf[2] & 0x0F) << 8); in gen_true_ecc()
729 ecc_buf[0] = ~(P64o(tmp) | P64e(tmp) | P32o(tmp) | P32e(tmp) | in gen_true_ecc()
731 ecc_buf[1] = ~(P1024o(tmp) | P1024e(tmp) | P512o(tmp) | P512e(tmp) | in gen_true_ecc()
733 ecc_buf[2] = ~(P4o(tmp) | P4e(tmp) | P2o(tmp) | P2e(tmp) | P1o(tmp) | in gen_true_ecc()
H A Dsh_flctl.c489 unsigned long *ecc_buf = (unsigned long *)buff; in read_ecfiforeg() local
495 ecc_buf[i] = readl(FLECFIFO(flctl)); in read_ecfiforeg()
496 ecc_buf[i] = be32_to_cpu(ecc_buf[i]); in read_ecfiforeg()
H A Dstm32_fmc2_nand.c263 u8 *ecc_buf; member
884 p = nfc->ecc_buf; in stm32_fmc2_nfc_xfer()
1030 u32 *ecc_sta = (u32 *)nfc->ecc_buf; in stm32_fmc2_nfc_seq_correct()
1576 nfc->ecc_buf = devm_kzalloc(nfc->dev, FMC2_MAX_ECC_BUF_LEN, GFP_KERNEL); in stm32_fmc2_nfc_dma_setup()
1577 if (!nfc->ecc_buf) in stm32_fmc2_nfc_dma_setup()
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Domap_gpmc.c101 static uint32_t gen_true_ecc(uint8_t *ecc_buf) in gen_true_ecc() argument
103 return ecc_buf[0] | (ecc_buf[1] << 16) | ((ecc_buf[2] & 0xF0) << 20) | in gen_true_ecc()
104 ((ecc_buf[2] & 0x0F) << 8); in gen_true_ecc()
/OK3568_Linux_fs/u-boot/include/linux/
H A Dbch.h48 uint32_t *ecc_buf; member
/OK3568_Linux_fs/kernel/include/linux/
H A Dbch.h48 uint32_t *ecc_buf; member