Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 17 of 17) sorted by relevance

/block/
Dcompat_ioctl.c81 static int compat_hdio_ioctl(struct block_device *bdev, fmode_t mode, in compat_hdio_ioctl() argument
88 error = __blkdev_driver_ioctl(bdev, mode, in compat_hdio_ioctl()
118 static int compat_cdrom_read_audio(struct block_device *bdev, fmode_t mode, in compat_cdrom_read_audio() argument
141 return __blkdev_driver_ioctl(bdev, mode, cmd, in compat_cdrom_read_audio()
145 static int compat_cdrom_generic_command(struct block_device *bdev, fmode_t mode, in compat_cdrom_generic_command() argument
174 return __blkdev_driver_ioctl(bdev, mode, cmd, (unsigned long)cgc); in compat_cdrom_generic_command()
184 static int compat_blkpg_ioctl(struct block_device *bdev, fmode_t mode, in compat_blkpg_ioctl() argument
203 return blkdev_ioctl(bdev, mode, cmd, (unsigned long)a); in compat_blkpg_ioctl()
210 static int compat_blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, in compat_blkdev_driver_ioctl() argument
225 return compat_hdio_ioctl(bdev, mode, cmd, arg); in compat_blkdev_driver_ioctl()
[all …]
Dblk-sysfs.c533 .attr = {.name = "nr_requests", .mode = 0644 },
539 .attr = {.name = "read_ahead_kb", .mode = 0644 },
545 .attr = {.name = "max_sectors_kb", .mode = 0644 },
551 .attr = {.name = "max_hw_sectors_kb", .mode = 0444 },
556 .attr = {.name = "max_segments", .mode = 0444 },
561 .attr = {.name = "max_discard_segments", .mode = 0444 },
566 .attr = {.name = "max_integrity_segments", .mode = 0444 },
571 .attr = {.name = "max_segment_size", .mode = 0444 },
576 .attr = {.name = "scheduler", .mode = 0644 },
582 .attr = {.name = "hw_sector_size", .mode = 0444 },
[all …]
Dioctl.c201 static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode, in blk_ioctl_discard() argument
210 if (!(mode & FMODE_WRITE)) in blk_ioctl_discard()
234 static int blk_ioctl_zeroout(struct block_device *bdev, fmode_t mode, in blk_ioctl_zeroout() argument
241 if (!(mode & FMODE_WRITE)) in blk_ioctl_zeroout()
298 int __blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, in __blkdev_driver_ioctl() argument
304 return disk->fops->ioctl(bdev, mode, cmd, arg); in __blkdev_driver_ioctl()
425 static int blkdev_flushbuf(struct block_device *bdev, fmode_t mode, in blkdev_flushbuf() argument
433 ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg); in blkdev_flushbuf()
442 static int blkdev_roset(struct block_device *bdev, fmode_t mode, in blkdev_roset() argument
450 ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg); in blkdev_roset()
[all …]
Dscsi_ioctl.c196 int blk_verify_command(unsigned char *cmd, fmode_t mode) in blk_verify_command() argument
209 if (test_bit(cmd[0], filter->write_ok) && (mode & FMODE_WRITE)) in blk_verify_command()
217 struct sg_io_hdr *hdr, fmode_t mode) in blk_fill_sghdr_rq() argument
223 if (blk_verify_command(req->cmd, mode)) in blk_fill_sghdr_rq()
279 struct sg_io_hdr *hdr, fmode_t mode) in sg_io() argument
321 ret = blk_fill_sghdr_rq(q, rq, hdr, mode); in sg_io()
404 int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode, in sg_scsi_ioctl() argument
457 err = blk_verify_command(req->cmd, mode); in sg_scsi_ioctl()
545 int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mode, in scsi_cmd_ioctl() argument
587 err = sg_io(q, bd_disk, &hdr, mode); in scsi_cmd_ioctl()
[all …]
Dblk-integrity.c314 .attr = { .name = "format", .mode = 0444 },
319 .attr = { .name = "tag_size", .mode = 0444 },
324 .attr = { .name = "protection_interval_bytes", .mode = 0444 },
329 .attr = { .name = "read_verify", .mode = 0644 },
335 .attr = { .name = "write_generate", .mode = 0644 },
341 .attr = { .name = "device_is_integrity_capable", .mode = 0444 },
Dblk-crypto.c190 const struct blk_crypto_mode *mode; in blk_crypto_init_key() local
200 mode = &blk_crypto_modes[crypto_mode]; in blk_crypto_init_key()
201 if (raw_key_size < mode->keysize || in blk_crypto_init_key()
Dbsg.c66 fmode_t mode) in bsg_scsi_fill_hdr() argument
84 if (blk_verify_command(sreq->cmd, mode)) in bsg_scsi_fill_hdr()
135 static int bsg_sg_io(struct request_queue *q, fmode_t mode, void __user *uarg) in bsg_sg_io() argument
159 ret = q->bsg_dev.ops->fill_hdr(rq, &hdr, mode); in bsg_sg_io()
476 static char *bsg_devnode(struct device *dev, umode_t *mode) in bsg_devnode() argument
Dblk-zoned.c234 int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_report_zones_ioctl() argument
278 int blkdev_zone_mgmt_ioctl(struct block_device *bdev, fmode_t mode, in blkdev_zone_mgmt_ioctl() argument
299 if (!(mode & FMODE_WRITE)) in blkdev_zone_mgmt_ioctl()
Dblk-mq-sysfs.c191 .attr = {.name = "nr_tags", .mode = 0444 },
195 .attr = {.name = "nr_reserved_tags", .mode = 0444 },
199 .attr = {.name = "cpu_list", .mode = 0444 },
Dblk-mq-debugfs.h11 umode_t mode; member
Dblk-rq-qos.c213 unsigned int mode, int wake_flags, void *key) in rq_qos_wake_function() argument
Dblk-mq.c1086 static int blk_mq_dispatch_wake(wait_queue_entry_t *wait, unsigned mode, in blk_mq_dispatch_wake() argument
3400 enum hrtimer_mode mode; in blk_mq_poll_hybrid_sleep() local
3429 mode = HRTIMER_MODE_REL; in blk_mq_poll_hybrid_sleep()
3430 hrtimer_init_sleeper_on_stack(&hs, CLOCK_MONOTONIC, mode); in blk_mq_poll_hybrid_sleep()
3437 hrtimer_sleeper_start_expires(&hs, mode); in blk_mq_poll_hybrid_sleep()
3441 mode = HRTIMER_MODE_ABS; in blk_mq_poll_hybrid_sleep()
Dbsg-lib.c37 fmode_t mode) in bsg_transport_fill_hdr() argument
Dkyber-iosched.c192 static int kyber_domain_wake(wait_queue_entry_t *wait, unsigned mode, int flags,
691 static int kyber_domain_wake(wait_queue_entry_t *wqe, unsigned mode, int flags, in kyber_domain_wake() argument
Dgenhd.c1233 return a->mode; in disk_visible()
1340 static char *block_devnode(struct device *dev, umode_t *mode, in block_devnode() argument
1346 return disk->devnode(disk, mode); in block_devnode()
Dblk-mq-debugfs.c817 debugfs_create_file(attr->name, attr->mode, parent, in debugfs_create_files()
Dblk-iocost.c1116 static int iocg_wake_fn(struct wait_queue_entry *wq_entry, unsigned mode, in iocg_wake_fn() argument
1138 default_wake_function(wq_entry, mode, flags, key); in iocg_wake_fn()