/kernel/linux/linux-5.10/block/ |
D | blk-zoned.c | 132 return (get_capacity(disk) + zone_sectors - 1) >> ilog2(zone_sectors); in blkdev_nr_zones() 159 sector_t capacity = get_capacity(disk); in blkdev_report_zones() 183 return !sector && nr_sectors == get_capacity(bdev->bd_disk); in blkdev_allow_reset_all_zones() 208 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_mgmt() 324 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range() 434 sector_t capacity = get_capacity(disk); in blk_revalidate_zone_cb() 529 if (!get_capacity(disk)) in blk_revalidate_disk_zones()
|
D | genhd.c | 55 sector_t capacity = get_capacity(disk); in set_capacity_revalidate_and_notify() 694 if (!get_capacity(disk) || !disk_part_scan_enabled(disk)) in disk_scan_partitions() 1092 if (get_capacity(disk) == 0 || in printk_all_partitions() 1189 if (!get_capacity(sgp) || (!disk_max_parts(sgp) && in show_partition()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
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()
|
/kernel/linux/linux-5.10/block/partitions/ |
D | core.c | 676 if (from >= get_capacity(disk)) { in blk_add_partition() 685 if (from + size > get_capacity(disk)) { in blk_add_partition() 698 size = get_capacity(disk) - from; in blk_add_partition() 791 if (n >= get_capacity(state->bdev->bd_disk)) { in read_part_sector()
|
D | cmdline.c | 148 disk_size = get_capacity(state->bdev->bd_disk) << 9; in cmdline_partition()
|
D | acorn.c | 543 size = get_capacity(state->bdev->bd_disk); in adfspart_check_EESOX()
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
D | zns.c | 127 get_capacity(ns->disk) >> ilog2(ns->zsze)); in nvme_zns_alloc_report_buffer() 190 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-core.h | 131 return get_capacity(md->disk); in dm_get_size()
|
/kernel/linux/linux-5.10/drivers/ide/ |
D | ide-gd.c | 103 (void)drive->disk_ops->get_capacity(drive); in ide_gd_resume() 231 drive->disk_ops->get_capacity(drive);
|
D | ide-floppy.c | 541 .get_capacity = ide_floppy_get_capacity,
|
D | ide-disk.c | 787 .get_capacity = ide_disk_get_capacity,
|
/kernel/linux/linux-5.10/drivers/block/paride/ |
D | pf.c | 357 sector_t capacity = get_capacity(pf->disk); in pf_getgeo() 691 (unsigned long long)get_capacity(pf->disk)); in pf_identify() 851 if (pf_block + pf_count > get_capacity(pf_req->rq_disk)) { in pf_request()
|
D | pd.c | 495 if (pd_block + pd_count > get_capacity(pd_req->rq_disk)) in do_pd_io_start()
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | block.c | 280 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo() 559 if (get_capacity(dev->gd) != disk_capacity) { in ubiblock_resize()
|
/kernel/linux/linux-5.10/drivers/block/rsxx/ |
D | dev.c | 136 if (bio_end_sector(bio) > get_capacity(card->gendisk)) in rsxx_submit_bio()
|
/kernel/linux/linux-5.10/include/linux/ |
D | genhd.h | 329 static inline sector_t get_capacity(struct gendisk *disk) in get_capacity() function
|
/kernel/linux/linux-5.10/drivers/block/xen-blkback/ |
D | common.h | 365 get_capacity((_v)->bdev->bd_disk))
|
/kernel/linux/linux-5.10/drivers/block/ |
D | brd.c | 293 if (bio_end_sector(bio) > get_capacity(bio->bi_disk)) in brd_submit_bio()
|
D | ps3disk.c | 488 get_capacity(gendisk) >> 11); in ps3disk_probe()
|
D | ps3vram.c | 768 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
|
/kernel/linux/linux-5.10/fs/ |
D | block_dev.c | 1347 disk_size = (loff_t)get_capacity(disk) << 9; in check_disk_size_change() 1440 if (get_capacity(disk)) { in bdev_disk_changed() 1528 bd_set_nr_sectors(bdev, get_capacity(disk)); in __blkdev_get()
|
/kernel/linux/linux-5.10/drivers/s390/block/ |
D | dasd_ioctl.c | 58 bd_set_nr_sectors(bdev, get_capacity(base->block->gdp)); in dasd_ioctl_enable()
|
/kernel/linux/linux-5.10/drivers/mtd/ |
D | mtd_blkdevs.c | 82 get_capacity(req->rq_disk)) in do_blktrans_request()
|
/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | block.c | 338 geo->cylinders = get_capacity(bdev->bd_disk) / (4 * 16); in mmc_blk_getgeo() 1315 get_capacity(md->disk))) in mmc_blk_data_prep() 2444 string_get_size((u64)get_capacity(part_md->disk), 512, STRING_UNITS_2, in mmc_blk_alloc_part() 2924 string_get_size((u64)get_capacity(md->disk), 512, STRING_UNITS_2, in mmc_blk_probe()
|
/kernel/linux/linux-5.10/drivers/block/rnbd/ |
D | rnbd-srv.c | 542 cpu_to_le64(get_capacity(rnbd_dev->bdev->bd_disk)); in rnbd_srv_fill_msg_open_rsp()
|