Searched refs:bbt (Results 1 - 15 of 15) sorted by relevance

/drivers/mtd/onenand/
H A Donenand_bbt.c104 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6);
129 * The function creates a memory based bbt by scanning the device
155 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03;
157 pr_debug("onenand_isbad_bbt: bbt info for offs 0x%08x: (block %d) 0x%02x\n",
191 bbm->bbt = kzalloc(len, GFP_KERNEL);
192 if (!bbm->bbt)
207 kfree(bbm->bbt);
208 bbm->bbt = NULL;
H A Donenand_base.c1563 * onenand_bbt_read_oob - [MTD Interface] OneNAND read out-of-band for bbt scan
1568 * OneNAND read out-of-band data from the spare area for bbt scan
2226 * @param allowbbt 1, if its allowed to access the bbt area
2590 if (bbm->bbt)
2591 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
4142 kfree(bbm->bbt);
/drivers/mtd/tests/
H A Dmtd_stresstest.c44 static unsigned char *bbt; variable
75 if (bbt[eb])
149 if (bbt[eb + 1]) {
185 if (bbt[eb + 1])
224 bbt = kzalloc(ebcnt, GFP_KERNEL);
225 if (!bbt) {
235 bbt[i] = is_block_bad(i) ? 1 : 0;
236 if (bbt[i])
327 kfree(bbt);
H A Dmtd_speedtest.c43 static unsigned char *bbt; variable
130 if (bbt[i])
333 bbt = kzalloc(ebcnt, GFP_KERNEL);
334 if (!bbt) {
344 bbt[i] = is_block_bad(i) ? 1 : 0;
345 if (bbt[i])
425 if (bbt[i])
440 if (bbt[i])
459 if (bbt[i])
474 if (bbt[
[all...]
H A Dmtd_readtest.c39 static unsigned char *bbt; variable
145 bbt = kzalloc(ebcnt, GFP_KERNEL);
146 if (!bbt) {
156 bbt[i] = is_block_bad(i) ? 1 : 0;
157 if (bbt[i])
226 if (bbt[i])
246 kfree(bbt);
H A Dmtd_subpagetest.c39 static unsigned char *bbt; variable
105 if (bbt[i])
325 if (bbt[i])
353 bbt = kzalloc(ebcnt, GFP_KERNEL);
354 if (!bbt) {
361 bbt[i] = is_block_bad(i) ? 1 : 0;
362 if (bbt[i])
435 if (bbt[i])
449 if (bbt[i])
472 if (bbt[
[all...]
H A Dmtd_pagetest.c41 static unsigned char *bbt; variable
120 for (i = 0; i < ebcnt && bbt[i]; ++i)
124 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i)
162 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) {
221 for (i = 0; i < ebcnt && bbt[i]; ++i)
225 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i)
314 for (i = 0; i < ebcnt && bbt[i]; ++i) {
320 while (ebnum2 && bbt[ebnum2])
409 for (i = 0; i < ebcnt && bbt[i]; ++i) {
475 bbt
[all...]
H A Dmtd_oobtest.c40 static unsigned char *bbt; variable
103 if (bbt[i])
165 if (bbt[i])
314 if (bbt[i])
342 bbt = kmalloc(ebcnt, GFP_KERNEL);
343 if (!bbt) {
350 bbt[i] = is_block_bad(i) ? 1 : 0;
351 if (bbt[i])
458 if (bbt[i])
513 for (i = 0; i < ebcnt && bbt[
[all...]
/drivers/mtd/nand/
H A Dnand_bbt.c51 * 10b: block is reserved (to protect the bbt area)
58 * - the space necessary for a bbt in FLASH does not exceed a block boundary
171 * @num: the number of bbt descriptors to read
172 * @td: the bbt describtion table
230 this->bbt[offs + (act >> 3)] |= 0x2 << (act & 0x06);
242 this->bbt[offs + (act >> 3)] |= 0x3 << (act & 0x06);
244 this->bbt[offs + (act >> 3)] |= 0x1 << (act & 0x06);
263 * that the bbt bits are in consecutive order.
374 * assume that the bbt bits are in consecutive order.
528 this->bbt[
[all...]
H A Ddocg4.c192 #define DOCG4_FACTORY_BBT_PAGE 16 /* page where read-only factory bbt lives */
991 * update the memory-based bbt accordingly.
1010 * If no memory-based bbt was created, exit. This will happen if module
1016 if (nand->bbt == NULL) /* no memory-based bbt */
1020 * Parse factory bbt and update memory-based bbt. Factory bbt format is
1029 nand->bbt[badblock / 4] |=
1046 * infrastructure code works fine for building the memory-based bbt
[all...]
H A Dnandsim.c111 static unsigned int bbt; variable
136 module_param(bbt, uint, 0400);
170 MODULE_PARM_DESC(bbt, "0 OOB, 1 BBT with marker in OOB, 2 BBT with marker in data area");
2274 switch (bbt) {
2282 NS_ERR("bbt has to be 0..2\n");
H A Dnand_base.c419 if (chip->bbt)
420 chip->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
493 * @allowbbt: 1, if its allowed to access the bbt area
503 if (!chip->bbt)
2533 * @allowbbt: allow erasing the bbt area
2577 * can not be matched. This is also done when the bbt is actually
3550 kfree(chip->bbt);
/drivers/mtd/devices/
H A Ddocg3.h296 * @bbt: bad block table cache
311 u8 *bbt; member in struct:docg3
H A Ddocg3.c996 u_char *buf = docg3->bbt;
1036 is_good = docg3->bbt[block0 >> 3] & (1 << (block0 & 0x7));
1885 docg3->bbt = kzalloc(bbt_nbpages * DOC_LAYOUT_PAGE_SIZE, GFP_KERNEL);
1886 if (!docg3->bbt)
1938 kfree(docg3->bbt);
/drivers/mtd/nand/gpmi-nand/
H A Dgpmi-nand.c29 /* add our owner bbt descriptor */
1124 if (chip->bbt)
1125 chip->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);

Completed in 592 milliseconds