Lines Matching refs:block_count

158 	if (msb->block_count - bitmap_weight(msb->used_blocks_bitmap,  in msb_validate_used_block_bitmap()
159 msb->block_count) == total_free_blocks) in msb_validate_used_block_bitmap()
901 if (pba >= msb->block_count) { in msb_read_page()
958 if (pba > msb->block_count) { in msb_read_oob()
1016 if (pba >= msb->block_count || lba >= msb->logical_block_count) { in msb_write_block()
1100 msb->block_count, pba); in msb_get_free_block()
1103 msb->block_count, pba + 1); in msb_get_free_block()
1107 if (pba == msb->block_count || (msb_get_zone_from_pba(pba)) != zone) { in msb_get_free_block()
1215 msb->block_count = MS_BLOCK_MAX_BOOT_ADDR; in msb_read_boot_blocks()
1314 if (bad_block >= msb->block_count) { in msb_read_bad_block_table()
1341 msb->zone_count = msb->block_count / MS_BLOCKS_IN_ZONE; in msb_ftl_initialize()
1344 msb->used_blocks_bitmap = bitmap_zalloc(msb->block_count, GFP_KERNEL); in msb_ftl_initialize()
1345 msb->erased_blocks_bitmap = bitmap_zalloc(msb->block_count, GFP_KERNEL); in msb_ftl_initialize()
1377 u8 *overwrite_flags = kzalloc(msb->block_count, GFP_KERNEL); in msb_ftl_scan()
1383 for (pba = 0; pba < msb->block_count; pba++) { in msb_ftl_scan()
1733 msb->block_count = boot_block->attr.number_of_blocks; in msb_init_card()
1749 raw_size_in_megs = (msb->block_size * msb->block_count) >> 20; in msb_init_card()
1768 dbg("Total block count = %d", msb->block_count); in msb_init_card()
2253 if (msb->block_count != new_msb->block_count || in msb_resume()
2255 msb->block_count)) in msb_resume()