nbc 1513 drivers/block/drbd/drbd_nl.c struct drbd_backing_dev *nbc) nbc 1515 drivers/block/drbd/drbd_nl.c struct request_queue * const q = nbc->backing_bdev->bd_disk->queue; nbc 1519 drivers/block/drbd/drbd_nl.c if (disk_conf->al_extents > drbd_al_extents_max(nbc)) nbc 1520 drivers/block/drbd/drbd_nl.c disk_conf->al_extents = drbd_al_extents_max(nbc); nbc 1737 drivers/block/drbd/drbd_nl.c struct drbd_backing_dev *nbc) nbc 1744 drivers/block/drbd/drbd_nl.c nbc->backing_bdev = bdev; nbc 1764 drivers/block/drbd/drbd_nl.c nbc->md_bdev = bdev; nbc 1801 drivers/block/drbd/drbd_nl.c struct drbd_backing_dev *nbc = NULL; /* new_backing_conf */ nbc 1843 drivers/block/drbd/drbd_nl.c nbc = kzalloc(sizeof(struct drbd_backing_dev), GFP_KERNEL); nbc 1844 drivers/block/drbd/drbd_nl.c if (!nbc) { nbc 1848 drivers/block/drbd/drbd_nl.c spin_lock_init(&nbc->md.uuid_lock); nbc 1855 drivers/block/drbd/drbd_nl.c nbc->disk_conf = new_disk_conf; nbc 1890 drivers/block/drbd/drbd_nl.c retcode = open_backing_devices(device, new_disk_conf, nbc); nbc 1894 drivers/block/drbd/drbd_nl.c if ((nbc->backing_bdev == nbc->md_bdev) != nbc 1911 drivers/block/drbd/drbd_nl.c retcode = drbd_md_read(device, nbc); nbc 1915 drivers/block/drbd/drbd_nl.c sanitize_disk_conf(device, new_disk_conf, nbc); nbc 1917 drivers/block/drbd/drbd_nl.c if (drbd_get_max_capacity(nbc) < new_disk_conf->disk_size) { nbc 1919 drivers/block/drbd/drbd_nl.c (unsigned long long) drbd_get_max_capacity(nbc), nbc 1934 drivers/block/drbd/drbd_nl.c if (drbd_get_capacity(nbc->md_bdev) < min_md_device_sectors) { nbc 1944 drivers/block/drbd/drbd_nl.c if (drbd_get_max_capacity(nbc) < nbc 1950 drivers/block/drbd/drbd_nl.c nbc->known_size = drbd_get_capacity(nbc->backing_bdev); nbc 1952 drivers/block/drbd/drbd_nl.c if (nbc->known_size > max_possible_sectors) { nbc 1991 drivers/block/drbd/drbd_nl.c (device->ed_uuid & ~((u64)1)) != (nbc->md.uuid[UI_CURRENT] & ~((u64)1))) { nbc 2006 drivers/block/drbd/drbd_nl.c unsigned long long nsz = drbd_new_dev_size(device, nbc, nbc->disk_conf->disk_size, 0); nbc 2007 drivers/block/drbd/drbd_nl.c unsigned long long eff = nbc->md.la_size_sect; nbc 2008 drivers/block/drbd/drbd_nl.c if (drbd_md_test_flag(nbc, MDF_CONSISTENT) && nsz < eff) { nbc 2009 drivers/block/drbd/drbd_nl.c if (nsz == nbc->disk_conf->disk_size) { nbc 2041 drivers/block/drbd/drbd_nl.c device->ldev = nbc; nbc 2044 drivers/block/drbd/drbd_nl.c nbc = NULL; nbc 2198 drivers/block/drbd/drbd_nl.c if (nbc) { nbc 2199 drivers/block/drbd/drbd_nl.c close_backing_dev(device, nbc->md_bdev, nbc->md_bdev != nbc->backing_bdev); nbc 2200 drivers/block/drbd/drbd_nl.c close_backing_dev(device, nbc->backing_bdev, true); nbc 2201 drivers/block/drbd/drbd_nl.c kfree(nbc); nbc 40 drivers/mtd/nand/raw/nand_bch.c struct nand_bch_control *nbc = chip->ecc.priv; nbc 44 drivers/mtd/nand/raw/nand_bch.c encode_bch(nbc->bch, buf, chip->ecc.size, code); nbc 48 drivers/mtd/nand/raw/nand_bch.c code[i] ^= nbc->eccmask[i]; nbc 66 drivers/mtd/nand/raw/nand_bch.c struct nand_bch_control *nbc = chip->ecc.priv; nbc 67 drivers/mtd/nand/raw/nand_bch.c unsigned int *errloc = nbc->errloc; nbc 70 drivers/mtd/nand/raw/nand_bch.c count = decode_bch(nbc->bch, NULL, chip->ecc.size, read_ecc, calc_ecc, nbc 110 drivers/mtd/nand/raw/nand_bch.c struct nand_bch_control *nbc = NULL; nbc 129 drivers/mtd/nand/raw/nand_bch.c nbc = kzalloc(sizeof(*nbc), GFP_KERNEL); nbc 130 drivers/mtd/nand/raw/nand_bch.c if (!nbc) nbc 133 drivers/mtd/nand/raw/nand_bch.c nbc->bch = init_bch(m, t, 0); nbc 134 drivers/mtd/nand/raw/nand_bch.c if (!nbc->bch) nbc 138 drivers/mtd/nand/raw/nand_bch.c if (nbc->bch->ecc_bytes != eccbytes) { nbc 140 drivers/mtd/nand/raw/nand_bch.c eccbytes, nbc->bch->ecc_bytes); nbc 173 drivers/mtd/nand/raw/nand_bch.c nbc->eccmask = kzalloc(eccbytes, GFP_KERNEL); nbc 174 drivers/mtd/nand/raw/nand_bch.c nbc->errloc = kmalloc_array(t, sizeof(*nbc->errloc), GFP_KERNEL); nbc 175 drivers/mtd/nand/raw/nand_bch.c if (!nbc->eccmask || !nbc->errloc) nbc 185 drivers/mtd/nand/raw/nand_bch.c encode_bch(nbc->bch, erased_page, eccsize, nbc->eccmask); nbc 189 drivers/mtd/nand/raw/nand_bch.c nbc->eccmask[i] ^= 0xff; nbc 194 drivers/mtd/nand/raw/nand_bch.c return nbc; nbc 196 drivers/mtd/nand/raw/nand_bch.c nand_bch_free(nbc); nbc 205 drivers/mtd/nand/raw/nand_bch.c void nand_bch_free(struct nand_bch_control *nbc) nbc 207 drivers/mtd/nand/raw/nand_bch.c if (nbc) { nbc 208 drivers/mtd/nand/raw/nand_bch.c free_bch(nbc->bch); nbc 209 drivers/mtd/nand/raw/nand_bch.c kfree(nbc->errloc); nbc 210 drivers/mtd/nand/raw/nand_bch.c kfree(nbc->eccmask); nbc 211 drivers/mtd/nand/raw/nand_bch.c kfree(nbc); nbc 37 include/linux/mtd/nand_bch.h void nand_bch_free(struct nand_bch_control *nbc); nbc 62 include/linux/mtd/nand_bch.h static inline void nand_bch_free(struct nand_bch_control *nbc) {}