Searched refs:ftl (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/mtd/ |
D | sm_ftl.c | 57 static struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl) in sm_create_sysfs_attributes() argument 64 vendor = kstrndup(ftl->cis_buffer + SM_CIS_VENDOR_OFFSET, in sm_create_sysfs_attributes() 107 static void sm_delete_sysfs_attributes(struct sm_ftl *ftl) in sm_delete_sysfs_attributes() argument 109 struct attribute **attributes = ftl->disk_attributes->attrs; in sm_delete_sysfs_attributes() 125 kfree(ftl->disk_attributes->attrs); in sm_delete_sysfs_attributes() 126 kfree(ftl->disk_attributes); in sm_delete_sysfs_attributes() 195 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset() argument 198 WARN_ON(zone < 0 || zone >= ftl->zone_count); in sm_mkoffset() 199 WARN_ON(block >= ftl->zone_size); in sm_mkoffset() 200 WARN_ON(boffset >= ftl->block_size); in sm_mkoffset() [all …]
|
D | sm_ftl.h | 86 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, 88 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone_num, int block); 90 static int sm_recheck_media(struct sm_ftl *ftl);
|
D | Makefile | 23 obj-$(CONFIG_FTL) += ftl.o
|
/Linux-v4.19/drivers/mtd/parsers/ |
D | sharpslpart.c | 166 static int sharpsl_nand_init_ftl(struct mtd_info *mtd, struct sharpsl_ftl *ftl) in sharpsl_nand_init_ftl() argument 180 ftl->logmax = ((phymax * 95) / 100) - 1; in sharpsl_nand_init_ftl() 182 ftl->log2phy = kmalloc_array(ftl->logmax, sizeof(*ftl->log2phy), in sharpsl_nand_init_ftl() 184 if (!ftl->log2phy) { in sharpsl_nand_init_ftl() 190 for (i = 0; i < ftl->logmax; i++) in sharpsl_nand_init_ftl() 191 ftl->log2phy[i] = UINT_MAX; in sharpsl_nand_init_ftl() 207 if (log_num > 0 && log_num < ftl->logmax) { in sharpsl_nand_init_ftl() 208 if (ftl->log2phy[log_num] == UINT_MAX) in sharpsl_nand_init_ftl() 209 ftl->log2phy[log_num] = block_num; in sharpsl_nand_init_ftl() 214 phymax, ftl->logmax, phymax - ftl->logmax); in sharpsl_nand_init_ftl() [all …]
|