/block/ |
D | ioctl.c | 88 static int blkdev_reread_part(struct block_device *bdev, fmode_t mode) in blkdev_reread_part() argument 103 mode &= ~FMODE_EXCL; in blkdev_reread_part() 106 tmp = blkdev_get_by_dev(bdev->bd_dev, mode, NULL); in blkdev_reread_part() 109 blkdev_put(tmp, mode); in blkdev_reread_part() 113 static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode, in blk_ioctl_discard() argument 122 if (!(mode & FMODE_WRITE)) in blk_ioctl_discard() 143 err = truncate_bdev_range(bdev, mode, start, start + len - 1); in blk_ioctl_discard() 155 static int blk_ioctl_zeroout(struct block_device *bdev, fmode_t mode, in blk_ioctl_zeroout() argument 163 if (!(mode & FMODE_WRITE)) in blk_ioctl_zeroout() 184 err = truncate_bdev_range(bdev, mode, start, end); in blk_ioctl_zeroout() [all …]
|
D | bdev.c | 101 int truncate_bdev_range(struct block_device *bdev, fmode_t mode, in truncate_bdev_range() argument 109 if (!(mode & FMODE_EXCL)) { in truncate_bdev_range() 116 if (!(mode & FMODE_EXCL)) in truncate_bdev_range() 663 static int blkdev_get_whole(struct block_device *bdev, fmode_t mode) in blkdev_get_whole() argument 669 ret = disk->fops->open(bdev, mode); in blkdev_get_whole() 687 static void blkdev_put_whole(struct block_device *bdev, fmode_t mode) in blkdev_put_whole() argument 692 bdev->bd_disk->fops->release(bdev->bd_disk, mode); in blkdev_put_whole() 695 static int blkdev_get_part(struct block_device *part, fmode_t mode) in blkdev_get_part() argument 703 ret = blkdev_get_whole(bdev_whole(part), mode); in blkdev_get_part() 718 blkdev_put_whole(bdev_whole(part), mode); in blkdev_get_part() [all …]
|
D | blk-crypto.c | 348 const struct blk_crypto_mode *mode; in blk_crypto_init_key() local 355 mode = &blk_crypto_modes[crypto_mode]; in blk_crypto_init_key() 358 if (raw_key_size != mode->keysize) in blk_crypto_init_key() 362 if (raw_key_size < mode->security_strength || in blk_crypto_init_key() 370 if (dun_bytes == 0 || dun_bytes > mode->ivsize) in blk_crypto_init_key()
|
D | blk-integrity.c | 312 .attr = { .name = "format", .mode = 0444 }, 317 .attr = { .name = "tag_size", .mode = 0444 }, 322 .attr = { .name = "protection_interval_bytes", .mode = 0444 }, 327 .attr = { .name = "read_verify", .mode = 0644 }, 333 .attr = { .name = "write_generate", .mode = 0644 }, 339 .attr = { .name = "device_is_integrity_capable", .mode = 0444 },
|
D | fops.c | 482 fmode_t mode = file->f_mode; in block_ioctl() local 489 mode |= FMODE_NDELAY; in block_ioctl() 491 mode &= ~FMODE_NDELAY; in block_ioctl() 493 return blkdev_ioctl(bdev, mode, cmd, arg); in block_ioctl() 569 static long blkdev_fallocate(struct file *file, int mode, loff_t start, in blkdev_fallocate() argument 579 if (mode & ~BLKDEV_FALLOC_FL_SUPPORTED) in blkdev_fallocate() 587 if (mode & FALLOC_FL_KEEP_SIZE) { in blkdev_fallocate() 606 switch (mode) { in blkdev_fallocate()
|
D | blk-zoned.c | 337 int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_report_zones_ioctl() argument 375 static int blkdev_truncate_zone_range(struct block_device *bdev, fmode_t mode, in blkdev_truncate_zone_range() argument 388 return truncate_bdev_range(bdev, mode, start, end); in blkdev_truncate_zone_range() 395 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_zone_mgmt_ioctl() argument 414 if (!(mode & FMODE_WRITE)) in blkdev_zone_mgmt_ioctl() 426 ret = blkdev_truncate_zone_range(bdev, mode, &zrange); in blkdev_zone_mgmt_ioctl()
|
D | bsg.c | 57 static int bsg_sg_io(struct bsg_device *bd, fmode_t mode, void __user *uarg) in bsg_sg_io() argument 66 ret = bd->sg_io_fn(bd->queue, &hdr, mode, bsg_timeout(bd, &hdr)); in bsg_sg_io() 235 static char *bsg_devnode(struct device *dev, umode_t *mode) in bsg_devnode() argument
|
D | blk-mq-sysfs.c | 133 .attr = {.name = "nr_tags", .mode = 0444 }, 137 .attr = {.name = "nr_reserved_tags", .mode = 0444 }, 141 .attr = {.name = "cpu_list", .mode = 0444 },
|
D | blk-mq-debugfs.h | 11 umode_t mode; member
|
D | blk-sysfs.c | 571 .attr = { .name = _name, .mode = 0444 }, \ 577 .attr = { .name = _name, .mode = 0644 }, \ 630 .attr = {.name = "hw_sector_size", .mode = 0444 }, 702 return attr->mode; in queue_attr_visible()
|
D | blk-crypto-sysfs.c | 166 attr->attr.mode = 0444; in blk_crypto_sysfs_init()
|
D | blk-rq-qos.c | 213 unsigned int mode, int wake_flags, void *key) in rq_qos_wake_function() argument
|
D | genhd.c | 1077 return a->mode; in disk_visible() 1133 static char *block_devnode(struct device *dev, umode_t *mode, in block_devnode() argument 1139 return disk->fops->devnode(disk, mode); in block_devnode()
|
D | kyber-iosched.c | 195 static int kyber_domain_wake(wait_queue_entry_t *wait, unsigned mode, int flags, 693 static int kyber_domain_wake(wait_queue_entry_t *wqe, unsigned mode, int flags, in kyber_domain_wake() argument
|
D | bsg-lib.c | 29 fmode_t mode, unsigned int timeout) in bsg_transport_sg_io_fn() argument
|
D | blk-mq.c | 1115 static int blk_mq_dispatch_wake(wait_queue_entry_t *wait, unsigned mode, in blk_mq_dispatch_wake() argument 3880 enum hrtimer_mode mode; in blk_mq_poll_hybrid_sleep() local 3909 mode = HRTIMER_MODE_REL; in blk_mq_poll_hybrid_sleep() 3910 hrtimer_init_sleeper_on_stack(&hs, CLOCK_MONOTONIC, mode); in blk_mq_poll_hybrid_sleep() 3917 hrtimer_sleeper_start_expires(&hs, mode); in blk_mq_poll_hybrid_sleep() 3921 mode = HRTIMER_MODE_ABS; in blk_mq_poll_hybrid_sleep()
|
D | blk-mq-debugfs.c | 821 debugfs_create_file(attr->name, attr->mode, parent, in debugfs_create_files()
|
D | blk-iocost.c | 1446 static int iocg_wake_fn(struct wait_queue_entry *wq_entry, unsigned mode, in iocg_wake_fn() argument 1468 default_wake_function(wq_entry, mode, flags, key); in iocg_wake_fn()
|