Lines Matching refs:blkz
1358 static int dmz_init_zone(struct blk_zone *blkz, unsigned int num, void *data) in dmz_init_zone() argument
1369 if (blkz->len != zmd->zone_nr_sectors) { in dmz_init_zone()
1374 } else if (blkz->start + blkz->len == dev->capacity) in dmz_init_zone()
1383 if (blkz->capacity != blkz->len) in dmz_init_zone()
1386 switch (blkz->type) { in dmz_init_zone()
1401 zone->wp_block = dmz_sect2blk(blkz->wp - blkz->start); in dmz_init_zone()
1403 if (blkz->cond == BLK_ZONE_COND_OFFLINE) in dmz_init_zone()
1405 else if (blkz->cond == BLK_ZONE_COND_READONLY) in dmz_init_zone()
1563 static int dmz_update_zone_cb(struct blk_zone *blkz, unsigned int idx, in dmz_update_zone_cb() argument
1570 if (blkz->cond == BLK_ZONE_COND_OFFLINE) in dmz_update_zone_cb()
1572 else if (blkz->cond == BLK_ZONE_COND_READONLY) in dmz_update_zone_cb()
1576 zone->wp_block = dmz_sect2blk(blkz->wp - blkz->start); in dmz_update_zone_cb()