/openbmc/linux/include/uapi/linux/ |
H A D | blkzoned.h | 106 struct blk_zone { struct 133 struct blk_zone zones[]; argument
|
/openbmc/linux/fs/btrfs/ |
H A D | zoned.h | 34 struct blk_zone *zone_cache; 35 struct blk_zone sb_zones[2 * BTRFS_SUPER_MIRROR_MAX]; 42 struct blk_zone *zone); 89 struct blk_zone *zone) in btrfs_get_dev_zone()
|
H A D | zoned.c | 79 struct blk_zone *zones = data; in copy_zone_info_cb() 252 struct blk_zone *zone_info; in btrfs_get_dev_zones() 369 struct blk_zone *zones = NULL; in btrfs_get_dev_zone_info() 472 sizeof(struct blk_zone)); in btrfs_get_dev_zone_info() 674 struct blk_zone *zone) in btrfs_get_dev_zone() 833 struct blk_zone *reset = NULL; in sb_log_location() 878 struct blk_zone zones[BTRFS_NR_SB_LOG_ZONES]; in btrfs_sb_log_location_bdev() 962 struct blk_zone *zone; in btrfs_advance_sb_log() 1299 struct blk_zone zone; in btrfs_load_zone_info() 1891 struct blk_zone *zone) in read_zone_info() [all …]
|
/openbmc/linux/block/ |
H A D | blk-zoned.c | 161 static int blk_zone_need_reset_cb(struct blk_zone *zone, unsigned int idx, in blk_zone_need_reset_cb() 309 struct blk_zone __user *zones; 312 static int blkdev_copy_zone_to_user(struct blk_zone *zone, unsigned int idx, in blkdev_copy_zone_to_user() 317 if (copy_to_user(&args->zones[idx], zone, sizeof(struct blk_zone))) in blkdev_copy_zone_to_user() 451 static int blk_revalidate_zone_cb(struct blk_zone *zone, unsigned int idx, in blk_revalidate_zone_cb()
|
/openbmc/linux/fs/zonefs/ |
H A D | super.c | 191 struct blk_zone *zone) in zonefs_check_zone_condition() 249 static int zonefs_io_error_cb(struct blk_zone *zone, unsigned int idx, in zonefs_io_error_cb() 252 struct blk_zone *z = data; in zonefs_io_error_cb() 258 static void zonefs_handle_io_error(struct inode *inode, struct blk_zone *zone, in zonefs_handle_io_error() 371 struct blk_zone zone; in __zonefs_io_error() 868 struct blk_zone *zones; 871 static int zonefs_get_zone_info_cb(struct blk_zone *zone, unsigned int idx, in zonefs_get_zone_info_cb() 914 memcpy(&zd->zones[idx], zone, sizeof(struct blk_zone)); in zonefs_get_zone_info_cb() 924 zd->zones = kvcalloc(bdev_nr_zones(bdev), sizeof(struct blk_zone), in zonefs_get_zone_info() 960 struct blk_zone *zone, *next, *end; in zonefs_init_zgroup()
|
H A D | zonefs.h | 35 static inline enum zonefs_ztype zonefs_zone_type(struct blk_zone *zone) in zonefs_zone_type()
|
/openbmc/linux/drivers/md/ |
H A D | dm-zone.c | 77 static int dm_report_zones_cb(struct blk_zone *zone, unsigned int idx, in dm_report_zones_cb() 155 static unsigned int dm_get_zone_wp_offset(struct blk_zone *zone) in dm_get_zone_wp_offset() 177 static int dm_zone_revalidate_cb(struct blk_zone *zone, unsigned int idx, in dm_zone_revalidate_cb() 318 static int dm_update_zone_wp_offset_cb(struct blk_zone *zone, unsigned int idx, in dm_update_zone_wp_offset_cb()
|
H A D | dm-zoned-metadata.c | 1354 static int dmz_init_zone(struct blk_zone *blkz, unsigned int num, void *data) in dmz_init_zone() 1559 static int dmz_update_zone_cb(struct blk_zone *blkz, unsigned int idx, in dmz_update_zone_cb()
|
/openbmc/linux/drivers/nvme/target/ |
H A D | zns.c | 27 static int validate_conv_zones_cb(struct blk_zone *z, in validate_conv_zones_cb() 214 static int nvmet_bdev_report_zone_cb(struct blk_zone *z, unsigned i, void *d) in nvmet_bdev_report_zone_cb() 359 static int zmgmt_send_scan_cb(struct blk_zone *z, unsigned i, void *d) in zmgmt_send_scan_cb()
|
/openbmc/linux/drivers/scsi/ |
H A D | sd_zbc.c | 32 static unsigned int sd_zbc_get_zone_wp_offset(struct blk_zone *zone) in sd_zbc_get_zone_wp_offset() 80 struct blk_zone zone = { 0 }; in sd_zbc_parse_report() 352 static int sd_zbc_update_wp_offset_cb(struct blk_zone *zone, unsigned int idx, in sd_zbc_update_wp_offset_cb()
|
/openbmc/linux/drivers/block/null_blk/ |
H A D | zoned.c | 201 struct blk_zone blkz; in null_report_zones() 211 memset(&blkz, 0, sizeof(struct blk_zone)); in null_report_zones()
|
/openbmc/linux/drivers/nvme/host/ |
H A D | zns.c | 155 struct blk_zone zone = { }; in nvme_zone_parse_entry()
|
/openbmc/linux/drivers/block/ |
H A D | ublk_drv.c | 305 bufsize = nr_zones * sizeof(struct blk_zone); in ublk_alloc_report_buffer() 309 while (bufsize >= sizeof(struct blk_zone)) { in ublk_alloc_report_buffer() 331 struct blk_zone *buffer; in ublk_report_zones() 341 max_zones_per_request = buffer_length / sizeof(struct blk_zone); in ublk_report_zones() 381 struct blk_zone *zone = buffer + i; in ublk_report_zones()
|
H A D | virtio_blk.c | 599 struct blk_zone zone = { }; in virtblk_parse_zone()
|
/openbmc/qemu/block/ |
H A D | file-posix.c | 1322 struct blk_zone *blkz; in get_zones_wp() 1329 rep_size = sizeof(struct blk_zone_report) + nrz * sizeof(struct blk_zone); in get_zones_wp() 1333 blkz = (struct blk_zone *)(rep + 1); in get_zones_wp() 2024 const struct blk_zone *blkz) { in parse_zone() 2093 struct blk_zone *blkz; in handle_aiocb_zone_report() 2100 rep_size = sizeof(struct blk_zone_report) + nrz * sizeof(struct blk_zone); in handle_aiocb_zone_report() 2104 blkz = (struct blk_zone *)(rep + 1); in handle_aiocb_zone_report()
|
/openbmc/linux/fs/f2fs/ |
H A D | segment.c | 4888 struct blk_zone *zone) in check_zone_write_pointer() 5006 static int report_one_zone_cb(struct blk_zone *zone, unsigned int idx, in report_one_zone_cb() 5009 memcpy(data, zone, sizeof(struct blk_zone)); in report_one_zone_cb() 5017 struct blk_zone zone; in fix_curseg_write_pointer() 5123 static int check_zone_write_pointer_cb(struct blk_zone *zone, unsigned int idx, in check_zone_write_pointer_cb()
|
H A D | super.c | 3835 static int f2fs_report_zone_cb(struct blk_zone *zone, unsigned int idx, in f2fs_report_zone_cb()
|
/openbmc/linux/include/linux/ |
H A D | blkdev.h | 342 typedef int (*report_zones_cb)(struct blk_zone *zone, unsigned int idx,
|
/openbmc/qemu/ |
H A D | meson.build | 2593 cc.has_member('struct blk_zone', 'capacity',
|