Lines Matching defs:bbm
59 struct bbm_info *bbm = this->bbm;
79 numblocks = this->chipsize >> (bbm->bbt_erase_shift - 1);
103 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6);
116 from += (1 << bbm->bbt_erase_shift);
147 struct bbm_info *bbm = this->bbm;
153 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03;
184 struct bbm_info *bbm = this->bbm;
189 bbm->bbt = kzalloc(len, GFP_KERNEL);
190 if (!bbm->bbt)
194 bbm->bbt_erase_shift = this->erase_shift;
196 if (!bbm->isbad_bbt)
197 bbm->isbad_bbt = onenand_isbad_bbt;
202 kfree(bbm->bbt);
203 bbm->bbt = NULL;
232 struct bbm_info *bbm;
234 this->bbm = kzalloc(sizeof(struct bbm_info), GFP_KERNEL);
235 if (!this->bbm)
238 bbm = this->bbm;
241 if (!bbm->badblock_pattern)
242 bbm->badblock_pattern = &largepage_memorybased;
244 return onenand_scan_bbt(mtd, bbm->badblock_pattern);