Lines Matching defs:block
26 * Check for a pattern at the given place. Used to search bad block
27 * tables and good / bad block identifiers. Same as check_pattern, but
46 * create_bbt - [GENERIC] Create a bad block table by scanning the device
49 * @param bd descriptor for the good/bad block search pattern
53 * Create a bad block table by scanning the device
54 * for the given good/bad block identify pattern
97 /* If it is a initial bad block, just ignore it */
105 "initial bad block\n", i >> 1);
124 * onenand_memory_bbt - [GENERIC] create a memory based bad block table
126 * @param bd descriptor for the good/bad block search pattern
139 * onenand_isbad_bbt - [OneNAND Interface] Check if a block is bad
142 * @param allowbbt allow access to bad block table region
148 int block;
151 /* Get block number * 2 */
152 block = (int) (onenand_block(this, offs) << 1);
153 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03;
155 pr_debug("onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n",
156 (unsigned int) offs, block >> 1, res);
168 * onenand_scan_bbt - [OneNAND Interface] scan, find, read and maybe create bad block table(s)
170 * @param bd descriptor for the good/bad block search pattern
172 * The function checks, if a bad block table(s) is/are already
174 * marked good / bad blocks and writes the bad block table(s) to
177 * The bad block table memory is allocated here. It is freed
188 /* Allocate memory (2bit per block) and clear the memory bad block table */
199 /* Scan the device to build a memory based bad block table */
210 * Define some generic bad / good block scan pattern which are used
223 * onenand_default_bbt - [OneNAND Interface] Select a default bad block table for the device
226 * This function selects the default bad block table