Home
last modified time | relevance | path

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

12

/linux-6.6.21/block/
Dearly-lookup.c297 if (!bdev_nr_sectors(part)) in printk_all_partitions()
302 bdev_nr_sectors(part) >> 1, part, in printk_all_partitions()
Dblk-zoned.c114 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()
Dioctl.c606 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()
Dgenhd.c329 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()
Dbdev.c678 if (!bdev_nr_sectors(part)) in blkdev_get_part()
Dblk-core.c533 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod()
/linux-6.6.21/drivers/md/
Ddm-exception-store.h172 return bdev_nr_sectors(bdev); in get_dev_size()
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()
Ddm-linear.c131 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl()
Ddm-log-writes.c427 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()
Ddm-switch.c533 bdev_nr_sectors((*bdev))) in switch_prepare_ioctl()
Ddm-ebs-target.c421 return !!(ec->start || ti->len != bdev_nr_sectors(dev->bdev)); in ebs_prepare_ioctl()
Ddm-flakey.c650 if (fc->start || ti->len != bdev_nr_sectors((*bdev))) in flakey_prepare_ioctl()
/linux-6.6.21/include/linux/
Dblkdev.h765 static inline sector_t bdev_nr_sectors(struct block_device *bdev) in bdev_nr_sectors() function
772 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()
/linux-6.6.21/fs/hfsplus/
Dwrapper.c132 *size = bdev_nr_sectors(sb->s_bdev); in hfsplus_get_last_session()
/linux-6.6.21/drivers/block/xen-blkback/
Dcommon.h363 #define vbd_sz(_v) bdev_nr_sectors((_v)->bdev)
/linux-6.6.21/block/partitions/
Dibm.c312 nr_sectors = bdev_nr_sectors(bdev); in ibm_partition()
Dcore.c427 start < part->bd_start_sect + bdev_nr_sectors(part) && in partition_overlaps()
/linux-6.6.21/fs/hfs/
Dmdb.c39 *size = bdev_nr_sectors(sb->s_bdev); in hfs_get_last_session()
/linux-6.6.21/drivers/dax/
Dsuper.c92 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()
/linux-6.6.21/fs/btrfs/
Dzoned.c202 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()
/linux-6.6.21/fs/affs/
Dsuper.c392 size = bdev_nr_sectors(sb->s_bdev); in affs_fill_super()
/linux-6.6.21/drivers/nvme/target/
Dzns.c429 while (sector < bdev_nr_sectors(bdev)) { in nvmet_bdev_zone_mgmt_emulate_all()
/linux-6.6.21/drivers/block/rnbd/
Drnbd-srv.c541 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-6.6.21/drivers/md/bcache/
Dwriteback.c48 div64_u64(bdev_nr_sectors(dc->bdev) << WRITEBACK_SHARE_SHIFT, in __calc_target_rate()

12