/block/ |
D | genhd.c | 41 static void disk_alloc_events(struct gendisk *disk); 42 static void disk_add_events(struct gendisk *disk); 43 static void disk_del_events(struct gendisk *disk); 44 static void disk_release_events(struct gendisk *disk); 60 struct hd_struct *disk_get_part(struct gendisk *disk, int partno) in disk_get_part() argument 70 ptbl = rcu_dereference(disk->part_tbl); in disk_get_part() 94 void disk_part_iter_init(struct disk_part_iter *piter, struct gendisk *disk, in disk_part_iter_init() argument 100 ptbl = rcu_dereference(disk->part_tbl); in disk_part_iter_init() 102 piter->disk = disk; in disk_part_iter_init() 138 ptbl = rcu_dereference(piter->disk->part_tbl); in disk_part_iter_next() [all …]
|
D | partition-generic.c | 252 void delete_partition(struct gendisk *disk, int partno) in delete_partition() argument 254 struct disk_part_tbl *ptbl = disk->part_tbl; in delete_partition() 280 struct hd_struct *add_partition(struct gendisk *disk, int partno, in add_partition() argument 286 struct device *ddev = disk_to_dev(disk); in add_partition() 292 err = disk_expand_part_tbl(disk, partno); in add_partition() 295 ptbl = disk->part_tbl; in add_partition() 314 queue_limit_alignment_offset(&disk->queue->limits, start); in add_partition() 316 queue_limit_discard_alignment(&disk->queue->limits, start); in add_partition() 319 p->policy = get_disk_ro(disk); in add_partition() 322 struct partition_meta_info *pinfo = alloc_part_info(disk); in add_partition() [all …]
|
D | ioctl.c | 15 struct gendisk *disk; in blkpg_ioctl() local 29 disk = bdev->bd_disk; in blkpg_ioctl() 51 disk_part_iter_init(&piter, disk, in blkpg_ioctl() 64 part = add_partition(disk, partno, start, length, in blkpg_ioctl() 69 part = disk_get_part(disk, partno); in blkpg_ioctl() 89 delete_partition(disk, partno); in blkpg_ioctl() 107 part = disk_get_part(disk, partno); in blkpg_ioctl() 125 disk_part_iter_init(&piter, disk, in blkpg_ioctl() 155 struct gendisk *disk = bdev->bd_disk; in blkdev_reread_part() local 158 if (!disk_part_scan_enabled(disk) || bdev != bdev->bd_contains) in blkdev_reread_part() [all …]
|
D | blk-integrity.c | 396 bool blk_integrity_is_initialized(struct gendisk *disk) in blk_integrity_is_initialized() argument 398 struct blk_integrity *bi = blk_get_integrity(disk); in blk_integrity_is_initialized() 416 int blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument 420 BUG_ON(disk == NULL); in blk_integrity_register() 422 if (disk->integrity == NULL) { in blk_integrity_register() 429 &disk_to_dev(disk)->kobj, in blk_integrity_register() 438 bi->interval = queue_logical_block_size(disk->queue); in blk_integrity_register() 439 disk->integrity = bi; in blk_integrity_register() 441 bi = disk->integrity; in blk_integrity_register() 454 disk->queue->backing_dev_info.capabilities |= BDI_CAP_STABLE_WRITES; in blk_integrity_register() [all …]
|
D | blk-cgroup.c | 707 __acquires(rcu) __acquires(disk->queue->queue_lock) in blkg_conf_prep() 709 struct gendisk *disk; in blkg_conf_prep() local 718 disk = get_gendisk(MKDEV(major, minor), &part); in blkg_conf_prep() 719 if (!disk) in blkg_conf_prep() 722 put_disk(disk); in blkg_conf_prep() 727 spin_lock_irq(disk->queue->queue_lock); in blkg_conf_prep() 729 if (blkcg_policy_enabled(disk->queue, pol)) in blkg_conf_prep() 730 blkg = blkg_lookup_create(blkcg, disk->queue); in blkg_conf_prep() 737 spin_unlock_irq(disk->queue->queue_lock); in blkg_conf_prep() 738 put_disk(disk); in blkg_conf_prep() [all …]
|
D | blk-timeout.c | 43 struct gendisk *disk = dev_to_disk(dev); in part_timeout_show() local 44 int set = test_bit(QUEUE_FLAG_FAIL_IO, &disk->queue->queue_flags); in part_timeout_show() 52 struct gendisk *disk = dev_to_disk(dev); in part_timeout_store() local 56 struct request_queue *q = disk->queue; in part_timeout_store()
|
D | blk-sysfs.c | 540 int blk_register_queue(struct gendisk *disk) in blk_register_queue() argument 543 struct device *dev = disk_to_dev(disk); in blk_register_queue() 544 struct request_queue *q = disk->queue; in blk_register_queue() 578 blk_mq_register_disk(disk); in blk_register_queue() 595 void blk_unregister_queue(struct gendisk *disk) in blk_unregister_queue() argument 597 struct request_queue *q = disk->queue; in blk_unregister_queue() 603 blk_mq_unregister_disk(disk); in blk_unregister_queue() 610 blk_trace_remove_sysfs(disk_to_dev(disk)); in blk_unregister_queue() 611 kobject_put(&disk_to_dev(disk)->kobj); in blk_unregister_queue()
|
D | blk-mq-sysfs.c | 377 void blk_mq_unregister_disk(struct gendisk *disk) in blk_mq_unregister_disk() argument 379 struct request_queue *q = disk->queue; in blk_mq_unregister_disk() 397 kobject_put(&disk_to_dev(disk)->kobj); in blk_mq_unregister_disk() 421 int blk_mq_register_disk(struct gendisk *disk) in blk_mq_register_disk() argument 423 struct device *dev = disk_to_dev(disk); in blk_mq_register_disk() 424 struct request_queue *q = disk->queue; in blk_mq_register_disk() 444 blk_mq_unregister_disk(disk); in blk_mq_register_disk()
|
D | compat_ioctl.c | 51 static int compat_hdio_getgeo(struct gendisk *disk, struct block_device *bdev, in compat_hdio_getgeo() argument 59 if (!disk->fops->getgeo) in compat_hdio_getgeo() 68 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo() 662 struct gendisk *disk = bdev->bd_disk; in compat_blkdev_ioctl() local 679 return compat_hdio_getgeo(disk, bdev, compat_ptr(arg)); in compat_blkdev_ioctl() 750 if (disk->fops->compat_ioctl) in compat_blkdev_ioctl() 751 ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg); in compat_blkdev_ioctl()
|
D | blk-settings.c | 688 void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, in disk_stack_limits() argument 691 struct request_queue *t = disk->queue; in disk_stack_limits() 696 disk_name(disk, 0, top); in disk_stack_limits()
|
D | Kconfig.iosched | 10 and sorting. Its main uses include non-disk based block devices like
|
D | scsi_ioctl.c | 430 int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode, in sg_scsi_ioctl() argument 521 blk_execute_rq(q, disk, rq, 0); in sg_scsi_ioctl()
|
D | Kconfig | 34 (2TB+) block devices, including RAID, disk, Network Block Device,
|
D | blk-cgroup.h | 170 struct gendisk *disk; member
|
/block/partitions/ |
D | Kconfig | 52 `Y' here, Linux will support disk partitions created under ADFS. 74 Say Y here if you would like to be able to read the hard disk 104 bool "IBM disk label and partition support" 107 Say Y here if you would like to be able to read the hard disk 128 FreeBSD uses its own hard disk partition scheme on your PC. It 129 requires only one entry in the primary partition table of your disk 149 Like most systems, Solaris x86 uses its own hard disk partition 189 Manager allows the user to repartition a disk and create spanned, 214 Say Y here if you would like to be able to read the hard disk 221 Say Y here if you would like to be able to read the hard disk [all …]
|
D | ldm.c | 612 if (!memcmp (v->vblk.disk.disk_id, ldb->ph.disk_id, GUID_SIZE)) in ldm_get_disk_objid() 641 struct vblk *disk; in ldm_create_data_partitions() local 647 disk = ldm_get_disk_objid (ldb); in ldm_create_data_partitions() 648 if (!disk) { in ldm_create_data_partitions() 660 if (part->disk_id != disk->obj_id) in ldm_create_data_partitions() 928 struct vblk_disk *disk; in ldm_parse_dsk3() local 944 disk = &vb->vblk.disk; in ldm_parse_dsk3() 945 ldm_get_vstr (buffer + 0x18 + r_diskid, disk->alt_name, in ldm_parse_dsk3() 946 sizeof (disk->alt_name)); in ldm_parse_dsk3() 947 if (!ldm_parse_guid (buffer + 0x19 + r_name, disk->disk_id)) in ldm_parse_dsk3() [all …]
|
D | ldm.h | 194 struct vblk_disk disk; member
|