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

Lines Matching defs:to

6  * Permission to use, copy, modify, and/or distribute this software for any
21 * When brcmnand_scan_bbt is called, then it tries to find the bad block table
26 * than the mirror bbt is used to build the memory based bbt.
38 * number which indicates which of both tables is more up to date.
43 * 01b, 10b: block is marked bad due to wear
47 * 01b: block is marked bad due to wear
48 * 10b: block is reserved (to protect the bbt area)
122 * @buf: the buffer to search
123 * @len: the length of buffer to search
127 * Check for a pattern at the given place. Used to search bad block
166 * @buf: the buffer to search
169 * Check for a pattern at the given place. Used to search bad block
192 * @num: the number of bbt descriptors to read
195 * @reserved_block_code: Pattern to identify reserved blocks
250 * message to MTD_DEBUG_LEVEL0
328 * Scan write data with oob to flash
421 * Read the full oob until read_oob is fixed to
534 * This is necessary to provide support for certain DOC devices.
649 loff_t to;
711 printk(KERN_ERR "No space left to write bad block table\n");
736 to = ((loff_t) page) << this->page_shift;
741 to &= ~((loff_t) ((1 << this->bbt_erase_shift) - 1));
743 res = mtd->read(mtd, to, len, &retlen, buf);
758 res = mtd->read_oob(mtd, to + mtd->writesize, &ops);
763 pageoffs = page - (int)(to >> this->page_shift);
802 einfo.addr = (unsigned long)to;
808 res = brcmnand_scan_write_bbt(mtd, to, len, buf, &buf[len]);
812 printk(KERN_DEBUG "Bad block table written to 0x%08x, version "
813 "0x%02X\n", (unsigned int)to, td->version[chip]);
848 * The function checks the results of the previous call to read_bbt
941 /* Write the bad block table to the device ? */
948 /* Write the mirror bad block table to the device ? */
963 * The bad block table regions are marked as "bad" to prevent
1010 /* If we want reserved blocks to be recorded to flash, and some
1011 * new ones have been marked, then we need to update the stored
1026 * marked good / bad blocks and writes the bad block table(s) to
1050 * to build a memory based bad block table
1137 /* Write the bad block table to the device ? */
1143 /* Write the mirror bad block table to the device ? */
1276 * @allowbbt: allow access to bad block table region
1289 /* THT 03/20/07: Get block number. It's more convenient to do it in the
1305 /* Marked bad due to wear */
1330 * _good_ blocks. Erasing those blocks leads to loss
1392 * maxblocks accordingly. Only applies to flash with 512MB or less, since