Searched refs:bbm (Results 1 – 2 of 2) sorted by relevance
60 struct bbm_info *bbm = this->bbm; in create_bbt() local80 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1); in create_bbt()104 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6); in create_bbt()117 from += (1 << bbm->bbt_erase_shift); in create_bbt()148 struct bbm_info *bbm = this->bbm; in onenand_isbad_bbt() local154 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; in onenand_isbad_bbt()185 struct bbm_info *bbm = this->bbm; in onenand_scan_bbt() local190 bbm->bbt = kzalloc(len, GFP_KERNEL); in onenand_scan_bbt()191 if (!bbm->bbt) in onenand_scan_bbt()195 bbm->badblockpos = ONENAND_BADBLOCK_POS; in onenand_scan_bbt()[all …]
2229 struct bbm_info *bbm = this->bbm; in onenand_block_isbad_nolock() local2232 return bbm->isbad_bbt(mtd, ofs, allowbbt); in onenand_block_isbad_nolock()2569 struct bbm_info *bbm = this->bbm; in onenand_default_block_markbad() local2581 if (bbm->bbt) in onenand_default_block_markbad()2582 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); in onenand_default_block_markbad()2585 ofs += mtd->oobsize + (bbm->badblockpos & ~0x01); in onenand_default_block_markbad()4120 if (this->bbm) { in onenand_release()4121 struct bbm_info *bbm = this->bbm; in onenand_release() local4122 kfree(bbm->bbt); in onenand_release()4123 kfree(this->bbm); in onenand_release()