Lines Matching full:block

4  *  Bad Block Table support for the OneNAND driver
27 * Check for a pattern at the given place. Used to search bad block
28 * tables and good / bad block identifiers. Same as check_pattern, but
47 * create_bbt - [GENERIC] Create a bad block table by scanning the device
50 * @param bd descriptor for the good/bad block search pattern
54 * Create a bad block table by scanning the device
55 * for the given good/bad block identify pattern
98 /* If it is a initial bad block, just ignore it */ in create_bbt()
106 "initial bad block\n", i >> 1); in create_bbt()
125 * onenand_memory_bbt - [GENERIC] create a memory based bad block table
127 * @param bd descriptor for the good/bad block search pattern
141 * onenand_isbad_bbt - [OneNAND Interface] Check if a block is bad
144 * @param allowbbt allow access to bad block table region
150 int block; in onenand_isbad_bbt() local
153 /* Get block number * 2 */ in onenand_isbad_bbt()
154 block = (int) (onenand_block(this, offs) << 1); in onenand_isbad_bbt()
155 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; in onenand_isbad_bbt()
157 pr_debug("onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n", in onenand_isbad_bbt()
158 (unsigned int) offs, block >> 1, res); in onenand_isbad_bbt()
170 * onenand_scan_bbt - [OneNAND Interface] scan, find, read and maybe create bad block table(s)
172 * @param bd descriptor for the good/bad block search pattern
174 * The function checks, if a bad block table(s) is/are already
176 * marked good / bad blocks and writes the bad block table(s) to
179 * The bad block table memory is allocated here. It is freed
190 /* Allocate memory (2bit per block) and clear the memory bad block table */ in onenand_scan_bbt()
195 /* Set the bad block position */ in onenand_scan_bbt()
204 /* Scan the device to build a memory based bad block table */ in onenand_scan_bbt()
215 * Define some generic bad / good block scan pattern which are used
228 * onenand_default_bbt - [OneNAND Interface] Select a default bad block table for the device
231 * This function selects the default bad block table