Lines Matching refs:blkz
1354 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()
1568 else if (blkz->cond == BLK_ZONE_COND_READONLY) in dmz_update_zone_cb()
1572 zone->wp_block = dmz_sect2blk(blkz->wp - blkz->start); in dmz_update_zone_cb()