Home
last modified time | relevance | path

Searched refs:ftl (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/mtd/
H A Dsm_ftl.c53 static struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl) in sm_create_sysfs_attributes() argument
60 vendor = kstrndup(ftl->cis_buffer + SM_CIS_VENDOR_OFFSET, in sm_create_sysfs_attributes()
102 static void sm_delete_sysfs_attributes(struct sm_ftl *ftl) in sm_delete_sysfs_attributes() argument
104 struct attribute **attributes = ftl->disk_attributes->attrs; in sm_delete_sysfs_attributes()
120 kfree(ftl->disk_attributes->attrs); in sm_delete_sysfs_attributes()
121 kfree(ftl->disk_attributes); in sm_delete_sysfs_attributes()
190 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset() argument
193 WARN_ON(zone < 0 || zone >= ftl->zone_count); in sm_mkoffset()
194 WARN_ON(block >= ftl->zone_size); in sm_mkoffset()
195 WARN_ON(boffset >= ftl in sm_mkoffset()
204 sm_break_offset(struct sm_ftl * ftl,loff_t loffset,int * zone,int * block,int * boffset) sm_break_offset() argument
235 sm_read_sector(struct sm_ftl * ftl,int zone,int block,int boffset,uint8_t * buffer,struct sm_oob * oob) sm_read_sector() argument
320 sm_write_sector(struct sm_ftl * ftl,int zone,int block,int boffset,uint8_t * buffer,struct sm_oob * oob) sm_write_sector() argument
367 sm_write_block(struct sm_ftl * ftl,uint8_t * buf,int zone,int block,int lba,unsigned long invalid_bitmap) sm_write_block() argument
434 sm_mark_block_bad(struct sm_ftl * ftl,int zone,int block) sm_mark_block_bad() argument
462 sm_erase_block(struct sm_ftl * ftl,int zone_num,uint16_t block,int put_free) sm_erase_block() argument
499 sm_check_block(struct sm_ftl * ftl,int zone,int block) sm_check_block() argument
562 sm_get_media_info(struct sm_ftl * ftl,struct mtd_info * mtd) sm_get_media_info() argument
658 sm_read_cis(struct sm_ftl * ftl) sm_read_cis() argument
678 sm_find_cis(struct sm_ftl * ftl) sm_find_cis() argument
736 sm_recheck_media(struct sm_ftl * ftl) sm_recheck_media() argument
750 sm_init_zone(struct sm_ftl * ftl,int zone_num) sm_init_zone() argument
878 sm_get_zone(struct sm_ftl * ftl,int zone_num) sm_get_zone() argument
899 sm_cache_init(struct sm_ftl * ftl) sm_cache_init() argument
909 sm_cache_put(struct sm_ftl * ftl,char * buffer,int boffset) sm_cache_put() argument
917 sm_cache_get(struct sm_ftl * ftl,char * buffer,int boffset) sm_cache_get() argument
928 sm_cache_flush(struct sm_ftl * ftl) sm_cache_flush() argument
994 struct sm_ftl *ftl = timer_container_of(ftl, t, timer); sm_cache_flush_timer() local
1001 struct sm_ftl *ftl = container_of(work, struct sm_ftl, flush_work); sm_cache_flush_work() local
1014 struct sm_ftl *ftl = dev->priv; sm_read() local
1060 struct sm_ftl *ftl = dev->priv; sm_write() local
1098 struct sm_ftl *ftl = dev->priv; sm_flush() local
1110 struct sm_ftl *ftl = dev->priv; sm_release() local
1122 struct sm_ftl *ftl = dev->priv; sm_getgeo() local
1133 struct sm_ftl *ftl; sm_add_mtd() local
1229 struct sm_ftl *ftl = dev->priv; sm_remove_dev() local
[all...]
H A Dsm_ftl.h83 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block,
85 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone_num, int block);
87 static int sm_recheck_media(struct sm_ftl *ftl);
/linux/drivers/mtd/parsers/
H A Dsharpslpart.c166 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 …]
/linux/drivers/spi/
H A Dspi-rockchip.c328 u32 ftl = readl_relaxed(rs->regs + ROCKCHIP_SPI_RXFTLR) + 1; in rockchip_spi_pio_reader() local
330 if (rx_left < ftl) { in rockchip_spi_pio_reader()
331 rx_left = ftl; in rockchip_spi_pio_reader()