Lines Matching full:block
4 * Bad Block Table support for the OneNAND driver
32 * Check for a pattern at the given place. Used to search bad block
33 * tables and good / bad block identifiers. Same as check_pattern, but
52 * create_bbt - [GENERIC] Create a bad block table by scanning the device
55 * @param bd descriptor for the good/bad block search pattern
59 * Create a bad block table by scanning the device
60 * for the given good/bad block identify pattern
105 /* If it is a initial bad block, just ignore it */ in create_bbt()
131 * onenand_memory_bbt - [GENERIC] create a memory based bad block table
133 * @param bd descriptor for the good/bad block search pattern
147 * onenand_isbad_bbt - [OneNAND Interface] Check if a block is bad
150 * @param allowbbt allow access to bad block table region
156 int block; in onenand_isbad_bbt() local
159 /* Get block number * 2 */ in onenand_isbad_bbt()
160 block = (int) (onenand_block(this, offs) << 1); in onenand_isbad_bbt()
161 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; in onenand_isbad_bbt()
163 pr_debug("onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n", in onenand_isbad_bbt()
164 (unsigned int)offs, block >> 1, res); in onenand_isbad_bbt()
179 * onenand_scan_bbt - [OneNAND Interface] scan, find, read and maybe create bad block table(s)
181 * @param bd descriptor for the good/bad block search pattern
183 * The function checks, if a bad block table(s) is/are already
185 * marked good / bad blocks and writes the bad block table(s) to
188 * The bad block table memory is allocated here. It must be freed
199 /* Allocate memory (2bit per block) */ in onenand_scan_bbt()
203 /* Clear the memory bad block table */ in onenand_scan_bbt()
206 /* Set the bad block position */ in onenand_scan_bbt()
215 /* Scan the device to build a memory based bad block table */ in onenand_scan_bbt()
227 * Define some generic bad / good block scan pattern which are used
240 * onenand_default_bbt - [OneNAND Interface] Select a default bad block table for the device
243 * This function selects the default bad block table