Home
last modified time | relevance | path

Searched refs:nbc (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/mtd/nand/raw/
Dnand_bch.c40 struct nand_bch_control *nbc = chip->ecc.priv; in nand_bch_calculate_ecc() local
44 encode_bch(nbc->bch, buf, chip->ecc.size, code); in nand_bch_calculate_ecc()
48 code[i] ^= nbc->eccmask[i]; in nand_bch_calculate_ecc()
66 struct nand_bch_control *nbc = chip->ecc.priv; in nand_bch_correct_data() local
67 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data()
70 count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, in nand_bch_correct_data()
110 struct nand_bch_control *nbc = NULL; in nand_bch_init() local
129 nbc = kzalloc(sizeof(*nbc), GFP_KERNEL); in nand_bch_init()
130 if (!nbc) in nand_bch_init()
133 nbc->bch = init_bch(m, t, 0); in nand_bch_init()
[all …]
/Linux-v5.4/include/linux/mtd/
Dnand_bch.h37 void nand_bch_free(struct nand_bch_control *nbc);
62 static inline void nand_bch_free(struct nand_bch_control *nbc) {} in nand_bch_free() argument
/Linux-v5.4/drivers/block/drbd/
Ddrbd_nl.c1513 struct drbd_backing_dev *nbc) in sanitize_disk_conf() argument
1515 struct request_queue * const q = nbc->backing_bdev->bd_disk->queue; in sanitize_disk_conf()
1519 if (disk_conf->al_extents > drbd_al_extents_max(nbc)) in sanitize_disk_conf()
1520 disk_conf->al_extents = drbd_al_extents_max(nbc); in sanitize_disk_conf()
1737 struct drbd_backing_dev *nbc) in open_backing_devices() argument
1744 nbc->backing_bdev = bdev; in open_backing_devices()
1764 nbc->md_bdev = bdev; in open_backing_devices()
1801 struct drbd_backing_dev *nbc = NULL; /* new_backing_conf */ in drbd_adm_attach() local
1843 nbc = kzalloc(sizeof(struct drbd_backing_dev), GFP_KERNEL); in drbd_adm_attach()
1844 if (!nbc) { in drbd_adm_attach()
[all …]