Home
last modified time | relevance | path

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

/linux/lib/
A Dbch.c260 load_ecc8(bch, bch->ecc_buf, ecc); in bch_encode()
262 memset(bch->ecc_buf, 0, r_bytes); 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()
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()
1089 compute_syndromes(bch, bch->ecc_buf, bch->syn); in bch_decode()
1379 bch->ecc_buf = bch_alloc(words*sizeof(*bch->ecc_buf), &err); in bch_init()
[all …]
/linux/drivers/mtd/nand/raw/
A Dlpc32xx_slc.c232 uint32_t *ecc_buf; member
544 &host->ecc_buf[i], 4, DMA_DEV_TO_MEM); in lpc32xx_xfer()
571 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer()
620 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome()
694 lpc32xx_slc_ecc_copy(pb, (uint32_t *)host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_write_page_syndrome()
781 host->ecc_buf = (uint32_t *)(host->data_buf + LPC32XX_DMA_DATA_SIZE); in lpc32xx_nand_attach_chip()
A Dpl35x-nand-controller.c146 u8 *ecc_buf; member
547 ret = pl35x_nand_read_eccbytes(nfc, chip, nfc->ecc_buf); in pl35x_nand_write_page_hwecc()
554 ret = mtd_ooblayout_set_eccbytes(mtd, nfc->ecc_buf, chip->oob_poi, in pl35x_nand_write_page_hwecc()
639 ret = mtd_ooblayout_get_eccbytes(mtd, nfc->ecc_buf, chip->oob_poi, 0, in pl35x_nand_read_page_hwecc()
647 return pl35x_nand_recover_data_hwecc(nfc, chip, buf, nfc->ecc_buf); in pl35x_nand_read_page_hwecc()
910 nfc->ecc_buf = devm_kmalloc(nfc->dev, chip->ecc.bytes * chip->ecc.steps, in pl35x_nand_init_hw_ecc_controller()
912 if (!nfc->ecc_buf) in pl35x_nand_init_hw_ecc_controller()
A Domap2.c729 static void gen_true_ecc(u8 *ecc_buf) in gen_true_ecc() argument
731 u32 tmp = ecc_buf[0] | (ecc_buf[1] << 16) | in gen_true_ecc()
732 ((ecc_buf[2] & 0xF0) << 20) | ((ecc_buf[2] & 0x0F) << 8); in gen_true_ecc()
734 ecc_buf[0] = ~(P64o(tmp) | P64e(tmp) | P32o(tmp) | P32e(tmp) | in gen_true_ecc()
736 ecc_buf[1] = ~(P1024o(tmp) | P1024e(tmp) | P512o(tmp) | P512e(tmp) | in gen_true_ecc()
738 ecc_buf[2] = ~(P4o(tmp) | P4e(tmp) | P2o(tmp) | P2e(tmp) | P1o(tmp) | in gen_true_ecc()
A Dsh_flctl.c487 unsigned long *ecc_buf = (unsigned long *)buff; in read_ecfiforeg() local
493 ecc_buf[i] = readl(FLECFIFO(flctl)); in read_ecfiforeg()
494 ecc_buf[i] = be32_to_cpu(ecc_buf[i]); in read_ecfiforeg()
A Dstm32_fmc2_nand.c263 u8 *ecc_buf; member
886 p = nfc->ecc_buf; in stm32_fmc2_nfc_xfer()
1032 u32 *ecc_sta = (u32 *)nfc->ecc_buf; in stm32_fmc2_nfc_seq_correct()
1578 nfc->ecc_buf = devm_kzalloc(nfc->dev, FMC2_MAX_ECC_BUF_LEN, GFP_KERNEL); in stm32_fmc2_nfc_dma_setup()
1579 if (!nfc->ecc_buf) in stm32_fmc2_nfc_dma_setup()
/linux/include/linux/
A Dbch.h48 uint32_t *ecc_buf; member

Completed in 28 milliseconds