Lines Matching defs:bad

217  * nand_bbm_get_next_page - Get the next page for bad block markers
219 * @page: First page to start checking for bad block marker usage
222 * a page that is used to store bad block markers. If no more pages are
246 * nand_block_bad - [DEFAULT] Read bad block marker from the chip
250 * Check, if the block is bad.
256 u8 bad;
266 bad = chip->oob_poi[chip->badblockpos];
269 res = bad != 0xFF;
271 res = hweight8(bad) < chip->badblockbits;
494 * nand_default_block_markbad - [DEFAULT] mark a block bad via bad block marker
499 * specific driver. It provides the details for writing a bad block marker to a
539 * @ofs: offset of the block to mark bad
550 * nand_block_markbad_lowlevel - mark a block bad
554 * This function performs the generic NAND bad block marking steps (i.e., bad
556 * specify how to write bad block markers to OOB (chip->legacy.block_markbad).
561 * (2) write bad block marker to OOB area of affected block (unless flag
582 /* Write bad block marker to OOB */
589 /* Mark block bad in BBT */
620 * nand_block_checkbad - [GENERIC] Check if a block is marked bad
625 * Check, if the block is bad. Either by reading the bad block table or
4691 /* Check if we have a bad block, we do not erase bad blocks! */
4694 pr_warn("%s: attempt to erase a bad block at 0x%08llx\n",
4759 * nand_block_isbad - [MTD Interface] Check if block at offset is bad
4783 * nand_block_markbad - [MTD Interface] Mark block at the given offset as bad
4793 /* If it was bad already, return success and do nothing */
5051 * Set the bad block marker/indicator (BBM/BBI) patterns according to some
5059 /* Set the bad block position */
6299 * bad block table if appropriate.
6307 /* New bad blocks should be marked in OOB, flash-based BBT, or both */
6579 /* Check, if we should skip the bad block table scan */
6583 /* Build bad block table */
6683 /* Free bad block table memory */
6689 /* Free bad block descriptor memory */