Home
last modified time | relevance | path

Searched refs:get_capacity (Results 1 – 25 of 26) sorted by relevance

12

/linux/block/partitions/
H A Dcore.c539 if (from >= get_capacity(disk)) { in blk_add_partition()
548 if (from + size > get_capacity(disk)) { in blk_add_partition()
561 size = get_capacity(disk) - from; in blk_add_partition()
692 if (get_capacity(disk)) { in bdev_disk_changed()
717 if (n >= get_capacity(state->disk)) { in read_part_sector()
H A Dacorn.c278 nr_sects = get_capacity(state->disk) - start_sect; in adfspart_check_ADFS()
543 size = get_capacity(state->disk); in adfspart_check_EESOX()
H A Datari.c58 hd_size = get_capacity(state->disk); in atari_partition()
H A Daix.c84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) in read_lba()
H A Defi.c590 sector_t total_sectors = get_capacity(state->disk); in find_valid_gpt()
/linux/drivers/power/supply/
H A Dipaq_micro_battery.c91 static int get_capacity(struct power_supply *b) in get_capacity() function
161 val->intval = get_capacity(b); in micro_batt_get_property()
/linux/block/
H A Dblk-zoned.c157 sector_t capacity = get_capacity(disk); in blkdev_report_zones()
307 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()
375 return zone->start + zone->len >= get_capacity(disk); in disk_zone_is_last()
731 for (sector = 0; sector < get_capacity(disk); in blk_zone_wplug_handle_reset_all()
1593 if (zone->start >= get_capacity(disk) || !zone->len) { in blk_revalidate_zone_cb()
1659 sector_t capacity = get_capacity(disk); in blk_revalidate_disk_zones()
H A Dblk-ia-ranges.c197 sector_t capacity = get_capacity(disk); in disk_check_ia_ranges()
H A Dioctl.c47 capacity = get_capacity(disk); in blkpg_do_ioctl()
/linux/drivers/md/
H A Ddm-core.h170 return get_capacity(md->disk); in dm_get_size()
H A Ddm-ima.c154 capacity = get_capacity(md->disk); in dm_ima_alloc_and_copy_capacity_str()
/linux/drivers/block/
H A Dvirtio_blk.c536 get_capacity(vblk->disk) >> ilog2(vblk->zone_sectors)); in virtblk_alloc_report_buffer()
592 if (zone.start + vblk->zone_sectors <= get_capacity(vblk->disk)) in virtblk_parse_zone()
595 zone.len = get_capacity(vblk->disk) - zone.start; in virtblk_parse_zone()
681 while (zone_idx < nr_zones && sector < get_capacity(vblk->disk)) { in virtblk_report_zones()
856 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
H A Dps3vram.c750 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
/linux/drivers/nvme/host/
H A Dmultipath.c224 sector_t capacity = get_capacity(head->disk); in nvme_mpath_revalidate_paths()
231 if (capacity != get_capacity(ns->disk)) in nvme_mpath_revalidate_paths()
H A Dcore.c1785 geo->cylinders = get_capacity(bdev->bd_disk) >> 11; in nvme_getgeo()
2324 set_capacity_and_notify(ns->head->disk, get_capacity(ns->disk)); in nvme_update_ns_info()
/linux/fs/bcachefs/
H A Dsuper.c1388 if (get_capacity(sb->bdev->bd_disk) < in __bch2_dev_attach_bdev()
1933 get_capacity(ca->disk_sb.bdev->bd_disk) < in bch2_dev_resize()
/linux/drivers/block/drbd/
H A Ddrbd_worker.c591 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()
H A Ddrbd_nl.c1002 if (get_capacity(device->vdisk) != size || in drbd_determine_dev_size()
1870 if (drbd_get_max_capacity(nbc) < get_capacity(device->vdisk)) { in drbd_adm_attach()
3317 s->dev_size = get_capacity(device->vdisk); in device_to_statistics()
3757 nla_put_u64_0pad(skb, T_capacity, get_capacity(device->vdisk)) || in nla_put_status_info()
H A Ddrbd_main.c965 p->c_size = cpu_to_be64(get_capacity(device->vdisk)); in drbd_send_sizes()
2997 buffer->la_size_sect = cpu_to_be64(get_capacity(device->vdisk)); in drbd_md_write()
3055 device->ldev->md.la_size_sect = get_capacity(device->vdisk); in drbd_md_sync()
H A Ddrbd_actlog.c870 nr_sectors = get_capacity(device->vdisk); in __drbd_change_sync()
H A Ddrbd_receiver.c1851 const sector_t capacity = get_capacity(device->vdisk); in read_in_block()
2817 capacity = get_capacity(device->vdisk); in receive_DataRequest()
4077 cur_size = get_capacity(device->vdisk); in receive_sizes()
4210 if (be64_to_cpu(p->c_size) != get_capacity(device->vdisk) || in receive_sizes()
H A Ddrbd_req.c905 nr_sectors = get_capacity(device->vdisk); in drbd_may_do_local_read()
/linux/include/linux/
H A Dblkdev.h819 static inline sector_t get_capacity(struct gendisk *disk) in get_capacity() function
/linux/drivers/mmc/core/
H A Dblock.c440 geo->cylinders = get_capacity(bdev->bd_disk) / (4 * 16); in mmc_blk_getgeo()
1490 get_capacity(md->disk))) in mmc_blk_data_prep()
/linux/drivers/nvdimm/
H A Dbtt.c1486 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in btt_getgeo()

12