Home
last modified time | relevance | path

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

12

/linux-6.1.9/block/
Dioctl.c591 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()
Dgenhd.c345 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()
Dblk-zoned.c120 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()
Dbdev.c711 if (!bdev_nr_sectors(part)) in blkdev_get_part()
Dblk-core.c514 sector_t maxsector = bdev_nr_sectors(bio->bi_bdev); in bio_check_eod()
/linux-6.1.9/drivers/md/
Ddm-exception-store.h171 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.c130 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl()
Ddm-flakey.c461 if (fc->start || ti->len != bdev_nr_sectors((*bdev))) in flakey_prepare_ioctl()
Ddm-log-writes.c426 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()
Ddm-switch.c532 bdev_nr_sectors((*bdev))) in switch_prepare_ioctl()
Ddm-ebs-target.c420 return !!(ec->start || ti->len != bdev_nr_sectors(dev->bdev)); in ebs_prepare_ioctl()
/linux-6.1.9/include/linux/
Dblkdev.h788 static inline sector_t bdev_nr_sectors(struct block_device *bdev) in bdev_nr_sectors() function
795 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()
/linux-6.1.9/fs/hfsplus/
Dwrapper.c132 *size = bdev_nr_sectors(sb->s_bdev); in hfsplus_get_last_session()
/linux-6.1.9/block/partitions/
Dibm.c312 nr_sectors = bdev_nr_sectors(bdev); in ibm_partition()
Dcore.c433 start < part->bd_start_sect + bdev_nr_sectors(part) && in partition_overlaps()
/linux-6.1.9/fs/hfs/
Dmdb.c39 *size = bdev_nr_sectors(sb->s_bdev); in hfs_get_last_session()
/linux-6.1.9/drivers/block/xen-blkback/
Dcommon.h363 #define vbd_sz(_v) bdev_nr_sectors((_v)->bdev)
/linux-6.1.9/drivers/dax/
Dsuper.c92 part_size = bdev_nr_sectors(bdev) * SECTOR_SIZE; in fs_dax_get_by_bdev()
/linux-6.1.9/fs/btrfs/
Dzoned.c196 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()
/linux-6.1.9/drivers/nvme/target/
Dzns.c428 while (sector < bdev_nr_sectors(bdev)) { in nvmet_bdev_zone_mgmt_emulate_all()
/linux-6.1.9/fs/affs/
Dsuper.c392 size = bdev_nr_sectors(sb->s_bdev); in affs_fill_super()
/linux-6.1.9/drivers/block/rnbd/
Drnbd-srv.c543 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-6.1.9/drivers/md/bcache/
Dwriteback.c48 div64_u64(bdev_nr_sectors(dc->bdev) << WRITEBACK_SHARE_SHIFT, in __calc_target_rate()
/linux-6.1.9/drivers/target/
Dtarget_core_pscsi.c1001 return bdev_nr_sectors(pdv->pdv_bd); in pscsi_get_blocks()

12