Home
last modified time | relevance | path

Searched refs:bdev_nr_sectors (Results 1 – 25 of 35) sorted by relevance

12

/linux/block/
H A Dioctl.c668 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 Dgenhd.c329 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 Dblk-core.c551 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod()
H A Dbdev.c725 if (!bdev_nr_sectors(part)) in blkdev_get_part()
H A Dblk-zoned.c206 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_mgmt()
/linux/drivers/md/
H A Ddm-exception-store.h172 return bdev_nr_sectors(bdev); in get_dev_size()
H A Ddm-dust.c418 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 Ddm-linear.c132 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl()
H A Ddm-switch.c533 bdev_nr_sectors((*bdev))) in switch_prepare_ioctl()
H A Ddm-ebs-target.c421 return !!(ec->start || ti->len != bdev_nr_sectors(dev->bdev)); in ebs_prepare_ioctl()
H A Ddm-flakey.c650 if (fc->start || ti->len != bdev_nr_sectors((*bdev))) in flakey_prepare_ioctl()
H A Ddm-zoned-target.c734 dev->capacity = bdev_nr_sectors(bdev); in dmz_get_zoned_device()
H A Ddm-raid.c1273 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 Dmd.c906 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 Ddm-era-target.c1714 return bdev_nr_sectors(dev->bdev); in get_dev_size()
/linux/include/linux/
H A Dblkdev.h803 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 Dcommon.h363 #define vbd_sz(_v) bdev_nr_sectors(file_bdev((_v)->bdev_file))
/linux/block/partitions/
H A Dibm.c347 nr_sectors = bdev_nr_sectors(bdev); in ibm_partition()
H A Dcore.c416 start < part->bd_start_sect + bdev_nr_sectors(part) && in partition_overlaps()
/linux/fs/hfs/
H A Dmdb.c39 *size = bdev_nr_sectors(sb->s_bdev); in hfs_get_last_session()
/linux/drivers/dax/
H A Dsuper.c93 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()
/linux/fs/btrfs/
H A Dzoned.c198 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 Drnbd-srv.c548 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux/drivers/md/bcache/
H A Dwriteback.c48 div64_u64(bdev_nr_sectors(dc->bdev) << WRITEBACK_SHARE_SHIFT, in __calc_target_rate()
H A Dsuper.c999 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()

12