Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mtd/
Dinftlmount.c537 unsigned int first_logical_block, logical_block, erase_mark; in INFTL_mount() local
557 logical_block = block = BLOCK_NIL; in INFTL_mount()
603 logical_block = le16_to_cpu(h0.virtualUnitNo); in INFTL_mount()
615 if (logical_block == first_logical_block) { in INFTL_mount()
638 if ((logical_block == BLOCK_FREE) || in INFTL_mount()
639 (logical_block == BLOCK_NIL)) { in INFTL_mount()
645 if ((logical_block >= s->nb_blocks) || in INFTL_mount()
658 first_logical_block = logical_block; in INFTL_mount()
660 if (first_logical_block != logical_block) { in INFTL_mount()
704 logical_block = BLOCK_NIL; in INFTL_mount()
[all …]
Dnftlmount.c568 unsigned int first_logical_block, logical_block, rep_block, erase_mark; in NFTL_mount() local
610 logical_block = le16_to_cpu ((h0.VirtUnitNum | h0.SpareVirtUnitNum)); in NFTL_mount()
614 is_first_block = !(logical_block >> 15); in NFTL_mount()
615 logical_block = logical_block & 0x7fff; in NFTL_mount()
618 if (erase_mark != ERASE_MARK || logical_block >= s->nb_blocks) { in NFTL_mount()
654 first_logical_block = logical_block; in NFTL_mount()
656 if (logical_block != first_logical_block) { in NFTL_mount()
658 block, logical_block, first_logical_block); in NFTL_mount()