Lines Matching refs:numblocks
466 int i, numblocks, startblock; in create_bbt() local
472 numblocks = mtd->size >> this->bbt_erase_shift; in create_bbt()
481 numblocks = targetsize >> this->bbt_erase_shift; in create_bbt()
482 startblock = chip * numblocks; in create_bbt()
483 numblocks += startblock; in create_bbt()
487 for (i = startblock; i < numblocks; i++) { in create_bbt()
625 int startblock, dir, page, numblocks, i; in get_bbt_block() local
636 numblocks = (int)(targetsize >> this->bbt_erase_shift); in get_bbt_block()
638 numblocks *= nanddev_ntargets(&this->base); in get_bbt_block()
645 startblock = numblocks * (chip + 1) - 1; in get_bbt_block()
648 startblock = chip * numblocks; in get_bbt_block()
720 int bits, page, offs, numblocks, sft, sftmsk; in write_bbt() local
737 numblocks = (int)(targetsize >> this->bbt_erase_shift); in write_bbt()
746 numblocks = (int)(mtd->size >> this->bbt_erase_shift); in write_bbt()
812 memset(&buf[offs], 0xff, (size_t)(numblocks >> sft)); in write_bbt()
822 len = (size_t)(numblocks >> sft); in write_bbt()
832 len = (size_t)(numblocks >> sft); in write_bbt()
848 for (i = 0; i < numblocks; i++) { in write_bbt()
851 dat = bbt_get_entry(this, chip * numblocks + i); in write_bbt()