Home
last modified time | relevance | path

Searched refs:bdev_zone_sectors (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/md/
H A Ddm-zone.c331 sector_t sector = zno * bdev_zone_sectors(md->disk->part0); in dm_update_zone_wp_offset()
370 sector_t zsectors = bdev_zone_sectors(md->disk->part0); in dm_zone_map_bio_begin()
440 bdev_zone_sectors(md->disk->part0)); in dm_zone_map_bio_end()
605 (sector_t)bdev_zone_sectors(disk->part0) - 1; in dm_zone_endio()
H A Ddm-zoned-target.c789 zone_nr_sectors != bdev_zone_sectors(bdev)) { in dmz_fixup_devices()
793 zone_nr_sectors = bdev_zone_sectors(bdev); in dmz_fixup_devices()
805 zoned_dev->zone_nr_sectors = bdev_zone_sectors(bdev); in dmz_fixup_devices()
H A Ddm-table.c257 unsigned int zone_sectors = bdev_zone_sectors(bdev); in device_area_is_invalid()
1629 return bdev_zone_sectors(dev->bdev) != *zone_sectors; in device_not_matches_zone_sectors()
/openbmc/linux/drivers/nvme/target/
H A Dzns.c52 if (get_capacity(bd_disk) & (bdev_zone_sectors(ns->bdev) - 1)) in nvmet_bdev_zns_enable()
133 zsze = (bdev_zone_sectors(req->ns->bdev) << 9) >> in nvmet_execute_identify_ns_zns()
438 sector += bdev_zone_sectors(bdev); in nvmet_bdev_zone_mgmt_emulate_all()
483 sector_t zone_sectors = bdev_zone_sectors(bdev); in nvmet_bdev_zmgmt_send_work()
563 if (sect & (bdev_zone_sectors(req->ns->bdev) - 1)) { in nvmet_bdev_execute_zone_append()
/openbmc/linux/block/
H A Dblk-zoned.c110 sector_t zone_sectors = bdev_zone_sectors(bdev); in bdev_nr_zones()
185 sector_t zone_sectors = bdev_zone_sectors(bdev); in blkdev_zone_reset_all_emulated()
254 sector_t zone_sectors = bdev_zone_sectors(bdev); in blkdev_zone_mgmt()
H A Dioctl.c523 return put_uint(argp, bdev_zone_sectors(bdev)); in blkdev_common_ioctl()
/openbmc/linux/fs/btrfs/
H A Dzoned.h323 (bdev_zone_sectors(bdev) << SECTOR_SHIFT); in btrfs_check_device_zone_type()
H A Dzoned.c184 return (sector_t)zone_number << ilog2(bdev_zone_sectors(bdev)); in zone_start_sector()
401 zone_sectors = bdev_zone_sectors(bdev); in btrfs_get_dev_zone_info()
893 zone_sectors = bdev_zone_sectors(bdev); in btrfs_sb_log_location_bdev()
1019 zone_sectors = bdev_zone_sectors(bdev); in btrfs_reset_sb_log_zones()
/openbmc/linux/fs/zonefs/
H A Dsuper.c1017 if (z->z_size > bdev_zone_sectors(sb->s_bdev) << SECTOR_SHIFT && in zonefs_init_zgroup()
1022 bdev_zone_sectors(sb->s_bdev) << SECTOR_SHIFT); in zonefs_init_zgroup()
1290 sbi->s_zone_sectors_shift = ilog2(bdev_zone_sectors(sb->s_bdev)); in zonefs_fill_super()
/openbmc/linux/include/linux/
H A Dblkdev.h1302 static inline sector_t bdev_zone_sectors(struct block_device *bdev) in bdev_zone_sectors() function
1314 return sector & (bdev_zone_sectors(bdev) - 1); in bdev_offset_from_zone_start()
/openbmc/linux/fs/f2fs/
H A Dsegment.c1971 div64_u64_rem(sector, bdev_zone_sectors(bdev), &remainder); in __f2fs_issue_discard_zone()
1973 if (remainder || nr_sects != bdev_zone_sectors(bdev)) { in __f2fs_issue_discard_zone()
H A Dsuper.c3868 zone_sectors = bdev_zone_sectors(bdev); in init_blkz_info()