Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/memstick/core/
Dms_block.c162 if (msb->block_count - bitmap_weight(msb->used_blocks_bitmap, in msb_validate_used_block_bitmap()
176 if (test_bit(pba, msb->used_blocks_bitmap)) { in msb_mark_block_used()
187 __set_bit(pba, msb->used_blocks_bitmap); in msb_mark_block_used()
196 if (!test_bit(pba, msb->used_blocks_bitmap)) { in msb_mark_block_unused()
206 __clear_bit(pba, msb->used_blocks_bitmap); in msb_mark_block_unused()
1097 pba = find_next_zero_bit(msb->used_blocks_bitmap, in msb_get_free_block()
1100 pba = find_next_zero_bit(msb->used_blocks_bitmap, in msb_get_free_block()
1318 if (test_bit(bad_block, msb->used_blocks_bitmap)) { in msb_read_bad_block_table()
1342 msb->used_blocks_bitmap = bitmap_zalloc(msb->block_count, GFP_KERNEL); in msb_ftl_initialize()
1348 if (!msb->used_blocks_bitmap || !msb->lba_to_pba_table || in msb_ftl_initialize()
[all …]
Dms_block.h181 unsigned long *used_blocks_bitmap; member