Searched refs:zone_sectors (Results 1 – 5 of 5) sorted by relevance
116 sector_t zone_sectors = bdev_zone_sectors(bdev); in bdev_nr_zones() local120 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() local209 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() local280 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 …]
195 const sector_t zone_sectors = device->fs_info->zone_size >> SECTOR_SHIFT; in emulate_report_zones() local201 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() local390 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 …]
251 unsigned int zone_sectors = bdev_zone_sectors(bdev); in device_area_is_invalid() local253 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() local1624 return bdev_zone_sectors(dev->bdev) != *zone_sectors; in device_not_matches_zone_sectors()1634 unsigned int zone_sectors) in validate_hardware_zoned_model() argument1646 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 …]
482 sector_t zone_sectors = bdev_zone_sectors(bdev); in nvmet_bdev_zmgmt_send_work() local504 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()
3709 u64 zone_sectors; in init_blkz_info() local3715 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()