Searched refs:zone_num (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/drivers/mtd/ |
D | sm_ftl.c | 464 static int sm_erase_block(struct sm_ftl *ftl, int zone_num, uint16_t block, in sm_erase_block() argument 467 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block() 471 erase.addr = sm_mkoffset(ftl, zone_num, block, 0); in sm_erase_block() 479 if (zone_num == 0 && (block == ftl->cis_block || block == 0)) { in sm_erase_block() 486 block, zone_num); in sm_erase_block() 496 sm_mark_block_bad(ftl, zone_num, block); in sm_erase_block() 752 static int sm_init_zone(struct sm_ftl *ftl, int zone_num) in sm_init_zone() argument 754 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone() 761 dbg("initializing zone %d", zone_num); in sm_init_zone() 781 if (zone_num == 0 && block <= ftl->cis_block) in sm_init_zone() [all …]
|
D | sm_ftl.h | 83 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);
|
/Linux-v6.6/fs/btrfs/ |
D | zoned.c | 919 u32 zone_num; in btrfs_sb_log_location() local 932 zone_num = sb_zone_number(zinfo->zone_size_shift, mirror); in btrfs_sb_log_location() 933 if (zone_num + 1 >= zinfo->nr_zones) in btrfs_sb_log_location() 944 u32 zone_num; in is_sb_log_zone() local 949 zone_num = sb_zone_number(zinfo->zone_size_shift, mirror); in is_sb_log_zone() 950 if (zone_num + 1 >= zinfo->nr_zones) in is_sb_log_zone() 953 if (!test_bit(zone_num, zinfo->seq_zones)) in is_sb_log_zone()
|