Home
last modified time | relevance | path

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

12

/Linux-v5.15/block/
Dblk-zoned.c124 return (get_capacity(disk) + zone_sectors - 1) >> ilog2(zone_sectors); in blkdev_nr_zones()
151 sector_t capacity = get_capacity(disk); in blkdev_report_zones()
194 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_reset_all_emulated()
271 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_mgmt()
388 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()
491 sector_t capacity = get_capacity(disk); in blk_revalidate_zone_cb()
586 if (!get_capacity(disk)) in blk_revalidate_disk_zones()
606 if (ret > 0 && args.sector != get_capacity(disk)) { in blk_revalidate_disk_zones()
Dgenhd.c70 sector_t capacity = get_capacity(disk); in set_capacity_and_notify()
374 if (!get_capacity(disk) || !disk_part_scan_enabled(disk)) in disk_scan_partitions()
694 if (get_capacity(disk) == 0 || in printk_all_partitions()
789 if (!get_capacity(sgp) || (!disk_max_parts(sgp) && in show_partition()
/Linux-v5.15/drivers/nvme/target/
Dzns.c53 if (get_capacity(bd_disk) & (bdev_zone_sectors(ns->bdev) - 1)) in nvmet_bdev_zns_enable()
145 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_validate_zone_mgmt_recv()
413 while (sector < get_capacity(bdev->bd_disk)) { in nvmet_bdev_zone_mgmt_emulate_all()
443 get_capacity(req->ns->bdev->bd_disk), in nvmet_bdev_execute_zmgmt_send_all()
483 if (sect >= get_capacity(bdev->bd_disk)) { in nvmet_bdev_zmgmt_send_work()
540 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_execute_zone_append()
/Linux-v5.15/block/partitions/
Dcore.c563 if (from >= get_capacity(disk)) { in blk_add_partition()
572 if (from + size > get_capacity(disk)) { in blk_add_partition()
585 size = get_capacity(disk) - from; in blk_add_partition()
696 if (get_capacity(disk)) { in bdev_disk_changed()
721 if (n >= get_capacity(state->disk)) { in read_part_sector()
Dacorn.c278 nr_sects = get_capacity(state->disk) - start_sect; in adfspart_check_ADFS()
543 size = get_capacity(state->disk); in adfspart_check_EESOX()
Datari.c58 hd_size = get_capacity(state->disk); in atari_partition()
Daix.c84 if (!buffer || lba + count / 512 > get_capacity(state->disk) - 1ULL) in read_lba()
Dcmdline.c403 disk_size = get_capacity(state->disk) << 9; in cmdline_partition()
Defi.c590 sector_t total_sectors = get_capacity(state->disk); in find_valid_gpt()
/Linux-v5.15/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()
/Linux-v5.15/drivers/nvme/host/
Dzns.c132 get_capacity(ns->disk) >> ilog2(ns->zsze)); in nvme_zns_alloc_report_buffer()
198 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
Dmultipath.c153 sector_t capacity = get_capacity(head->disk); in nvme_mpath_revalidate_paths()
157 if (capacity != get_capacity(ns->disk)) in nvme_mpath_revalidate_paths()
/Linux-v5.15/drivers/md/
Ddm-core.h149 return get_capacity(md->disk); in dm_get_size()
Ddm-zone.c45 args.next_sector < get_capacity(disk)); in dm_blk_do_report_zones()
319 if (!get_capacity(md->disk)) in dm_set_zones_restrictions()
Ddm-ima.c154 capacity = get_capacity(md->disk); in dm_ima_alloc_and_copy_capacity_str()
/Linux-v5.15/include/linux/
Dgenhd.h254 static inline sector_t get_capacity(struct gendisk *disk) in get_capacity() function
/Linux-v5.15/drivers/mtd/ubi/
Dblock.c280 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo()
549 if (get_capacity(dev->gd) != disk_capacity) { in ubiblock_resize()
/Linux-v5.15/drivers/block/paride/
Dpf.c355 sector_t capacity = get_capacity(pf->disk); in pf_getgeo()
689 (unsigned long long)get_capacity(pf->disk)); in pf_identify()
847 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()
/Linux-v5.15/drivers/block/rsxx/
Ddev.c136 if (bio_end_sector(bio) > get_capacity(card->gendisk)) in rsxx_submit_bio()
/Linux-v5.15/drivers/mtd/
Dmtd_blkdevs.c62 get_capacity(req->rq_disk)) in do_blktrans_request()
/Linux-v5.15/drivers/block/
Dps3disk.c468 get_capacity(gendisk) >> 11); in ps3disk_probe()
Dps3vram.c756 gendisk->disk_name, get_capacity(gendisk) >> 11); in ps3vram_probe()
/Linux-v5.15/drivers/block/rnbd/
Drnbd-srv.c552 cpu_to_le64(get_capacity(rnbd_dev->bdev->bd_disk)); in rnbd_srv_fill_msg_open_rsp()
/Linux-v5.15/drivers/scsi/
Dsr.c377 if (error_sector < get_capacity(cd->disk) && in sr_done()

12