Home
last modified time | relevance | path

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

/drivers/mtd/nand/raw/
Dnand_bch.c40 struct nand_bch_control *nbc = chip->ecc.priv; in nand_bch_calculate_ecc() local
44 bch_encode(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 = bch_decode(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 = bch_init(m, t, 0, false); in nand_bch_init()
[all …]
/drivers/block/drbd/
Ddrbd_nl.c1506 struct drbd_backing_dev *nbc) in sanitize_disk_conf() argument
1508 struct request_queue * const q = nbc->backing_bdev->bd_disk->queue; in sanitize_disk_conf()
1512 if (disk_conf->al_extents > drbd_al_extents_max(nbc)) in sanitize_disk_conf()
1513 disk_conf->al_extents = drbd_al_extents_max(nbc); in sanitize_disk_conf()
1731 struct drbd_backing_dev *nbc) in open_backing_devices() argument
1738 nbc->backing_bdev = bdev; in open_backing_devices()
1758 nbc->md_bdev = bdev; in open_backing_devices()
1795 struct drbd_backing_dev *nbc = NULL; /* new_backing_conf */ in drbd_adm_attach() local
1837 nbc = kzalloc(sizeof(struct drbd_backing_dev), GFP_KERNEL); in drbd_adm_attach()
1838 if (!nbc) { in drbd_adm_attach()
[all …]