• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mtd/nand/

Lines Matching defs:to

17  * When nand_scan_bbt is called, then it tries to find the bad block table
22 * than the mirror bbt is used to build the memory based bbt.
34 * number which indicates which of both tables is more up to date.
39 * 01b, 10b: block is marked bad due to wear
43 * 01b: block is marked bad due to wear
44 * 10b: block is reserved (to protect the bbt area)
67 * @buf: the buffer to search
68 * @len: the length of buffer to search
72 * Check for a pattern at the given place. Used to search bad block
111 * @buf: the buffer to search
114 * Check for a pattern at the given place. Used to search bad block
137 * @num: the number of bbt descriptors to read
140 * @reserved_block_code: Pattern to identify reserved blocks
183 * message to MTD_DEBUG_LEVEL0 */
254 * Scan write data with oob to flash
344 * Read the full oob until read_oob is fixed to
456 * This is necessary to provide support for certain DOC devices.
571 loff_t to;
633 printk(KERN_ERR "No space left to write bad block table\n");
658 to = ((loff_t) page) << this->page_shift;
663 to &= ~((loff_t) ((1 << this->bbt_erase_shift) - 1));
665 res = mtd->read(mtd, to, len, &retlen, buf);
680 res = mtd->read_oob(mtd, to + mtd->writesize, &ops);
685 pageoffs = page - (int)(to >> this->page_shift);
724 einfo.addr = (unsigned long)to;
730 res = scan_write_bbt(mtd, to, len, buf, &buf[len]);
734 printk(KERN_DEBUG "Bad block table written to 0x%08x, version "
735 "0x%02X\n", (unsigned int)to, td->version[chip]);
770 * The function checks the results of the previous call to read_bbt
863 /* Write the bad block table to the device ? */
870 /* Write the mirror bad block table to the device ? */
885 * The bad block table regions are marked as "bad" to prevent
932 /* If we want reserved blocks to be recorded to flash, and some
933 new ones have been marked, then we need to update the stored
947 * marked good / bad blocks and writes the bad block table(s) to
971 * to build a memory based bad block table
1057 /* Write the bad block table to the device ? */
1063 /* Write the mirror bad block table to the device ? */
1153 * _good_ blocks. Erasing those blocks leads to loss
1193 * @allowbbt: allow access to bad block table region