Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mtd/nand/raw/
Ddocg4.c89 uint8_t ecc_buf[7]; member
382 static void read_hw_ecc(void __iomem *docptr, uint8_t *ecc_buf) in read_hw_ecc() argument
388 ecc_buf[i] = readb(docptr + DOC_BCH_SYNDROM(i)); in read_hw_ecc()
389 ecc_buf[i] = readb(docptr + DOC_BCH_SYNDROM(i)); in read_hw_ecc()
407 read_hw_ecc(docptr, doc->ecc_buf); /* read 7 hw-generated ecc bytes */ in correct_data()
410 if (!memcmp(doc->ecc_buf, blank_read_hwecc, 7)) in correct_data()
448 doc->ecc_buf[i] = bitrev8(doc->ecc_buf[i]); in correct_data()
451 doc->ecc_buf, NULL, errpos); in correct_data()
957 uint8_t ecc_buf[8]; in write_page() local
990 read_hw_ecc(docptr, ecc_buf); in write_page()
[all …]
Dlpc32xx_slc.c242 uint32_t *ecc_buf; member
556 &host->ecc_buf[i], 4, DMA_DEV_TO_MEM); in lpc32xx_xfer()
583 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer()
632 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome()
705 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome()
788 host->ecc_buf = (uint32_t *)(host->data_buf + LPC32XX_DMA_DATA_SIZE); in lpc32xx_nand_attach_chip()
Domap2.c717 static void gen_true_ecc(u8 *ecc_buf) in gen_true_ecc() argument
719 u32 tmp = ecc_buf[0] | (ecc_buf[1] << 16) | in gen_true_ecc()
720 ((ecc_buf[2] & 0xF0) << 20) | ((ecc_buf[2] & 0x0F) << 8); in gen_true_ecc()
722 ecc_buf[0] = ~(P64o(tmp) | P64e(tmp) | P32o(tmp) | P32e(tmp) | in gen_true_ecc()
724 ecc_buf[1] = ~(P1024o(tmp) | P1024e(tmp) | P512o(tmp) | P512e(tmp) | in gen_true_ecc()
726 ecc_buf[2] = ~(P4o(tmp) | P4e(tmp) | P2o(tmp) | P2e(tmp) | P1o(tmp) | in gen_true_ecc()
Dsh_flctl.c502 unsigned long *ecc_buf = (unsigned long *)buff; in read_ecfiforeg() local
508 ecc_buf[i] = readl(FLECFIFO(flctl)); in read_ecfiforeg()
509 ecc_buf[i] = be32_to_cpu(ecc_buf[i]); in read_ecfiforeg()
/Linux-v4.19/lib/
Dbch.c209 load_ecc8(bch, bch->ecc_buf, ecc); in encode_bch()
211 memset(bch->ecc_buf, 0, r_bytes); in encode_bch()
218 encode_bch_unaligned(bch, data, mlen, bch->ecc_buf); in encode_bch()
228 memcpy(r, bch->ecc_buf, r_bytes); in encode_bch()
254 memcpy(bch->ecc_buf, r, r_bytes); in encode_bch()
258 encode_bch_unaligned(bch, data, len, bch->ecc_buf); in encode_bch()
262 store_ecc8(bch, ecc, bch->ecc_buf); in encode_bch()
1018 load_ecc8(bch, bch->ecc_buf, calc_ecc); in decode_bch()
1025 bch->ecc_buf[i] ^= bch->ecc_buf2[i]; in decode_bch()
1026 sum |= bch->ecc_buf[i]; in decode_bch()
[all …]
/Linux-v4.19/include/linux/
Dbch.h59 uint32_t *ecc_buf; member