Home
last modified time | relevance | path

Searched refs:blk_mode_t (Results 1 – 25 of 64) sorted by relevance

123

/openbmc/linux/block/
H A Dioctl.c88 static int blk_ioctl_discard(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_discard()
127 static int blk_ioctl_secure_erase(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_secure_erase()
158 static int blk_ioctl_zeroout(struct block_device *bdev, blk_mode_t mode, in blk_ioctl_zeroout()
247 int blkdev_compat_ptr_ioctl(struct block_device *bdev, blk_mode_t mode, in blkdev_compat_ptr_ioctl()
261 static bool blkdev_pr_allowed(struct block_device *bdev, blk_mode_t mode) in blkdev_pr_allowed()
276 static int blkdev_pr_register(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_register()
294 static int blkdev_pr_reserve(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_reserve()
312 static int blkdev_pr_release(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_release()
330 static int blkdev_pr_preempt(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_preempt()
348 static int blkdev_pr_clear(struct block_device *bdev, blk_mode_t mode, in blkdev_pr_clear()
[all …]
H A Dblk.h402 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, blk_mode_t mode,
413 blk_mode_t mode, unsigned int cmd, unsigned long arg) in blkdev_zone_mgmt_ioctl()
455 int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode);
470 blk_mode_t file_to_blk_mode(struct file *file);
471 int truncate_bdev_range(struct block_device *bdev, blk_mode_t mode,
H A Dbdev.c96 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()
834 struct bdev_handle *bdev_open_by_dev(dev_t dev, blk_mode_t mode, void *holder, in bdev_open_by_dev()
870 struct block_device *blkdev_get_by_path(const char *path, blk_mode_t mode, in blkdev_get_by_path()
891 struct bdev_handle *bdev_open_by_path(const char *path, blk_mode_t mode, in bdev_open_by_path()
H A Dblk-zoned.c360 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()
H A Dfops.c545 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()
/openbmc/linux/include/linux/
H A Dblkdev.h115 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;
1392 int (*open)(struct gendisk *disk, blk_mode_t mode);
1394 int (*ioctl)(struct block_device *bdev, blk_mode_t mode,
1396 int (*compat_ioctl)(struct block_device *bdev, blk_mode_t mode,
[all …]
H A Ddevice-mapper.h169 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);
H A Dcdrom.h105 int cdrom_open(struct cdrom_device_info *cdi, blk_mode_t mode);
/openbmc/linux/drivers/block/
H A Dswim3.c249 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()
H A Dataflop.c445 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()
H A Dswim.c611 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()
H A Dz2ram.c143 static int z2_open(struct gendisk *disk, blk_mode_t mode) in z2_open()
H A Damiflop.c1535 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()
/openbmc/linux/drivers/mtd/devices/
H A Dblock2mtd.c223 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()
/openbmc/linux/fs/btrfs/
H A Dvolumes.h619 blk_mode_t flags, void *holder);
620 struct btrfs_device *btrfs_scan_one_device(const char *path, blk_mode_t flags);
/openbmc/linux/drivers/md/
H A Ddm.h206 int dm_get_table_device(struct mapped_device *md, dev_t dev, blk_mode_t mode,
H A Ddm-core.h215 blk_mode_t mode;
H A Ddm-table.c129 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()
/openbmc/linux/drivers/block/aoe/
H A Daoeblk.c207 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()
/openbmc/linux/arch/um/drivers/
H A Dubd_kern.c111 static int ubd_open(struct gendisk *disk, blk_mode_t mode);
113 static int ubd_ioctl(struct block_device *bdev, blk_mode_t mode,
1145 static int ubd_open(struct gendisk *disk, blk_mode_t mode) in ubd_open()
1380 static int ubd_ioctl(struct block_device *bdev, blk_mode_t mode, in ubd_ioctl()
/openbmc/linux/drivers/cdrom/
H A Dgdrom.c477 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()
/openbmc/linux/drivers/scsi/
H A Dsr.c487 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()
/openbmc/linux/arch/xtensa/platforms/iss/
H A Dsimdisk.c123 static int simdisk_open(struct gendisk *disk, blk_mode_t mode) in simdisk_open()
/openbmc/linux/drivers/s390/block/
H A Ddcssblk.c31 static int dcssblk_open(struct gendisk *disk, blk_mode_t mode);
814 dcssblk_open(struct gendisk *disk, blk_mode_t mode) in dcssblk_open()
/openbmc/linux/drivers/nvme/host/
H A Dnvme.h903 int nvme_ioctl(struct block_device *bdev, blk_mode_t mode,
906 int nvme_ns_head_ioctl(struct block_device *bdev, blk_mode_t mode,

123