Lines Matching defs: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()
238 static int sm_read_sector(struct sm_ftl *ftl, in sm_read_sector()
321 static int sm_write_sector(struct sm_ftl *ftl, in sm_write_sector()
368 static int sm_write_block(struct sm_ftl *ftl, uint8_t *buf, in sm_write_block()
433 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) in sm_mark_block_bad()
460 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, in sm_erase_block()
497 static int sm_check_block(struct sm_ftl *ftl, int zone, int block) in sm_check_block()
558 static int sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) in sm_get_media_info()
653 static int sm_read_cis(struct sm_ftl *ftl) in sm_read_cis()
673 static int sm_find_cis(struct sm_ftl *ftl) in sm_find_cis()
731 static int sm_recheck_media(struct sm_ftl *ftl) in sm_recheck_media()
745 static int sm_init_zone(struct sm_ftl *ftl, int zone_num) in sm_init_zone()
868 static struct ftl_zone *sm_get_zone(struct sm_ftl *ftl, int zone_num) in sm_get_zone()
889 static void sm_cache_init(struct sm_ftl *ftl) in sm_cache_init()
899 static void sm_cache_put(struct sm_ftl *ftl, char *buffer, int boffset) in sm_cache_put()
907 static int sm_cache_get(struct sm_ftl *ftl, char *buffer, int boffset) in sm_cache_get()
918 static int sm_cache_flush(struct sm_ftl *ftl) in sm_cache_flush()
983 struct sm_ftl *ftl = from_timer(ftl, t, timer); in sm_cache_flush_timer() local
990 struct sm_ftl *ftl = container_of(work, struct sm_ftl, flush_work); in sm_cache_flush_work() local
1003 struct sm_ftl *ftl = dev->priv; in sm_read() local
1049 struct sm_ftl *ftl = dev->priv; in sm_write() local
1087 struct sm_ftl *ftl = dev->priv; in sm_flush() local
1099 struct sm_ftl *ftl = dev->priv; in sm_release() local
1111 struct sm_ftl *ftl = dev->priv; in sm_getgeo() local
1122 struct sm_ftl *ftl; in sm_add_mtd() local
1219 struct sm_ftl *ftl = dev->priv; in sm_remove_dev() local