Lines Matching refs:startblock
495 int i, numblocks, startblock; in create_bbt() local
502 startblock = 0; in create_bbt()
511 startblock = chip * numblocks; in create_bbt()
512 numblocks += startblock; in create_bbt()
513 from = (loff_t)startblock << this->bbt_erase_shift; in create_bbt()
516 for (i = startblock; i < numblocks; i++) { in create_bbt()
558 int startblock, block, dir; in search_bbt() local
565 startblock = (mtd->size >> this->bbt_erase_shift) - 1; in search_bbt()
568 startblock = 0; in search_bbt()
576 startblock &= bbtblocks - 1; in search_bbt()
589 int actblock = startblock + dir * block; in search_bbt()
607 startblock += targetsize >> this->bbt_erase_shift; in search_bbt()
658 int startblock, dir, page, numblocks, i; in get_bbt_block() local
678 startblock = numblocks * (chip + 1) - 1; in get_bbt_block()
681 startblock = chip * numblocks; in get_bbt_block()
686 int block = startblock + dir * i; in get_bbt_block()