Lines Matching refs:SM_SECTOR_SIZE

197 	WARN_ON(boffset & (SM_SECTOR_SIZE - 1));  in sm_mkoffset()
248 memset(buffer, 0xFF, SM_SECTOR_SIZE); in sm_read_sector()
260 ops.len = SM_SECTOR_SIZE; in sm_read_sector()
293 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_read_sector()
337 ops.len = SM_SECTOR_SIZE; in sm_write_sector()
357 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_write_sector()
381 boffset += SM_SECTOR_SIZE) { in sm_write_block()
385 if (test_bit(boffset / SM_SECTOR_SIZE, &invalid_bitmap)) { in sm_write_block()
389 boffset / SM_SECTOR_SIZE, lba, zone); in sm_write_block()
447 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad()
523 boffset += SM_SECTOR_SIZE) { in sm_check_block()
587 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
596 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
606 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
613 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
619 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
628 ftl->block_size = 32 * SM_SECTOR_SIZE; in sm_get_media_info()
635 if (mtd->writesize > SM_SECTOR_SIZE) in sm_get_media_info()
710 boffset += SM_SECTOR_SIZE) { in sm_find_cis()
911 memcpy(ftl->cache_data + boffset, buffer, SM_SECTOR_SIZE); in sm_cache_put()
912 clear_bit(boffset / SM_SECTOR_SIZE, &ftl->cache_data_invalid_bitmap); in sm_cache_put()
919 if (test_bit(boffset / SM_SECTOR_SIZE, in sm_cache_get()
923 memcpy(buffer, ftl->cache_data + boffset, SM_SECTOR_SIZE); in sm_cache_get()
950 ftl->block_size / SM_SECTOR_SIZE) { in sm_cache_flush()
953 zone_num, block_num, sector_num * SM_SECTOR_SIZE, in sm_cache_flush()
954 ftl->cache_data + sector_num * SM_SECTOR_SIZE, NULL)) in sm_cache_flush()
1039 memset(buf, 0xFF, SM_SECTOR_SIZE); in sm_read()
1153 ftl->cis_buffer = kzalloc(SM_SECTOR_SIZE, GFP_KERNEL); in sm_add_mtd()
1256 .blksize = SM_SECTOR_SIZE,