Searched refs:bdev_nr_sectors (Results 1 – 25 of 46) sorted by relevance
12
591 if (bdev_nr_sectors(bdev) > ~0UL) in blkdev_ioctl()593 return put_ulong(argp, bdev_nr_sectors(bdev)); in blkdev_ioctl()660 if (bdev_nr_sectors(bdev) > ~(compat_ulong_t)0) in compat_blkdev_ioctl()662 return compat_put_ulong(argp, bdev_nr_sectors(bdev)); in compat_blkdev_ioctl()
345 if (bdev_is_partition(part) && !bdev_nr_sectors(part)) in disk_uevent()773 if (!bdev_nr_sectors(part)) in printk_all_partitions()778 bdev_nr_sectors(part) >> 1, part, in printk_all_partitions()862 if (!bdev_nr_sectors(part)) in show_partition()866 bdev_nr_sectors(part) >> 1, part); in show_partition()946 return sprintf(buf, "%llu\n", bdev_nr_sectors(dev_to_bdev(dev))); in part_size_show()1244 if (bdev_is_partition(hd) && !bdev_nr_sectors(hd)) in diskstats_show()
120 return (bdev_nr_sectors(bdev) + zone_sectors - 1) >> in bdev_nr_zones()190 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_reset_all_emulated()261 sector_t capacity = bdev_nr_sectors(bdev); in blkdev_zone_mgmt()
711 if (!bdev_nr_sectors(part)) in blkdev_get_part()
514 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod()
171 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()
130 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl()
461 if (fc->start || ti->len != bdev_nr_sectors((*bdev))) in flakey_prepare_ioctl()
426 return bdev_nr_sectors(lc->logdev->bdev); in logdev_last_sector()829 if (ti->len != bdev_nr_sectors(dev->bdev)) in log_writes_prepare_ioctl()
532 bdev_nr_sectors((*bdev))) in switch_prepare_ioctl()
420 return !!(ec->start || ti->len != bdev_nr_sectors(dev->bdev)); in ebs_prepare_ioctl()
788 static inline sector_t bdev_nr_sectors(struct block_device *bdev) in bdev_nr_sectors() function795 return (loff_t)bdev_nr_sectors(bdev) << SECTOR_SHIFT; in bdev_nr_bytes()800 return bdev_nr_sectors(disk->part0); in get_capacity()805 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()
312 nr_sectors = bdev_nr_sectors(bdev); in ibm_partition()
433 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()
363 #define vbd_sz(_v) bdev_nr_sectors((_v)->bdev)
92 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()
196 sector_t bdev_size = bdev_nr_sectors(device->bdev); in emulate_report_zones()416 nr_sectors = bdev_nr_sectors(bdev); in btrfs_get_dev_zone_info()887 nr_sectors = bdev_nr_sectors(bdev); in btrfs_sb_log_location_bdev()1011 nr_sectors = bdev_nr_sectors(bdev); in btrfs_reset_sb_log_zones()
428 while (sector < bdev_nr_sectors(bdev)) { in nvmet_bdev_zone_mgmt_emulate_all()
392 size = bdev_nr_sectors(sb->s_bdev); in affs_fill_super()
543 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()
1001 return bdev_nr_sectors(pdv->pdv_bd); in pscsi_get_blocks()