/linux-6.6.21/block/ |
D | ioctl.c | 88 static int blk_ioctl_discard(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_discard() 126 static int blk_ioctl_secure_erase(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_secure_erase() 157 static int blk_ioctl_zeroout(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_zeroout() 246 int blkdev_compat_ptr_ioctl(struct block_device *bdev, blk_mode_t mode, in blkdev_compat_ptr_ioctl() 260 static bool blkdev_pr_allowed(struct block_device *bdev, blk_mode_t mode) in blkdev_pr_allowed() 275 static int blkdev_pr_register(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_register() 293 static int blkdev_pr_reserve(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_reserve() 311 static int blkdev_pr_release(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_release() 329 static int blkdev_pr_preempt(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_preempt() 347 static int blkdev_pr_clear(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_clear() [all …]
|
D | blk.h | 401 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, blk_mode_t mode, 412 blk_mode_t mode, unsigned int cmd, unsigned long arg) in blkdev_zone_mgmt_ioctl() 454 int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode); 469 blk_mode_t file_to_blk_mode(struct file *file); 470 int truncate_bdev_range(struct block_device *bdev, blk_mode_t mode,
|
D | bdev.c | 96 int truncate_bdev_range(struct block_device *bdev, blk_mode_t mode, in truncate_bdev_range() 636 static int blkdev_get_whole(struct block_device *bdev, blk_mode_t mode) in blkdev_get_whole() 668 static int blkdev_get_part(struct block_device *part, blk_mode_t mode) in blkdev_get_part() 754 struct block_device *blkdev_get_by_dev(dev_t dev, blk_mode_t mode, void *holder, in blkdev_get_by_dev() 851 struct block_device *blkdev_get_by_path(const char *path, blk_mode_t mode, in blkdev_get_by_path()
|
D | blk-zoned.c | 360 blk_mode_t mode, const struct blk_zone_range *zrange) in blkdev_truncate_zone_range() 379 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, blk_mode_t mode, in blkdev_zone_mgmt_ioctl()
|
D | fops.c | 545 blk_mode_t file_to_blk_mode(struct file *file) in file_to_blk_mode() 547 blk_mode_t mode = 0; in file_to_blk_mode()
|
/linux-6.6.21/include/linux/ |
D | blkdev.h | 115 typedef unsigned int __bitwise blk_mode_t; typedef 118 #define BLK_OPEN_READ ((__force blk_mode_t)(1 << 0)) 120 #define BLK_OPEN_WRITE ((__force blk_mode_t)(1 << 1)) 122 #define BLK_OPEN_EXCL ((__force blk_mode_t)(1 << 2)) 124 #define BLK_OPEN_NDELAY ((__force blk_mode_t)(1 << 3)) 126 #define BLK_OPEN_WRITE_IOCTL ((__force blk_mode_t)(1 << 4)) 203 blk_mode_t open_mode; 1379 int (*open)(struct gendisk *disk, blk_mode_t mode); 1381 int (*ioctl)(struct block_device *bdev, blk_mode_t mode, 1383 int (*compat_ioctl)(struct block_device *bdev, blk_mode_t mode, [all …]
|
D | device-mapper.h | 169 blk_mode_t mode; 177 int dm_get_device(struct dm_target *ti, const char *path, blk_mode_t mode, 546 int dm_table_create(struct dm_table **result, blk_mode_t mode, 589 blk_mode_t dm_table_get_mode(struct dm_table *t);
|
D | cdrom.h | 105 int cdrom_open(struct cdrom_device_info *cdi, blk_mode_t mode);
|
/linux-6.6.21/drivers/block/ |
D | swim3.c | 249 static int floppy_ioctl(struct block_device *bdev, blk_mode_t mode, 251 static int floppy_open(struct gendisk *disk, blk_mode_t mode); 885 static int floppy_locked_ioctl(struct block_device *bdev, blk_mode_t mode, in floppy_locked_ioctl() 913 static int floppy_ioctl(struct block_device *bdev, blk_mode_t mode, in floppy_ioctl() 925 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open() 995 static int floppy_unlocked_open(struct gendisk *disk, blk_mode_t mode) in floppy_unlocked_open()
|
D | ataflop.c | 445 static int fd_locked_ioctl(struct block_device *bdev, blk_mode_t mode, 450 static int floppy_open(struct gendisk *disk, blk_mode_t mode); 1584 static int fd_locked_ioctl(struct block_device *bdev, blk_mode_t mode, in fd_locked_ioctl() 1771 static int fd_ioctl(struct block_device *bdev, blk_mode_t mode, in fd_ioctl() 1918 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open() 1955 static int floppy_unlocked_open(struct gendisk *disk, blk_mode_t mode) in floppy_unlocked_open()
|
D | swim.c | 611 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open() 660 static int floppy_unlocked_open(struct gendisk *disk, blk_mode_t mode) in floppy_unlocked_open() 687 static int floppy_ioctl(struct block_device *bdev, blk_mode_t mode, in floppy_ioctl()
|
D | z2ram.c | 143 static int z2_open(struct gendisk *disk, blk_mode_t mode) in z2_open()
|
D | amiflop.c | 1535 static int fd_locked_ioctl(struct block_device *bdev, blk_mode_t mode, in fd_locked_ioctl() 1609 static int fd_ioctl(struct block_device *bdev, blk_mode_t mode, in fd_ioctl() 1656 static int floppy_open(struct gendisk *disk, blk_mode_t mode) in floppy_open()
|
/linux-6.6.21/drivers/mtd/devices/ |
D | block2mtd.c | 223 blk_mode_t mode, int timeout, struct block2mtd_dev *dev) in mdtblock_early_get_bdev() 264 const blk_mode_t mode = BLK_OPEN_READ | BLK_OPEN_WRITE; in add_device()
|
/linux-6.6.21/drivers/md/ |
D | dm.h | 206 int dm_get_table_device(struct mapped_device *md, dev_t dev, blk_mode_t mode,
|
D | dm-core.h | 215 blk_mode_t mode;
|
D | dm-table.c | 129 int dm_table_create(struct dm_table **result, blk_mode_t mode, in dm_table_create() 313 static int upgrade_mode(struct dm_dev_internal *dd, blk_mode_t new_mode, in upgrade_mode() 339 int __ref dm_get_device(struct dm_target *ti, const char *path, blk_mode_t mode, in dm_get_device() 2058 blk_mode_t dm_table_get_mode(struct dm_table *t) in dm_table_get_mode()
|
/linux-6.6.21/fs/btrfs/ |
D | volumes.h | 613 blk_mode_t flags, void *holder); 614 struct btrfs_device *btrfs_scan_one_device(const char *path, blk_mode_t flags);
|
/linux-6.6.21/drivers/block/aoe/ |
D | aoeblk.c | 207 aoeblk_open(struct gendisk *disk, blk_mode_t mode) in aoeblk_open() 288 aoeblk_ioctl(struct block_device *bdev, blk_mode_t mode, uint cmd, ulong arg) in aoeblk_ioctl()
|
/linux-6.6.21/arch/um/drivers/ |
D | ubd_kern.c | 111 static int ubd_open(struct gendisk *disk, blk_mode_t mode); 113 static int ubd_ioctl(struct block_device *bdev, blk_mode_t mode, 1157 static int ubd_open(struct gendisk *disk, blk_mode_t mode) in ubd_open() 1392 static int ubd_ioctl(struct block_device *bdev, blk_mode_t mode, in ubd_ioctl()
|
/linux-6.6.21/drivers/cdrom/ |
D | gdrom.c | 477 static int gdrom_bdops_open(struct gendisk *disk, blk_mode_t mode) in gdrom_bdops_open() 502 static int gdrom_bdops_ioctl(struct block_device *bdev, blk_mode_t mode, in gdrom_bdops_ioctl()
|
/linux-6.6.21/arch/xtensa/platforms/iss/ |
D | simdisk.c | 123 static int simdisk_open(struct gendisk *disk, blk_mode_t mode) in simdisk_open()
|
/linux-6.6.21/drivers/scsi/ |
D | sr.c | 487 static int sr_block_open(struct gendisk *disk, blk_mode_t mode) in sr_block_open() 521 static int sr_block_ioctl(struct block_device *bdev, blk_mode_t mode, in sr_block_ioctl()
|
/linux-6.6.21/drivers/nvme/host/ |
D | nvme.h | 860 int nvme_ioctl(struct block_device *bdev, blk_mode_t mode, 863 int nvme_ns_head_ioctl(struct block_device *bdev, blk_mode_t mode,
|
/linux-6.6.21/drivers/s390/block/ |
D | dcssblk.c | 31 static int dcssblk_open(struct gendisk *disk, blk_mode_t mode); 814 dcssblk_open(struct gendisk *disk, blk_mode_t mode) in dcssblk_open()
|