Lines Matching refs:SM_SECTOR_SIZE
197 WARN_ON(boffset & (SM_SECTOR_SIZE - 1)); in sm_mkoffset()
249 memset(buffer, 0xFF, SM_SECTOR_SIZE); in sm_read_sector()
261 ops.len = SM_SECTOR_SIZE; in sm_read_sector()
294 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_read_sector()
338 ops.len = SM_SECTOR_SIZE; in sm_write_sector()
358 WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE); in sm_write_sector()
382 boffset += SM_SECTOR_SIZE) { in sm_write_block()
386 if (test_bit(boffset / SM_SECTOR_SIZE, &invalid_bitmap)) { in sm_write_block()
390 boffset / SM_SECTOR_SIZE, lba, zone); in sm_write_block()
448 for (boffset = 0; boffset < ftl->block_size; boffset += SM_SECTOR_SIZE) in sm_mark_block_bad()
506 boffset += SM_SECTOR_SIZE) { in sm_check_block()
570 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
579 ftl->block_size = 8 * SM_SECTOR_SIZE; in sm_get_media_info()
589 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
596 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
602 ftl->block_size = 16 * SM_SECTOR_SIZE; in sm_get_media_info()
611 ftl->block_size = 32 * SM_SECTOR_SIZE; in sm_get_media_info()
618 if (mtd->writesize > SM_SECTOR_SIZE) in sm_get_media_info()
693 boffset += SM_SECTOR_SIZE) { in sm_find_cis()
894 memcpy(ftl->cache_data + boffset, buffer, SM_SECTOR_SIZE); in sm_cache_put()
895 clear_bit(boffset / SM_SECTOR_SIZE, &ftl->cache_data_invalid_bitmap); in sm_cache_put()
902 if (test_bit(boffset / SM_SECTOR_SIZE, in sm_cache_get()
906 memcpy(buffer, ftl->cache_data + boffset, SM_SECTOR_SIZE); in sm_cache_get()
933 ftl->block_size / SM_SECTOR_SIZE) { in sm_cache_flush()
936 zone_num, block_num, sector_num * SM_SECTOR_SIZE, in sm_cache_flush()
937 ftl->cache_data + sector_num * SM_SECTOR_SIZE, NULL)) in sm_cache_flush()
1022 memset(buf, 0xFF, SM_SECTOR_SIZE); in sm_read()
1135 ftl->cis_buffer = kzalloc(SM_SECTOR_SIZE, GFP_KERNEL); in sm_add_mtd()
1238 .blksize = SM_SECTOR_SIZE,