Lines Matching refs:block_size
197 WARN_ON(boffset >= ftl->block_size); in sm_mkoffset()
202 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset()
210 *boffset = do_div(offset, ftl->block_size); in sm_break_offset()
385 for (boffset = 0; boffset < ftl->block_size; in sm_write_block()
456 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad()
472 erase.len = ftl->block_size; in sm_erase_block()
514 for (boffset = 0; boffset < ftl->block_size; in sm_check_block()
580 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
589 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
599 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
606 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
612 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
622 ftl->block_size = 32 * SM_SECTOR_SIZE; in sm_get_media_info()
626 if (mtd->erasesize > ftl->block_size) in sm_get_media_info()
703 for (boffset = 0 ; boffset < ftl->block_size; in sm_find_cis()
714 if (boffset == ftl->block_size) in sm_find_cis()
730 block * ftl->block_size + in sm_find_cis()
952 ftl->block_size / SM_SECTOR_SIZE) { in sm_cache_flush()
1166 ftl->cache_data = kzalloc(ftl->block_size, GFP_KERNEL); in sm_add_mtd()
1185 trans->size = (ftl->block_size * ftl->max_lba * ftl->zone_count) >> 9; in sm_add_mtd()
1206 ftl->block_size); in sm_add_mtd()