Lines Matching refs:nand
25 int nanddev_bbt_init(struct nand_device *nand) in nanddev_bbt_init() argument
28 unsigned int nblocks = nanddev_neraseblocks(nand); in nanddev_bbt_init()
32 nand->bbt.cache = kzalloc(nwords, GFP_KERNEL); in nanddev_bbt_init()
33 if (!nand->bbt.cache) in nanddev_bbt_init()
46 void nanddev_bbt_cleanup(struct nand_device *nand) in nanddev_bbt_cleanup() argument
48 kfree(nand->bbt.cache); in nanddev_bbt_cleanup()
61 int nanddev_bbt_update(struct nand_device *nand) in nanddev_bbt_update() argument
75 int nanddev_bbt_get_block_status(const struct nand_device *nand, in nanddev_bbt_get_block_status() argument
79 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status()
84 if (entry >= nanddev_neraseblocks(nand)) in nanddev_bbt_get_block_status()
108 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry, in nanddev_bbt_set_block_status() argument
112 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status()
117 if (entry >= nanddev_neraseblocks(nand)) in nanddev_bbt_set_block_status()