/block/ |
D | genhd.c | 54 struct hd_struct *disk_get_part(struct gendisk *disk, int partno) in disk_get_part() argument 64 ptbl = rcu_dereference(disk->part_tbl); in disk_get_part() 88 void disk_part_iter_init(struct disk_part_iter *piter, struct gendisk *disk, in disk_part_iter_init() argument 94 ptbl = rcu_dereference(disk->part_tbl); in disk_part_iter_init() 96 piter->disk = disk; in disk_part_iter_init() 132 ptbl = rcu_dereference(piter->disk->part_tbl); in disk_part_iter_next() 205 struct hd_struct *disk_map_sector_rcu(struct gendisk *disk, sector_t sector) in disk_map_sector_rcu() argument 211 ptbl = rcu_dereference(disk->part_tbl); in disk_map_sector_rcu() 225 return &disk->part0; in disk_map_sector_rcu() 403 struct gendisk *disk = part_to_disk(part); in blk_alloc_devt() local [all …]
|
D | ioctl.c | 14 struct gendisk *disk; in blkpg_ioctl() local 28 disk = bdev->bd_disk; in blkpg_ioctl() 50 disk_part_iter_init(&piter, disk, in blkpg_ioctl() 63 part = add_partition(disk, partno, start, length, in blkpg_ioctl() 68 part = disk_get_part(disk, partno); in blkpg_ioctl() 88 delete_partition(disk, partno); in blkpg_ioctl() 101 struct gendisk *disk = bdev->bd_disk; in blkdev_reread_part() local 104 if (!disk_partitionable(disk) || bdev != bdev->bd_contains) in blkdev_reread_part() 110 res = rescan_partitions(disk, bdev); in blkdev_reread_part() 206 struct gendisk *disk = bdev->bd_disk; in __blkdev_driver_ioctl() local [all …]
|
D | blk-integrity.c | 321 int blk_integrity_register(struct gendisk *disk, struct blk_integrity *template) in blk_integrity_register() argument 325 BUG_ON(disk == NULL); in blk_integrity_register() 327 if (disk->integrity == NULL) { in blk_integrity_register() 334 &disk_to_dev(disk)->kobj, in blk_integrity_register() 343 bi->sector_size = disk->queue->hardsect_size; in blk_integrity_register() 344 disk->integrity = bi; in blk_integrity_register() 346 bi = disk->integrity; in blk_integrity_register() 371 void blk_integrity_unregister(struct gendisk *disk) in blk_integrity_unregister() argument 375 if (!disk || !disk->integrity) in blk_integrity_unregister() 378 bi = disk->integrity; in blk_integrity_unregister() [all …]
|
D | cmd-filter.c | 210 int blk_register_filter(struct gendisk *disk) 213 struct blk_cmd_filter *filter = &disk->queue->cmd_filter; 216 &disk_to_dev(disk)->kobj, 225 void blk_unregister_filter(struct gendisk *disk) 227 struct blk_cmd_filter *filter = &disk->queue->cmd_filter;
|
D | blk-timeout.c | 39 struct gendisk *disk = dev_to_disk(dev); in part_timeout_show() local 40 int set = test_bit(QUEUE_FLAG_FAIL_IO, &disk->queue->queue_flags); in part_timeout_show() 48 struct gendisk *disk = dev_to_disk(dev); in part_timeout_store() local 52 struct request_queue *q = disk->queue; in part_timeout_store()
|
D | blk-sysfs.c | 383 int blk_register_queue(struct gendisk *disk) in blk_register_queue() argument 387 struct request_queue *q = disk->queue; in blk_register_queue() 395 ret = kobject_add(&q->kobj, kobject_get(&disk_to_dev(disk)->kobj), in blk_register_queue() 412 void blk_unregister_queue(struct gendisk *disk) in blk_unregister_queue() argument 414 struct request_queue *q = disk->queue; in blk_unregister_queue() 424 kobject_put(&disk_to_dev(disk)->kobj); in blk_unregister_queue()
|
D | blk-core.c | 67 struct gendisk *disk = rq->rq_disk; in drive_stat_acct() local 72 if (!blk_fs_request(rq) || !disk || !blk_do_io_stat(disk->queue)) in drive_stat_acct() 1669 struct gendisk *disk = req->rq_disk; in blk_account_io_completion() local 1671 if (!disk || !blk_do_io_stat(disk->queue)) in blk_account_io_completion() 1688 struct gendisk *disk = req->rq_disk; in blk_account_io_done() local 1690 if (!disk || !blk_do_io_stat(disk->queue)) in blk_account_io_done() 1705 part = disk_map_sector_rcu(disk, req->sector); in blk_account_io_done()
|
D | compat_ioctl.c | 46 static int compat_hdio_getgeo(struct gendisk *disk, struct block_device *bdev, in compat_hdio_getgeo() argument 54 if (!disk->fops->getgeo) in compat_hdio_getgeo() 62 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo() 720 struct gendisk *disk = bdev->bd_disk; in compat_blkdev_ioctl() local 736 return compat_hdio_getgeo(disk, bdev, compat_ptr(arg)); in compat_blkdev_ioctl() 801 if (disk->fops->compat_ioctl) in compat_blkdev_ioctl() 802 ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg); in compat_blkdev_ioctl()
|
D | Kconfig.iosched | 10 and sorting. Its main uses include non-disk based block devices like 31 a disk at any one time, its behaviour is almost identical to the
|
D | scsi_ioctl.c | 384 int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode, in sg_scsi_ioctl() argument 471 blk_execute_rq(q, disk, rq, 0); in sg_scsi_ioctl()
|
D | Kconfig | 33 (2TB+) block devices, including RAID, disk, Network Block Device,
|