Lines Matching refs:numblocks
456 int i, numblocks, numpages; in create_bbt() local
468 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
477 numblocks = this->chipsize >> this->bbt_erase_shift; in create_bbt()
478 startblock = chip * numblocks; in create_bbt()
479 numblocks += startblock; in create_bbt()
486 for (i = startblock; i < numblocks; i++) { in create_bbt()
622 int bits, startblock, dir, page, offs, numblocks, sft, sftmsk; in write_bbt() local
639 numblocks = (int)(this->chipsize >> this->bbt_erase_shift); in write_bbt()
648 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
669 startblock = numblocks * (chip + 1) - 1; in write_bbt()
672 startblock = chip * numblocks; in write_bbt()
739 memset(&buf[offs], 0xff, (size_t)(numblocks >> sft)); in write_bbt()
749 len = (size_t)(numblocks >> sft); in write_bbt()
759 len = (size_t)(numblocks >> sft); in write_bbt()
775 for (i = 0; i < numblocks; i++) { in write_bbt()
778 dat = bbt_get_entry(this, chip * numblocks + i); in write_bbt()