Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/block/
Dblk-zoned.c132 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()
Dgenhd.c55 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/
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()
/kernel/linux/linux-5.10/block/partitions/
Dcore.c676 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()
Dcmdline.c148 disk_size = get_capacity(state->bdev->bd_disk) << 9; in cmdline_partition()
Dacorn.c543 size = get_capacity(state->bdev->bd_disk); in adfspart_check_EESOX()
/kernel/linux/linux-5.10/drivers/nvme/host/
Dzns.c127 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/
Ddm-core.h131 return get_capacity(md->disk); in dm_get_size()
/kernel/linux/linux-5.10/drivers/ide/
Dide-gd.c103 (void)drive->disk_ops->get_capacity(drive); in ide_gd_resume()
231 drive->disk_ops->get_capacity(drive);
Dide-floppy.c541 .get_capacity = ide_floppy_get_capacity,
Dide-disk.c787 .get_capacity = ide_disk_get_capacity,
/kernel/linux/linux-5.10/drivers/block/paride/
Dpf.c357 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()
Dpd.c495 if (pd_block + pd_count > get_capacity(pd_req->rq_disk)) in do_pd_io_start()
/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dblock.c280 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/
Ddev.c136 if (bio_end_sector(bio) > get_capacity(card->gendisk)) in rsxx_submit_bio()
/kernel/linux/linux-5.10/include/linux/
Dgenhd.h329 static inline sector_t get_capacity(struct gendisk *disk) in get_capacity() function
/kernel/linux/linux-5.10/drivers/block/xen-blkback/
Dcommon.h365 get_capacity((_v)->bdev->bd_disk))
/kernel/linux/linux-5.10/drivers/block/
Dbrd.c293 if (bio_end_sector(bio) > get_capacity(bio->bi_disk)) in brd_submit_bio()
Dps3disk.c488 get_capacity(gendisk) >> 11); in ps3disk_probe()
Dps3vram.c768 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
/kernel/linux/linux-5.10/fs/
Dblock_dev.c1347 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/
Ddasd_ioctl.c58 bd_set_nr_sectors(bdev, get_capacity(base->block->gdp)); in dasd_ioctl_enable()
/kernel/linux/linux-5.10/drivers/mtd/
Dmtd_blkdevs.c82 get_capacity(req->rq_disk)) in do_blktrans_request()
/kernel/linux/linux-5.10/drivers/mmc/core/
Dblock.c338 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/
Drnbd-srv.c542 cpu_to_le64(get_capacity(rnbd_dev->bdev->bd_disk)); in rnbd_srv_fill_msg_open_rsp()

12