Lines Matching refs:SM_SECTOR_SIZE
194 WARN_ON(boffset & (SM_SECTOR_SIZE - 1)); in sm_mkoffset()
250 memset(buffer, 0xFF, SM_SECTOR_SIZE); in sm_read_sector()
262 ops.len = SM_SECTOR_SIZE; in sm_read_sector()
297 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_read_sector()
341 ops.len = SM_SECTOR_SIZE; in sm_write_sector()
361 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_write_sector()
386 boffset += SM_SECTOR_SIZE) { in sm_write_block()
390 if (test_bit(boffset / SM_SECTOR_SIZE, &invalid_bitmap)) { in sm_write_block()
394 boffset / SM_SECTOR_SIZE, lba, zone); in sm_write_block()
456 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad()
515 boffset += SM_SECTOR_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()
629 if (mtd->writesize > SM_SECTOR_SIZE) in sm_get_media_info()
704 boffset += SM_SECTOR_SIZE) { in sm_find_cis()
913 memcpy(ftl->cache_data + boffset, buffer, SM_SECTOR_SIZE); in sm_cache_put()
914 clear_bit(boffset / SM_SECTOR_SIZE, &ftl->cache_data_invalid_bitmap); in sm_cache_put()
921 if (test_bit(boffset / SM_SECTOR_SIZE, in sm_cache_get()
925 memcpy(buffer, ftl->cache_data + boffset, SM_SECTOR_SIZE); in sm_cache_get()
952 ftl->block_size / SM_SECTOR_SIZE) { in sm_cache_flush()
955 zone_num, block_num, sector_num * SM_SECTOR_SIZE, in sm_cache_flush()
956 ftl->cache_data + sector_num * SM_SECTOR_SIZE, NULL)) in sm_cache_flush()
1042 memset(buf, 0xFF, SM_SECTOR_SIZE); in sm_read()
1155 ftl->cis_buffer = kzalloc(SM_SECTOR_SIZE, GFP_KERNEL); in sm_add_mtd()
1258 .blksize = SM_SECTOR_SIZE,