Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/mtd/nand/
Ddocg4.c89 uint8_t ecc_buf[7]; member
360 static void read_hw_ecc(void __iomem *docptr, uint8_t *ecc_buf) in read_hw_ecc() argument
366 ecc_buf[i] = readb(docptr + DOC_BCH_SYNDROM(i)); in read_hw_ecc()
367 ecc_buf[i] = readb(docptr + DOC_BCH_SYNDROM(i)); in read_hw_ecc()
385 read_hw_ecc(docptr, doc->ecc_buf); /* read 7 hw-generated ecc bytes */ in correct_data()
388 if (!memcmp(doc->ecc_buf, blank_read_hwecc, 7)) in correct_data()
426 doc->ecc_buf[i] = bitrev8(doc->ecc_buf[i]); in correct_data()
429 doc->ecc_buf, NULL, errpos); in correct_data()
928 uint8_t ecc_buf[8]; in write_page() local
959 read_hw_ecc(docptr, ecc_buf); in write_page()
[all …]
Dlpc32xx_slc.c220 uint32_t *ecc_buf; member
546 &host->ecc_buf[i], 4, DMA_DEV_TO_MEM); in lpc32xx_xfer()
573 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()
682 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome()
872 host->ecc_buf = (uint32_t *)(host->data_buf + LPC32XX_DMA_DATA_SIZE); in lpc32xx_nand_probe()
Domap2.c731 static void gen_true_ecc(u8 *ecc_buf) in gen_true_ecc() argument
733 u32 tmp = ecc_buf[0] | (ecc_buf[1] << 16) | in gen_true_ecc()
734 ((ecc_buf[2] & 0xF0) << 20) | ((ecc_buf[2] & 0x0F) << 8); in gen_true_ecc()
736 ecc_buf[0] = ~(P64o(tmp) | P64e(tmp) | P32o(tmp) | P32e(tmp) | in gen_true_ecc()
738 ecc_buf[1] = ~(P1024o(tmp) | P1024e(tmp) | P512o(tmp) | P512e(tmp) | in gen_true_ecc()
740 ecc_buf[2] = ~(P4o(tmp) | P4e(tmp) | P2o(tmp) | P2e(tmp) | P1o(tmp) | in gen_true_ecc()
Dsh_flctl.c450 unsigned long *ecc_buf = (unsigned long *)buff; in read_ecfiforeg() local
456 ecc_buf[i] = readl(FLECFIFO(flctl)); in read_ecfiforeg()
457 ecc_buf[i] = be32_to_cpu(ecc_buf[i]); in read_ecfiforeg()
/linux-4.4.14/lib/
Dbch.c199 load_ecc8(bch, bch->ecc_buf, ecc); in encode_bch()
201 memset(bch->ecc_buf, 0, sizeof(r)); in encode_bch()
208 encode_bch_unaligned(bch, data, mlen, bch->ecc_buf); in encode_bch()
218 memcpy(r, bch->ecc_buf, sizeof(r)); in encode_bch()
244 memcpy(bch->ecc_buf, r, sizeof(r)); in encode_bch()
248 encode_bch_unaligned(bch, data, len, bch->ecc_buf); in encode_bch()
252 store_ecc8(bch, ecc, bch->ecc_buf); in encode_bch()
1008 load_ecc8(bch, bch->ecc_buf, calc_ecc); in decode_bch()
1015 bch->ecc_buf[i] ^= bch->ecc_buf2[i]; in decode_bch()
1016 sum |= bch->ecc_buf[i]; in decode_bch()
[all …]
/linux-4.4.14/include/linux/
Dbch.h59 uint32_t *ecc_buf; member