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.
30 nand->bbt.cache = kcalloc(nwords, sizeof(*nand->bbt.cache), in nanddev_bbt_init()
32 if (!nand->bbt.cache) in nanddev_bbt_init()
40 * nanddev_bbt_cleanup() - Cleanup the BBT (Bad Block Table)
47 kfree(nand->bbt.cache); in nanddev_bbt_cleanup()
52 * nanddev_bbt_update() - Update a BBT
55 * Update the BBT. Currently a NOP function since on-flash bbt is not yet
69 * @entry: the BBT entry
72 * is bigger than the BBT size.
78 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status()
96 * in-memory BBT
98 * @entry: the BBT entry to update
101 * Update an entry of the in-memory BBT. If you want to push the updated BBT
104 * Return: 0 in case of success or -%ERANGE if @entry is bigger than the BBT
111 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status()