Home
last modified time | relevance | path

Searched refs:blkz (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/block/null_blk/
Dzoned.c190 struct blk_zone blkz; in null_report_zones() local
200 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()
/linux-6.6.21/drivers/md/
Ddm-zoned-metadata.c1354 static int dmz_init_zone(struct blk_zone *blkz, unsigned int num, void *data) in dmz_init_zone() argument
1365 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() argument
1566 if (blkz->cond == BLK_ZONE_COND_OFFLINE) in dmz_update_zone_cb()
[all …]