Home
last modified time | relevance | path

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

/openbmc/linux/drivers/block/null_blk/
H A Dzoned.c201 struct blk_zone blkz; in null_report_zones() local
211 memset(&blkz, 0, sizeof(struct blk_zone)); in null_report_zones()
221 blkz.start = zone->start; in null_report_zones()
222 blkz.len = zone->len; in null_report_zones()
223 blkz.wp = zone->wp; in null_report_zones()
224 blkz.type = zone->type; in null_report_zones()
225 blkz.cond = zone->cond; in null_report_zones()
226 blkz.capacity = zone->capacity; in null_report_zones()
229 error = cb(&blkz, i, data); in null_report_zones()
/openbmc/qemu/block/
H A Dfile-posix.c1322 struct blk_zone *blkz; in get_zones_wp() local
1333 blkz = (struct blk_zone *)(rep + 1); in get_zones_wp()
1360 if (blkz[i].type == BLK_ZONE_TYPE_CONVENTIONAL) { in get_zones_wp()
1363 switch(blkz[i].cond) { in get_zones_wp()
1367 wps->wp[j] = (blkz[i].start + blkz[i].len) << BDRV_SECTOR_BITS; in get_zones_wp()
1371 wps->wp[j] = (blkz[i].start) << BDRV_SECTOR_BITS; in get_zones_wp()
1375 wps->wp[j] = blkz[i].start << BDRV_SECTOR_BITS; in get_zones_wp()
1377 wps->wp[j] = blkz[i].wp << BDRV_SECTOR_BITS; in get_zones_wp()
1383 sector = blkz[i - 1].start + blkz[i - 1].len; in get_zones_wp()
2024 const struct blk_zone *blkz) { in parse_zone() argument
[all …]
/openbmc/linux/drivers/md/
H A 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 …]