Lines Matching full:bbt
10 #define pr_fmt(fmt) "nand-bbt: " fmt
16 * nanddev_bbt_init() - Initialize the BBT (Bad Block Table)
19 * Initialize the in-memory BBT.
28 nand->bbt.cache = bitmap_zalloc(nblocks * bits_per_block, GFP_KERNEL); in nanddev_bbt_init()
29 if (!nand->bbt.cache) in nanddev_bbt_init()
37 * nanddev_bbt_cleanup() - Cleanup the BBT (Bad Block Table)
44 bitmap_free(nand->bbt.cache); in nanddev_bbt_cleanup()
49 * nanddev_bbt_update() - Update a BBT
52 * Update the BBT. Currently a NOP function since on-flash bbt is not yet
66 * @entry: the BBT entry
69 * is bigger than the BBT size.
75 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status()
93 * in-memory BBT
95 * @entry: the BBT entry to update
98 * Update an entry of the in-memory BBT. If you want to push the updated BBT
101 * Return: 0 in case of success or -%ERANGE if @entry is bigger than the BBT
108 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status()