/linux/block/partitions/ |
H A D | core.c | 531 if (from >= get_capacity(disk)) { in blk_add_partition() 540 if (from + size > get_capacity(disk)) { in blk_add_partition() 553 size = get_capacity(disk) - from; in blk_add_partition() 684 if (get_capacity(disk)) { in bdev_disk_changed() 709 if (n >= get_capacity(state->disk)) { in read_part_sector()
|
H A D | acorn.c | 278 nr_sects = get_capacity(state->disk) - start_sect; in adfspart_check_ADFS() 543 size = get_capacity(state->disk); in adfspart_check_EESOX()
|
H A D | atari.c | 58 hd_size = get_capacity(state->disk); in atari_partition()
|
H A D | aix.c | 84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) in read_lba()
|
H A D | cmdline.c | 374 disk_size = get_capacity(state->disk) << 9; in cmdline_partition()
|
H A D | efi.c | 590 sector_t total_sectors = get_capacity(state->disk); in find_valid_gpt()
|
/linux/drivers/nvme/target/ |
H A D | zns.c | 52 if (get_capacity(bd_disk) & (bdev_zone_sectors(ns->bdev) - 1)) in nvmet_bdev_zns_enable() 159 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_validate_zone_mgmt_recv() 455 get_capacity(req->ns->bdev->bd_disk)); in nvmet_bdev_execute_zmgmt_send_all() 494 if (sect >= get_capacity(bdev->bd_disk)) { in nvmet_bdev_zmgmt_send_work() 552 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_execute_zone_append()
|
/linux/drivers/md/ |
H A D | dm-zone.c | 44 args.next_sector < get_capacity(disk)); in dm_blk_do_report_zones() 158 if (!get_capacity(disk)) in dm_revalidate_zones() 401 if (!get_capacity(disk) && !zlim.reliable_limits) in dm_set_zones_restrictions()
|
H A D | dm-core.h | 170 return get_capacity(md->disk); in dm_get_size()
|
H A D | dm-ima.c | 154 capacity = get_capacity(md->disk); in dm_ima_alloc_and_copy_capacity_str()
|
/linux/drivers/power/supply/ |
H A D | ipaq_micro_battery.c | 91 static int get_capacity(struct power_supply *b) in get_capacity() function 161 val->intval = get_capacity(b); in micro_batt_get_property()
|
/linux/drivers/nvme/host/ |
H A D | zns.c | 130 get_capacity(ns->disk) >> ilog2(ns->head->zsze)); in nvme_zns_alloc_report_buffer() 200 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
|
H A D | multipath.c | 222 sector_t capacity = get_capacity(head->disk); in nvme_mpath_revalidate_paths() 228 if (capacity != get_capacity(ns->disk)) in nvme_mpath_revalidate_paths()
|
/linux/block/ |
H A D | blk-zoned.c | 141 sector_t capacity = get_capacity(disk); in blkdev_report_zones() 285 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range() 360 return zone->start + zone->len >= get_capacity(disk); in disk_zone_is_last() 744 for (sector = 0; sector < get_capacity(disk); in blk_zone_wplug_handle_reset_all() 1690 if (zone->start >= get_capacity(disk) || !zone->len) { in blk_revalidate_zone_cb() 1756 sector_t capacity = get_capacity(disk); in blk_revalidate_disk_zones()
|
H A D | genhd.c | 71 sector_t capacity = get_capacity(disk); in set_capacity_and_notify() 505 if (get_capacity(disk) && disk_has_partscan(disk)) in device_add_disk() 509 if (get_capacity(disk)) in device_add_disk() 861 if (!get_capacity(sgp) || (sgp->flags & GENHD_FL_HIDDEN)) in show_partition()
|
H A D | blk-ia-ranges.c | 197 sector_t capacity = get_capacity(disk); in disk_check_ia_ranges()
|
H A D | ioctl.c | 47 capacity = get_capacity(disk); in blkpg_do_ioctl()
|
/linux/drivers/mtd/ubi/ |
H A D | block.c | 290 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo() 530 if (get_capacity(dev->gd) != disk_capacity) { in ubiblock_resize()
|
/linux/drivers/block/ |
H A D | virtio_blk.c | 542 get_capacity(vblk->disk) >> ilog2(vblk->zone_sectors)); in virtblk_alloc_report_buffer() 598 if (zone.start + vblk->zone_sectors <= get_capacity(vblk->disk)) in virtblk_parse_zone() 601 zone.len = get_capacity(vblk->disk) - zone.start; in virtblk_parse_zone() 687 while (zone_idx < nr_zones && sector < get_capacity(vblk->disk)) { in virtblk_report_zones() 862 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
H A D | ps3disk.c | 465 get_capacity(gendisk) >> 11); in ps3disk_probe()
|
H A D | ps3vram.c | 750 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-clt.c | 74 if (get_capacity(dev->gd) == new_nsectors) in rnbd_clt_change_capacity() 81 get_capacity(dev->gd), new_nsectors); in rnbd_clt_change_capacity()
|
/linux/drivers/scsi/ |
H A D | sr.c | 342 if (error_sector < get_capacity(cd->disk) && in sr_done()
|
/linux/fs/bcachefs/ |
H A D | super.c | 1397 if (get_capacity(sb->bdev->bd_disk) < in __bch2_dev_attach_bdev() 1944 get_capacity(ca->disk_sb.bdev->bd_disk) < in bch2_dev_resize()
|
/linux/drivers/block/drbd/ |
H A D | drbd_worker.c | 591 const sector_t capacity = get_capacity(device->vdisk); in make_resync_request() 770 const sector_t capacity = get_capacity(device->vdisk); in make_ov_request()
|