/block/ |
D | genhd.c | 44 static void disk_alloc_events(struct gendisk *disk); 45 static void disk_add_events(struct gendisk *disk); 46 static void disk_del_events(struct gendisk *disk); 47 static void disk_release_events(struct gendisk *disk); 111 struct hd_struct *__disk_get_part(struct gendisk *disk, int partno) in __disk_get_part() argument 113 struct disk_part_tbl *ptbl = rcu_dereference(disk->part_tbl); in __disk_get_part() 134 struct hd_struct *disk_get_part(struct gendisk *disk, int partno) in disk_get_part() argument 139 part = __disk_get_part(disk, partno); in disk_get_part() 159 void disk_part_iter_init(struct disk_part_iter *piter, struct gendisk *disk, in disk_part_iter_init() argument 165 ptbl = rcu_dereference(disk->part_tbl); in disk_part_iter_init() [all …]
|
D | partition-generic.c | 270 void delete_partition(struct gendisk *disk, int partno) in delete_partition() argument 273 rcu_dereference_protected(disk->part_tbl, 1); in delete_partition() 309 struct hd_struct *add_partition(struct gendisk *disk, int partno, in add_partition() argument 315 struct device *ddev = disk_to_dev(disk); in add_partition() 321 err = disk_expand_part_tbl(disk, partno); in add_partition() 324 ptbl = rcu_dereference_protected(disk->part_tbl, 1); in add_partition() 343 queue_limit_alignment_offset(&disk->queue->limits, start); in add_partition() 345 queue_limit_discard_alignment(&disk->queue->limits, start); in add_partition() 348 p->policy = get_disk_ro(disk); in add_partition() 351 struct partition_meta_info *pinfo = alloc_part_info(disk); in add_partition() [all …]
|
D | blk-zoned.c | 80 unsigned int blkdev_nr_zones(struct gendisk *disk) in blkdev_nr_zones() argument 82 sector_t zone_sectors = blk_queue_zone_sectors(disk->queue); in blkdev_nr_zones() 84 if (!blk_queue_is_zoned(disk->queue)) in blkdev_nr_zones() 86 return (get_capacity(disk) + zone_sectors - 1) >> ilog2(zone_sectors); in blkdev_nr_zones() 112 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones() local 113 sector_t capacity = get_capacity(disk); in blkdev_report_zones() 116 WARN_ON_ONCE(!disk->fops->report_zones)) in blkdev_report_zones() 122 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones() 342 struct gendisk *disk; member 357 struct gendisk *disk = args->disk; in blk_revalidate_zone_cb() local [all …]
|
D | blk-integrity.c | 226 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_show() local 227 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_show() 238 struct gendisk *disk = container_of(kobj, struct gendisk, integrity_kobj); in integrity_attr_store() local 239 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_store() 399 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument 401 struct blk_integrity *bi = &disk->queue->integrity; in blk_integrity_register() 406 ilog2(queue_logical_block_size(disk->queue)); in blk_integrity_register() 411 disk->queue->backing_dev_info->capabilities |= BDI_CAP_STABLE_WRITES; in blk_integrity_register() 422 void blk_integrity_unregister(struct gendisk *disk) in blk_integrity_unregister() argument 424 disk->queue->backing_dev_info->capabilities &= ~BDI_CAP_STABLE_WRITES; in blk_integrity_unregister() [all …]
|
D | ioctl.c | 17 struct gendisk *disk; in blkpg_ioctl() local 31 disk = bdev->bd_disk; in blkpg_ioctl() 56 disk_part_iter_init(&piter, disk, in blkpg_ioctl() 69 part = add_partition(disk, partno, start, length, in blkpg_ioctl() 74 part = disk_get_part(disk, partno); in blkpg_ioctl() 94 delete_partition(disk, partno); in blkpg_ioctl() 112 part = disk_get_part(disk, partno); in blkpg_ioctl() 130 disk_part_iter_init(&piter, disk, in blkpg_ioctl() 165 struct gendisk *disk = bdev->bd_disk; in __blkdev_reread_part() local 167 if (!disk_part_scan_enabled(disk) || bdev != bdev->bd_contains) in __blkdev_reread_part() [all …]
|
D | blk-timeout.c | 44 struct gendisk *disk = dev_to_disk(dev); in part_timeout_show() local 45 int set = test_bit(QUEUE_FLAG_FAIL_IO, &disk->queue->queue_flags); in part_timeout_show() 53 struct gendisk *disk = dev_to_disk(dev); in part_timeout_store() local 57 struct request_queue *q = disk->queue; in part_timeout_store()
|
D | compat_ioctl.c | 52 static int compat_hdio_getgeo(struct gendisk *disk, struct block_device *bdev, in compat_hdio_getgeo() argument 60 if (!disk->fops->getgeo) in compat_hdio_getgeo() 69 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo() 321 struct gendisk *disk = bdev->bd_disk; in compat_blkdev_ioctl() local 337 return compat_hdio_getgeo(disk, bdev, compat_ptr(arg)); in compat_blkdev_ioctl() 418 if (disk->fops->compat_ioctl) in compat_blkdev_ioctl() 419 ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg); in compat_blkdev_ioctl()
|
D | blk-cgroup.c | 771 struct gendisk *disk; in blkcg_conf_get_disk() local 782 disk = get_gendisk(MKDEV(major, minor), &part); in blkcg_conf_get_disk() 783 if (!disk) in blkcg_conf_get_disk() 786 put_disk_and_module(disk); in blkcg_conf_get_disk() 791 return disk; in blkcg_conf_get_disk() 808 __acquires(rcu) __acquires(&disk->queue->queue_lock) in blkg_conf_prep() 810 struct gendisk *disk; in blkg_conf_prep() local 815 disk = blkcg_conf_get_disk(&input); in blkg_conf_prep() 816 if (IS_ERR(disk)) in blkg_conf_prep() 817 return PTR_ERR(disk); in blkg_conf_prep() [all …]
|
D | blk-iocost.c | 2185 struct gendisk *disk; in ioc_qos_write() local 2192 disk = blkcg_conf_get_disk(&input); in ioc_qos_write() 2193 if (IS_ERR(disk)) in ioc_qos_write() 2194 return PTR_ERR(disk); in ioc_qos_write() 2196 ioc = q_to_ioc(disk->queue); in ioc_qos_write() 2198 ret = blk_iocost_init(disk->queue); in ioc_qos_write() 2201 ioc = q_to_ioc(disk->queue); in ioc_qos_write() 2295 put_disk_and_module(disk); in ioc_qos_write() 2300 put_disk_and_module(disk); in ioc_qos_write() 2351 struct gendisk *disk; in ioc_cost_model_write() local [all …]
|
D | blk-sysfs.c | 938 int blk_register_queue(struct gendisk *disk) in blk_register_queue() argument 941 struct device *dev = disk_to_dev(disk); in blk_register_queue() 942 struct request_queue *q = disk->queue; in blk_register_queue() 1029 void blk_unregister_queue(struct gendisk *disk) in blk_unregister_queue() argument 1031 struct request_queue *q = disk->queue; in blk_unregister_queue() 1055 blk_mq_unregister_dev(disk_to_dev(disk), q); in blk_unregister_queue() 1059 blk_trace_remove_sysfs(disk_to_dev(disk)); in blk_unregister_queue() 1067 kobject_put(&disk_to_dev(disk)->kobj); in blk_unregister_queue()
|
D | blk-settings.c | 653 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, in disk_stack_limits() argument 656 struct request_queue *t = disk->queue; in disk_stack_limits() 661 disk_name(disk, 0, top); in disk_stack_limits()
|
D | Kconfig | 104 utilize disk resource. 125 the realtime performance of the disk.
|
D | scsi_ioctl.c | 404 int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode, in sg_scsi_ioctl() argument 493 blk_execute_rq(q, disk, rq, 0); in sg_scsi_ioctl()
|
D | blk.h | 215 struct hd_struct *__disk_get_part(struct gendisk *disk, int partno);
|
/block/partitions/ |
D | Kconfig | 53 `Y' here, Linux will support disk partitions created under ADFS. 75 Say Y here if you would like to be able to read the hard disk 105 bool "IBM disk label and partition support" 108 Say Y here if you would like to be able to read the hard disk 129 FreeBSD uses its own hard disk partition scheme on your PC. It 130 requires only one entry in the primary partition table of your disk 150 Like most systems, Solaris x86 uses its own hard disk partition 190 Manager allows the user to repartition a disk and create spanned, 215 Say Y here if you would like to be able to read the hard disk 222 Say Y here if you would like to be able to read the hard disk [all …]
|
D | ldm.c | 546 if (uuid_equal(&v->vblk.disk.disk_id, &ldb->ph.disk_id)) in ldm_get_disk_objid() 575 struct vblk *disk; in ldm_create_data_partitions() local 581 disk = ldm_get_disk_objid (ldb); in ldm_create_data_partitions() 582 if (!disk) { in ldm_create_data_partitions() 594 if (part->disk_id != disk->obj_id) in ldm_create_data_partitions() 859 struct vblk_disk *disk; in ldm_parse_dsk3() local 875 disk = &vb->vblk.disk; in ldm_parse_dsk3() 876 ldm_get_vstr (buffer + 0x18 + r_diskid, disk->alt_name, in ldm_parse_dsk3() 877 sizeof (disk->alt_name)); in ldm_parse_dsk3() 878 if (uuid_parse(buffer + 0x19 + r_name, &disk->disk_id)) in ldm_parse_dsk3() [all …]
|
D | ldm.h | 178 struct vblk_disk disk; member
|