Lines Matching refs:cmd
248 unsigned cmd, unsigned long arg) in blkdev_compat_ptr_ioctl() argument
253 return disk->fops->ioctl(bdev, mode, cmd, in blkdev_compat_ptr_ioctl()
366 static int blkdev_flushbuf(struct block_device *bdev, unsigned cmd, in blkdev_flushbuf() argument
383 static int blkdev_roset(struct block_device *bdev, unsigned cmd, in blkdev_roset() argument
497 unsigned int cmd, unsigned long arg, in blkdev_common_ioctl() argument
502 switch (cmd) { in blkdev_common_ioctl()
504 return blkdev_flushbuf(bdev, cmd, arg); in blkdev_common_ioctl()
506 return blkdev_roset(bdev, cmd, arg); in blkdev_common_ioctl()
516 return blkdev_report_zones_ioctl(bdev, cmd, arg); in blkdev_common_ioctl()
521 return blkdev_zone_mgmt_ioctl(bdev, mode, cmd, arg); in blkdev_common_ioctl()
561 return blk_trace_ioctl(bdev, cmd, argp); in blkdev_common_ioctl()
585 long blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) in blkdev_ioctl() argument
592 switch (cmd) { in blkdev_ioctl()
621 return blk_trace_ioctl(bdev, cmd, argp); in blkdev_ioctl()
626 ret = blkdev_common_ioctl(bdev, mode, cmd, arg, argp); in blkdev_ioctl()
632 return bdev->bd_disk->fops->ioctl(bdev, mode, cmd, arg); in blkdev_ioctl()
644 long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg) in compat_blkdev_ioctl() argument
652 switch (cmd) { in compat_blkdev_ioctl()
681 return blk_trace_ioctl(bdev, cmd, argp); in compat_blkdev_ioctl()
686 ret = blkdev_common_ioctl(bdev, mode, cmd, arg, argp); in compat_blkdev_ioctl()
688 ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg); in compat_blkdev_ioctl()