Searched refs:sm_ftl (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/mtd/
H A Dsm_ftl.h28 struct sm_ftl { struct
78 printk(KERN_WARNING "sm_ftl" ": " format "\n", ## __VA_ARGS__)
82 printk(KERN_DEBUG "sm_ftl" ": " format "\n", ## __VA_ARGS__)
86 printk(KERN_DEBUG "sm_ftl" ": " format "\n", ## __VA_ARGS__)
90 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block,
92 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone_num, int block);
94 static int sm_recheck_media(struct sm_ftl *ftl);
H A DMakefile26 obj-$(CONFIG_SM_FTL) += sm_ftl.o
H A Dsm_ftl.c21 #include "sm_ftl.h"
57 static struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl) sm_create_sysfs_attributes()
107 static void sm_delete_sysfs_attributes(struct sm_ftl *ftl) sm_delete_sysfs_attributes()
195 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) sm_mkoffset()
209 static void sm_break_offset(struct sm_ftl *ftl, loff_t offset, sm_break_offset()
236 static int sm_read_sector(struct sm_ftl *ftl, sm_read_sector()
318 static int sm_write_sector(struct sm_ftl *ftl, sm_write_sector()
365 static int sm_write_block(struct sm_ftl *ftl, uint8_t *buf, sm_write_block()
428 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) sm_mark_block_bad()
455 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, sm_erase_block()
505 struct sm_ftl *ftl = (struct sm_ftl *)self->priv; sm_erase_callback()
510 static int sm_check_block(struct sm_ftl *ftl, int zone, int block) sm_check_block()
571 static int sm_get_media_info(struct sm_ftl *ftl, struct mtd_info *mtd) sm_get_media_info()
666 static int sm_read_cis(struct sm_ftl *ftl) sm_read_cis()
686 static int sm_find_cis(struct sm_ftl *ftl) sm_find_cis()
744 static int sm_recheck_media(struct sm_ftl *ftl) sm_recheck_media()
758 static int sm_init_zone(struct sm_ftl *ftl, int zone_num) sm_init_zone()
878 static struct ftl_zone *sm_get_zone(struct sm_ftl *ftl, int zone_num) sm_get_zone()
899 static void sm_cache_init(struct sm_ftl *ftl) sm_cache_init()
909 static void sm_cache_put(struct sm_ftl *ftl, char *buffer, int boffset) sm_cache_put()
917 static int sm_cache_get(struct sm_ftl *ftl, char *buffer, int boffset) sm_cache_get()
928 static int sm_cache_flush(struct sm_ftl *ftl) sm_cache_flush()
993 struct sm_ftl *ftl = (struct sm_ftl *)data; sm_cache_flush_timer()
1000 struct sm_ftl *ftl = container_of(work, struct sm_ftl, flush_work); sm_cache_flush_work()
1013 struct sm_ftl *ftl = dev->priv; sm_read()
1059 struct sm_ftl *ftl = dev->priv; sm_write()
1097 struct sm_ftl *ftl = dev->priv; sm_flush()
1109 struct sm_ftl *ftl = dev->priv; sm_release()
1121 struct sm_ftl *ftl = dev->priv; sm_getgeo()
1132 struct sm_ftl *ftl; sm_add_mtd()
1135 ftl = kzalloc(sizeof(struct sm_ftl), GFP_KERNEL); sm_add_mtd()
1230 struct sm_ftl *ftl = dev->priv; sm_remove_dev()

Completed in 143 milliseconds