Searched refs:blkz (Results 1 – 2 of 2) sorted by relevance
190 struct blk_zone blkz; in null_report_zones() local200 memset(&blkz, 0, sizeof(struct blk_zone)); in null_report_zones()210 blkz.start = zone->start; in null_report_zones()211 blkz.len = zone->len; in null_report_zones()212 blkz.wp = zone->wp; in null_report_zones()213 blkz.type = zone->type; in null_report_zones()214 blkz.cond = zone->cond; in null_report_zones()215 blkz.capacity = zone->capacity; in null_report_zones()218 error = cb(&blkz, i, data); in null_report_zones()
1354 static int dmz_init_zone(struct blk_zone *blkz, unsigned int num, void *data) in dmz_init_zone() argument1365 if (blkz->len != zmd->zone_nr_sectors) { in dmz_init_zone()1370 } else if (blkz->start + blkz->len == dev->capacity) in dmz_init_zone()1379 if (blkz->capacity != blkz->len) in dmz_init_zone()1382 switch (blkz->type) { in dmz_init_zone()1397 zone->wp_block = dmz_sect2blk(blkz->wp - blkz->start); in dmz_init_zone()1399 if (blkz->cond == BLK_ZONE_COND_OFFLINE) in dmz_init_zone()1401 else if (blkz->cond == BLK_ZONE_COND_READONLY) in dmz_init_zone()1559 static int dmz_update_zone_cb(struct blk_zone *blkz, unsigned int idx, in dmz_update_zone_cb() argument1566 if (blkz->cond == BLK_ZONE_COND_OFFLINE) in dmz_update_zone_cb()[all …]