Lines Matching refs:options
115 if (td->options & NAND_BBT_NO_OOB) in check_pattern()
152 if (!(td->options & NAND_BBT_NO_OOB)) in add_marker_len()
156 if (td->options & NAND_BBT_VERSION) in add_marker_len()
179 int bits = td->options & NAND_BBT_NRBITS_MSK; in read_bbt()
270 if (td->options & NAND_BBT_PERCHIP) { in read_abs_bbt()
298 if (td->options & NAND_BBT_VERSION) in scan_read_data()
348 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()
465 if (bd->options & NAND_BBT_SCAN2NDPAGE) in create_bbt()
492 BUG_ON(bd->options & NAND_BBT_NO_OOB); in create_bbt()
535 if (td->options & NAND_BBT_LASTBLOCK) { in search_bbt()
544 if (td->options & NAND_BBT_PERCHIP) { in search_bbt()
567 if (td->options & NAND_BBT_VERSION) { in search_bbt()
641 if (td->options & NAND_BBT_PERCHIP) { in write_bbt()
671 if (td->options & NAND_BBT_LASTBLOCK) { in write_bbt()
698 bits = td->options & NAND_BBT_NRBITS_MSK; in write_bbt()
719 if (td->options & NAND_BBT_SAVECONTENT) { in write_bbt()
745 } else if (td->options & NAND_BBT_NO_OOB) { in write_bbt()
749 if (td->options & NAND_BBT_VERSION) in write_bbt()
774 if (td->options & NAND_BBT_VERSION) in write_bbt()
795 td->options & NAND_BBT_NO_OOB ? NULL : in write_bbt()
848 if (td->options & NAND_BBT_PERCHIP) in check_create()
860 chipsel = (td->options & NAND_BBT_PERCHIP) ? i : -1; in check_create()
874 if (!(td->options & NAND_BBT_VERSION)) in check_create()
894 if (!(td->options & NAND_BBT_CREATE)) in check_create()
940 if ((writeops & 0x01) && (td->options & NAND_BBT_WRITE)) { in check_create()
947 if ((writeops & 0x02) && md && (md->options & NAND_BBT_WRITE)) { in check_create()
971 if (td->options & NAND_BBT_PERCHIP) { in mark_bbt_region()
980 if ((td->options & NAND_BBT_ABSPAGE) || in mark_bbt_region()
981 !(td->options & NAND_BBT_WRITE)) { in mark_bbt_region()
994 if (td->options & NAND_BBT_LASTBLOCK) in mark_bbt_region()
1035 bits = bd->options & NAND_BBT_NRBITS_MSK; in verify_bbt_descr()
1041 if (bd->options & NAND_BBT_VERSION) in verify_bbt_descr()
1044 if (bd->options & NAND_BBT_NO_OOB) { in verify_bbt_descr()
1048 if (bd->options & NAND_BBT_VERSION) in verify_bbt_descr()
1050 BUG_ON(bd->options & NAND_BBT_SAVECONTENT); in verify_bbt_descr()
1053 if (bd->options & NAND_BBT_PERCHIP) in verify_bbt_descr()
1059 if (bd->options & NAND_BBT_NO_OOB) in verify_bbt_descr()
1117 if (td->options & NAND_BBT_ABSPAGE) { in nand_scan_bbt()
1169 if (td->options & NAND_BBT_PERCHIP) { in nand_update_bbt()
1182 if (td->options & NAND_BBT_WRITE) { in nand_update_bbt()
1188 if (md && (md->options & NAND_BBT_WRITE)) { in nand_update_bbt()
1208 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1218 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1228 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1238 .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
1267 bd->options = this->bbt_options & BADBLOCK_SCAN_MASK; in nand_create_badblock_pattern()
1269 bd->len = (this->options & NAND_BUSWIDTH_16) ? 2 : 1; in nand_create_badblock_pattern()
1271 bd->options |= NAND_BBT_DYNAMICSTRUCT; in nand_create_badblock_pattern()