Lines Matching refs:startblock
466 int i, numblocks, startblock; in create_bbt() local
473 startblock = 0; in create_bbt()
482 startblock = chip * numblocks; in create_bbt()
483 numblocks += startblock; in create_bbt()
484 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
487 for (i = startblock; i < numblocks; i++) { in create_bbt()
529 int startblock, block, dir; in search_bbt() local
536 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
539 startblock = 0; in search_bbt()
547 startblock &= bbtblocks - 1; in search_bbt()
560 int actblock = startblock + dir * block; in search_bbt()
574 startblock += targetsize >> this->bbt_erase_shift; in search_bbt()
625 int startblock, dir, page, numblocks, i; in get_bbt_block() local
645 startblock = numblocks * (chip + 1) - 1; in get_bbt_block()
648 startblock = chip * numblocks; in get_bbt_block()
653 int block = startblock + dir * i; in get_bbt_block()