Lines Matching refs:options

109 	if (td->options & NAND_BBT_NO_OOB)  in check_pattern()
146 if (!(td->options & NAND_BBT_NO_OOB)) in add_marker_len()
150 if (td->options & NAND_BBT_VERSION) in add_marker_len()
173 int bits = td->options & NAND_BBT_NRBITS_MSK; in read_bbt()
266 if (td->options & NAND_BBT_PERCHIP) { in read_abs_bbt()
295 if (td->options & NAND_BBT_VERSION) in scan_read_data()
346 if (td->options & NAND_BBT_NO_OOB) in scan_read()
374 if (!(td->options & NAND_BBT_NO_OOB)) in bbt_get_ver_offs()
395 if (td->options & NAND_BBT_VERSION) { in read_abs_bbts()
404 if (md && (md->options & NAND_BBT_VERSION)) { in read_abs_bbts()
461 if (!(td->options & NAND_BBT_NO_OOB) && in bbt_block_checkbad()
470 this->options & NAND_NO_BBM_QUIRK) in bbt_block_checkbad()
519 BUG_ON(bd->options & NAND_BBT_NO_OOB); in create_bbt()
564 if (td->options & NAND_BBT_LASTBLOCK) { in search_bbt()
573 if (td->options & NAND_BBT_PERCHIP) { in search_bbt()
599 if (td->options & NAND_BBT_VERSION) { in search_bbt()
669 if (!(td->options & NAND_BBT_PERCHIP)) in get_bbt_block()
676 if (td->options & NAND_BBT_LASTBLOCK) { in get_bbt_block()
768 if (td->options & NAND_BBT_PERCHIP) { in write_bbt()
800 bits = td->options & NAND_BBT_NRBITS_MSK; in write_bbt()
821 if (td->options & NAND_BBT_SAVECONTENT) { in write_bbt()
847 } else if (td->options & NAND_BBT_NO_OOB) { in write_bbt()
851 if (td->options & NAND_BBT_VERSION) in write_bbt()
876 if (td->options & NAND_BBT_VERSION) in write_bbt()
900 td->options & NAND_BBT_NO_OOB ? in write_bbt()
958 if (td->options & NAND_BBT_PERCHIP) in check_create()
970 chipsel = (td->options & NAND_BBT_PERCHIP) ? i : -1; in check_create()
984 if (!(td->options & NAND_BBT_VERSION)) in check_create()
1004 if (!(td->options & NAND_BBT_CREATE)) in check_create()
1050 if ((writeops & 0x01) && (td->options & NAND_BBT_WRITE)) { in check_create()
1057 if ((writeops & 0x02) && md && (md->options & NAND_BBT_WRITE)) { in check_create()
1093 if (td->options & NAND_BBT_PERCHIP) { in nand_update_bbt()
1106 if (td->options & NAND_BBT_WRITE) { in nand_update_bbt()
1112 if (md && (md->options & NAND_BBT_WRITE)) { in nand_update_bbt()
1137 if (td->options & NAND_BBT_PERCHIP) { in mark_bbt_region()
1146 if ((td->options & NAND_BBT_ABSPAGE) || in mark_bbt_region()
1147 !(td->options & NAND_BBT_WRITE)) { in mark_bbt_region()
1160 if (td->options & NAND_BBT_LASTBLOCK) in mark_bbt_region()
1202 bits = bd->options & NAND_BBT_NRBITS_MSK; in verify_bbt_descr()
1208 if (bd->options & NAND_BBT_VERSION) in verify_bbt_descr()
1211 if (bd->options & NAND_BBT_NO_OOB) { in verify_bbt_descr()
1215 if (bd->options & NAND_BBT_VERSION) in verify_bbt_descr()
1217 BUG_ON(bd->options & NAND_BBT_SAVECONTENT); in verify_bbt_descr()
1220 if (bd->options & NAND_BBT_PERCHIP) in verify_bbt_descr()
1226 if (bd->options & NAND_BBT_NO_OOB) in verify_bbt_descr()
1284 if (td->options & NAND_BBT_ABSPAGE) { in nand_scan_bbt()
1322 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1332 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1342 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1352 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1381 bd->options = this->bbt_options & BADBLOCK_SCAN_MASK; in nand_create_badblock_pattern()
1383 bd->len = (this->options & NAND_BUSWIDTH_16) ? 2 : 1; in nand_create_badblock_pattern()
1385 bd->options |= NAND_BBT_DYNAMICSTRUCT; in nand_create_badblock_pattern()