Lines Matching refs:SM_SECTOR_SIZE

194 	WARN_ON(boffset & (SM_SECTOR_SIZE - 1));  in sm_mkoffset()
251 memset(buffer, 0xFF, SM_SECTOR_SIZE); in sm_read_sector()
263 ops.len = SM_SECTOR_SIZE; in sm_read_sector()
296 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_read_sector()
340 ops.len = SM_SECTOR_SIZE; in sm_write_sector()
360 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_write_sector()
384 boffset += SM_SECTOR_SIZE) { in sm_write_block()
388 if (test_bit(boffset / SM_SECTOR_SIZE, &invalid_bitmap)) { in sm_write_block()
392 boffset / SM_SECTOR_SIZE, lba, zone); in sm_write_block()
452 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad()
510 boffset += SM_SECTOR_SIZE) { in sm_check_block()
574 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
583 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
593 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
600 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()
615 ftl->block_size = 32 * SM_SECTOR_SIZE; in sm_get_media_info()
622 if (mtd->writesize > SM_SECTOR_SIZE) in sm_get_media_info()
697 boffset += SM_SECTOR_SIZE) { in sm_find_cis()
901 memcpy(ftl->cache_data + boffset, buffer, SM_SECTOR_SIZE); in sm_cache_put()
902 clear_bit(boffset / SM_SECTOR_SIZE, &ftl->cache_data_invalid_bitmap); in sm_cache_put()
909 if (test_bit(boffset / SM_SECTOR_SIZE, in sm_cache_get()
913 memcpy(buffer, ftl->cache_data + boffset, SM_SECTOR_SIZE); in sm_cache_get()
940 ftl->block_size / SM_SECTOR_SIZE) { in sm_cache_flush()
943 zone_num, block_num, sector_num * SM_SECTOR_SIZE, in sm_cache_flush()
944 ftl->cache_data + sector_num * SM_SECTOR_SIZE, NULL)) in sm_cache_flush()
1029 memset(buf, 0xFF, SM_SECTOR_SIZE); in sm_read()
1142 ftl->cis_buffer = kzalloc(SM_SECTOR_SIZE, GFP_KERNEL); in sm_add_mtd()
1245 .blksize = SM_SECTOR_SIZE,