Searched refs:zone_num (Results 1 – 2 of 2) sorted by relevance
/drivers/mtd/ |
D | sm_ftl.c | 455 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, in sm_erase_block() argument 458 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block() 464 erase.addr = sm_mkoffset(ftl, zone_num, block, 0); in sm_erase_block() 473 if (zone_num == 0 && (block == ftl->cis_block || block == 0)) { in sm_erase_block() 480 block, zone_num); in sm_erase_block() 489 block, zone_num); in sm_erase_block() 499 sm_mark_block_bad(ftl, zone_num, block); in sm_erase_block() 758 static int sm_init_zone(struct sm_ftl *ftl, int zone_num) in sm_init_zone() argument 760 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone() 767 dbg("initializing zone %d", zone_num); in sm_init_zone() [all …]
|
D | sm_ftl.h | 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);
|