Home
last modified time | relevance | path

Searched refs:zone_sectors (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/block/ !
Dblk-zoned.c116 sector_t zone_sectors = bdev_zone_sectors(bdev); in bdev_nr_zones() local
120 return (bdev_nr_sectors(bdev) + zone_sectors - 1) >> in bdev_nr_zones()
121 ilog2(zone_sectors); in bdev_nr_zones()
191 sector_t zone_sectors = bdev_zone_sectors(bdev); in blkdev_zone_reset_all_emulated() local
209 sector += zone_sectors; in blkdev_zone_reset_all_emulated()
216 sector += zone_sectors; in blkdev_zone_reset_all_emulated()
260 sector_t zone_sectors = bdev_zone_sectors(bdev); in blkdev_zone_mgmt() local
280 if (sector & (zone_sectors - 1)) in blkdev_zone_mgmt()
283 if ((nr_sectors & (zone_sectors - 1)) && end_sector != capacity) in blkdev_zone_mgmt()
301 sector += zone_sectors; in blkdev_zone_mgmt()
[all …]
/linux-6.1.9/fs/btrfs/ !
Dzoned.c195 const sector_t zone_sectors = device->fs_info->zone_size >> SECTOR_SHIFT; in emulate_report_zones() local
201 zones[i].start = i * zone_sectors + pos; in emulate_report_zones()
202 zones[i].len = zone_sectors; in emulate_report_zones()
203 zones[i].capacity = zone_sectors; in emulate_report_zones()
204 zones[i].wp = zones[i].start + zone_sectors; in emulate_report_zones()
362 sector_t zone_sectors; in btrfs_get_dev_zone_info() local
390 zone_sectors = fs_info->zone_size >> SECTOR_SHIFT; in btrfs_get_dev_zone_info()
392 zone_sectors = bdev_zone_sectors(bdev); in btrfs_get_dev_zone_info()
396 ASSERT(zone_sectors != 0 && (zone_sectors & (zone_sectors - 1)) == 0); in btrfs_get_dev_zone_info()
397 zone_info->zone_size = zone_sectors << SECTOR_SHIFT; in btrfs_get_dev_zone_info()
[all …]
/linux-6.1.9/drivers/md/ !
Ddm-table.c251 unsigned int zone_sectors = bdev_zone_sectors(bdev); in device_area_is_invalid() local
253 if (start & (zone_sectors - 1)) { in device_area_is_invalid()
257 zone_sectors, bdev); in device_area_is_invalid()
270 if (len & (zone_sectors - 1)) { in device_area_is_invalid()
274 zone_sectors, bdev); in device_area_is_invalid()
1620 unsigned int *zone_sectors = data; in device_not_matches_zone_sectors() local
1624 return bdev_zone_sectors(dev->bdev) != *zone_sectors; in device_not_matches_zone_sectors()
1634 unsigned int zone_sectors) in validate_hardware_zoned_model() argument
1646 if (!zone_sectors || !is_power_of_2(zone_sectors)) in validate_hardware_zoned_model()
1649 if (dm_table_any_dev_attr(t, device_not_matches_zone_sectors, &zone_sectors)) { in validate_hardware_zoned_model()
[all …]
/linux-6.1.9/drivers/nvme/target/ !
Dzns.c482 sector_t zone_sectors = bdev_zone_sectors(bdev); in nvmet_bdev_zmgmt_send_work() local
504 if (sect & (zone_sectors - 1)) { in nvmet_bdev_zmgmt_send_work()
510 ret = blkdev_zone_mgmt(bdev, op, sect, zone_sectors, GFP_KERNEL); in nvmet_bdev_zmgmt_send_work()
/linux-6.1.9/fs/f2fs/ !
Dsuper.c3709 u64 zone_sectors; in init_blkz_info() local
3715 zone_sectors = bdev_zone_sectors(bdev); in init_blkz_info()
3716 if (!is_power_of_2(zone_sectors)) { in init_blkz_info()
3722 SECTOR_TO_BLOCK(zone_sectors)) in init_blkz_info()
3724 sbi->blocks_per_blkz = SECTOR_TO_BLOCK(zone_sectors); in init_blkz_info()
3731 if (nr_sectors & (zone_sectors - 1)) in init_blkz_info()