Searched refs:nbc (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | nand_bch.c | 45 struct nand_bch_control *nbc = chip->ecc.priv; in nand_bch_calculate_ecc() local 49 encode_bch(nbc->bch, buf, chip->ecc.size, code); in nand_bch_calculate_ecc() 53 code[i] ^= nbc->eccmask[i]; in nand_bch_calculate_ecc() 71 struct nand_bch_control *nbc = chip->ecc.priv; in nand_bch_correct_data() local 72 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data() 75 count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, in nand_bch_correct_data() 115 struct nand_bch_control *nbc = NULL; in nand_bch_init() local 134 nbc = kzalloc(sizeof(*nbc), GFP_KERNEL); in nand_bch_init() 135 if (!nbc) in nand_bch_init() 138 nbc->bch = init_bch(m, t, 0); in nand_bch_init() [all …]
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | nand_bch.h | 39 void nand_bch_free(struct nand_bch_control *nbc); 64 static inline void nand_bch_free(struct nand_bch_control *nbc) {} in nand_bch_free() argument
|