Home
last modified time | relevance | path

Searched refs:logical_block (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/mtd/
Dinftlmount.c530 unsigned int first_logical_block, logical_block, erase_mark; in INFTL_mount() local
550 logical_block = block = BLOCK_NIL; in INFTL_mount()
592 logical_block = le16_to_cpu(h0.virtualUnitNo); in INFTL_mount()
604 if (logical_block == first_logical_block) { in INFTL_mount()
627 if ((logical_block == BLOCK_FREE) || in INFTL_mount()
628 (logical_block == BLOCK_NIL)) { in INFTL_mount()
634 if ((logical_block >= s->nb_blocks) || in INFTL_mount()
647 first_logical_block = logical_block; in INFTL_mount()
649 if (first_logical_block != logical_block) { in INFTL_mount()
693 logical_block = BLOCK_NIL; in INFTL_mount()
[all …]
Dnftlmount.c565 unsigned int first_logical_block, logical_block, rep_block, erase_mark; in NFTL_mount() local
607 logical_block = le16_to_cpu ((h0.VirtUnitNum | h0.SpareVirtUnitNum)); in NFTL_mount()
611 is_first_block = !(logical_block >> 15); in NFTL_mount()
612 logical_block = logical_block & 0x7fff; in NFTL_mount()
615 if (erase_mark != ERASE_MARK || logical_block >= s->nb_blocks) { in NFTL_mount()
651 first_logical_block = logical_block; in NFTL_mount()
653 if (logical_block != first_logical_block) { in NFTL_mount()
655 block, logical_block, first_logical_block); in NFTL_mount()