Lines Matching refs:sm_ftl

54 static struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl)  in sm_create_sysfs_attributes()
104 static void sm_delete_sysfs_attributes(struct sm_ftl *ftl) in sm_delete_sysfs_attributes()
192 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset()
206 static void sm_break_offset(struct sm_ftl *ftl, loff_t loffset, in sm_break_offset()
237 static int sm_read_sector(struct sm_ftl *ftl, in sm_read_sector()
322 static int sm_write_sector(struct sm_ftl *ftl, in sm_write_sector()
369 static int sm_write_block(struct sm_ftl *ftl, uint8_t *buf, in sm_write_block()
436 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) in sm_mark_block_bad()
464 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, in sm_erase_block()
501 static int sm_check_block(struct sm_ftl *ftl, int zone, int block) in sm_check_block()
564 static int sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) in sm_get_media_info()
660 static int sm_read_cis(struct sm_ftl *ftl) in sm_read_cis()
680 static int sm_find_cis(struct sm_ftl *ftl) in sm_find_cis()
738 static int sm_recheck_media(struct sm_ftl *ftl) in sm_recheck_media()
752 static int sm_init_zone(struct sm_ftl *ftl, int zone_num) in sm_init_zone()
880 static struct ftl_zone *sm_get_zone(struct sm_ftl *ftl, int zone_num) in sm_get_zone()
901 static void sm_cache_init(struct sm_ftl *ftl) in sm_cache_init()
911 static void sm_cache_put(struct sm_ftl *ftl, char *buffer, int boffset) in sm_cache_put()
919 static int sm_cache_get(struct sm_ftl *ftl, char *buffer, int boffset) in sm_cache_get()
930 static int sm_cache_flush(struct sm_ftl *ftl) in sm_cache_flush()
996 struct sm_ftl *ftl = from_timer(ftl, t, timer); in sm_cache_flush_timer()
1003 struct sm_ftl *ftl = container_of(work, struct sm_ftl, flush_work); in sm_cache_flush_work()
1016 struct sm_ftl *ftl = dev->priv; in sm_read()
1062 struct sm_ftl *ftl = dev->priv; in sm_write()
1100 struct sm_ftl *ftl = dev->priv; in sm_flush()
1112 struct sm_ftl *ftl = dev->priv; in sm_release()
1124 struct sm_ftl *ftl = dev->priv; in sm_getgeo()
1135 struct sm_ftl *ftl; in sm_add_mtd()
1138 ftl = kzalloc(sizeof(struct sm_ftl), GFP_KERNEL); in sm_add_mtd()
1232 struct sm_ftl *ftl = dev->priv; in sm_remove_dev()