Searched refs:get_capacity (Results 1 – 25 of 40) sorted by relevance
12
441 sector_t capacity = get_capacity(disk), end; in bdev_add_partition()545 if (from >= get_capacity(disk)) { in blk_add_partition()554 if (from + size > get_capacity(disk)) { in blk_add_partition()567 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()
278 nr_sects = get_capacity(state->disk) - start_sect; in adfspart_check_ADFS()543 size = get_capacity(state->disk); in adfspart_check_EESOX()
58 hd_size = get_capacity(state->disk); in atari_partition()
84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) in read_lba()
399 disk_size = get_capacity(state->disk) << 9; in cmdline_partition()
590 sector_t total_sectors = get_capacity(state->disk); in find_valid_gpt()
142 sector_t capacity = get_capacity(disk); in blkdev_report_zones()365 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()457 sector_t capacity = get_capacity(disk); in blk_revalidate_zone_cb()540 sector_t capacity = get_capacity(disk); in blk_revalidate_disk_zones()
71 sector_t capacity = get_capacity(disk); in set_capacity_and_notify()504 if (get_capacity(disk) && !(disk->flags & GENHD_FL_NO_PART) && in device_add_disk()509 if (get_capacity(disk)) in device_add_disk()853 if (!get_capacity(sgp) || (sgp->flags & GENHD_FL_HIDDEN)) in show_partition()
197 sector_t capacity = get_capacity(disk); in disk_check_ia_ranges()
288 if (get_capacity(disk) == 0 || (disk->flags & GENHD_FL_HIDDEN)) in printk_all_partitions()
52 if (get_capacity(bd_disk) & (bdev_zone_sectors(ns->bdev) - 1)) in nvmet_bdev_zns_enable()163 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_validate_zone_mgmt_recv()459 get_capacity(req->ns->bdev->bd_disk), in nvmet_bdev_execute_zmgmt_send_all()499 if (sect >= get_capacity(bdev->bd_disk)) { in nvmet_bdev_zmgmt_send_work()557 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_execute_zone_append()
91 static int get_capacity(struct power_supply *b) in get_capacity() function161 val->intval = get_capacity(b); in micro_batt_get_property()
131 get_capacity(ns->disk) >> ilog2(ns->zsze)); in nvme_zns_alloc_report_buffer()200 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
208 sector_t capacity = get_capacity(head->disk); in nvme_mpath_revalidate_paths()214 if (capacity != get_capacity(ns->disk)) in nvme_mpath_revalidate_paths()
46 args.next_sector < get_capacity(disk)); in dm_blk_do_report_zones()312 if (!get_capacity(md->disk)) in dm_set_zones_restrictions()
168 return get_capacity(md->disk); in dm_get_size()
154 capacity = get_capacity(md->disk); in dm_ima_alloc_and_copy_capacity_str()
290 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo()525 if (get_capacity(dev->gd) != disk_capacity) { in ubiblock_resize()
546 get_capacity(vblk->disk) >> ilog2(vblk->zone_sectors)); in virtblk_alloc_report_buffer()602 if (zone.start + vblk->zone_sectors <= get_capacity(vblk->disk)) in virtblk_parse_zone()605 zone.len = get_capacity(vblk->disk) - zone.start; in virtblk_parse_zone()691 while (zone_idx < nr_zones && sector < get_capacity(vblk->disk)) { in virtblk_report_zones()919 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
468 get_capacity(gendisk) >> 11); in ps3disk_probe()
500 sector_t nsect = get_capacity(bd->bd_disk); in blkif_getgeo()954 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits()960 get_capacity(gd)); in blkif_set_queue_limits()
750 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
342 if (error_sector < get_capacity(cd->disk) && in sr_done()
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()
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()