Home
last modified time | relevance | path

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

/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/mtd/
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);
H A DMakefile16 obj-$(CONFIG_FTL) += ftl.o
/linux/drivers/spi/
H A Dspi-rockchip.c331 u32 ftl = readl_relaxed(rs->regs + ROCKCHIP_SPI_RXFTLR) + 1; in rockchip_spi_pio_reader() local
333 if (rx_left < ftl) { in rockchip_spi_pio_reader()
334 rx_left = ftl; in rockchip_spi_pio_reader()