/linux-5.19.10/block/ |
D | blk-zoned.c | 123 return (get_capacity(disk) + zone_sectors - 1) >> ilog2(zone_sectors); in blkdev_nr_zones() 150 sector_t capacity = get_capacity(disk); in blkdev_report_zones() 193 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_reset_all_emulated() 266 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_mgmt() 381 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range() 479 sector_t capacity = get_capacity(disk); in blk_revalidate_zone_cb() 574 if (!get_capacity(disk)) in blk_revalidate_disk_zones() 594 if (ret > 0 && args.sector != get_capacity(disk)) { in blk_revalidate_disk_zones()
|
D | genhd.c | 75 sector_t capacity = get_capacity(disk); in set_capacity_and_notify() 524 if (get_capacity(disk)) in device_add_disk() 762 if (get_capacity(disk) == 0 || (disk->flags & GENHD_FL_HIDDEN)) in printk_all_partitions() 855 if (!get_capacity(sgp) || (sgp->flags & GENHD_FL_HIDDEN)) in show_partition()
|
D | blk-ia-ranges.c | 209 sector_t capacity = get_capacity(disk); in disk_check_ia_ranges()
|
/linux-5.19.10/drivers/nvme/target/ |
D | zns.c | 52 if (get_capacity(bd_disk) & (bdev_zone_sectors(ns->bdev) - 1)) in nvmet_bdev_zns_enable() 161 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_validate_zone_mgmt_recv() 429 while (sector < get_capacity(bdev->bd_disk)) { in nvmet_bdev_zone_mgmt_emulate_all() 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()
|
/linux-5.19.10/block/partitions/ |
D | core.c | 552 if (from >= get_capacity(disk)) { in blk_add_partition() 561 if (from + size > get_capacity(disk)) { in blk_add_partition() 574 size = get_capacity(disk) - from; in blk_add_partition() 688 if (get_capacity(disk)) { in bdev_disk_changed() 713 if (n >= get_capacity(state->disk)) { in read_part_sector()
|
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()
|
D | atari.c | 58 hd_size = get_capacity(state->disk); in atari_partition()
|
D | aix.c | 84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) in read_lba()
|
D | cmdline.c | 403 disk_size = get_capacity(state->disk) << 9; in cmdline_partition()
|
D | efi.c | 590 sector_t total_sectors = get_capacity(state->disk); in find_valid_gpt()
|
/linux-5.19.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()
|
/linux-5.19.10/drivers/nvme/host/ |
D | zns.c | 132 get_capacity(ns->disk) >> ilog2(ns->zsze)); in nvme_zns_alloc_report_buffer() 201 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
|
D | multipath.c | 175 sector_t capacity = get_capacity(head->disk); in nvme_mpath_revalidate_paths() 179 if (capacity != get_capacity(ns->disk)) in nvme_mpath_revalidate_paths()
|
/linux-5.19.10/drivers/md/ |
D | dm-core.h | 157 return get_capacity(md->disk); in dm_get_size()
|
D | dm-zone.c | 45 args.next_sector < get_capacity(disk)); in dm_blk_do_report_zones() 318 if (!get_capacity(md->disk)) in dm_set_zones_restrictions()
|
D | dm-ima.c | 155 capacity = get_capacity(md->disk); in dm_ima_alloc_and_copy_capacity_str()
|
/linux-5.19.10/drivers/block/paride/ |
D | pf.c | 315 sector_t capacity = get_capacity(pf->disk); in pf_getgeo() 649 (unsigned long long)get_capacity(pf->disk)); in pf_identify() 754 if (pf_block + pf_count > get_capacity(pf_req->q->disk)) { in pf_request()
|
D | pd.c | 495 if (pd_block + pd_count > get_capacity(pd_req->q->disk)) in do_pd_io_start()
|
/linux-5.19.10/drivers/mtd/ubi/ |
D | block.c | 280 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo() 560 if (get_capacity(dev->gd) != disk_capacity) { in ubiblock_resize()
|
/linux-5.19.10/drivers/block/ |
D | ps3disk.c | 468 get_capacity(gendisk) >> 11); in ps3disk_probe()
|
D | xen-blkfront.c | 500 sector_t nsect = get_capacity(bd->bd_disk); in blkif_getgeo() 953 blk_queue_max_discard_sectors(rq, get_capacity(gd)); in blkif_set_queue_limits() 959 get_capacity(gd)); in blkif_set_queue_limits()
|
D | ps3vram.c | 755 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
|
/linux-5.19.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()
|
/linux-5.19.10/drivers/scsi/ |
D | sr.c | 339 if (error_sector < get_capacity(cd->disk) && in sr_done()
|
/linux-5.19.10/drivers/block/drbd/ |
D | drbd_worker.c | 589 const sector_t capacity = get_capacity(device->vdisk); in make_resync_request() 767 const sector_t capacity = get_capacity(device->vdisk); in make_ov_request()
|