Searched refs:bdev_nr_sectors (Results 1 – 25 of 47) sorted by relevance
12
297 if (!bdev_nr_sectors(part)) in printk_all_partitions()302 bdev_nr_sectors(part) >> 1, part, in printk_all_partitions()
114 return (bdev_nr_sectors(bdev) + zone_sectors - 1) >> in bdev_nr_zones()184 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_reset_all_emulated()255 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_mgmt()
606 if (bdev_nr_sectors(bdev) > ~0UL) in blkdev_ioctl()608 return put_ulong(argp, bdev_nr_sectors(bdev)); in blkdev_ioctl()666 if (bdev_nr_sectors(bdev) > ~(compat_ulong_t)0) in compat_blkdev_ioctl()668 return compat_put_ulong(argp, bdev_nr_sectors(bdev)); in compat_blkdev_ioctl()
329 if (bdev_is_partition(part) && !bdev_nr_sectors(part)) in disk_uevent()861 if (!bdev_nr_sectors(part)) in show_partition()865 bdev_nr_sectors(part) >> 1, part); in show_partition()943 return sprintf(buf, "%llu\n", bdev_nr_sectors(dev_to_bdev(dev))); in part_size_show()1245 if (bdev_is_partition(hd) && !bdev_nr_sectors(hd)) in diskstats_show()
678 if (!bdev_nr_sectors(part)) in blkdev_get_part()
533 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod()
172 return bdev_nr_sectors(bdev); in get_dev_size()
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()
131 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl()
427 return bdev_nr_sectors(lc->logdev->bdev); in logdev_last_sector()830 if (ti->len != bdev_nr_sectors(dev->bdev)) in log_writes_prepare_ioctl()
533 bdev_nr_sectors((*bdev))) in switch_prepare_ioctl()
421 return !!(ec->start || ti->len != bdev_nr_sectors(dev->bdev)); in ebs_prepare_ioctl()
650 if (fc->start || ti->len != bdev_nr_sectors((*bdev))) in flakey_prepare_ioctl()
765 static inline sector_t bdev_nr_sectors(struct block_device *bdev) in bdev_nr_sectors() function772 return (loff_t)bdev_nr_sectors(bdev) << SECTOR_SHIFT; in bdev_nr_bytes()777 return bdev_nr_sectors(disk->part0); in get_capacity()782 return bdev_nr_sectors(sb->s_bdev) >> in sb_bdev_nr_blocks()
132 *size = bdev_nr_sectors(sb->s_bdev); in hfsplus_get_last_session()
363 #define vbd_sz(_v) bdev_nr_sectors((_v)->bdev)
312 nr_sectors = bdev_nr_sectors(bdev); in ibm_partition()
427 start < part->bd_start_sect + bdev_nr_sectors(part) && in partition_overlaps()
39 *size = bdev_nr_sectors(sb->s_bdev); in hfs_get_last_session()
92 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()
202 sector_t bdev_size = bdev_nr_sectors(device->bdev); in emulate_report_zones()424 nr_sectors = bdev_nr_sectors(bdev); in btrfs_get_dev_zone_info()897 nr_sectors = bdev_nr_sectors(bdev); in btrfs_sb_log_location_bdev()1021 nr_sectors = bdev_nr_sectors(bdev); in btrfs_reset_sb_log_zones()
392 size = bdev_nr_sectors(sb->s_bdev); in affs_fill_super()
429 while (sector < bdev_nr_sectors(bdev)) { in nvmet_bdev_zone_mgmt_emulate_all()
541 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
48 div64_u64(bdev_nr_sectors(dc->bdev) << WRITEBACK_SHARE_SHIFT, in __calc_target_rate()