/linux/block/ |
H A D | ioctl.c | 668 if (bdev_nr_sectors(bdev) > ~0UL) in blkdev_ioctl() 670 return put_ulong(argp, bdev_nr_sectors(bdev)); in blkdev_ioctl() 728 if (bdev_nr_sectors(bdev) > ~(compat_ulong_t)0) in compat_blkdev_ioctl() 730 return compat_put_ulong(argp, bdev_nr_sectors(bdev)); in compat_blkdev_ioctl()
|
H A D | genhd.c | 329 if (bdev_is_partition(part) && !bdev_nr_sectors(part)) in disk_uevent() 890 if (!bdev_nr_sectors(part)) in show_partition() 894 bdev_nr_sectors(part) >> 1, part); in show_partition() 972 return sysfs_emit(buf, "%llu\n", bdev_nr_sectors(dev_to_bdev(dev))); in part_size_show() 1281 if (bdev_is_partition(hd) && !bdev_nr_sectors(hd)) in diskstats_show()
|
H A D | blk-core.c | 551 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod()
|
H A D | bdev.c | 725 if (!bdev_nr_sectors(part)) in blkdev_get_part()
|
H A D | blk-zoned.c | 206 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_mgmt()
|
/linux/drivers/md/ |
H A D | dm-exception-store.h | 172 return bdev_nr_sectors(bdev); in get_dev_size()
|
H A D | dm-dust.c | 418 sector_t size = bdev_nr_sectors(dd->dev->bdev); in dust_message() 547 if (dd->start || ti->len != bdev_nr_sectors(dev->bdev)) in dust_prepare_ioctl()
|
H A D | dm-linear.c | 132 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl()
|
H A D | dm-switch.c | 533 bdev_nr_sectors((*bdev))) in switch_prepare_ioctl()
|
H A D | dm-ebs-target.c | 421 return !!(ec->start || ti->len != bdev_nr_sectors(dev->bdev)); in ebs_prepare_ioctl()
|
H A D | dm-flakey.c | 650 if (fc->start || ti->len != bdev_nr_sectors((*bdev))) in flakey_prepare_ioctl()
|
H A D | dm-zoned-target.c | 734 dev->capacity = bdev_nr_sectors(bdev); in dmz_get_zoned_device()
|
H A D | dm-raid.c | 1273 jdev->sectors = bdev_nr_sectors(jdev->bdev); in parse_raid_params() 1619 ds = min(ds, bdev_nr_sectors(rdev->bdev)); in _check_data_dev_sectors() 2696 bdev_nr_sectors(rdev->bdev) - rs->md.dev_sectors < MIN_FREE_RESHAPE_SPACE) { in rs_adjust_data_offsets()
|
H A D | md.c | 906 return MD_NEW_SIZE_SECTORS(bdev_nr_sectors(rdev->bdev)); in calc_dev_sboffset() 1650 sb_start = bdev_nr_sectors(rdev->bdev) - 8 * 2; in super_1_load() 1801 sectors = bdev_nr_sectors(rdev->bdev) - rdev->data_offset; in super_1_load() 2210 max_sectors = bdev_nr_sectors(rdev->bdev) - rdev->data_offset; in super_1_rdev_size_change() 2219 sector_t dev_size = bdev_nr_sectors(rdev->bdev); in super_1_rdev_size_change() 3357 sectors = bdev_nr_sectors(rdev->bdev) - in rdev_size_store() 7054 rdev->sb_start = bdev_nr_sectors(rdev->bdev); in md_add_new_disk() 7137 rdev->sb_start = bdev_nr_sectors(rdev->bdev); in hot_add_disk()
|
H A D | dm-era-target.c | 1714 return bdev_nr_sectors(dev->bdev); in get_dev_size()
|
/linux/include/linux/ |
H A D | blkdev.h | 803 static inline sector_t bdev_nr_sectors(struct block_device *bdev) in bdev_nr_sectors() function 810 return (loff_t)bdev_nr_sectors(bdev) << SECTOR_SHIFT; in bdev_nr_bytes() 815 return bdev_nr_sectors(disk->part0); in get_capacity() 820 return bdev_nr_sectors(sb->s_bdev) >> in sb_bdev_nr_blocks()
|
/linux/drivers/block/xen-blkback/ |
H A D | common.h | 363 #define vbd_sz(_v) bdev_nr_sectors(file_bdev((_v)->bdev_file))
|
/linux/block/partitions/ |
H A D | ibm.c | 347 nr_sectors = bdev_nr_sectors(bdev); in ibm_partition()
|
H A D | core.c | 416 start < part->bd_start_sect + bdev_nr_sectors(part) && in partition_overlaps()
|
/linux/fs/hfs/ |
H A D | mdb.c | 39 *size = bdev_nr_sectors(sb->s_bdev); in hfs_get_last_session()
|
/linux/drivers/dax/ |
H A D | super.c | 93 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()
|
/linux/fs/btrfs/ |
H A D | zoned.c | 198 sector_t bdev_size = bdev_nr_sectors(device->bdev); in emulate_report_zones() 413 nr_sectors = bdev_nr_sectors(bdev); in btrfs_get_dev_zone_info() 879 nr_sectors = bdev_nr_sectors(bdev); in btrfs_sb_log_location_bdev() 1008 nr_sectors = bdev_nr_sectors(bdev); in btrfs_reset_sb_log_zones()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-srv.c | 548 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
|
/linux/drivers/md/bcache/ |
H A D | writeback.c | 48 div64_u64(bdev_nr_sectors(dc->bdev) << WRITEBACK_SHARE_SHIFT, in __calc_target_rate()
|
H A D | super.c | 999 sectors += bdev_nr_sectors(dc->bdev); in calc_cached_dev_sectors() 1423 bdev_nr_sectors(dc->bdev) - dc->sb.data_offset, in cached_dev_init()
|