Lines Matching defs:entry
66 * @entry: the BBT entry
68 * Return: a positive number nand_bbt_block_status status or -%ERANGE if @entry
72 unsigned int entry)
76 ((entry * bits_per_block) / BITS_PER_LONG);
77 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
80 if (entry >= nanddev_neraseblocks(nand))
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
104 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry,
109 ((entry * bits_per_block) / BITS_PER_LONG);
110 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
113 if (entry >= nanddev_neraseblocks(nand))