Home
last modified time | relevance | path

Searched refs:bd_disk (Results 1 – 9 of 9) sorted by relevance

/block/
Dblk-exec.c48 void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, in blk_execute_rq_nowait() argument
55 rq->rq_disk = bd_disk; in blk_execute_rq_nowait()
79 void blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, in blk_execute_rq() argument
86 blk_execute_rq_nowait(q, bd_disk, rq, at_head, blk_end_sync_rq); in blk_execute_rq()
Dioctl.c97 if (!disk_part_scan_enabled(bdev->bd_disk) || bdev_is_partition(bdev)) in blkdev_reread_part()
109 set_bit(GD_NEED_PART_SCAN, &bdev->bd_disk->state); in blkdev_reread_part()
234 struct gendisk *disk = bdev->bd_disk; in __blkdev_driver_ioctl()
257 struct gendisk *disk = bdev->bd_disk; in blkdev_compat_ptr_ioctl()
271 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_register()
289 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_reserve()
307 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_release()
325 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_preempt()
343 const struct pr_ops *ops = bdev->bd_disk->fops->pr_ops; in blkdev_pr_clear()
415 struct gendisk *disk = bdev->bd_disk; in blkdev_getgeo()
[all …]
Dscsi_ioctl.c282 static int sg_io(struct request_queue *q, struct gendisk *bd_disk, in sg_io() argument
360 blk_execute_rq(q, bd_disk, rq, at_head); in sg_io()
522 static int __blk_send_generic(struct request_queue *q, struct gendisk *bd_disk, in __blk_send_generic() argument
535 blk_execute_rq(q, bd_disk, rq, 0); in __blk_send_generic()
543 struct gendisk *bd_disk, int data) in blk_send_start_stop() argument
545 return __blk_send_generic(q, bd_disk, GPCMD_START_STOP_UNIT, data); in blk_send_start_stop()
711 struct gendisk *bd_disk, in scsi_cdrom_send_packet() argument
752 err = sg_io(q, bd_disk, &hdr, mode); in scsi_cdrom_send_packet()
767 int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mode, in scsi_cmd_ioctl() argument
809 err = sg_io(q, bd_disk, &hdr, mode); in scsi_cmd_ioctl()
[all …]
Dblk-zoned.c158 struct gendisk *disk = bdev->bd_disk; in blkdev_report_zones()
183 return !sector && nr_sectors == get_capacity(bdev->bd_disk); in blkdev_allow_reset_all_zones()
208 sector_t capacity = get_capacity(bdev->bd_disk); in blkdev_zone_mgmt()
324 zrange->sector + zrange->nr_sectors > get_capacity(bdev->bd_disk)) in blkdev_truncate_zone_range()
Dgenhd.c91 return disk_name(bdev->bd_disk, bdev->bd_partno, buf); in bdevname()
2106 events = disk_clear_events(bdev->bd_disk, DISK_EVENT_MEDIA_CHANGE | in bdev_check_media_change()
2113 bdev->bd_disk->disk_name); in bdev_check_media_change()
2114 set_bit(GD_NEED_PART_SCAN, &bdev->bd_disk->state); in bdev_check_media_change()
/block/partitions/
Dcore.c531 if (partition_overlaps(bdev->bd_disk, start, length, -1)) { in bdev_add_partition()
536 part = add_partition(bdev->bd_disk, partno, start, length, in bdev_add_partition()
548 bdevp = bdget_disk(bdev->bd_disk, partno); in bdev_del_partition()
556 part = disk_get_part(bdev->bd_disk, partno); in bdev_del_partition()
585 part = disk_get_part(bdev->bd_disk, partno); in bdev_resize_partition()
602 if (partition_overlaps(bdev->bd_disk, start, length, partno)) in bdev_resize_partition()
645 disk_part_iter_init(&piter, bdev->bd_disk, DISK_PITER_INCL_EMPTY); in blk_drop_partitions()
782 if (n >= get_capacity(state->bdev->bd_disk)) { in read_part_sector()
Dcmdline.c148 disk_size = get_capacity(state->bdev->bd_disk) << 9; in cmdline_partition()
Dacorn.c543 size = get_capacity(state->bdev->bd_disk); in adfspart_check_EESOX()
Dibm.c294 struct gendisk *disk = bdev->bd_disk; in ibm_partition()