Searched refs:ecc_buf (Results 1 – 7 of 7) sorted by relevance
/linux/lib/ |
H A D | bch.c | 226 load_ecc8(bch, bch->ecc_buf, ecc); in bch_encode() 228 memset(bch->ecc_buf, 0, r_bytes); in bch_encode() 235 bch_encode_unaligned(bch, data, mlen, bch->ecc_buf); in bch_encode() 245 memcpy(r, bch->ecc_buf, r_bytes); in bch_encode() 277 memcpy(bch->ecc_buf, r, r_bytes); in bch_encode() 281 bch_encode_unaligned(bch, data, len, bch->ecc_buf); in bch_encode() 285 store_ecc8(bch, ecc, bch->ecc_buf); in bch_encode() 1031 load_ecc8(bch, bch->ecc_buf, calc_ecc); in bch_decode() 1038 bch->ecc_buf[i] ^= bch->ecc_buf2[i]; in bch_decode() 1039 sum |= bch->ecc_buf[i]; in bch_decode() [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | lpc32xx_slc.c | 231 uint32_t *ecc_buf; member 543 &host->ecc_buf[i], 4, DMA_DEV_TO_MEM); in lpc32xx_xfer() 570 host->ecc_buf[chip->ecc.steps - 1] = in lpc32xx_xfer() 619 lpc32xx_slc_ecc_copy(tmpecc, (uint32_t *) host->ecc_buf, chip->ecc.steps); in lpc32xx_nand_read_page_syndrome() 693 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 D | pl35x-nand-controller.c | 144 u8 *ecc_buf; member 546 ret = pl35x_nand_read_eccbytes(nfc, chip, nfc->ecc_buf); in pl35x_nand_write_page_hwecc() 553 ret = mtd_ooblayout_set_eccbytes(mtd, nfc->ecc_buf, chip->oob_poi, in pl35x_nand_write_page_hwecc() 646 ret = mtd_ooblayout_get_eccbytes(mtd, nfc->ecc_buf, chip->oob_poi, 0, in pl35x_nand_read_page_hwecc() 654 return pl35x_nand_recover_data_hwecc(nfc, chip, buf, nfc->ecc_buf); in pl35x_nand_read_page_hwecc() 917 nfc->ecc_buf = devm_kmalloc(nfc->dev, chip->ecc.bytes * chip->ecc.steps, in pl35x_nand_init_hw_ecc_controller() 919 if (!nfc->ecc_buf) in pl35x_nand_init_hw_ecc_controller()
|
H A D | omap2.c | 645 static void gen_true_ecc(u8 *ecc_buf) in gen_true_ecc() argument 647 u32 tmp = ecc_buf[0] | (ecc_buf[1] << 16) | in gen_true_ecc() 648 ((ecc_buf[2] & 0xF0) << 20) | ((ecc_buf[2] & 0x0F) << 8); in gen_true_ecc() 650 ecc_buf[0] = ~(P64o(tmp) | P64e(tmp) | P32o(tmp) | P32e(tmp) | in gen_true_ecc() 652 ecc_buf[1] = ~(P1024o(tmp) | P1024e(tmp) | P512o(tmp) | P512e(tmp) | in gen_true_ecc() 654 ecc_buf[2] = ~(P4o(tmp) | P4e(tmp) | P2o(tmp) | P2e(tmp) | P1o(tmp) | in gen_true_ecc()
|
H A D | sh_flctl.c | 488 unsigned long *ecc_buf = (unsigned long *)buff; in read_ecfiforeg() local 494 ecc_buf[i] = readl(FLECFIFO(flctl)); in read_ecfiforeg() 495 ecc_buf[i] = be32_to_cpu(ecc_buf[i]); in read_ecfiforeg()
|
H A D | stm32_fmc2_nand.c | 274 u8 *ecc_buf; member 905 p = nfc->ecc_buf; in stm32_fmc2_nfc_xfer() 1053 u32 *ecc_sta = (u32 *)nfc->ecc_buf; in stm32_fmc2_nfc_seq_correct() 1613 nfc->ecc_buf = devm_kzalloc(nfc->dev, FMC2_MAX_ECC_BUF_LEN, GFP_KERNEL); in stm32_fmc2_nfc_dma_setup() 1614 if (!nfc->ecc_buf) in stm32_fmc2_nfc_dma_setup()
|
/linux/include/linux/ |
H A D | bch.h | 48 uint32_t *ecc_buf; member
|