Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/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()
80 blk_status_t blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, in blk_execute_rq() argument
87 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()
/kernel/linux/linux-5.10/fs/udf/
Dlowlevel.c30 struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk); in udf_get_last_session()
51 struct cdrom_device_info *cdi = disk_to_cdi(bdev->bd_disk); in udf_get_last_block()
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd_ioctl.c52 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_enable()
75 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_disable()
268 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_format()
304 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_check_format()
357 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_release_space()
548 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl_set_ro()
555 set_disk_ro(bdev->bd_disk, intval); in dasd_ioctl_set_ro()
592 base = dasd_device_from_gendisk(bdev->bd_disk); in dasd_ioctl()
/kernel/linux/linux-5.10/drivers/ide/
Dide-gd.c186 struct gendisk *disk = bdev->bd_disk;
230 bdev->bd_disk->disk_name);
282 struct ide_disk_obj *idkp = ide_drv_g(bdev->bd_disk, ide_disk_obj);
304 struct ide_disk_obj *idkp = ide_drv_g(bdev->bd_disk, ide_disk_obj);
314 struct ide_disk_obj *idkp = ide_drv_g(bdev->bd_disk, ide_disk_obj);
/kernel/linux/linux-5.10/block/partitions/
Dcore.c529 struct gendisk *disk = bdev->bd_disk; in bdev_add_partition()
557 bdevp = bdget_disk(bdev->bd_disk, partno); in bdev_del_partition()
565 part = disk_get_part(bdev->bd_disk, partno); in bdev_del_partition()
594 part = disk_get_part(bdev->bd_disk, partno); in bdev_resize_partition()
611 if (partition_overlaps(bdev->bd_disk, start, length, partno)) in bdev_resize_partition()
654 disk_part_iter_init(&piter, bdev->bd_disk, DISK_PITER_INCL_EMPTY); in blk_drop_partitions()
791 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()
/kernel/linux/linux-5.10/fs/
Dblock_dev.c740 const struct block_device_operations *ops = bdev->bd_disk->fops; in bdev_read_page()
746 result = blk_queue_enter(bdev->bd_disk->queue, 0); in bdev_read_page()
751 blk_queue_exit(bdev->bd_disk->queue); in bdev_read_page()
778 const struct block_device_operations *ops = bdev->bd_disk->fops; in bdev_write_page()
782 result = blk_queue_enter(bdev->bd_disk->queue, 0); in bdev_write_page()
795 blk_queue_exit(bdev->bd_disk->queue); in bdev_write_page()
1406 struct gendisk *disk = bdev->bd_disk; in bdev_disk_changed()
1506 bdev->bd_disk = disk; in __blkdev_get()
1565 if (bdev->bd_disk->fops->open) in __blkdev_get()
1566 ret = bdev->bd_disk->fops->open(bdev, mode); in __blkdev_get()
[all …]
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Ddev.c28 dev->bdev->bd_disk->fops->pr_ops; in bl_free_device()
259 d->bdev->bd_disk->disk_name); in bl_parse_simple()
375 d->bdev->bd_disk->disk_name, d->pr_key); in bl_parse_scsi()
377 ops = d->bdev->bd_disk->fops->pr_ops; in bl_parse_scsi()
380 d->bdev->bd_disk->disk_name); in bl_parse_scsi()
388 d->bdev->bd_disk->disk_name); in bl_parse_scsi()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0002_linux_block.patch79 @@ -296,6 +307,9 @@ static int sg_io(struct request_queue *q, struct gendisk *bd_disk,
89 @@ -341,9 +355,14 @@ static int sg_io(struct request_queue *q, struct gendisk *bd_disk,
/kernel/linux/linux-5.10/fs/nfsd/
Dblocklayout.c217 struct request_queue *q = bdev->bd_disk->queue; in nfsd4_scsi_identify_device()
354 ops = sb->s_bdev->bd_disk->fops->pr_ops; in nfsd4_block_get_device_info_scsi()
410 bdev->bd_disk->fops->pr_ops->pr_preempt(bdev, NFSD_MDS_PR_KEY, in nfsd4_scsi_fence_client()
/kernel/linux/linux-5.10/drivers/md/
Dmd-autodetect.c179 if (WARN(bdev->bd_disk->fops != &md_fops, in md_setup_drive()
184 mddev = bdev->bd_disk->private_data; in md_setup_drive()
Ddm.c349 md = bdev->bd_disk->private_data; in dm_blk_open()
437 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_getgeo()
562 struct mapped_device *md = bdev->bd_disk->private_data; in dm_blk_ioctl()
769 td->dm_dev.dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); in open_table_device()
2982 struct mapped_device *md = bdev->bd_disk->private_data; in dm_call_pr()
3018 const struct pr_ops *ops = dev->bdev->bd_disk->fops->pr_ops; in __dm_pr_register()
3052 struct mapped_device *md = bdev->bd_disk->private_data; in dm_pr_reserve()
3060 ops = bdev->bd_disk->fops->pr_ops; in dm_pr_reserve()
3072 struct mapped_device *md = bdev->bd_disk->private_data; in dm_pr_release()
3080 ops = bdev->bd_disk->fops->pr_ops; in dm_pr_release()
[all …]
/kernel/linux/linux-5.10/drivers/block/rsxx/
Ddev.c61 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_blkdev_ioctl()
75 struct rsxx_cardinfo *card = bdev->bd_disk->private_data; in rsxx_getgeo()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_pwork.c135 return blk_queue_nonrot(btp->bt_bdev->bd_disk->queue) ? 2 : 1; in xfs_pwork_guess_datadev_parallelism()
/kernel/linux/linux-5.10/drivers/block/aoe/
Daoeblk.c222 struct aoedev *d = bdev->bd_disk->private_data; in aoeblk_open()
287 struct aoedev *d = bdev->bd_disk->private_data; in aoeblk_getgeo()
308 d = bdev->bd_disk->private_data; in aoeblk_ioctl()
/kernel/linux/linux-5.10/drivers/mtd/
Dmtd_blkdevs.c206 struct mtd_blktrans_dev *dev = blktrans_dev_get(bdev->bd_disk); in blktrans_open()
283 struct mtd_blktrans_dev *dev = blktrans_dev_get(bdev->bd_disk); in blktrans_getgeo()
304 struct mtd_blktrans_dev *dev = blktrans_dev_get(bdev->bd_disk); in blktrans_ioctl()
/kernel/linux/linux-5.10/drivers/dax/
Dsuper.c63 if (!blk_queue_dax(bdev->bd_disk->queue)) in fs_dax_get_by_bdev()
65 return dax_get_by_host(bdev->bd_disk->disk_name); in fs_dax_get_by_bdev()
183 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); in __bdev_dax_supported()
/kernel/linux/linux-5.10/fs/zonefs/
Dsuper.c1375 inode->i_ino = blkdev_nr_zones(sb->s_bdev->bd_disk) + type + 1; in zonefs_init_dir_inode()
1522 end = zd->zones + blkdev_nr_zones(sb->s_bdev->bd_disk); in zonefs_create_zgroup()
1618 zd->zones = kvcalloc(blkdev_nr_zones(bdev->bd_disk), in zonefs_get_zone_info()
1631 if (ret != blkdev_nr_zones(bdev->bd_disk)) { in zonefs_get_zone_info()
1633 ret, blkdev_nr_zones(bdev->bd_disk)); in zonefs_get_zone_info()
1796 blkdev_nr_zones(sb->s_bdev->bd_disk)); in zonefs_fill_super()
1810 inode->i_ino = blkdev_nr_zones(sb->s_bdev->bd_disk); in zonefs_fill_super()
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-srv-sysfs.c58 bdev_kobj = &disk_to_dev(bdev->bd_disk)->kobj; in rnbd_srv_create_dev_sysfs()
/kernel/linux/linux-5.10/arch/m68k/emu/
Dnfblock.c85 struct nfhd_device *dev = bdev->bd_disk->private_data; in nfhd_getgeo()
/kernel/linux/linux-5.10/drivers/block/paride/
Dpf.c331 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_open()
356 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_getgeo()
374 struct pf_unit *pf = bdev->bd_disk->private_data; in pf_ioctl()
/kernel/linux/linux-5.10/drivers/block/
Dswim.c611 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_open()
690 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_ioctl()
716 struct floppy_state *fs = bdev->bd_disk->private_data; in floppy_getgeo()

12345