Lines Matching refs:entry
69 * @entry: the BBT entry
71 * Return: a positive number nand_bbt_block_status status or -%ERANGE if @entry
75 unsigned int entry)
79 ((entry * bits_per_block) / BITS_PER_LONG);
80 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
83 if (entry >= nanddev_neraseblocks(nand))
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
107 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry,
112 ((entry * bits_per_block) / BITS_PER_LONG);
113 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
116 if (entry >= nanddev_neraseblocks(nand))